[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C2V9TF9XQET7N7XGDFKQG1":3,"skill-same:01M6C2V9TF9XQET7N7XGDFKQG1":126},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":63,"linkOnly":64,"markdownContent":65,"markdownBody":66,"frontMatter":67,"refName":102,"commitSha":103,"skillDirectory":104,"forksCount":105,"repositoryHtmlUrl":106,"repositoryHomepageUrl":107,"ownerHtmlUrl":108,"ownerBlogUrl":109,"ownerDescription":110,"updatedAt":111,"install":112,"resources":125},"01M6C2V9TF9XQET7N7XGDFKQG1","issue-planner","SDLC问题规划","Research-grounded SDLC issue planner — dispatches parallel research, generates the supporting doc corpus, then files prioritized cross-referenced issues for human review.","基于研究的 SDLC（软件生命周期）问题规划——分派并行研究任务，生成支撑文档语料库，然后提交带优先级且相互交叉引用的问题（issue）供人工审查。","jmagly\u002Faiwg","jmagly","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1159087?v=4","01M6C10AK8N2WCSQN11FYGTJWN","Joseph Magly","01M6C10AQ8A2RMED1Y1BSVY7NF",229,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fcodex-sdlc\u002Fskills\u002Fissue-planner\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C2MZSDTE56BDKER3VPW2JM","工单与问题跟踪管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62],"issue planner","planner","issue","human","generated","auto","files","tracker","artifact","write","local","project","dry","at","labels","plan preview","phase","MCP","read","haiku","text","plan","Bash","api","credentials","brief","issues","run","tasks","risk register","config","review","2026-11-10 10:12:30",false,"---\nnamespace: aiwg\nplatforms: [all]\nname: issue-planner\ndescription: Research-grounded SDLC issue planner — dispatches parallel research, generates the supporting doc corpus, then files prioritized cross-referenced issues for human review.\nrequires:\n  - objective: non-empty string describing the feature, capability, or initiative to plan\n  - tracker: issue tracker accessible (gitea | github | local) — auto-detected from project config\nensures:\n  - issues-filed: prioritized issue backlog with type\u002Fpriority\u002Fphase labels and wave-ordered dependencies\n  - research-brief: synthesized research findings at .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-brief.md\n  - sdlc-corpus: phase-appropriate SDLC artifacts (use cases, risk register, etc.)\n  - \"if --dry-run: plan preview table shown without filing\"\n  - \"if --induct-research: reference induction tasks filed for discovered sources\"\nerrors:\n  - no-tracker-access: cannot reach issue tracker; check --provider or API credentials\n  - research-failed: all three parallel research agents returned empty results; try --skip-research with existing docs\n  - objective-too-vague: objective is too broad to plan without clarification; use --interactive\ninvariants:\n  - human approval gate is mandatory before any issues are filed\n  - no issues are filed unless user explicitly confirms the plan\n  - every filed issue links to the SDLC artifact that generated it\ncommandHint:\n  argumentHint: \"\u003Cobjective> [--interactive] [--dry-run] [--guidance \\\"text\\\"] [--provider gitea|github|local] [--induct-research \u003Ctarget>]\"\n  allowedTools: Read, Write, Glob, Grep, Bash, Agent, mcp__gitea__issue_write, mcp__gitea__issue_read, mcp__gitea__list_issues, WebSearch, WebFetch\n  model: haiku\n  category: planning\n  modelRole: efficiency\n  modelTier: economy\n---\n\n# Issue Planner\n\nBefore dispatch, declare the [context packet](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fdocs\u002Fcontext-engineering-contract.md) and [verification contract](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fdocs\u002Fverification-contracts.md). Record expected tracker artifacts, checks, outcomes, and evidence; missing or failed required evidence cannot be success. Choose execution mode with [autonomy and human roles](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fdocs\u002Fautonomy-and-human-roles.md).\n\nTransform a high-level objective into a fully researched, SDLC-gated issue backlog — ready for `address-issues` — without a human having to manually research, write docs, or decide priority order.\n\n## Artifact-root preflight (mandatory)\n\nBefore reading or writing any logical `.aiwg\u002F...` path, run:\n\n```bash\naiwg artifacts path --json --check-write\n```\n\nUse the returned `artifact_root` as the physical replacement for the logical\n`.aiwg` prefix in every research, synthesis, requirements, planning, and report\npath below. Do not create repository-local payload when the resolved root is\nexternal. The only repository-local `.aiwg` exceptions are the control files\n`AIWG.md`, `aiwg.config`, and `frameworks\u002Fregistry.json`. If the resolved\nexternal root is unavailable, stop with an actionable diagnostic; never fall\nback to `\u003Cproject>\u002F.aiwg`. Path resolution does not synchronize Git remotes:\nremote fetch\u002Fpull\u002Fpush remains a separate, explicit operator workflow.\n\n## Triggers\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"plan out \u003Cfeature>\" → full research + issue filing workflow\n- \"file issues for \u003Cobjective>\" → issue-planner with dry-run preview first\n- \"create a backlog for \u003Cobjective>\" → issue-planner with priority ordering\n- \"research and plan \u003Ctopic>\" → parallel research pass then issue filing\n- \"use the research team to plan \u003CX>\" → explicit parallel research dispatch\n- \"plan issues for \u003CX> using SDLC gates\" → gate-checked issue generation\n- \"I need issues for \u003CX>\" → issue-planner in interactive mode to confirm scope\n\n## Parameters\n\n### `\u003Cobjective>` (required)\nThe feature, capability, integration, or initiative to plan. Can be a one-liner or a multi-paragraph brief.\n\n### `--interactive` (optional)\nAsk discovery questions before researching. Surfaces: scope constraints, excluded technologies, existing artifacts, target phase, priority bias (bugs-first vs value-first).\n\n### `--dry-run` (optional)\nGenerate the full plan and issue list but do not file any issues. Outputs a preview table for human review.\n\n### `--guidance \"text\"` (optional)\nUpfront direction that shapes research focus, prioritization, and scope without interactive prompts.\n\nExamples:\n- `--guidance \"We're in Construction phase, skip Inception artifacts\"`\n- `--guidance \"Security is top priority, HIPAA compliance required\"`\n- `--guidance \"Quick wins only — scope to 2-week sprint\"`\n\n### `--provider` (optional)\nOverride the default issue tracker (`gitea` | `github` | `local`). Defaults to project config in `.aiwg\u002Fconfig.yaml` or `CLAUDE.md`.\n\n### `--skip-research` (optional)\nSkip the parallel research pass and go straight to SDLC doc generation. Use when research was already done externally.\n\n### `--phase` (optional)\nTarget SDLC phase for artifact generation (`inception` | `elaboration` | `construction` | `transition`). Determines which templates are used and which gate criteria are checked.\n\n### `--induct-research \u003Ctarget>` (optional)\nAfter research synthesis, extract all discovered references and file tracking tasks to induct them into a research repository. Can also be set via `AIWG_RESEARCH_REPO` environment variable.\n\n**Target formats:**\n\n| Format | Example | Behavior |\n|--------|---------|----------|\n| File path | `--induct-research .aiwg\u002Fresearch\u002Fqueue\u002F` | Creates one Markdown task file per reference in the specified directory |\n| URI | `--induct-research https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fresearch` | Infers the system from the URL (Gitea, GitHub, Jira, etc.) and files issues via the appropriate API or MCP tool |\n| Named MCP service | `--induct-research gitea` | Uses the named MCP service directly (e.g. `mcp__gitea__issue_write`) |\n| Named MCP service | `--induct-research codehound` | Uses Hound MCP to register references in the Hound search index |\n\n**Env var fallback:** If `AIWG_RESEARCH_REPO` is set, `--induct-research` is implied with the env var value as the target. Explicit flag overrides the env var.\n\n**What gets inducted:** Every external URL, paper, RFC, repo, or specification surfaced during Phase 1 research — one tracking task per reference.\n\n**Induction task body template:**\n\n```markdown\n## Reference Induction\n\n**Source**: \u003CURL or file path>\n**Surfaced by**: issue-planner research phase for \"\u003Cobjective>\"\n**Research stream**: \u003Cbest-practices | current-state | vendor-docs>\n\n## Relevance Summary\n\u003COne paragraph from the research agent explaining why this reference matters>\n\n## Suggested Priority\n\u003Chigh | medium | low> — \u003Crationale>\n\n## Induction Checklist\n- [ ] Read and annotate full source\n- [ ] Extract key insights as Zettelkasten notes\n- [ ] Cross-reference with existing corpus\n- [ ] Tag with topic taxonomy\n- [ ] Mark inducted in research queue\n\n## Links\n- Objective: \u003Ctop-level planning objective this was surfaced for>\n- Research file: @.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-\u003Cstream>.md\n```\n\n---\n\n## Execution Flow\n\n### Phase 0: Intake\n\n1. Parse `\u003Cobjective>` from the user's message.\n2. If `--interactive`: ask discovery questions (see Interactive Mode below).\n3. If `--guidance`: incorporate upfront direction throughout all phases.\n4. Confirm understanding before launching:\n\n```\nUnderstood. Planning: \u003Cparaphrased objective>\n\nResearch pass: 3 parallel agents (best practices, current research, vendor docs)\nArtifacts: requirements, architecture sketch, risk register, test strategy\nProvider: gitea (roctinam\u002Faiwg)\nMode: [dry-run | live filing]\n\nStarting research...\n```\n\n---\n\n### Phase 1: Parallel Research (3 agents, single message)\n\nDispatch three focused research agents simultaneously. Each writes its output to `.aiwg\u002Fworking\u002Fissue-planner\u002F`:\n\n**Agent A — Best Practices**\n```\nObjective: \u003Cobjective>\nTask: Research industry best practices, design patterns, and architectural guidance relevant to this objective.\nOutput: .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-best-practices.md\nInclude: patterns, anti-patterns, recommended approaches, key trade-offs\n```\n\n**Agent B — Current Research & Prior Art**\n```\nObjective: \u003Cobjective>\nTask: Survey recent research, conference talks, open-source implementations, and community knowledge relevant to this objective.\nOutput: .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-current-state.md\nInclude: recent developments (≤2 years), noteworthy implementations, emerging standards\n```\n\n**Agent C — Vendor Documentation**\n```\nObjective: \u003Cobjective>\nTask: Review official vendor documentation, API references, and integration guides for all relevant tools and platforms.\nOutput: .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-vendor-docs.md\nInclude: official capabilities, known limitations, version requirements, migration notes\n```\n\nProgress indicator during research:\n```\n⏳ Research pass (3 parallel agents)...\n  ⏳ A: Best practices...\n  ⏳ B: Current research...\n  ⏳ C: Vendor docs...\n```\n\n---\n\n### Phase 2: Research Synthesis\n\nRead all three research outputs and synthesize a consolidated brief:\n\n```\n✓ A: Best practices complete\n✓ B: Current research complete\n✓ C: Vendor docs complete\n⏳ Synthesizing research...\n```\n\nSynthesis output (`.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-synthesis.md`):\n- Key findings per research stream\n- Consensus recommendations\n- Identified risks and unknowns\n- Technology\u002Fapproach decisions surfaced by research\n- Open questions requiring human input\n\n---\n\n### Phase 2b: Research Induction Queue (if `--induct-research` or `AIWG_RESEARCH_REPO` set)\n\nExtract all external references discovered across the three research streams and queue them for induction.\n\n**Steps:**\n\n1. **Collect references** — scan all three research output files for external URLs, paper titles, RFC numbers, repo links, and named specifications\n2. **Deduplicate** — remove references already present in the target repository (if queryable)\n3. **Resolve target** — determine filing method from the provided target:\n   - **File path**: write `.md` task files to the directory (create if needed)\n   - **URI**: detect host (Gitea domain → `mcp__gitea__issue_write`, GitHub → `gh issue create`, Jira → REST API)\n   - **Named MCP service**: call the service's write tool directly\n4. **File one induction task per reference** using the standard induction body template\n5. **Report** induction summary before proceeding to Phase 3\n\n```\n⏳ Research induction queue...\n  Found 12 references across 3 research streams\n  Target: gitea (roctinam\u002Fresearch)\n  Filing induction tasks...\n  ✓ Filed #301: RFC 9110 HTTP Semantics\n  ✓ Filed #302: \"Designing Data-Intensive Applications\" (Kleppmann)\n  ✓ Filed #303: github.com\u002Fexpressjs\u002Fexpress\n  ... (9 more)\n✓ Induction queue: 12 tasks filed\n```\n\nIf `--dry-run` is set, list the references that would be inducted without filing.\n\n---\n\n### Phase 3: SDLC Doc Corpus Generation\n\nUsing the research synthesis and SDLC gate requirements, generate the artifact set appropriate for the target phase. Each artifact cross-references the research documents.\n\n**Standard artifact set (Elaboration-level)**:\n\n| Artifact | Path | Template Source |\n|----------|------|----------------|\n| Use Cases \u002F User Stories | `.aiwg\u002Frequirements\u002FUC-\u003Cslug>-*.md` | sdlc-complete\u002Ftemplates\u002Frequirements\u002F |\n| Architecture Sketch | `.aiwg\u002Farchitecture\u002Fsketch-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Fanalysis-design\u002F |\n| Risk Register | `.aiwg\u002Frisks\u002Frisks-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Frisk\u002F |\n| Test Strategy | `.aiwg\u002Ftesting\u002Ftest-strategy-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Ftesting\u002F |\n| Security Screening | `.aiwg\u002Fsecurity\u002Fscreening-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Fsecurity\u002F |\n\nGenerate a lighter set for Inception, heavier for Construction (add ADRs, detailed test plans, CI\u002FCD hooks).\n\nAfter generation, run the SDLC gate check to confirm completeness:\n\n```\n✓ Use cases generated (N stories)\n✓ Architecture sketch complete\n✓ Risk register populated (N risks)\n✓ Test strategy drafted\n✓ Security screening done\n⏳ Running gate check...\n✓ Gate check: corpus complete for \u003Cphase> phase\n```\n\nIf gate check fails, remediate before proceeding to issue generation.\n\n---\n\n### Phase 4: Issue Generation\n\nTranslate the artifact corpus and research synthesis into a structured issue backlog.\n\n#### Issue Taxonomy\n\nEvery issue gets:\n\n| Field | Options |\n|-------|---------|\n| **Type label** | `feat`, `docs`, `test`, `infra`, `spike`, `security`, `bug`, `refactor` |\n| **Priority** | `P0-critical`, `P1-high`, `P2-medium`, `P3-low` |\n| **Phase label** | `phase:inception`, `phase:elaboration`, `phase:construction`, `phase:transition` |\n| **Area label** | `area:backend`, `area:frontend`, `area:data`, `area:infra`, `area:docs`, `area:security` |\n| **Doc link** | Cross-reference to the artifact that spawned this issue |\n\n#### Priority Assignment Rules\n\n| Condition | Priority |\n|-----------|----------|\n| Blocks other issues (dependency head) | P0 |\n| Security finding or SDLC gate blocker | P0 |\n| Core capability required for the objective | P1 |\n| Supporting implementation (tests, docs, integration) | P2 |\n| Enhancement, optimization, future-proof work | P3 |\n| Research spike with uncertain outcome | P2 (timebox) |\n\n#### Dependency Ordering\n\nAnalyze issue dependencies and produce a recommended execution sequence:\n\n```\nWave 1 (no dependencies): #N, #N+1\nWave 2 (depends on Wave 1): #N+2, #N+3\nWave 3 (depends on Wave 2): #N+4\n```\n\nThis is the order to pass to `address-issues`.\n\n#### Issue Body Template\n\nEach filed issue uses this structure:\n\n```markdown\n## Summary\n\u003COne paragraph describing the work and why it matters for the objective>\n\n## Context\n**Objective**: \u003Ctop-level objective>\n**Phase**: \u003CSDLC phase>\n**Supporting Docs**:\n- @.aiwg\u002Frequirements\u002FUC-\u003Cslug>.md (use cases)\n- @.aiwg\u002Farchitecture\u002Fsketch-\u003Cslug>.md (architecture sketch)\n- @.aiwg\u002Frisks\u002Frisks-\u003Cslug>.md (risks)\n\n**Research Basis**:\n- Best practices: @.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-best-practices.md\n- Vendor docs: @.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-vendor-docs.md\n\n## Acceptance Criteria\n- [ ] \u003Cspecific, testable criterion>\n- [ ] \u003Cspecific, testable criterion>\n- [ ] Tests written and passing\n- [ ] Docs updated if applicable\n\n## Dependencies\n- Depends on: #\u003Cissue numbers>\n- Blocks: #\u003Cissue numbers>\n\n## Notes\n\u003CKey findings from research synthesis relevant to this issue>\n```\n\n---\n\n### Phase 5: Plan Preview and Human Approval\n\n**Always** present the complete plan before filing any issues. Even in non-dry-run mode, this gate is mandatory.\n\nPresent as a table:\n\n```\n## Issue Plan: \u003Cobjective>\n\n### Research Summary\n- N best practices identified\n- N current implementations reviewed\n- N vendor integrations mapped\n- Key finding: \u003Cone-liner>\n\n### Supporting Docs Generated\n- .aiwg\u002Frequirements\u002FUC-\u003Cslug>-*.md (N use cases)\n- .aiwg\u002Farchitecture\u002Fsketch-\u003Cslug>.md\n- .aiwg\u002Frisks\u002Frisks-\u003Cslug>.md (N risks)\n- .aiwg\u002Ftesting\u002Ftest-strategy-\u003Cslug>.md\n\n### Issue Backlog (N issues)\n\n| # | Title | Type | Priority | Phase | Depends On | Doc Ref |\n|---|-------|------|----------|-------|------------|---------|\n| 1 | \u003Ctitle> | feat | P1 | construction | — | UC-001 |\n| 2 | \u003Ctitle> | test | P2 | construction | #1 | test-strategy |\n| 3 | \u003Ctitle> | docs | P3 | construction | #1 | architecture |\n| 4 | \u003Ctitle> | security | P0 | elaboration | — | screening |\n\n### Recommended Execution Order\nWave 1 (parallel): #4, #1\nWave 2 (after Wave 1): #2, #3\n\n### Open Questions\n1. \u003Cquestion that needs human decision before work starts>\n2. \u003Cquestion>\n\n---\n**Proceed to file N issues?** Reply \"yes\" \u002F \"no\" \u002F \"revise: \u003Cguidance>\"\n```\n\nWait for explicit human approval before filing.\n\n---\n\n### Phase 6: Issue Filing\n\nOn approval, file issues in the order shown (Wave 1 first, then Wave 2, etc.) to ensure issue numbers reflect dependency order.\n\nFor each issue:\n- File via configured provider (Gitea MCP, GitHub CLI, or local)\n- Post a cross-link comment connecting the issue to the research docs\n- Record filed issue numbers for the execution-order summary\n\nAfter all issues filed:\n\n```\n## Filed Issues\n\n| Issue | Title | Priority | URL |\n|-------|-------|----------|-----|\n| #N | \u003Ctitle> | P0 | \u003Curl> |\n| #N+1 | \u003Ctitle> | P1 | \u003Curl> |\n...\n\n### Recommended address-issues invocation:\n\u002Faddress-issues \u003Cwave-1-numbers> --guidance \"\u003Cobjective summary>\"\n# Then after wave 1 is resolved:\n\u002Faddress-issues \u003Cwave-2-numbers>\n\nSupporting docs: .aiwg\u002Fworking\u002Fissue-planner\u002F and .aiwg\u002Frequirements\u002F\n```\n\n---\n\n## Interactive Mode\n\nWhen `--interactive` is set, ask these questions before Phase 1:\n\n1. **Scope**: Are there technologies, components, or approaches that are explicitly out of scope?\n2. **Existing artifacts**: Are there existing requirements, architecture docs, or prior research I should read first?\n3. **Phase target**: Which SDLC phase are we in? (inception \u002F elaboration \u002F construction \u002F transition)\n4. **Priority bias**: Should I favor security\u002Fcompliance issues first, or core functionality first?\n5. **Timeline**: Is there a sprint or milestone constraint that should influence priority?\n6. **Filing approval**: Should I file issues automatically after you see the plan, or always wait for an explicit \"yes\"?\n\n---\n\n## Priority Order Rationale\n\nThe recommended issue order follows these heuristics, applied in sequence:\n\n1. **Gate blockers first** — anything that blocks a phase transition\n2. **Security and compliance** — before any feature work begins\n3. **Spike\u002Fresearch issues** — resolve unknowns before implementation\n4. **Dependency-free implementation** — parallelizable core work\n5. **Dependent implementation** — work that needs prior issues resolved\n6. **Tests and validation** — after implementation is stable\n7. **Documentation** — after implementation and tests\n8. **Enhancements and optimizations** — last\n\nThis order ensures `address-issues` can make forward progress without hitting dependency blocks.\n\n---\n\n## What Makes This Better Than a Simple Agent or Developer\n\n| Capability | Simple agent | Developer | issue-planner |\n|------------|-------------|-----------|---------------|\n| Parallel research across 3 dimensions | ✗ | Slow (sequential) | ✓ (one message) |\n| SDLC gate check before issue filing | ✗ | Manual | ✓ (automated) |\n| Issue-to-artifact traceability | ✗ | Inconsistent | ✓ (every issue) |\n| Dependency-aware priority ordering | ✗ | Manual judgment | ✓ (wave analysis) |\n| Consistent issue body structure | ✗ | Varies | ✓ (template) |\n| Human approval gate before filing | ✗ | Manual | ✓ (mandatory) |\n| `address-issues` handoff instructions | ✗ | ✗ | ✓ (generated) |\n| Open questions surfaced before work | ✗ | Sometimes | ✓ (systematic) |\n\n---\n\n## Examples\n\n### Example 1: New Integration\n\n**User**: \"Plan out Codex plugins support using the research team. File issues, I'll approve before you file anything.\"\n\n**Extracted**: objective=\"Codex plugins support\", dry-run=false (will ask approval)\n\n**Flow**:\n1. Research: Codex plugin API, npm plugin patterns, AIWG deployment architecture\n2. Artifacts: use cases (install\u002Fpackage\u002Fpublish), architecture sketch (.codex-plugin\u002F format), risks (version drift, marketplace availability)\n3. Issues: plugin manifest schema (P1), `package-plugin codex` command (P1), marketplace integration (P2), test coverage (P2), docs (P3)\n4. Preview → approval → file\n\n---\n\n### Example 2: Guided Sprint Planning\n\n**User**: \"Plan issues for adding HIPAA compliance to the auth module. Use the research team. Focus on security and compliance items first. We're in construction phase already.\"\n\n**Extracted**: `--guidance \"HIPAA compliance, auth module, construction phase, security-first priority\"`\n\n**Flow**: Research → security-first issue ordering → HIPAA-specific labels applied → gate-checked against construction criteria\n\n---\n\n### Example 3: Dry Run Review\n\n**User**: \"Use the research team and SDLC process to plan out WebSocket support. Show me the issues but don't file them yet.\"\n\n**Extracted**: `--dry-run`\n\n**Output**: Full plan table with `[DRY RUN — issues not filed]` header. User can revise before committing.\n\n---\n\n### Example 4: Quick Backlog\n\n**User**: \"File issues for \u003Cmy prompt> using the aiwg research team in parallel... SDLC gates... await review.\"\n\n**This is the canonical trigger pattern.** issue-planner recognizes it and executes the full workflow.\n\n---\n\n### Example 5: Research Induction — Named MCP Service\n\n**User**: \"Plan out distributed tracing support. Induct any research you find into our Gitea research repo.\"\n\n**Extracted**: `--induct-research gitea`\n\n**Flow**:\n1. Research pass discovers: OpenTelemetry spec, Jaeger docs, Zipkin paper, \"Dapper\" Google paper, 3 GitHub repos\n2. Phase 2b files 7 induction tasks to the configured Gitea research repo (`mcp__gitea__issue_write`)\n3. Each task includes source URL, relevance summary, and induction checklist\n4. Continues to Phase 3 (SDLC corpus) → Phase 4 (issues) → Phase 5 (approval)\n\n**Sample induction task filed:**\n```\n#301 [induct] OpenTelemetry Specification v1.35\nSurfaced during: distributed tracing support planning\nStream: vendor-docs\nPriority: high — this is the canonical standard we'll implement\n```\n\n---\n\n### Example 6: Research Induction — File Path\n\n**User**: \"Plan WebAuthn support. Save any references you find to `.aiwg\u002Fresearch\u002Fqueue\u002F`\"\n\n**Extracted**: `--induct-research .aiwg\u002Fresearch\u002Fqueue\u002F`\n\n**Flow**: Research discovers 9 references. Phase 2b writes `.md` task files to `.aiwg\u002Fresearch\u002Fqueue\u002F` — one per reference — formatted with the induction body template. These can later be processed with `\u002Finduct-research .aiwg\u002Fresearch\u002Fqueue\u002F`.\n\n---\n\n### Example 7: Research Induction — Environment Variable\n\n**Shell**: `export AIWG_RESEARCH_REPO=https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fresearch`\n\n**User**: \"Plan OAuth2 refresh token rotation using the research team.\"\n\n**Flow**: `AIWG_RESEARCH_REPO` is set; induction is implied. URI is a Gitea instance — issues filed via `mcp__gitea__issue_write` to that repo. No explicit flag needed.\n\n---\n\n## Composition\n\n```\nissue-planner \u003Cobjective>\n    │\n    ├── Phase 0: Intake + optional interactive discovery\n    ├── Phase 1: Parallel research (3 agents simultaneously)\n    │   ├── Agent A: Best practices\n    │   ├── Agent B: Current research \u002F prior art\n    │   └── Agent C: Vendor documentation\n    ├── Phase 2: Research synthesis\n    ├── Phase 2b: Research induction queue (if --induct-research)\n    │   ├── Collect + deduplicate references from all 3 streams\n    │   ├── Resolve target (file path | URI | named MCP service)\n    │   └── File one induction task per reference → \u002Finduct-research\n    ├── Phase 3: SDLC doc corpus generation\n    │   └── \u002Fflow-gate-check \u003Cphase> (completeness gate)\n    ├── Phase 4: Issue generation (taxonomy + priority + dependency waves)\n    ├── Phase 5: Plan preview → HUMAN APPROVAL GATE\n    └── Phase 6: Issue filing + address-issues handoff instructions\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Faddress-issues\u002FSKILL.md — Consume the filed issues\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fskills\u002Finduct-research\u002FSKILL.md — Research induction target skill\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-create\u002FSKILL.md — Single issue creation\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-driven-al\u002FSKILL.md — Agent loop per issue\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fflows\u002Fflow-gate-check.md — Phase gate criteria\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002F — Artifact templates\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fsubagent-scoping.md — Parallel research constraints\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fcontext-budget.md — Parallel agent limits\n","# Issue Planner\n\nBefore dispatch, declare the [context packet](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fdocs\u002Fcontext-engineering-contract.md) and [verification contract](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fdocs\u002Fverification-contracts.md). Record expected tracker artifacts, checks, outcomes, and evidence; missing or failed required evidence cannot be success. Choose execution mode with [autonomy and human roles](https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fdocs\u002Fautonomy-and-human-roles.md).\n\nTransform a high-level objective into a fully researched, SDLC-gated issue backlog — ready for `address-issues` — without a human having to manually research, write docs, or decide priority order.\n\n## Artifact-root preflight (mandatory)\n\nBefore reading or writing any logical `.aiwg\u002F...` path, run:\n\n```bash\naiwg artifacts path --json --check-write\n```\n\nUse the returned `artifact_root` as the physical replacement for the logical\n`.aiwg` prefix in every research, synthesis, requirements, planning, and report\npath below. Do not create repository-local payload when the resolved root is\nexternal. The only repository-local `.aiwg` exceptions are the control files\n`AIWG.md`, `aiwg.config`, and `frameworks\u002Fregistry.json`. If the resolved\nexternal root is unavailable, stop with an actionable diagnostic; never fall\nback to `\u003Cproject>\u002F.aiwg`. Path resolution does not synchronize Git remotes:\nremote fetch\u002Fpull\u002Fpush remains a separate, explicit operator workflow.\n\n## Triggers\n\nAlternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):\n\n- \"plan out \u003Cfeature>\" → full research + issue filing workflow\n- \"file issues for \u003Cobjective>\" → issue-planner with dry-run preview first\n- \"create a backlog for \u003Cobjective>\" → issue-planner with priority ordering\n- \"research and plan \u003Ctopic>\" → parallel research pass then issue filing\n- \"use the research team to plan \u003CX>\" → explicit parallel research dispatch\n- \"plan issues for \u003CX> using SDLC gates\" → gate-checked issue generation\n- \"I need issues for \u003CX>\" → issue-planner in interactive mode to confirm scope\n\n## Parameters\n\n### `\u003Cobjective>` (required)\nThe feature, capability, integration, or initiative to plan. Can be a one-liner or a multi-paragraph brief.\n\n### `--interactive` (optional)\nAsk discovery questions before researching. Surfaces: scope constraints, excluded technologies, existing artifacts, target phase, priority bias (bugs-first vs value-first).\n\n### `--dry-run` (optional)\nGenerate the full plan and issue list but do not file any issues. Outputs a preview table for human review.\n\n### `--guidance \"text\"` (optional)\nUpfront direction that shapes research focus, prioritization, and scope without interactive prompts.\n\nExamples:\n- `--guidance \"We're in Construction phase, skip Inception artifacts\"`\n- `--guidance \"Security is top priority, HIPAA compliance required\"`\n- `--guidance \"Quick wins only — scope to 2-week sprint\"`\n\n### `--provider` (optional)\nOverride the default issue tracker (`gitea` | `github` | `local`). Defaults to project config in `.aiwg\u002Fconfig.yaml` or `CLAUDE.md`.\n\n### `--skip-research` (optional)\nSkip the parallel research pass and go straight to SDLC doc generation. Use when research was already done externally.\n\n### `--phase` (optional)\nTarget SDLC phase for artifact generation (`inception` | `elaboration` | `construction` | `transition`). Determines which templates are used and which gate criteria are checked.\n\n### `--induct-research \u003Ctarget>` (optional)\nAfter research synthesis, extract all discovered references and file tracking tasks to induct them into a research repository. Can also be set via `AIWG_RESEARCH_REPO` environment variable.\n\n**Target formats:**\n\n| Format | Example | Behavior |\n|--------|---------|----------|\n| File path | `--induct-research .aiwg\u002Fresearch\u002Fqueue\u002F` | Creates one Markdown task file per reference in the specified directory |\n| URI | `--induct-research https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fresearch` | Infers the system from the URL (Gitea, GitHub, Jira, etc.) and files issues via the appropriate API or MCP tool |\n| Named MCP service | `--induct-research gitea` | Uses the named MCP service directly (e.g. `mcp__gitea__issue_write`) |\n| Named MCP service | `--induct-research codehound` | Uses Hound MCP to register references in the Hound search index |\n\n**Env var fallback:** If `AIWG_RESEARCH_REPO` is set, `--induct-research` is implied with the env var value as the target. Explicit flag overrides the env var.\n\n**What gets inducted:** Every external URL, paper, RFC, repo, or specification surfaced during Phase 1 research — one tracking task per reference.\n\n**Induction task body template:**\n\n```markdown\n## Reference Induction\n\n**Source**: \u003CURL or file path>\n**Surfaced by**: issue-planner research phase for \"\u003Cobjective>\"\n**Research stream**: \u003Cbest-practices | current-state | vendor-docs>\n\n## Relevance Summary\n\u003COne paragraph from the research agent explaining why this reference matters>\n\n## Suggested Priority\n\u003Chigh | medium | low> — \u003Crationale>\n\n## Induction Checklist\n- [ ] Read and annotate full source\n- [ ] Extract key insights as Zettelkasten notes\n- [ ] Cross-reference with existing corpus\n- [ ] Tag with topic taxonomy\n- [ ] Mark inducted in research queue\n\n## Links\n- Objective: \u003Ctop-level planning objective this was surfaced for>\n- Research file: @.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-\u003Cstream>.md\n```\n\n---\n\n## Execution Flow\n\n### Phase 0: Intake\n\n1. Parse `\u003Cobjective>` from the user's message.\n2. If `--interactive`: ask discovery questions (see Interactive Mode below).\n3. If `--guidance`: incorporate upfront direction throughout all phases.\n4. Confirm understanding before launching:\n\n```\nUnderstood. Planning: \u003Cparaphrased objective>\n\nResearch pass: 3 parallel agents (best practices, current research, vendor docs)\nArtifacts: requirements, architecture sketch, risk register, test strategy\nProvider: gitea (roctinam\u002Faiwg)\nMode: [dry-run | live filing]\n\nStarting research...\n```\n\n---\n\n### Phase 1: Parallel Research (3 agents, single message)\n\nDispatch three focused research agents simultaneously. Each writes its output to `.aiwg\u002Fworking\u002Fissue-planner\u002F`:\n\n**Agent A — Best Practices**\n```\nObjective: \u003Cobjective>\nTask: Research industry best practices, design patterns, and architectural guidance relevant to this objective.\nOutput: .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-best-practices.md\nInclude: patterns, anti-patterns, recommended approaches, key trade-offs\n```\n\n**Agent B — Current Research & Prior Art**\n```\nObjective: \u003Cobjective>\nTask: Survey recent research, conference talks, open-source implementations, and community knowledge relevant to this objective.\nOutput: .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-current-state.md\nInclude: recent developments (≤2 years), noteworthy implementations, emerging standards\n```\n\n**Agent C — Vendor Documentation**\n```\nObjective: \u003Cobjective>\nTask: Review official vendor documentation, API references, and integration guides for all relevant tools and platforms.\nOutput: .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-vendor-docs.md\nInclude: official capabilities, known limitations, version requirements, migration notes\n```\n\nProgress indicator during research:\n```\n⏳ Research pass (3 parallel agents)...\n  ⏳ A: Best practices...\n  ⏳ B: Current research...\n  ⏳ C: Vendor docs...\n```\n\n---\n\n### Phase 2: Research Synthesis\n\nRead all three research outputs and synthesize a consolidated brief:\n\n```\n✓ A: Best practices complete\n✓ B: Current research complete\n✓ C: Vendor docs complete\n⏳ Synthesizing research...\n```\n\nSynthesis output (`.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-synthesis.md`):\n- Key findings per research stream\n- Consensus recommendations\n- Identified risks and unknowns\n- Technology\u002Fapproach decisions surfaced by research\n- Open questions requiring human input\n\n---\n\n### Phase 2b: Research Induction Queue (if `--induct-research` or `AIWG_RESEARCH_REPO` set)\n\nExtract all external references discovered across the three research streams and queue them for induction.\n\n**Steps:**\n\n1. **Collect references** — scan all three research output files for external URLs, paper titles, RFC numbers, repo links, and named specifications\n2. **Deduplicate** — remove references already present in the target repository (if queryable)\n3. **Resolve target** — determine filing method from the provided target:\n   - **File path**: write `.md` task files to the directory (create if needed)\n   - **URI**: detect host (Gitea domain → `mcp__gitea__issue_write`, GitHub → `gh issue create`, Jira → REST API)\n   - **Named MCP service**: call the service's write tool directly\n4. **File one induction task per reference** using the standard induction body template\n5. **Report** induction summary before proceeding to Phase 3\n\n```\n⏳ Research induction queue...\n  Found 12 references across 3 research streams\n  Target: gitea (roctinam\u002Fresearch)\n  Filing induction tasks...\n  ✓ Filed #301: RFC 9110 HTTP Semantics\n  ✓ Filed #302: \"Designing Data-Intensive Applications\" (Kleppmann)\n  ✓ Filed #303: github.com\u002Fexpressjs\u002Fexpress\n  ... (9 more)\n✓ Induction queue: 12 tasks filed\n```\n\nIf `--dry-run` is set, list the references that would be inducted without filing.\n\n---\n\n### Phase 3: SDLC Doc Corpus Generation\n\nUsing the research synthesis and SDLC gate requirements, generate the artifact set appropriate for the target phase. Each artifact cross-references the research documents.\n\n**Standard artifact set (Elaboration-level)**:\n\n| Artifact | Path | Template Source |\n|----------|------|----------------|\n| Use Cases \u002F User Stories | `.aiwg\u002Frequirements\u002FUC-\u003Cslug>-*.md` | sdlc-complete\u002Ftemplates\u002Frequirements\u002F |\n| Architecture Sketch | `.aiwg\u002Farchitecture\u002Fsketch-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Fanalysis-design\u002F |\n| Risk Register | `.aiwg\u002Frisks\u002Frisks-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Frisk\u002F |\n| Test Strategy | `.aiwg\u002Ftesting\u002Ftest-strategy-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Ftesting\u002F |\n| Security Screening | `.aiwg\u002Fsecurity\u002Fscreening-\u003Cslug>.md` | sdlc-complete\u002Ftemplates\u002Fsecurity\u002F |\n\nGenerate a lighter set for Inception, heavier for Construction (add ADRs, detailed test plans, CI\u002FCD hooks).\n\nAfter generation, run the SDLC gate check to confirm completeness:\n\n```\n✓ Use cases generated (N stories)\n✓ Architecture sketch complete\n✓ Risk register populated (N risks)\n✓ Test strategy drafted\n✓ Security screening done\n⏳ Running gate check...\n✓ Gate check: corpus complete for \u003Cphase> phase\n```\n\nIf gate check fails, remediate before proceeding to issue generation.\n\n---\n\n### Phase 4: Issue Generation\n\nTranslate the artifact corpus and research synthesis into a structured issue backlog.\n\n#### Issue Taxonomy\n\nEvery issue gets:\n\n| Field | Options |\n|-------|---------|\n| **Type label** | `feat`, `docs`, `test`, `infra`, `spike`, `security`, `bug`, `refactor` |\n| **Priority** | `P0-critical`, `P1-high`, `P2-medium`, `P3-low` |\n| **Phase label** | `phase:inception`, `phase:elaboration`, `phase:construction`, `phase:transition` |\n| **Area label** | `area:backend`, `area:frontend`, `area:data`, `area:infra`, `area:docs`, `area:security` |\n| **Doc link** | Cross-reference to the artifact that spawned this issue |\n\n#### Priority Assignment Rules\n\n| Condition | Priority |\n|-----------|----------|\n| Blocks other issues (dependency head) | P0 |\n| Security finding or SDLC gate blocker | P0 |\n| Core capability required for the objective | P1 |\n| Supporting implementation (tests, docs, integration) | P2 |\n| Enhancement, optimization, future-proof work | P3 |\n| Research spike with uncertain outcome | P2 (timebox) |\n\n#### Dependency Ordering\n\nAnalyze issue dependencies and produce a recommended execution sequence:\n\n```\nWave 1 (no dependencies): #N, #N+1\nWave 2 (depends on Wave 1): #N+2, #N+3\nWave 3 (depends on Wave 2): #N+4\n```\n\nThis is the order to pass to `address-issues`.\n\n#### Issue Body Template\n\nEach filed issue uses this structure:\n\n```markdown\n## Summary\n\u003COne paragraph describing the work and why it matters for the objective>\n\n## Context\n**Objective**: \u003Ctop-level objective>\n**Phase**: \u003CSDLC phase>\n**Supporting Docs**:\n- @.aiwg\u002Frequirements\u002FUC-\u003Cslug>.md (use cases)\n- @.aiwg\u002Farchitecture\u002Fsketch-\u003Cslug>.md (architecture sketch)\n- @.aiwg\u002Frisks\u002Frisks-\u003Cslug>.md (risks)\n\n**Research Basis**:\n- Best practices: @.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-best-practices.md\n- Vendor docs: @.aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-vendor-docs.md\n\n## Acceptance Criteria\n- [ ] \u003Cspecific, testable criterion>\n- [ ] \u003Cspecific, testable criterion>\n- [ ] Tests written and passing\n- [ ] Docs updated if applicable\n\n## Dependencies\n- Depends on: #\u003Cissue numbers>\n- Blocks: #\u003Cissue numbers>\n\n## Notes\n\u003CKey findings from research synthesis relevant to this issue>\n```\n\n---\n\n### Phase 5: Plan Preview and Human Approval\n\n**Always** present the complete plan before filing any issues. Even in non-dry-run mode, this gate is mandatory.\n\nPresent as a table:\n\n```\n## Issue Plan: \u003Cobjective>\n\n### Research Summary\n- N best practices identified\n- N current implementations reviewed\n- N vendor integrations mapped\n- Key finding: \u003Cone-liner>\n\n### Supporting Docs Generated\n- .aiwg\u002Frequirements\u002FUC-\u003Cslug>-*.md (N use cases)\n- .aiwg\u002Farchitecture\u002Fsketch-\u003Cslug>.md\n- .aiwg\u002Frisks\u002Frisks-\u003Cslug>.md (N risks)\n- .aiwg\u002Ftesting\u002Ftest-strategy-\u003Cslug>.md\n\n### Issue Backlog (N issues)\n\n| # | Title | Type | Priority | Phase | Depends On | Doc Ref |\n|---|-------|------|----------|-------|------------|---------|\n| 1 | \u003Ctitle> | feat | P1 | construction | — | UC-001 |\n| 2 | \u003Ctitle> | test | P2 | construction | #1 | test-strategy |\n| 3 | \u003Ctitle> | docs | P3 | construction | #1 | architecture |\n| 4 | \u003Ctitle> | security | P0 | elaboration | — | screening |\n\n### Recommended Execution Order\nWave 1 (parallel): #4, #1\nWave 2 (after Wave 1): #2, #3\n\n### Open Questions\n1. \u003Cquestion that needs human decision before work starts>\n2. \u003Cquestion>\n\n---\n**Proceed to file N issues?** Reply \"yes\" \u002F \"no\" \u002F \"revise: \u003Cguidance>\"\n```\n\nWait for explicit human approval before filing.\n\n---\n\n### Phase 6: Issue Filing\n\nOn approval, file issues in the order shown (Wave 1 first, then Wave 2, etc.) to ensure issue numbers reflect dependency order.\n\nFor each issue:\n- File via configured provider (Gitea MCP, GitHub CLI, or local)\n- Post a cross-link comment connecting the issue to the research docs\n- Record filed issue numbers for the execution-order summary\n\nAfter all issues filed:\n\n```\n## Filed Issues\n\n| Issue | Title | Priority | URL |\n|-------|-------|----------|-----|\n| #N | \u003Ctitle> | P0 | \u003Curl> |\n| #N+1 | \u003Ctitle> | P1 | \u003Curl> |\n...\n\n### Recommended address-issues invocation:\n\u002Faddress-issues \u003Cwave-1-numbers> --guidance \"\u003Cobjective summary>\"\n# Then after wave 1 is resolved:\n\u002Faddress-issues \u003Cwave-2-numbers>\n\nSupporting docs: .aiwg\u002Fworking\u002Fissue-planner\u002F and .aiwg\u002Frequirements\u002F\n```\n\n---\n\n## Interactive Mode\n\nWhen `--interactive` is set, ask these questions before Phase 1:\n\n1. **Scope**: Are there technologies, components, or approaches that are explicitly out of scope?\n2. **Existing artifacts**: Are there existing requirements, architecture docs, or prior research I should read first?\n3. **Phase target**: Which SDLC phase are we in? (inception \u002F elaboration \u002F construction \u002F transition)\n4. **Priority bias**: Should I favor security\u002Fcompliance issues first, or core functionality first?\n5. **Timeline**: Is there a sprint or milestone constraint that should influence priority?\n6. **Filing approval**: Should I file issues automatically after you see the plan, or always wait for an explicit \"yes\"?\n\n---\n\n## Priority Order Rationale\n\nThe recommended issue order follows these heuristics, applied in sequence:\n\n1. **Gate blockers first** — anything that blocks a phase transition\n2. **Security and compliance** — before any feature work begins\n3. **Spike\u002Fresearch issues** — resolve unknowns before implementation\n4. **Dependency-free implementation** — parallelizable core work\n5. **Dependent implementation** — work that needs prior issues resolved\n6. **Tests and validation** — after implementation is stable\n7. **Documentation** — after implementation and tests\n8. **Enhancements and optimizations** — last\n\nThis order ensures `address-issues` can make forward progress without hitting dependency blocks.\n\n---\n\n## What Makes This Better Than a Simple Agent or Developer\n\n| Capability | Simple agent | Developer | issue-planner |\n|------------|-------------|-----------|---------------|\n| Parallel research across 3 dimensions | ✗ | Slow (sequential) | ✓ (one message) |\n| SDLC gate check before issue filing | ✗ | Manual | ✓ (automated) |\n| Issue-to-artifact traceability | ✗ | Inconsistent | ✓ (every issue) |\n| Dependency-aware priority ordering | ✗ | Manual judgment | ✓ (wave analysis) |\n| Consistent issue body structure | ✗ | Varies | ✓ (template) |\n| Human approval gate before filing | ✗ | Manual | ✓ (mandatory) |\n| `address-issues` handoff instructions | ✗ | ✗ | ✓ (generated) |\n| Open questions surfaced before work | ✗ | Sometimes | ✓ (systematic) |\n\n---\n\n## Examples\n\n### Example 1: New Integration\n\n**User**: \"Plan out Codex plugins support using the research team. File issues, I'll approve before you file anything.\"\n\n**Extracted**: objective=\"Codex plugins support\", dry-run=false (will ask approval)\n\n**Flow**:\n1. Research: Codex plugin API, npm plugin patterns, AIWG deployment architecture\n2. Artifacts: use cases (install\u002Fpackage\u002Fpublish), architecture sketch (.codex-plugin\u002F format), risks (version drift, marketplace availability)\n3. Issues: plugin manifest schema (P1), `package-plugin codex` command (P1), marketplace integration (P2), test coverage (P2), docs (P3)\n4. Preview → approval → file\n\n---\n\n### Example 2: Guided Sprint Planning\n\n**User**: \"Plan issues for adding HIPAA compliance to the auth module. Use the research team. Focus on security and compliance items first. We're in construction phase already.\"\n\n**Extracted**: `--guidance \"HIPAA compliance, auth module, construction phase, security-first priority\"`\n\n**Flow**: Research → security-first issue ordering → HIPAA-specific labels applied → gate-checked against construction criteria\n\n---\n\n### Example 3: Dry Run Review\n\n**User**: \"Use the research team and SDLC process to plan out WebSocket support. Show me the issues but don't file them yet.\"\n\n**Extracted**: `--dry-run`\n\n**Output**: Full plan table with `[DRY RUN — issues not filed]` header. User can revise before committing.\n\n---\n\n### Example 4: Quick Backlog\n\n**User**: \"File issues for \u003Cmy prompt> using the aiwg research team in parallel... SDLC gates... await review.\"\n\n**This is the canonical trigger pattern.** issue-planner recognizes it and executes the full workflow.\n\n---\n\n### Example 5: Research Induction — Named MCP Service\n\n**User**: \"Plan out distributed tracing support. Induct any research you find into our Gitea research repo.\"\n\n**Extracted**: `--induct-research gitea`\n\n**Flow**:\n1. Research pass discovers: OpenTelemetry spec, Jaeger docs, Zipkin paper, \"Dapper\" Google paper, 3 GitHub repos\n2. Phase 2b files 7 induction tasks to the configured Gitea research repo (`mcp__gitea__issue_write`)\n3. Each task includes source URL, relevance summary, and induction checklist\n4. Continues to Phase 3 (SDLC corpus) → Phase 4 (issues) → Phase 5 (approval)\n\n**Sample induction task filed:**\n```\n#301 [induct] OpenTelemetry Specification v1.35\nSurfaced during: distributed tracing support planning\nStream: vendor-docs\nPriority: high — this is the canonical standard we'll implement\n```\n\n---\n\n### Example 6: Research Induction — File Path\n\n**User**: \"Plan WebAuthn support. Save any references you find to `.aiwg\u002Fresearch\u002Fqueue\u002F`\"\n\n**Extracted**: `--induct-research .aiwg\u002Fresearch\u002Fqueue\u002F`\n\n**Flow**: Research discovers 9 references. Phase 2b writes `.md` task files to `.aiwg\u002Fresearch\u002Fqueue\u002F` — one per reference — formatted with the induction body template. These can later be processed with `\u002Finduct-research .aiwg\u002Fresearch\u002Fqueue\u002F`.\n\n---\n\n### Example 7: Research Induction — Environment Variable\n\n**Shell**: `export AIWG_RESEARCH_REPO=https:\u002F\u002Fgit.integrolabs.net\u002Froctinam\u002Fresearch`\n\n**User**: \"Plan OAuth2 refresh token rotation using the research team.\"\n\n**Flow**: `AIWG_RESEARCH_REPO` is set; induction is implied. URI is a Gitea instance — issues filed via `mcp__gitea__issue_write` to that repo. No explicit flag needed.\n\n---\n\n## Composition\n\n```\nissue-planner \u003Cobjective>\n    │\n    ├── Phase 0: Intake + optional interactive discovery\n    ├── Phase 1: Parallel research (3 agents simultaneously)\n    │   ├── Agent A: Best practices\n    │   ├── Agent B: Current research \u002F prior art\n    │   └── Agent C: Vendor documentation\n    ├── Phase 2: Research synthesis\n    ├── Phase 2b: Research induction queue (if --induct-research)\n    │   ├── Collect + deduplicate references from all 3 streams\n    │   ├── Resolve target (file path | URI | named MCP service)\n    │   └── File one induction task per reference → \u002Finduct-research\n    ├── Phase 3: SDLC doc corpus generation\n    │   └── \u002Fflow-gate-check \u003Cphase> (completeness gate)\n    ├── Phase 4: Issue generation (taxonomy + priority + dependency waves)\n    ├── Phase 5: Plan preview → HUMAN APPROVAL GATE\n    └── Phase 6: Issue filing + address-issues handoff instructions\n```\n\n## References\n\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Faddress-issues\u002FSKILL.md — Consume the filed issues\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fresearch-complete\u002Fskills\u002Finduct-research\u002FSKILL.md — Research induction target skill\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-create\u002FSKILL.md — Single issue creation\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fskills\u002Fissue-driven-al\u002FSKILL.md — Agent loop per issue\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Fflows\u002Fflow-gate-check.md — Phase gate criteria\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsdlc-complete\u002Ftemplates\u002F — Artifact templates\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fsubagent-scoping.md — Parallel research constraints\n- @$AIWG_ROOT\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Frules\u002Fcontext-budget.md — Parallel agent limits\n",{"name":5,"errors":68,"ensures":75,"requires":84,"namespace":89,"platforms":90,"invariants":92,"commandHint":96,"description":7},[69,71,73],{"no-tracker-access":70},"cannot reach issue tracker; check --provider or API credentials",{"research-failed":72},"all three parallel research agents returned empty results; try --skip-research with existing docs",{"objective-too-vague":74},"objective is too broad to plan without clarification; use --interactive",[76,78,80,82,83],{"issues-filed":77},"prioritized issue backlog with type\u002Fpriority\u002Fphase labels and wave-ordered dependencies",{"research-brief":79},"synthesized research findings at .aiwg\u002Fworking\u002Fissue-planner\u002Fresearch-brief.md",{"sdlc-corpus":81},"phase-appropriate SDLC artifacts (use cases, risk register, etc.)","if --dry-run: plan preview table shown without filing","if --induct-research: reference induction tasks filed for discovered sources",[85,87],{"objective":86},"non-empty string describing the feature, capability, or initiative to plan",{"tracker":88},"issue tracker accessible (gitea | github | local) — auto-detected from project config","aiwg",[91],"all",[93,94,95],"human approval gate is mandatory before any issues are filed","no issues are filed unless user explicitly confirms the plan","every filed issue links to the SDLC artifact that generated it",{"model":50,"category":97,"modelRole":98,"modelTier":99,"allowedTools":100,"argumentHint":101},"planning","efficiency","economy","Read, Write, Glob, Grep, Bash, Agent, mcp__gitea__issue_write, mcp__gitea__issue_read, mcp__gitea__list_issues, WebSearch, WebFetch","\u003Cobjective> [--interactive] [--dry-run] [--guidance \"text\"] [--provider gitea|github|local] [--induct-research \u003Ctarget>]","main","6754967c344ccb087a8de06972f55a41067b291b","agentic\u002Fcode\u002Fplugins\u002Fcodex-sdlc\u002Fskills\u002Fissue-planner",36,"https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg","https:\u002F\u002Faiwg.io","https:\u002F\u002Fgithub.com\u002Fjmagly","https:\u002F\u002Fintegrolabs.io","ml\u002Fai, industrial automation, safety\u002Fsecurity, ssi\r\n\r\nmagly.net\r\nintegrolabs.io\r\naiwg.io\r\nfortemi.com\r\npagenary.com\r\nbytecask.com","2026-11-14 10:46:34",{"source":9,"skillName":5,"commands":113,"prompt":123,"zipAvailable":124},[114,117,120],{"tool":115,"command":116},"npx","npx skills add jmagly\u002Faiwg --skill issue-planner",{"tool":118,"command":119},"bunx","bunx skills add jmagly\u002Faiwg --skill issue-planner",{"tool":121,"command":122},"pnpm","pnpm dlx skills add jmagly\u002Faiwg --skill issue-planner","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fcodex-sdlc\u002Fskills\u002Fissue-planner\u002FSKILL.md",true,[],[127,135,140,164,181,186],{"skillNo":128,"name":129,"nameZh":17,"description":130,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":134},"01M78KW7PZJ9YQZQMW84SN2YD4","plugin-search","Search marketplaces for plugins using configured local manifests and directory caches; rank matching plugins by observed installs, review tier and cache dates without installing or fetching anything","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Futils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":136,"name":129,"nameZh":17,"description":130,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":134},"01M78KSEZS9ZNNFESY9ANW22S0","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Faddons\u002Faiwg-utils\u002Fskills\u002Fplugin-search\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":17,"description":143,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":63},"01M70QA0BSYJ49EES9V4RE8QH1","host-hardening","Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[147,148,149,150,151,49,152,153,154,155,52,156,157,53,158,159,160,161,162,163],"hardening","host","host hardening","verification","secrets","request","remediation","recommendations","audit","port","bind","access","only","retention","re","never","firewall",{"skillNo":165,"name":166,"nameZh":17,"description":167,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":63},"01M70PNT2Z4HMZPRBTAF6073NN","exposure-analysis","Read-only firewall analysis and effective host exposure reconstruction for Docker published ports, UFW bypass, stale rules, CDN scope, IPv6 asymmetry and external probe allowlists.","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fplugins\u002Fforensics\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[171,172,173,174,175,40,49,55,156,162,53,176,148,177,159,41,178,163,179,180],"analysis","exposure analysis","collection","reconstruction","operator","unknown","internet","scope","ports","ufw",{"skillNo":182,"name":142,"nameZh":17,"description":143,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":63},"01M70P8QATMPKA78E4FT5D2TNA","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fsecurity-engineering\u002Fskills\u002Fhost-hardening\u002FSKILL.md",[],[147,148,149,161,162,163,157,160,154,151,49,152,153,155,52,156,150,53,158,159],{"skillNo":187,"name":166,"nameZh":17,"description":167,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":63},"01M70NMPVJ5H0JH131P60FW4R8","https:\u002F\u002Fgithub.com\u002Fjmagly\u002Faiwg\u002Fblob\u002Fmain\u002Fagentic\u002Fcode\u002Fframeworks\u002Fforensics-complete\u002Fskills\u002Fexposure-analysis\u002FSKILL.md",[],[171,172,180,179,175,178,41,159,174,40,49,55,156,173,53,176,148,163,162,177]]