Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

generate-spec-v2

Skill by cashew-labs

Generate Generate-spec-v2 writes a code-based implementation spec in a specs/ directory for a significant feature, fix, or refactor. It is for developers who want a plan an engineer can implement without repeating the research.

  • Score 76
  • 914 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install generate-spec-v2

Built from the published package, never by AI.

git clone --depth 1 https://github.com/cashew-labs/libretto /tmp/libretto && mkdir -p ~/.claude/skills && cp -r /tmp/libretto/.agents/skills/generate-spec-v2 ~/.claude/skills/generate-spec-v2

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install generate-spec-v2 in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill guides an AI assistant to research a change in the current codebase and write a spec file in specs/. The spec opens with Mermaid flow diagrams, then covers the problem, solution, goals, non-goals, important files, and implementation phases. Each phase is meant to fit one commit and leave the repository working, and includes important types, a call-stack diff, a code-diff preview, and a short checklist.

The skill sets testing rules for the spec. It asks for package-level end-to-end tests that act through public APIs or the live UI, and it bans mocks such as vi.fn and vi.mock. It is aimed at developers who plan feature, fix, or refactor work before implementation.

Written from the project's SKILL.md and checked against it.

What it can do

  • Research the changeFinds entry points, key types, callers, tests, and commands tied to the change before planning.
  • Write an implementation specCreates a structured spec file in the specs/ directory from a short kebab-case name.
  • Mermaid system flowsAdds one or more Mermaid diagrams at the top of the spec showing the main runtime flow.
  • Phased commit-sized planSplits the work into phases that each fit one commit and leave the codebase working.
  • Call-stack and code diff previewsShows how each phase changes the call path and a short preview of the main code edit.
  • Package-level test guidanceSpecifies which end-to-end tests to commit and which smoke checks to run by hand.

Try asking

  • Write a spec in specs/ for adding rate limiting to our API
  • Plan the refactor of the auth module into phased commits with a spec
  • Create an implementation spec for fixing the export bug in the reports page

Good to know

  • Committed tests must be package-level end-to-end tests, with no mocks.
  • Phases before end-to-end testability use smoke checks that are not committed.
  • Code diffs are short previews, not full patches.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/generate-spec-v2/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to generate-spec-v2

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

generate-spec-v2: common questions

Where does the spec file get saved?

The skill creates specs/<name>.md, where the name is a short kebab-case label chosen for the change.

Does it write the full code patch?

No. The source says the code diff is a short preview of the main edit and the implementer fills in the rest.

What testing approach does it require?

It requires package-level end-to-end tests that act and observe like a user, using Vitest fixtures for shared setup and no mocks.

How do I install generate-spec-v2?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is generate-spec-v2 free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is generate-spec-v2 safe to use?

It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to generate-spec-v2?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

generate-spec-v2 Install

Add to stack

Loading.