Skip to content

feat(sdlc): SDLC phase prompt corpus (#1705)#1814

Draft
tomgreen981111-cipher wants to merge 1 commit into
Anantys-oss:mainfrom
tomgreen981111-cipher:koan/sdlc-phase-prompts-1705
Draft

feat(sdlc): SDLC phase prompt corpus (#1705)#1814
tomgreen981111-cipher wants to merge 1 commit into
Anantys-oss:mainfrom
tomgreen981111-cipher:koan/sdlc-phase-prompts-1705

Conversation

@tomgreen981111-cipher

Copy link
Copy Markdown
Contributor

What

10 coordinated prompt files for the /sdlc multi-phase workflow — the intellectual core of the SDLC initiative.

Why

Shipping the orchestrator (#1707) without quality prompts produces a workflow worse than running /plan + /implement + /review manually. Each phase needs to know its exact input artifacts, output schema, and constraints — so agents build on each other rather than starting from scratch.

How

Each prompt in koan/skills/core/sdlc/prompts/ has a rigid contract:

Prompt Reads Writes
research.md nothing RESEARCH.md (risk: Low/Medium/High)
architecture.md RESEARCH.md ADR.md (chosen approach + rejected alternatives)
planning.md ADR.md + RESEARCH.md PLAN.md (machine-runnable acceptance criteria)
implementation.md PLAN.md + ADR.md + RESEARCH.md IMPLEMENTATION.md (real test output) + opens draft PR
security_review.md diff + IMPLEMENTATION.md SECURITY.md with VERDICT: APPROVED/NEEDS_FIX
qa_review.md diff + IMPLEMENTATION.md QA.md with same verdict format
sre_review.md diff + IMPLEMENTATION.md SRE.md with same verdict format
fix.md all NEEDS_FIX verdicts pushes to existing branch
tech_writer.md IMPLEMENTATION.md in-place edits to CHANGELOG + README + docs
orchestrator.md STATE.json queues next mission, writes Telegram updates

Review prompts are diff-only — they cannot flag pre-existing code. The VERDICT: format is rigid enough for regex parsing, forgiving enough that agents produce it consistently.

SKILL.md skeleton created with group: code, worker: true, github_enabled: true. The handler.py is #1707's responsibility.

Testing

55 tests in koan/tests/test_sdlc_prompts.py verify:

  • All prompt files exist and load via load_skill_prompt()
  • {@include} partials resolve correctly
  • {ISSUE_NAME} and other placeholders are substituted
  • Each prompt names its input and output artifacts
  • Review prompts contain both VERDICT: APPROVED and VERDICT: NEEDS_FIX examples
  • TestCoreSkillGroupEnforcement passes

Closes #1705
Dependencies: #1704 (state layer, open in #1813), needed by #1707 (orchestrator)


Generated by Kōan

@Koan-Bot Koan-Bot self-requested a review June 7, 2026 10:07
10 coordinated prompt files in koan/skills/core/sdlc/prompts/ — each
with explicit input/output artifact contracts, so phases build on each
other rather than running in isolation:

- research.md — codebase analysis, risk classification (Low/Medium/High)
- architecture.md — reads RESEARCH.md, produces ADR.md with rejected alternatives
- planning.md — reads ADR+RESEARCH, produces PLAN.md with machine-runnable acceptance criteria
- implementation.md — reads PLAN.md, writes code + records test output in IMPLEMENTATION.md
- security_review.md — diff-only, VERDICT: APPROVED/NEEDS_FIX block for fix-loop parsing
- qa_review.md — coverage gaps + acceptance criteria check, same verdict format
- sre_review.md — resource leaks, failure modes, deployment safety, same verdict format
- fix.md — reads only NEEDS_FIX verdicts, touches only cited files, bounded by MAX_FIX_ITERATIONS
- tech_writer.md — reads final IMPLEMENTATION.md, writes CHANGELOG + README updates
- orchestrator.md — reads STATE.json, queues next phase mission, sends Telegram updates

All prompts load via load_skill_prompt() with @include partials resolved.
SKILL.md skeleton created (handler.py comes with Anantys-oss#1707).
55 tests verify loading, substitution, and artifact contracts.

Closes Anantys-oss#1705
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Author SDLC phase prompt corpus for coordinated multi-agent specialization

1 participant