alessioscarfone/barespec/barespec-guide

Claude Code and agent skill by alessioscarfone/barespec

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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-guide

Semi-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.

context → spec → plan → implement → repeat
SkillCommandPurpose
Project Context/init-contextCapture the project foundation; update when architecture changes
Feature Spec/spec-createDefine a requirement contract (spec.yaml)
Implementation Plan/spec-planTurn a spec into an ordered, testable task plan (plan.md)
Implement/spec-implementExecute the task plan for a spec
Code Review/spec-code-reviewTwo-axis, read-only review of a diff against Coding Standards and the Spec
Visualize/spec-visualizeRender a spec and its plan as an interactive, offline HTML page for human review
Hook Config/init-configConfigure 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

1. /init-context — Create or update context.md (once; re-run on stack changes)
↓
2. /spec-create <feature> — Create spec.yaml contract (status: draft)
↓
3. /spec-plan <spec> — Generate plan.md from the spec (status: draft → ready)
↓
4. /spec-implement <spec> — Execute plan.md tasks (resume-safe across sessions)
↓
spec status → done → dependent specs unlocked
↓
Repeat from step 2 for the next feature

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

./barespec/ # Root folder (default: barespec/)
├── context.md # Project foundation — written by init-context
├── barespec.config.yml # Hook configuration — written by init-config
└── specs/ # Specs folder (default: specs/)
└── <spec-name>/ # One folder per feature
├── spec.yaml # Requirement contract (acai feature.yaml format)
├── plan.md # Ordered implementation task checklist
└── visual.html # Optional derived review page — written by spec-visualize

`spec.yaml` structure (the file begins with feature and may contain components and constraints):

yaml
feature:
name: my-feature # dash-case feature name
version: 0.1.0 # optional, SemVer
description: >-
What the feature does, who benefits, why it matters.
prerequisites: [] # optional external dependencies
# barespec tracking extension:
status: draft # draft | ready | in-progress | done
requires: [] # spec names that must be done first
created: YYYY-MM-DD
updated: YYYY-MM-DD
components: # functional requirements, grouped by UPPER_SNAKE keys
LOGIN:
description: ...
requirements:
1: Observable, testable behavior
1-1: Optional sub-requirement (max 1 level)
constraints: # cross-cutting / non-functional requirements (optional)
AUTH:
requirements:
1: ...
# barespec extensions: non_goals, technical_notes, development_notes
# open_questions is exceptional — deferred external blockers only, normally absent

A requirement is referenced by its ACID: <feature-name>.<GROUP_KEY>.<ID> (e.g. my-feature.LOGIN.1-1).


Spec lifecycle

Status values
StatusSet byMeaning
draftspec-createSpec contract written, no implementation plan yet
readyspec-planPlan generated; spec is ready to implement
in-progressspec-implementImplementation has started
donespec-implementImplementation is complete
Dependency rules
  • requires: lists spec names that must reach done before 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 requires entries cannot be implemented even if status is ready.
  • When a spec reaches done, spec-implement removes it from the requires: field of every spec that listed it and re-evaluates which specs are now unblocked.
Task format (in plan.md)
- [ ] 1. Top-level task _(LOGIN.1)_
- [ ] 1.1 Sub-task _(LOGIN.1)_
- [x] 2. Completed task _(AUTH.2)_
- [ ]* 3. Optional task _(EXPORT.3)_ ← nice-to-have, not blocking

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.md exists → 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.md once the user confirms the decision summary.
  • Update: reads current file, applies only confirmed changes, refreshes Last updated.
  • Reads hooks.context.pre before entry and hooks.context.post after completion.
/spec-create
  • Reads context.md for 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, Explore subagent 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 in components / constraints / non_goals / technical_notes / prerequisites / requires. Writes spec.yaml and sets feature.status: draft. Hands off to /spec-plan.
  • Update: reopens only the branches the change touches, edits spec.yaml requirements, refreshes feature.updated, and resets feature.status: draft so the plan can be regenerated. Never touches plan.md.
  • Reads hooks.spec.pre before entry and hooks.spec.post after completion.
/spec-plan
  • Reads context.md and the selected spec's spec.yaml. If no spec name given, lists draft specs (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 to feature.status: ready.
  • Update: regenerates or appends tasks to an existing plan.md (preserving history when appending), then re-confirms status: ready.
  • Never modifies the requirements in spec.yaml — only its feature.status and feature.updated fields.
  • Reads hooks.plan.pre before entry and hooks.plan.post after completion.
/spec-implement
  • Reads context.md for architecture context. If no spec name given, lists ready (unblocked) and in-progress specs and asks the user to choose.
  • Execute: sets status to in-progress; for each unchecked task: announces it, implements the code, marks - [ ] → - [x], updates updated date. Pauses on unclear tasks or discovered issues.
  • Resume: when status is in-progress, finds first unchecked task, shows progress (N/M done), asks for confirmation.
  • Completion: marks satisfied requirements, sets feature.status: done, removes the spec from requires: of dependent specs (unlocking them), fills development_notes in spec.yaml (files changed, follow-ups), shows a summary.
  • Reads hooks.implement.pre before entry and hooks.implement.post after completion.
/init-config
  • If ./barespec/barespec.config.yml exists → 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.md checkboxes, or feature.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/done spec → 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.yaml requirements + plan.md tasks) — 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, or feature.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.yaml and plan.md into 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.md still renders, with a "No plan yet" banner.
  • Never touches .gitignore — versioning visual.html is the user's choice.
  • Reads hooks.visualize.pre before entry and hooks.visualize.post after 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alessioscarfone/barespec/barespec-guide/badge)](https://verified-skill.com/skills/alessioscarfone/barespec/barespec-guide)

Something wrong with this skill or its page? Tell us.