一键导入
wf-phase1-spec
Phase 1 - Create an initial feature specification from a roadmap item. Generates a structured spec file ready for Phase 2 review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Phase 1 - Create an initial feature specification from a roadmap item. Generates a structured spec file ready for Phase 2 review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Clear the workflow context file to start fresh on a new feature
Initialize the feature workflow for a project — detects tech stack, proposes review agents (asks user to confirm), creates agent files and project-config.json.
Phase 1 iteration - quick 3-agent review of a DRAFT spec before formal Phase 2 review. Catches issues early with specialized perspectives.
Run Phase 2 design review with 2-6 subagents (dynamic selection). Produces a PHASE2_REVIEW.md artifact in the archive directory.
Run Phase 3 consolidation - address Phase 2 feedback, make decisions on open questions, update the spec. Produces PHASE3_CONSOLIDATION.md.
Phase 4 implementation (Opus) - thorough implementation with detailed analysis. Use /wf-phase4-implement-sonnet for faster implementation.
| name | wf-phase1-spec |
| description | Phase 1 - Create an initial feature specification from a roadmap item. Generates a structured spec file ready for Phase 2 review. |
Generate a comprehensive initial spec for a roadmap feature.
$ARGUMENTS
.claude/workflow/project-config.jsonspecDir = docs/specsarchiveDir = docs/specs/archiveroadmapFile = ROADMAP.md{specDir}, {archiveDir}, and {roadmapFile} throughout this skillIf no feature ID was provided in arguments:
{roadmapFile} to find features marked with ⬜ (not implemented)Once you have a feature ID:
{roadmapFile} to find the feature description and requirementsCLAUDE.md to understand existing patterns and implemented featuresdocs/, references/, specs/){specDir}/ for format and patternsIdentify:
Create the directory: {specDir}/{feature-id-lowercase}/
(e.g., {specDir}/sf14/ for SF-14)
Create {specDir}/{feature-dir}/{FEATURE-ID}_{NAME}_SPEC.md using this template:
# {FEATURE-ID}: {Feature Name} Specification
**Status**: DRAFT
**Created**: {date}
**Complexity**: {Simple | Medium | Complex}
---
## Complexity Tier
**Tier**: {Simple | Medium | Complex}
**Justification**: {Why this tier - be specific}
| Tier | Criteria | Recommended Phases |
|------|----------|-------------------|
| Simple | Single pattern, <100 LOC, follows existing templates | 1 → 4 → 5 |
| Medium | 2-5 files, follows existing patterns, some integration | 1 → 2 (3 agents) → 3 → 4 → 5 |
| Complex | New patterns, architecture, 5+ files, novel mechanics | 1 → (1.5) → 2 → 3 → 4 → 5 → 6 |
---
## Overview
{Brief description of what this feature does and why it matters}
---
## Components
### 1. {Component Name}
{Description of this component}
**Formula / Logic** (if applicable):
result = baseValue × modifier × efficiency
Where:
- `baseValue` = description
- `modifier` = description
### 2. {Next Component}
{Continue for each component}
---
## Configuration / Constants (if applicable)
| Name | Value | Description |
|------|-------|-------------|
| `CONSTANT_NAME` | value | What this controls |
---
## Architecture Integration (if applicable)
{Where this fits in the system — e.g., processing order, event pipeline, request lifecycle}
---
## Files
### Added
- `NewComponent.ext` - Core logic for {feature}
- `NewResult.ext` - Result type for {operation}
### Modified
- `ExistingFile.ext` - {What changes and why}
---
## HTTP Endpoints (if applicable)
| Method | Path | Description |
|--------|------|-------------|
| POST | `/api/{resource}/{action}` | {description} |
---
## Test Strategy
| Test | Focus | Estimated Cases |
|------|-------|-----------------|
| `{Feature}Test` | Core logic verification | 10-15 |
| `{Feature}IntegrationTest` | End-to-end integration | 5-8 |
| `{Feature}EdgeCaseTest` | Boundary conditions | 8-12 |
---
## Key Implementation Notes
1. {Important architectural decision or constraint}
2. {Performance consideration}
3. {Integration note with existing systems}
---
## Related Specifications
- [{Related Feature}]({path}) - {How it relates}
---
## Open Questions
- [ ] {Question needing resolution before implementation}
- [ ] {Another open question}
---
**Last Updated**: {date}
After creating the spec, display:
Then proceed to Step 7.
Create/update .claude/workflow/phase-context.json:
{
"specPath": "{full spec file path}",
"featureId": "{FEATURE-ID}",
"lastPhase": "wf-phase1-spec",
"timestamp": "{current ISO datetime}",
"context": {
"complexityTier": "{Simple | Medium | Complex}",
"complexityJustification": "{brief reason for tier selection}",
"components": ["{list component names identified}"],
"openQuestions": {count of open questions},
"properties": ["{list constants/config names being added}"],
"filesAffected": {count of files added + modified},
"recommendedNextPhase": "{wf-phase1-iterate | wf-phase2-review | wf-phase4-implement-sonnet}"
}
}
.claude/templates/context-reminder.md if it exists and display it; otherwise display: "Context Management: Consider starting a new conversation before the next phase to free up context window for better performance."For Simple tier:
For Medium tier:
For Complex tier:
.claude/workflow/phase-context.json