/agentkit:github-issue-lifecyclefrom agentkit
Issue-first workflow and lifecycle hygiene for GitHub: every piece of work runs against an issue, Projects v2 status stays current on every touch, PRs reference issues without triggering auto-close, and issues close with a verification note. GitHub counterpart of gitlab-issue-lifecycle. Triggers: starting tracked work, updating issue/project status, closing issues, referencing issues from PRs.
Ships in agentkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill encodes generic practice only. Org specifics — default assignee, project board, labels, office hours — come from per-repo git config, never from this file.
git config --get agentkit.issues.assignee # default assignee login (or "@me")
git config --get agentkit.issues.project # Projects v2 number or URL, e.g. "7"
git config --get agentkit.issues.offhours-label # label to add when working outside office hours
git config --get agentkit.issues.office-hours # "Area/City HH:MM-HH:MM", e.g. "Europe/London 09:00-17:00"
If a key is unset the first time it's needed, ask the user once and offer to persist
the answer with git config agentkit.issues.<key> <value>.
Issue-first, and filing is not free. Every piece of work runs against an issue.
Find an existing one (gh issue list --search) or create it BEFORE branching. Trivial
fixes inside an existing issue's scope ride that issue. A finding hit mid-task (a bug,
a review comment) defaults to being fixed in the change that caused it, not filed —
filing every finding is what runs a backlog away from its readers, measured on one
repository at 34 issues filed in three days with 21 still open.
Every new issue carries a Disposition: line in its body naming exactly one of four
cases; issue-police refuses a creation with no line, or one whose value matches none
of these:
Disposition: in-progress — <scope, who is doing it now>: new work, unrelated to
anything in flight, that you are about to build. File it, then branch; the PR closes
it.Disposition: owner-deferred — <the owner's own words>: scope carved OUT of the
issue you are working on now, deferred with the operator's explicit sign-off quoted.
The default is still to finish the scope you accepted.Disposition: owner-request — <the owner's own words>: the owner asked for this
issue to be filed.Disposition: blocked-by <the external system, person, or permission>: a finding you
cannot fix in the current change because something outside your control blocks it,
named.PRs reference, never auto-close. Write Refs #N in the PR body — never
Closes/Fixes/Resolves #N. GitHub's closing keywords auto-close the issue the
moment the PR merges to the default branch; the issue must stay open until the fix
is verified in the target environment.
Status current on every touch. Whenever you act on an issue (start work, open a PR, merge, park it), update its Projects v2 Status field in the same breath. No project board configured → use labels or assignment as the signal, but stay consistent.
Close with a closure note. When verified, close with a comment stating root
cause, the fix, and the PR reference: gh issue close N --comment "...". Use
--reason completed for fixed, --reason "not planned" for rejected/superseded.
Project link on creation. If agentkit.issues.project is set, add every new
issue to that project (recipe below).
Off-hours label. If agentkit.issues.office-hours is set and the wall clock in
that zone is outside the window, add agentkit.issues.offhours-label at creation.
Field options vary per project — discover them (query below), match by intent:
| When | Typical option |
|---|---|
| Filed, awaiting triage decision | Triage / Backlog |
| Triaged, accepted, parked | Todo |
| Anyone (human or bot) actively working it | In Progress |
| PR up or merged, awaiting verification | In Review |
| Verified and closed | Done |
# Create with the org conventions applied:
gh issue create --title "..." --body "..." \
--assignee "$(git config --get agentkit.issues.assignee)" \
--label "<labels>"
# Add an issue to the configured Projects v2 board (needs the org/user owner):
gh project item-add <project-number> --owner <owner> --url <issue-url>
# Discover the Status field id and its options:
gh project field-list <project-number> --owner <owner> --format json
# Find the item id for the issue, then set Status:
gh project item-list <project-number> --owner <owner> --format json # → item id
gh project item-edit --project-id <project-id> --id <item-id> \
--field-id <status-field-id> --single-select-option-id <option-id>
# Close with a closure note after verification:
gh issue close <n> --reason completed --comment "Root cause: ... Fixed by #<pr>: ...
Verified: <how>."
Fixes #N anywhere in a
PR body (or a commit that lands on the default branch) auto-closes — audit generated
text for them when the review-driven lifecycle is in force.open/closed,
state_reason) lives on the issue; Status lives on the project item. Closing an
issue does NOT move its project Status unless the project has an auto-archive /
workflow rule — check, and set Status explicitly when in doubt.gh project commands need the project scope: if they 401/403,
run gh auth refresh -s project.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub developerinlondon/agentkit --plugin agentkit20 skills in this plugin
/agentauthzAdminister an agentauthz host over its MCP tools (authz_describe, authz_check, authz_grant, authz_grants, authz_revoke, authz_policies, authz_audit_query): read the descriptor before touching vocabulary, grant curated policies bounded down, probe-check both directions after every change, verify in the audit trail. Triggers: granting or revoking access, authoring or validating authz policy, "why was this denied", bounds, condition keys, agentauthz, authz MCP tools./architectStudy a system and produce living architecture documentation — explanatory pages with high-quality diagrams. Use AUTOMATICALLY when the user asks to document, explain, map, or review an architecture ("how does this system work", "architecture diagram of this repo", "create/refresh the design docs"), or to keep architecture pages current after changes. Orchestrates the diagram and publish-page skills./autonomous-workflowProposal-first development workflow with commit hygiene and decision authority rules. Enforces: propose before modifying, atomic commits, no force flags, warnings-as-errors. Use for any project where AI agents are primary developers and need guardrails./code-qualityCode quality standards: warnings-as-errors, no underscore prefixes for unused vars, mandatory test coverage. Apply to any TypeScript, JavaScript, Rust, or Python project. Triggers: code review, linting, writing new functions, refactoring./designerDesign and build bespoke, self-contained HTML pages at artifact grade — design docs, product design briefs (PDs), proposals, reports with UI mockups. Use AUTOMATICALLY whenever a page's visual quality is part of the deliverable ("make it polished", "design doc as a page", "like a Claude artifact"), whenever authoring a design/proposal page in a product repo, and whenever a document needs a product-surface mockup, flow strip, or phase cards. Produces the HTML; publish-page or a product repo hosts it./diagramCraft high-quality diagrams — hand-drawn Excalidraw sketches, D2 technical figures, or, for Hugo docs sites, YAML specs rendered at build time by the agentkit hugo/diagrams module. Use AUTOMATICALLY when the user asks to visualize, draw, diagram, or sketch anything — system architectures, workflows, protocols, timelines, comparisons, mental models — or when a task needs a visual that outclasses mermaid/box kits. Never writes Mermaid for docs figures. Renders headlessly at generation time; output embeds anywhere HTML or markdown does.