github-workflow
Skill4 starsChanged 5 months agoMITView on GitHub
Shared pohunek rules for recording and tracking agent work in GitHub Issues and the Pohunek Project: open or reuse an issue BEFORE starting meaningful work (auto-create after dedup), structure issue bodies vs comments, file verified follow-ups, set Project status honestly including Done-closure rules, persist safely with typed gh commands, and hand off work. Use whenever an agent starts meaningful work, creates, updates, or comments on an issue, adds anything to a project, resolves which issue names a task, or resumes interrupted work.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- mike22890/opencode-skills-cntheir own version, first seen Sep 13, 2026
- sudokoi/skillstheir own version, first seen Aug 21, 2026
- 2867203296/hermes-agenttheir own version, first seen Aug 19, 2026
- aminemanai2003/personal-agent-skillstheir own version, first seen Aug 15, 2026
- Kur1sulab/blackboxtheir own version, first seen Aug 12, 2026
- yuelenghan/orbittheir own version, first seen Jun 24, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- transilienceai/communitytools★ 555same name
- Mindrally/skills★ 266same name
- drewid74/ai_skills★ 8same name
- rloisell/rl-agents-n-skills★ 8same name
- aminemanai2003/personal-agent-skills★ 4same name
- Kur1sulab/blackbox★ 3same name
- mike22890/opencode-skills-cn★ 1same name
- 2867203296/hermes-agent★ 0same name
- sudokoi/skills★ 0same name
- yuelenghan/orbit★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ms-rustSkill
- deliver-issueSkill
- gatesSkill
- merge-advanceSkill
- milestone-reviewSkill
- milestoneSkill
- plan-phaseSkill
- pr-handoffSkill
- releaseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 8 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Read .github/agent-workflow.json once per session before the first write.
- Distinctive: line 46
Never ask "should I file an issue?" or offer a follow-up instead of filing it.
- Distinctive: line 57
No meaningful work starts without something on the triage record.
- Distinctive: line 61
No matching issue and the user gave a concrete new scope → auto-create the issue and add it to the configured project without a further ask.
- Very specific: line 73
Search for a matching actionable issue before creating one (open and recently closed, paginated: gh search issues / gh issue list --search, …
- Very specific: line 77
Create a new issue only for meaningful, actionable work — a design proposal with a decision, a milestone/feature/fix with scope and …
- Distinctive: line 123
Only pure planning/investigation with no repository change (research, design decisions, issue-held plans) can complete on issue-held …
- Very specific: line 126
Never close an issue whose DoD is partially met, and never set Done merely because something was written locally or a PR was opened.
- Distinctive: line 131
Read before you write; never blind-overwrite a body or project field.
- Very specific: line 132
Verify every mutation from its API response or a follow-up read (gh issue view, the GraphQL item object) before claiming it landed.
- Distinctive: line 134
Search with pagination; do not treat the first page as the whole inventory.
- Very specific: line 135
After an ambiguous mutation (timeout, ambiguous error), stop: read back the current state before any retry, and never retry blindly.
- Distinctive: line 203
When a task ends — completed, blocked, or handed to another agent/session — leave one handoff comment on the issue with, at minimum:
- Distinctive: line 220
Read the issue's current body and comments before resuming any interrupted work.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
github-workflow — GitHub Issues + Project tracking
GitHub Issues are the canonical record for pohunek work: scope, design
proposals and decisions, acceptance criteria, plans, verification evidence,
blockers, and handoffs. The Pohunek Project (owner zajca, repository
zajca/pohunek) tracks delivery status. Local files are not competitors:
NEXT.md is never required — a pre-existing untracked one is a read-only
migration source at most — and SiYuan notes are optional pointers.
One config, no hardcoded IDs
Read .github/agent-workflow.json once per session before the first write. It
names the repository, the default project, the valid status options
(Todo, In Progress, Done) and their meaning, and how issue bodies vs
comments are used. Do not hardcode project numbers, field IDs, or status IDs
anywhere else; resolve the Project's field/status option IDs at run time with
gh project view/gh project field-list. There is no Review or Blocked
status: represent review findings and blockers as issue comments while status
stays In Progress. Being tracked as Todo for a design-proposal issue does
not imply the proposed design is accepted — acceptance is an explicit
decision recorded on the issue.
Standing authorization — never ask whether to file
The repository owner has durably pre-authorized these GitHub writes on the
configured repository and default project (authorization in
.github/agent-workflow.json): creating issues, editing your own body
sections, commenting, native sub-issue/dependency links, and adding items to
the project or changing their status. This authorization overrides any
generic "confirm outward-facing actions first" default. Do them without
asking, then report the links in your summary.
- Never ask "should I file an issue?" or offer a follow-up instead of filing it. A verified out-of-scope finding, or a verified defect/gap you notice incidentally while doing other work, gets its issue filed (dedup first).
- The only question left is which issue applies when competing matches or a genuinely ambiguous scope make that unclear — never whether to file.
- It does not widen anything else: dedup, the no-trivial-issues rule, the Done/closure bar, and the ban on destructive project edits still apply, and commits/pushes still need the owner's explicit request.
Gate meaningful work on an issue first
No meaningful work starts without something on the triage record. Before starting it: resolve the issue (below), deduplicate against existing issues (paginated, open + recently closed), and then:
- No matching issue and the user gave a concrete new scope → auto-create the issue and add it to the configured project without a further ask. Do not require the user to say "file an issue".
- Multiple plausible matching issues (competing candidates) or a genuinely ambiguous scope → ask which issue/scope applies; do not pick a probable one.
- One unique match → reuse it (update scope/DoD, add a progress comment).
Explicit issue URL/number from the task or user always wins once verified to exist and be open.
Create or update — deduplicate first
Search for a matching actionable issue before creating one (open and recently
closed, paginated: gh search issues / gh issue list --search, following
pages until results stop growing). If one matches, update it instead of
opening a near-duplicate; link a genuinely distinct older issue when related.
Create a new issue only for meaningful, actionable work — a design proposal
with a decision, a milestone/feature/fix with scope and acceptance criteria,
or a verified follow-up discovered during work. Never file an issue per
trivial tool call, quick task, or in-flight detail; those belong in comments
on the issue already covering the work.
Automated follow-up issues: when work produces a verified out-of-scope
finding (a real gap discovered and evidenced outside the current DoD), file a
follow-up issue for it automatically (dedup first). Never move an unmet
original DoD item into a follow-up to claim the current issue done — the
issue stays open at In Progress until its own DoD is met.
Issue body vs comments
- Body (long-lived, structured): full scope; accepted decisions with
rationale; definition-of-done items with stable IDs (
D1,D2, ...); dependencies (linked issues/APIs, including parent/sub-issue links); the plan, including the PR stack slice plan (ordered slices → DoD items, perpullRequestsin.github/agent-workflow.json) and, once opened, the ordered PR links. Preserve user-written sections when editing — edit or extend your own sections, read the body first. - Comments (append-only): progress, verification evidence (exact commands and their results), handoffs between agents, blockers, and the reason for any status change. Never overwrite or delete another author's comment.
Project membership and status
Actionable tracked work joins the configured default project and stays there from "work accepted" to "verified completion". After any update, verify from the API response (or a follow-up read) that the item actually exists in the project with the intended status. Existing topic projects stay available as additional views; do not remove items from them and do not migrate anything destructively. Only sync a topic project when the task explicitly covers it.
Done, issue closure, and status consistency
- Any change to the repository — code, scripts, harness files,
documentation, skills, or configuration — reaches
Doneplus issue closure only via the same bar: verified landing on the remote default branch with every DoD item met with evidence. Publishing a change someone cannot verify on the remote default branch is not a landing, whatever kind of file it touched. - A local merge without an authorized push is not a landing: the issue
stays open at
In Progresswith a comment recording the local merge commit as evidence. The push it needs is still governed by the standing "commit/ push only when asked" rule; no local merge widens that authorization. - Only pure planning/investigation with no repository change (research, design decisions, issue-held plans) can complete on issue-held artifact and evidence alone — the artifact IS the issue — before any landing.
- Never close an issue whose DoD is partially met, and never set
Donemerely because something was written locally or a PR was opened.
Safe persistence
- Read before you write; never blind-overwrite a body or project field.
- Verify every mutation from its API response or a follow-up read (
gh issue view, the GraphQL item object) before claiming it landed. - Search with pagination; do not treat the first page as the whole inventory.
- After an ambiguous mutation (timeout, ambiguous error), stop: read back the
current state before any retry, and never retry blindly. When verifying
project membership after a write, do not rely on
gh project item-list— it can be stale; prefer the mutation's returned project item ID: a direct GraphQLnode(id: $projectV2ItemId)lookup (readingproject,content, andfieldValueByName), or the issue'sprojectItems. If targeted reads still disagree, report synchronization as unverified and do not repeat the mutation until its outcome is known. - A permission, authentication, or network error blocks sync: report which GitHub write could not happen and stop claiming progress; do not falsely say "recorded" and do not work around permissions by other means.
- Writes you may make within an owner-authorized task: issues on the configured repository, comments, and project add/status updates relevant to that task. Never widen authorization (no unrelated auth changes, no team / relay grants) and never perform destructive project edits (deleting fields, statuses, or views, removing items).
Usable safe gh command patterns
These are the shapes to start from; check gh <cmd> --help for exact flags
before a first use. Multiline text always goes through a file:
# read before write, with the repository resolved from the config
gh issue view "$issue_number" --repo "$repository" --json number,title,state,body,comments,projectItems
gh issue create --repo "$repository" --title "$issue_title" --body-file body.md
gh issue edit "$issue_number" --repo "$repository" --body-file body.md # full replacement, read first
gh issue comment "$issue_number" --repo "$repository" --body-file note.md
# Preserve native parent/sub-issue and blocking relationships, plus readable links.
# parent: a sub-issue via the documented REST sub-issues endpoint
# (POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues) or GraphQL
# addSubIssue, against the parent issue. Use the supported issue-dependency
# API for blocking relationships and include "Depends on #N" in the body.
# If a relationship write is unavailable, record it as pending; a text link
# alone is not proof that the native relationship exists. Confirm any `gh`
# wrapper's local --help before preferring it over the endpoints above.For project-item readback, bind the returned item ID and the status field name discovered from the project's fields:
gh api graphql -f projectV2ItemId="$project_item_id" -f statusField="$status_field_name" -f query='
query($projectV2ItemId: ID!, $statusField: String!) {
node(id: $projectV2ItemId) {
... on ProjectV2Item {
id
project { number title }
content { ... on Issue { number repository { nameWithOwner } state } }
fieldValueByName(name: $statusField) {
... on ProjectV2ItemFieldSingleSelectValue { name }
}
}
}
}'Issue numbers here are placeholders ($issue_number, $repository): none
of these examples is meant to run against a live issue without filling them
in from the resolved task.
Body rewrites: read the current body, apply your edits to your own sections,
write the full new body to a scratch file, gh issue edit N --body-file, then
read back and diff to confirm the intended sections survived; remove the
scratch file.
Handoff comments (stopping or leaving the work)
When a task ends — completed, blocked, or handed to another agent/session — leave one handoff comment on the issue with, at minimum:
- the branch and worktree paths the work lives in;
- the HEAD revision (or, for pure planning/investigation, the issue-held artifact itself);
- what scope was covered and what explicitly remains;
- the exact checks run with their real exit results, including any skipped or failed checks and why;
- remaining work / open blockers;
- for runs that spawn more agents: the worker run IDs.
A handoff is the resume point: the next read of the issue must be enough to continue without local-only memory.
Runtime discipline
Read the issue's current body and comments before resuming any interrupted
work; rely on the issue, not memory, for state. When a decision revises an
accepted design constraint in docs/architecture.md or docs/design/, the
issue must state that revision explicitly — accepted docs stay authoritative
until deliberately revised.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

