一键导入
workflow
Master workflow orchestrating feature planning, review, implementation, audit, and retrospectives. Entry point for feature development lifecycle.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Master workflow orchestrating feature planning, review, implementation, audit, and retrospectives. Entry point for feature development lifecycle.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Audit a feature implementation against its approved plan and implementation report, then produce the architect verdict and follow-up direction.
Create a feature document covering business context and initial architecture for a new feature using the PM and Architect workflow.
Execute a review-approved feature plan and produce or refine the implementation report for that feature.
Orchestrate the full feature workflow loop by detecting artifact state and routing through review, implementation, audit, and follow-up steps.
Create or update a feature implementation plan with concrete steps, risks, and acceptance criteria for the Architect workflow.
Revise an existing feature plan after review findings, implementation issues, or manual edits while preserving plan history.
| name | workflow |
| description | Master workflow orchestrating feature planning, review, implementation, audit, and retrospectives. Entry point for feature development lifecycle. |
Master skill for feature development workflow. All steps below have dedicated skilluploads.
Feature Lifecycle:
Context & Research:
Retrospectives:
1. /feat → Create feature document (PM + Architect)
2. /plan → Create first plan (Architect)
3. /review → Review plan (Reviewer)
- If READY → proceed
- If NEEDS_REVISION → /replan
4. /implement → Execute plan (Developer)
5. /audit → Verify implementation (Architect)
- If ready → DONE
- If needs-fixes → Developer fixes + re-audit
- If plan-fix → Architect patches plan + re-implement + re-audit
- If re-plan → Use /replan for scope decisions
Use /loop to auto-detect state and orchestrate full cycle in one call:
/loop [feature-id] [plan-slug]
Orchestrator detects artifact state and auto-routes:
Use /research for exploring options, best practices, 3rd party solutions:
/research [feature-id] [research-topic]
Output: Context document in feat-XXX/contexts/{topic}.context.md
Feature retrospectives synthesize learnings:
Each feature lives in:
.pythia/workflows/features/
└── feat-YYYY-MM-{slug}/
├── feat-YYYY-MM-{slug}.md # Feature document
├── plans/
│ ├── 1-{plan-slug}.plan.md
│ ├── 2-{plan-slug}.plan.md # (after replan)
│ └── ...
├── reports/
│ ├── 1-{plan-slug}.review.md # One per plan version
│ ├── 1-{plan-slug}.implementation.md
│ ├── 1-{plan-slug}.audit.md
│ └── ...
├── contexts/
│ ├── technical-analysis.context.md
│ ├── architecture-decisions.context.md
│ └── ...
└── notes/
├── {plan-slug}.retro.md # Feature retrospective
└── {plan-slug}.problems.md # Audit findings (if verdict ≠ ready)
Detailed procedures and formats in references/ subdirectory:
plan-format.md — Plan document structure and requirementsreview-format.md — Review report structureaudit-format.md — Audit report structureimplementation-format.md — Implementation report structureresponse-formats.md — Structured chat response formats for each roleplanning-methodology.md — Planning principles and methodologyplan-review-framework.md — Architecture review frameworkresearch-procedure.md — Research procedure for Researcher subagentimplementation-quality-guidelines.md — Code quality expectationsSee references/ for full documentation.
/research — run research for a feature; pre-search across all pythia/project docs first (.pythia/workflows/features/, .pythia/contexts/, .pythia/notes/, feature dirs — docs are scattered), then full research procedure; output in feat-XXX/contexts/{topic}.context.md. Researcher writes context using the /context-feature structure; do not invent legacy research command aliases.references/research-procedure.md step 0.references/research-procedure.md. When researching agent skills/tooling, use .agents/skills/skill-search-and-fit/SKILL.md (catalogs: Cursor, Skills.sh, AgentSkills.io, GitHub).references/plan-format.mdreferences/review-format.md/review (Deep mode for R1 and major architect-driven vector/structural changes)/replan), the caller must launch the subagent and must not run review in the current context.references/implementation-format.mdreferences/audit-format.md**Status**: done to completed Steps[x] for met criteria## Plans by slugStatus: Implemented to plan entry{feature-dir}/notes/retro.md — unified retro across all plans## Retrospective blocks from plans, reviews, implementation reports, audits, and feature contexts/research files; collects user-only ## Decision Log blocks from plans, implementation reports, replans, and research contexts/plan, /implement, /research, and /replan capture raw user-only decisions; /retro synthesizes durable user/workflow preferences into the feature retrospective; profile promotion is left to a later audit/profile step.pythia/workflows/features/.pythia/notes/retro-project.md — single persistent file, new run block appended each timenotes/retro.md per feature if available; otherwise collects rawflowchart TD
A([/feat]) --> B([/ctx or /research])
B --> C([/plan\nv1])
C --> D([/review\nR1])
D -->|Verdict: READY| E{Gate:\nReview passed?}
D -->|Verdict: NEEDS_REVISION| F([/replan\nTrigger 1: Review\nvN+1])
F --> D
E -->|yes| G([/implement\nI1])
E -->|no — max loops reached| Z([re-scope / ask user])
G -->|all pass| H([/audit])
G -->|blockers / failures| I([/replan\nTrigger 2: Implementation\nvN+1])
I --> D2([/review\nR_next])
D2 -->|READY| G2([/implement\nI_next])
G2 --> H
H -->|Verdict: ready| J([/retro\nall plans in feature\nnotes/retro.md])
H -->|Verdict: needs-fixes| G
J --> K([Feature Done ✓])
J -.->|optional| L([/retro-all\nall features\nnotes/retro-project.md])
L --> M([Project Knowledge Base ✓])
subgraph Artifacts per feature
P1[plan.md — Retrospective / Decision Log]
P2[review.md — R1…Rn]
P3[implementation.md — I1…In + Developer Retro]
P4[audit.md]
P5[notes/retro.md — feature retro]
end
subgraph Artifacts project
Q1[.pythia/notes/retro-project.md\npersistent append-only]
end
Any step that is triggered automatically by another command (e.g. review after replan) must be run by launching the corresponding subagent in a separate context. It must not be executed in the current agent’s context.
/replan → /review (max 2 cycles); the review leg runs only via Reviewer subagent (Delegation policy).After /audit, the verdict drives the next step automatically. Do not stop at audit — continue the loop.
| Verdict | Root cause | Next action | Max iterations |
|---|---|---|---|
ready | — | DONE | — |
needs-fixes | Implementation issues; plan is correct | Developer refinement → fresh audit subagent | 2 |
plan-fix | Plan had errors (wrong step spec, bad assumption, missing constraint); implementation followed wrong spec faithfully | Architect patches plan (no review gate) → Developer re-implement → fresh audit | 1 |
re-plan | Approach wrong, major scope gap, fundamental issues | /replan → /review → /implement → /audit | 1 |
Escalation rules:
needs-fixes loops without ready → STUCK: report to user, stopplan-fix without ready → escalate automatically to re-planre-plan (audit-triggered) without ready → BLOCKED: require user inputplan-fix vs re-plan decision:
plan-fix: ≤ 2 steps need amendment, implementation approach stays the same, no review neededre-plan: ≥ 3 steps affected, or approach changes, or a review is needed to validate the fixFresh-session constraint for auditor: The audit subagent must be a fresh context. It must not share session history with the Developer that just implemented. Spawn the auditor as a separate subagent.
/loop or append loop to any command.When the user says "loop", "auto", or invokes /loop:
ready or a max-iterations exit condition is triggeredSubagent roles:
| Role | Inline mode (default) | Loop mode |
|---|---|---|
| Architect (plan/replan) | Current context | Current context (orchestrator) |
| Reviewer | Current context | Always subagent (strict) |
| Developer | Current context | Always subagent |
| Researcher | Current context | Subagent |
| Product Manager | Current context | Subagent |
| Architect (audit) | Current context | Fresh subagent (strict) |
"Current context" means: do NOT launch a subagent. When the table says "Current context", the agent reading the skill IS the role — it must perform the work directly, not delegate via Task tool / runSubagent / any subagent mechanism. In inline mode (default), ALL roles execute in the current context. Subagents are spawned ONLY in loop/auto mode (user said "loop", "auto", or invoked /loop). The only exception: Reviewer subagent delegation when triggered as a follow-up from another role in loop/auto mode.
All artifacts are hermetic per feature:
feat-XXX/plans/{plan-slug}.plan.mdfeat-XXX/reports/{plan-slug}.review.mdfeat-XXX/reports/{plan-slug}.implementation.mdfeat-XXX/reports/{plan-slug}.audit.mdfeat-XXX/notes/{plan-slug}.problems.mdPlan slug identifies the plan within a feature. All related artifacts use the same plan slug.