sw:increment-planner
This skill uses Claude hooks which can execute code automatically in response to events. Review carefully before installing.
Increment Planner Skill
Self-contained increment planning for ANY user project after specweave init.
Progressive Disclosure
Load phases as needed to reduce context:
| Phase | When to Load | File |
|---|---|---|
| Pre-flight | Starting planning | phases/00-preflight.md |
| Project Context | Resolving project/board | phases/01-project-context.md |
| Create Increment | Creating files | phases/02-create-increment.md |
| Reference | Examples, troubleshooting | phases/03-reference.md |
Quick Reference
Increment Types
| Type | Use When | WIP Limit |
|---|---|---|
| feature | New functionality | Max 2 |
| hotfix | Production broken | Unlimited |
| bug | Needs RCA | Unlimited |
| change-request | Business changes | Max 2 |
| refactor | Technical debt | Max 1 |
| experiment | POC/spike | Unlimited |
Directory Structure
.specweave/increments/####-name/
├── metadata.json # REQUIRED - create FIRST
├── spec.md # REQUIRED - user stories, ACs
├── plan.md # OPTIONAL - architecture
└── tasks.md # REQUIRED - implementation
Workflow Overview
STEP 0: Pre-flight (TDD mode, multi-project, Deep Interview)
→ Load phases/00-preflight.md
→ CHECK: Deep Interview Mode enabled?
STEP 0.5: Deep Interview (if enabled)
→ PM skill loads phases/00-deep-interview.md
→ Ask 10-40+ questions about architecture, integrations, etc.
→ Continue until all categories covered
STEP 1: Project Context (resolve project/board)
→ Load phases/01-project-context.md
STEP 2: Create Increment (via Template API)
→ Load phases/02-create-increment.md
STEP 3: Guide User (complete in main conversation)
Deep Interview Mode Detection (STEP 0.5)
Check during pre-flight:
# Detect deep interview mode and enforcement level
deepInterview=$(jq -r '.planning.deepInterview.enabled // false' .specweave/config.json 2>/dev/null)
enforcement=$(jq -r '.planning.deepInterview.enforcement // "advisory"' .specweave/config.json 2>/dev/null)
if [ "$deepInterview" = "true" ]; then
echo "DEEP INTERVIEW MODE: Conduct thorough questioning before spec creation"
echo "Enforcement: $enforcement"
echo "Categories: architecture, integrations, ui-ux, performance, security, edge-cases"
if [ "$enforcement" = "strict" ]; then
echo ""
echo "⚠️ STRICT MODE: spec.md BLOCKED until all categories marked covered!"
echo "Use: specweave interview mark-covered <id> <category> \"summary\""
fi
fi
If Deep Interview Mode is enabled:
- Delegate to PM skill with interview phase
- Ask minimum 10 questions (40+ for large features)
- Cover all configured categories
- Only proceed to STEP 1 after interview complete
Strict Mode (v1.0.198+):
enforcement: "strict"blocks spec.md creation until all categories are covered- Initialize tracking:
specweave interview start <increment-id> - Mark categories:
specweave interview mark-covered <id> architecture "summary" - Check progress:
specweave interview status <id>
Critical Rules
1. Project Field is MANDATORY
Every US MUST have **Project**: field:
### US-001: Feature Name
**Project**: my-app # ← REQUIRED!
**As a** user...
Get project: specweave context projects
2. Use Template Creator API
Direct Write is FORBIDDEN! Use:
specweave create-increment --id "0021-name" --project "my-app"
3. NO Agent Spawning
Skills MUST NOT spawn Task() agents (causes crashes). Guide user to complete in MAIN conversation.
4. Increment Naming
Format: ####-descriptive-kebab-case
✅ 0001-user-authentication
❌ 0001 (no description)
❌ my-feature (no number)
Token Budget
- Quick reference (this file): ~400 tokens
- Each phase: ~300-500 tokens
- Total if all loaded: ~2000 tokens
Load phases on-demand, not all at once!
Delegation
- Pre-flight checks:
/sw:incrementcommand handles WIP, discipline - Spec completion: PM skill (in main conversation)
- Architecture: Architect skill (in main conversation)
- Task generation: Test-aware planner (in main conversation)
Usage
// Direct invocation
Skill({ skill: "sw:increment-planner", args: "--description=\"Add auth\"" })
// Via command (recommended - handles pre-flight)
/sw:increment "Add user authentication"
NOTE: Use
sw:prefix! Plainincrement-plannerfails.
Project-Specific Learnings
Before starting work, check for project-specific learnings:
# Check if skill memory exists for this skill
cat .specweave/skill-memories/increment-planner.md 2>/dev/null || echo "No project learnings yet"
Project learnings are automatically captured by the reflection system when corrections or patterns are identified during development. These learnings help you understand project-specific conventions and past decisions.
More from anton-abyzov/specweave
technical-writing
Technical writing expert for API documentation, README files, tutorials, changelog management, and developer documentation. Covers style guides, information architecture, versioning docs, OpenAPI/Swagger, and documentation-as-code. Activates for technical writing, API docs, README, changelog, tutorial writing, documentation, technical communication, style guide, OpenAPI, Swagger, developer docs.
45spec-driven-brainstorming
Spec-driven brainstorming and product discovery expert. Helps teams ideate features, break down epics, conduct story mapping sessions, prioritize using MoSCoW/RICE/Kano, and validate ideas with lean startup methods. Activates for brainstorming, product discovery, story mapping, feature ideation, prioritization, MoSCoW, RICE, Kano model, lean startup, MVP definition, product backlog, feature breakdown.
43kafka-architecture
Apache Kafka architecture expert for cluster design, capacity planning, and high availability. Use when designing Kafka clusters, choosing partition strategies, or sizing brokers for production workloads.
34docusaurus
Docusaurus 3.x documentation framework - MDX authoring, theming, versioning, i18n. Use for documentation sites or spec-weave.com.
29frontend
Expert frontend developer for React, Vue, Angular, and modern JavaScript/TypeScript. Use when creating components, implementing hooks, handling state management, or building responsive web interfaces. Covers React 18+ features, custom hooks, form handling, and accessibility best practices.
29reflect
Self-improving AI memory system that persists learnings across sessions in CLAUDE.md. Use when capturing corrections, remembering user preferences, or extracting patterns from successful implementations. Enables continual learning without starting from zero each conversation.
27