Spec a new feature — recall architecture knowledge, create a spec document, build an implementation plan, and break into tasks.
54
60%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/spec-feature/SKILL.mdYou are speccing a new feature. This command enforces a structured planning process before any code is written.
git branch --show-current (regex [A-Z]+-[0-9]+); if none, use none.mark_chapter with {title: "Spec — <TICKET>", summary: "Writing the spec document"}.
If mark_chapter is unavailable (e.g. running outside Claude Code), skip silently.printf '\e]2;%s — Spec\007' "<TICKET>"Parse the feature request from the arguments below. Extract:
Recall architecture knowledge. Use the Hindsight recall tool to retrieve:
Explore the existing codebase. Identify:
Write the spec document. Create a file at docs/specs/<feature-name>.md with this structure:
# Feature: <name>
## Problem Statement
[What problem does this solve?]
## Proposed Solution
[High-level description of the approach]
## Architecture Impact
- **Domain layer**: [changes needed]
- **Application layer**: [changes needed]
- **Infrastructure layer**: [changes needed]
## Technical Design
[Detailed technical approach, including data models, API changes, etc.]
## Constraints & Decisions
- [recalled hard rules that apply]
- [architectural decisions that constrain the approach]
## Acceptance Criteria
- [ ] AC1: [observable behavior]
- [ ] AC2: [observable behavior]
- [ ] AC3: [edge case behavior]
## Non-goals
Explicitly out of scope:
- [thing we are NOT building]
- [thing we are NOT refactoring]
## Edge Cases
- [edge case 1]
- [edge case 2]
## Testing Strategy
[How will this be tested?]
## Implementation Plan
1. [step 1]
2. [step 2]
...Break into tasks. Convert the implementation plan into discrete, ordered tasks:
Present the spec to the user for review. Ask:
Retain the architectural decisions from this spec using the Hindsight retain tool, so they're available in future sessions.
Hand off to the planning phase. Invoke devflow:phase-handoff with arguments:
--phase spec--next-phase planThe handoff skill writes a frozen-state file at .devflow/state/<branch>/spec.md and prompts the user to /compact. After compact, the user re-invokes superpowers:writing-plans (or devflow:writing-plans).
Do NOT auto-invoke writing-plans from this skill — context cleanup is the explicit boundary.
$ARGUMENTS
b0b1bb6
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.