alessioscarfone/barespec/barespec-guide
Claude Code and agent skill by alessioscarfone/barespec
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Autonomous knowledge base for the mini-SDD framework. Always read this skill when working on a mini-SDD project or when any message mentions mini-SDD, init-context, spec-create, spec-plan, spec-implement, spec-code-review, spec-visualize, init-config, context.md, spec.yaml, plan.md, visual.html, hooks config, or spec-driven development. Do not use for creating context files, writing specs, planning, implementing features, or reviewing code — those have their own skills.
Install
npx vskill@latest install alessioscarfone/barespec/barespec-guideSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as alessioscarfone/barespec/barespec-guide.
This file is the complete reference for the mini-SDD framework. Read it in full whenever a mini-SDD topic arises. Do not create or modify any project files based on this skill alone.
What mini-SDD is
mini-SDD is a lightweight spec-driven development framework for AI coding agents. It enforces one rule: specs before code.
| Skill | Command | Purpose | |
|---|---|---|---|
| Project Context | /init-context | Capture the project foundation; update when architecture changes | |
| Feature Spec | /spec-create | Define a requirement contract (spec.yaml) | |
| Implementation Plan | /spec-plan | Turn a spec into an ordered, testable task plan (plan.md) | |
| Implement | /spec-implement | Execute the task plan for a spec | |
| Code Review | /spec-code-review | Two-axis, read-only review of a diff against Coding Standards and the Spec | |
| Visualize | /spec-visualize | Render a spec and its plan as an interactive, offline HTML page for human review | |
| Hook Config | /init-config | Configure custom pre/post hooks for any workflow step |
The barespec agent orchestrates these skills — it reads project state and routes the user to the correct next action.
Workflow
Step 1 — Context: Inspects the codebase (README, manifests, CI, source dirs), then interviews the user in rounds to close the remaining gaps, writes ./barespec/context.md. Re-run after architectural changes.
Step 2 — Spec: Interviews the user in rounds (design tree + frontier, one recommended answer per question), finding environment facts itself instead of asking. Every open point is resolved before anything is written; the answers are folded into the spec fields. Infers requires: from existing specs, writes spec.yaml (acai feature.yaml format — feature + components + constraints). Sets feature.status: draft.
Step 3 — Plan: Reads spec.yaml, breaks its requirements into ordered, testable tasks following the task rules, writes plan.md. Advances the spec to status: ready.
Step 4 — Implement: Reads tasks from plan.md one by one, marks checkboxes, updates feature.status (in-progress → done). On completion: unlocks dependent specs, fills development_notes in spec.yaml.
Optional — Code Review: /spec-code-review [fixed-point] [spec-name-or-description] can run at any point after step 2 — it never advances the workflow itself, only reports findings for the user to act on via the other skills.
Optional — Visualize: /spec-visualize [spec-name] can run at any point after step 2 — it renders visual.html for human review and never advances the workflow.
File structure
`spec.yaml` structure (the file begins with feature and may contain components and constraints):
A requirement is referenced by its ACID: <feature-name>.<GROUP_KEY>.<ID> (e.g. my-feature.LOGIN.1-1).
Spec lifecycle
Status values
| Status | Set by | Meaning | |
|---|---|---|---|
draft | spec-create | Spec contract written, no implementation plan yet | |
ready | spec-plan | Plan generated; spec is ready to implement | |
in-progress | spec-implement | Implementation has started | |
done | spec-implement | Implementation is complete |
Dependency rules
requires:lists spec names that must reachdonebefore this spec is implementable.- Dependencies are inferred automatically by
spec-create; the user is asked only when the relationship is ambiguous. - A spec with unmet
requiresentries cannot be implemented even ifstatusisready. - When a spec reaches
done,spec-implementremoves it from therequires:field of every spec that listed it and re-evaluates which specs are now unblocked.
Task format (in plan.md)
Task rules: Maximum 2 nesting levels. Every task references a requirement by its ACID: _(<GROUP_KEY>.<ID>)_. Parent tasks with sub-tasks are group headers — mark done only when all sub-tasks are checked. Coding tasks only — no deployment, docs, or manual testing.
Skill behaviors
/init-context
- If
context.mdexists → summarises it, asks: update or overwrite? - Creation: runs codebase reconnaissance (README, manifests, CI, source dirs), then interviews the user in rounds until the frontier is empty — each round numbers its questions and carries a recommended answer. Fills and writes
context.mdonce the user confirms the decision summary. - Update: reads current file, applies only confirmed changes, refreshes
Last updated. - Reads
hooks.context.prebefore entry andhooks.context.postafter completion.
/spec-create
- Reads
context.mdfor background. Derives a dash-case spec name. Checks for an existing spec and asks to update or create new if found. - Creation: gathers facts first (
context.md, existing specs,Exploresubagent for codebase questions), then interviews the user in rounds until the frontier is empty — each round numbers its questions and carries a recommended answer. Nothing is written until the user confirms the decision summary. Answers land incomponents/constraints/non_goals/technical_notes/prerequisites/requires. Writesspec.yamland setsfeature.status: draft. Hands off to/spec-plan. - Update: reopens only the branches the change touches, edits
spec.yamlrequirements, refreshesfeature.updated, and resetsfeature.status: draftso the plan can be regenerated. Never touchesplan.md. - Reads
hooks.spec.prebefore entry andhooks.spec.postafter completion.
/spec-plan
- Reads
context.mdand the selected spec'sspec.yaml. If no spec name given, listsdraftspecs (and specs whose plan is out of date) and asks the user to choose. - Creation: breaks the spec requirements into ordered tasks (per the task rules), tags each task with the requirement ACID, presents them for confirmation, writes
plan.md, and advances the spec tofeature.status: ready. - Update: regenerates or appends tasks to an existing
plan.md(preserving history when appending), then re-confirmsstatus: ready. - Never modifies the requirements in
spec.yaml— only itsfeature.statusandfeature.updatedfields. - Reads
hooks.plan.prebefore entry andhooks.plan.postafter completion.
/spec-implement
- Reads
context.mdfor architecture context. If no spec name given, listsready(unblocked) andin-progressspecs and asks the user to choose. - Execute: sets status to
in-progress; for each unchecked task: announces it, implements the code, marks- [ ]→- [x], updatesupdateddate. Pauses on unclear tasks or discovered issues. - Resume: when
statusisin-progress, finds first unchecked task, shows progress (N/M done), asks for confirmation. - Completion: marks satisfied requirements, sets
feature.status: done, removes the spec fromrequires:of dependent specs (unlocking them), fillsdevelopment_notesinspec.yaml(files changed, follow-ups), shows a summary. - Reads
hooks.implement.prebefore entry andhooks.implement.postafter completion.
/init-config
- If
./barespec/barespec.config.ymlexists → shows configured hooks, asks: update or reset? - Runs the hook interview: all twelve events in one message, pre-filled with current values.
- Writes (or overwrites) the config; shows the final file content. Never writes empty hook lists.
/spec-code-review
- Read-only: never edits source files,
plan.mdcheckboxes, orfeature.status. - Fixed point (commit/branch/tag) is optional — with none given and local changes present, reviews
git diff HEAD(working tree + staged) instead of asking. - Resolves the spec to review against, in order: argument → branch/commit-message match → recently-updated
in-progress/donespec → ask the user → a user-supplied one-line intent description → skip the Spec axis. - Runs two parallel sub-agents — Coding Standards (
context.md, repo standards docs, Fowler smell baseline) and Spec (spec.yamlrequirements +plan.mdtasks) — and reports both without merging or reranking findings. - Ends with a hand-off to
/spec-implement,/spec-create, or/spec-plan— it never applies the fixes itself.
/spec-visualize
- Read-only on the spec: never edits
spec.yaml,plan.md,context.md, orfeature.status. - If no spec name given, lists all specs and asks the user to choose (uses the only one when there is just one).
- Extracts facts from
spec.yamlandplan.mdinto a JSON data object; the page's JavaScript derives coverage, the requirement ↔ task matrix, progress, and a warnings panel (unknown ACIDs, tasks without ACIDs, orphan sub-requirements). - Copies a self-contained HTML template to
./barespec/specs/<spec-name>/visual.html(overwritten on every run) and fills in only the data. No external dependencies; works offline; follows the system light/dark theme. - Views: header with version, dates, and a generation stamp; requirement tree; traceability matrix; plan with progress; an inferred flow diagram whose steps cite their ACIDs; touched files; non-goals and open questions; notes. Clicking an ACID highlights it across every view; an "Only selected" filter hides everything unrelated to it.
- A spec without
plan.mdstill renders, with a "No plan yet" banner. - Never touches
.gitignore— versioningvisual.htmlis the user's choice. - Reads
hooks.visualize.prebefore entry andhooks.visualize.postafter completion.
Hook system
Hooks inject plain-text instructions before or after any skill's workflow. No shell scripts — the AI executes them as instructions.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/barespec-guide/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alessioscarfone/barespec/barespec-guide)