From specforge
Spec-driven development framework. Full lifecycle from product discovery to review. Auto-sizes by complexity. Parallel execution via Worktrunk. Pluggable issue trackers (Linear default). SecondBrain or in-repo artifact storage. Use for: starting features, implementing from issues, quick fixes, mapping codebases, reviewing PRs, pausing/resuming work. Triggers on "discover features", "specify", "design", "plan tasks", "implement", "execute", "open PR", "review PR", "quick fix", "pause work", "resume work", "map codebase", "init project".
How this skill is triggered — by the user, by Claude, or both
Slash command
/specforge:specforgeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Spec-driven development framework. Plan with precision. Execute in parallel. Learn continuously.
references/brownfield-mapping.mdreferences/coding-principles.mdreferences/context-limits.mdreferences/design.mdreferences/discover.mdreferences/discuss.mdreferences/execute.mdreferences/execution-backends.mdreferences/issue-tracker-adapters.mdreferences/plan.mdreferences/pr.mdreferences/project-init.mdreferences/quick-mode.mdreferences/review.mdreferences/session-handoff.mdreferences/specify.mdreferences/state-management.mdreferences/tdd.mdSpec-driven development framework. Plan with precision. Execute in parallel. Learn continuously.
┌──────────┐ ┌─────────┐ ┌────────┐ ┌─────────┐ ┌────┐ ┌────────┐
│ DISCOVER │→ │ SPECIFY │→ │ DESIGN │→ │ PLAN │→ │ EX │→ │ PR │→ REVIEW
└──────────┘ └─────────┘ └────────┘ └─────────┘ └────┘ └────────┘
optional always optional optional always always*
* PR + REVIEW skipped in quick mode
Before any phase, check for .specforge/project.yaml in the project root. If it exists, load it. It defines where artifacts are saved, which issue tracker to use, and which execution backend to use.
If .specforge/project.yaml doesn't exist: run project-init.md first.
Key fields to extract:
artifacts.path — where to save specs, plans, tasksissue_tracker.type — linear | github-issues | jira | noneexecution.backend — worktrunk | git-worktree | task-toolexecution.platform — windows | unixproject.language — language for all output (default: pt-BR)Language rule: After loading project.yaml, apply project.language to ALL output for the rest of the session — every message to the user, every generated artifact (spec, plan, STATE.md entries, PR descriptions, review comments). If project.language is not set, default to pt-BR.
Always load .specforge/STATE.md when it exists — it holds decisions, blockers, and lessons that affect every phase.
Assess complexity before starting any feature. The scope determines the pipeline, not a fixed sequence.
| Complexity | Signals | Pipeline |
|---|---|---|
| Quick | ≤3 files, one-sentence change, no design decisions | quick-mode only |
| Simple | Single feature, clear scope, <5 obvious steps | SPECIFY → EXECUTE → PR |
| Medium | Multi-file, clear architecture, 5-10 tasks | SPECIFY → PLAN → EXECUTE → PR → REVIEW |
| Complex | Multi-context, ambiguous requirements, new patterns | DISCOVER → SPECIFY → discuss → DESIGN → PLAN → EXECUTE → PR → REVIEW |
Safety valve: Even when PLAN is skipped, EXECUTE must list atomic steps inline before starting. If that listing reveals >5 steps or complex dependencies, STOP and run plan.md first.
When to use: no clear feature defined yet, or starting from scratch. Reference: discover.md
Explores the codebase and issue tracker to propose prioritized features with value, complexity, and bounded context assessment.
Reference: specify.md
Transforms a feature request or issue into a spec with traceable requirement IDs. Conducts a structured interview for complex features; generates directly for simple ones. Output includes problem statement, requirements (FEAT-NNN), acceptance criteria, bounded contexts, out of scope, risks.
Gray areas detected during SPECIFY trigger discuss.md, which captures user decisions in context.md before proceeding.
Reference: design.md
Documents architectural decisions, component breakdown, interfaces, and data flow. Skipped when the change is straightforward. Required when new patterns are introduced or multiple bounded contexts interact.
Reference: plan.md
Breaks the spec into atomic tasks with explicit dependencies, gate checks, and parallel execution graph. Each task is self-contained — a subagent can execute it with zero additional context.
Reference: execute.md
Orchestrates parallel execution of tasks using the configured backend. Each task runs in isolation. Reads execution-backends.md for the exact commands based on project.yaml.
Reference: pr.md
Opens a pull request per task branch with evidence (API tests, screenshots), structured description, and issue tracker link. Updates issue status to "In Review".
Reference: review.md
Analyzes the PR from 4 perspectives: code quality, architecture, performance, security. Posts comments directly on the PR. Registers lessons in .specforge/STATE.md for the learning loop.
Reference: quick-mode.md
For ≤3 files, one-sentence scope. No spec, no plan. Implement → test → commit. Same quality principles, zero ceremony.
Reference: state-management.md
.specforge/STATE.md is the project's persistent memory. Decisions (AD-NNN), blockers (B-NNN), lessons (L-NNN), deferred ideas, todos. Updated by REVIEW after each PR. Read by every phase before executing.
Reference: session-handoff.md
Pause work: creates HANDOFF.md with full context for resuming.
Resume work: loads HANDOFF.md + STATE.md + current spec/plan.
Reference: project-init.md
Bootstraps .specforge/ structure: project.yaml, PROJECT.md, ROADMAP.md, STATE.md.
Reference: brownfield-mapping.md
Produces 7 structured documents from an existing codebase: STACK, ARCHITECTURE, CONVENTIONS, STRUCTURE, TESTING, INTEGRATIONS, CONCERNS. Run once before specifying features in an existing project.
Before any technical decision, follow this chain:
.specforge/architecture/See issue-tracker-adapters.md for the exact commands for the configured tracker type.
See execution-backends.md for the exact commands for the configured backend.
Base load: PROJECT.md + STATE.md + current spec (~15k tokens). Target: <40k total. Reserve 160k+ for work.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jryanvieira/specforge