alessioscarfone/barespec/spec-visualize
Claude Code and agent skill by alessioscarfone/barespec
- community
Checking that the SKILL.md file is still in the repository.
Generate a self-contained, interactive HTML view of a barespec spec and its plan — requirement tree, requirement-to-task traceability, plan progress, an inferred flow diagram, touched files, non-goals and notes — so a human can review a spec without reading raw YAML and Markdown. Use when asked to visualise, render, preview, or review a spec or plan visually, or to "open the spec in a browser". Do not use for writing or editing specs (use spec-create), generating plans (use spec-plan), implementing code, or reviewing diffs (use spec-code-review).
Install
npx vskill@latest install alessioscarfone/barespec/spec-visualizeSKILL.md
The same SKILL.md was published earlier as alessioscarfone/barespec/spec-visualize.
Render ./barespec/specs/<spec-name>/visual.html: one offline HTML file, no external dependencies, that shows a spec and its plan for human review.
The work is split on purpose. The agent extracts facts from spec.yaml and plan.md into a JSON object; the page's own JavaScript derives coverage, progress, and inconsistencies from it. The agent never counts, and never draws — the template does both, identically every time.
Note: This skill is read-only on the spec. It never modifiesspec.yaml,plan.md, orcontext.md, and never changesfeature.status. Its only output isvisual.html.
Hook execution
Check ./barespec/barespec.config.yml for hooks.visualize.pre and hooks.visualize.post entries. Run pre-hooks before the Entry point; run post-hooks after the full workflow completes. See references/hooks.md for the full execution rules.
Entry point
- Determine which spec to visualise:
1.1 If a spec name is provided in the input (e.g., /spec-visualize user-authentication), use it. 1.2 If no name is provided, scan spec folders in ./barespec/specs/ and read each spec.yaml feature block.
- Exactly one spec → use it.
- Several → list them all and ask the user to choose:
> <spec-name> → status <status>
- None → inform the user:
> "No specs found in ./barespec/specs/. Use /spec-create to create one first."
- Once a spec is selected, output:
> "Selected spec: <spec-name>"
- Read
./barespec/specs/<spec-name>/spec.yamlin full, andplan.mdif it exists. A missing plan is not an error — the page shows a "No plan yet" banner.
Workflow
1. Extract the data
Build the JSON object defined in references/data-contract.md. Follow its rules strictly:
- Copy facts verbatim; never add counts, percentages, or coverage flags.
- Copy inconsistencies as they are — the page reports them.
- Set
"plan": nullwhenplan.mdis missing. - Infer the flow only as that file describes: every node cites its ACIDs, and
"flow": nullwhen no flow is evident. - Set
generatedAtto the current time.
2. Write the file
- Copy
assets/visual.template.htmlunchanged to./barespec/specs/<spec-name>/visual.html, overwriting any previous version. Prefer a file copy (e.g.cp) over retyping the template. - Serialise the JSON object, replace every
<with\u003c, and substitute the result for the single__BARESPEC_DATA__placeholder in the copied file. Change nothing else in the file.
3. Report
Output the summary, then run post-hooks:
Do not open the browser yourself unless a hook asks for it.
Output rules
- Asset path resolution: Any
assets/,scripts/, orreferences/paths in this skill are relative to the directory where this SKILL.md is installed — not the user's workspace. Derive the full absolute path from the path where this skill was loaded from. - One
visual.htmlper spec, alongsidespec.yaml. Every run regenerates it from scratch. - Never edit the template's HTML, CSS, or JavaScript in the output — only the data placeholder.
- Never add
visual.htmlto.gitignoreor commit it — whether it is versioned is the user's choice. - Never modify
spec.yaml,plan.md, orcontext.md.
Error handling
- Spec not found: list available specs and ask the user to choose, or tell them to run
/spec-createfirst. - `spec.yaml` has no requirements: generate the file anyway — the page states the spec has no requirements — and point the user to
/spec-create. - `plan.md` is missing: generate with
"plan": nulland point the user to/spec-plan <spec-name>. - Malformed `spec.yaml` or `plan.md` that can't be read reliably: report the parse problem with the offending location and stop. Don't guess at the content.
- Spec folder not writable: report the error; don't write the file elsewhere.
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/spec-visualize/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/spec-visualize)