Add a plan source to the git-agent create-issue skill so a plan file (markdown spec or rendered HTML) can be turned into a GitHub/GitLab issue, and extend the plan-agent implementation-plan Step 8 menu with an optional "create a tracking issue" question that invokes it.
Plans and issues only linked in one direction — an issue could seed a plan, but a finished plan could not become a tracked ticket. Now create-issue accepts a plan file as a source and implementation-plan offers issue creation at the end of every plan run.
Read and implement all steps in the plan at docs/plans/add-plan-source-to-create-issue.md — Let create-issue ingest plans and offer issue creation at plan completion. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-plan-source-to-create-issue.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
More ways to run this plan — goal & workflow prompts, file path
Achieve this goal: Let create-issue ingest plans and offer issue creation at plan completion. The plan at docs/plans/add-plan-source-to-create-issue.md describes one approach — use it as reference, but optimize for the outcome. Fan out across parallel subagents where that serves the outcome. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-plan-source-to-create-issue.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
Run a workflow to implement the plan at docs/plans/add-plan-source-to-create-issue.md — Let create-issue ingest plans and offer issue creation at plan completion. Brief subagents with the plan file at docs/plans/add-plan-source-to-create-issue.md. Reserve a final verification phase for the lead agent, not a subagent. Verify against the plan's Tests, Verification, and Acceptance Criteria before reporting done. If everything passed, mark completion in docs/plans/add-plan-source-to-create-issue.md — tick each step's [x] marker and each criterion's - [x], set status: completed — and re-render the HTML from the spec. If any check failed, leave status: in-progress and say which.
add-plan-source-to-create-issue.html
docs/plans/add-plan-source-to-create-issue.html
docs/plans/add-plan-source-to-create-issue.md
Context
The story behind this plan — what prompted the work and why it matters now.
implementation-plan already ingests issues (Step 0.5 maps an issue URL or #n into a plan and records it as an issue: frontmatter key), but the reverse path did not exist: a drafted plan could not become a tracked ticket without hand-writing one. create-issue supported four sources (bug, feature, selection, session) and its Step 8 counterpart in plan-agent ended without any issue hand-off. Wiring the two skills together closes the loop — the same issue: frontmatter key carries the link in both directions.
Files that change
Every file this plan touches, and what happens to each one.
kit/plugins/git-agent/skills/create-issue/SKILL.mdmodifiedplansource keyword + path implication, per-source mapping, template routingkit/plugins/git-agent/skills/create-issue/references/plan-issue.mdnew plan-to-issue body skeletontests/plugins/test-create-issue-plan-source.shnew objective-verification smoke test- kit/plugins/git-agent/
README.mdmodified plan source documented with exampleCHANGELOG.mdmodified v3.12.0 entry
kit/plugins/plan-agent/skills/implementation-plan/SKILL.mdmodified Step 8 batched tracking-issue question + handlerkit/plugins/plan-agent/CHANGELOG.mdmodified 2.22.0 entry.claude-plugin/marketplace.jsonmodified git-agent 3.11.1 → 3.12.0, plan-agent 2.21.0 → 2.22.0CLAUDE.mdmodified plugin table rows for both plugins
Steps
The step-by-step work, in order — each step says what to do, why it matters, and how to check it worked.
plan source to create-issue's SKILL.md: keyword parsing (a .md/.html token implies the source), resolution under the plans directory, and the mapping — plan title → issue title, Objective → Summary, Steps → - [ ] checklist, Acceptance Criteria carried over, type: frontmatter → label hint, plan path cited in the body.
plan per-source block; Phase 5 routes plan → plan-issue.md.references/plan-issue.md with the Objective / Plan / Steps / Acceptance Criteria / Additional Context body skeleton, title rule (plan title, no prefix), and label mapping.
Skill(skill: "git-agent:create-issue", args: "plan <spec path>"), record the returned issue URL as the spec's issue: frontmatter key, and re-render; if git-agent is not installed, note it and continue.
Yes — create an issue handler that names the fallback.Tests
The tests that prove the change does what it promises.
plan source and routes it to references/plan-issue.md (which exists), implementation-plan SKILL.md invokes git-agent:create-issue with a plan argument in Step 8, and marketplace.json reports git-agent ≥ 3.12.0 and plan-agent ≥ 2.22.0; Run: bash tests/plugins/test-create-issue-plan-source.shDefinition of done
The plan counts as done when every statement below is true — check each one off as you verify it.
Final check
One last pass to confirm the whole change works end to end.
Run bash tests/plugins/test-create-issue-plan-source.sh and confirm every check passes. Read create-issue SKILL.md end to end: the five-source flow is coherent from parsing (Phase 3) through template selection (Phase 5) to creation, and the confirmation gate still guards every path. Read implementation-plan Step 8: the batched question, the Yes handler, and the not-installed fallback are all present, and the existing four-option menus are unchanged. Confirm python3 -m json.tool .claude-plugin/marketplace.json parses and shows both bumped versions.
Wrapping up
Three gates that must all pass before this plan is marked completed.
Completion Report
No items to report — all requirements met.