Archify Diagrams
tt-a1i/archify
Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.
Create a code-based implementation spec in the specs/ directory for a significant feature, fix, or refactor.
The automated check flagged lines worth reading first. See the safety section below.
$ npx skills add cashew-labs/libretto --skill generate-spec-v2 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install cashew-labs/libretto generate-spec-v2 --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/generate-spec-v2 .claude/skills/generate-spec-v2 && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "generate-spec-v2" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2 into .claude/skills/generate-spec-v2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-spec-v2", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2Type this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add cashew-labs/libretto --skill generate-spec-v2 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install cashew-labs/libretto generate-spec-v2 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/generate-spec-v2 .agents/skills/generate-spec-v2 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "generate-spec-v2" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2 into .agents/skills/generate-spec-v2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-spec-v2", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cashew-labs/libretto --skill generate-spec-v2 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install cashew-labs/libretto generate-spec-v2 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/generate-spec-v2 .cursor/skills/generate-spec-v2 && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "generate-spec-v2" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2 into .cursor/skills/generate-spec-v2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-spec-v2", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/cashew-labs/libretto.git --path .agents/skills/generate-spec-v2--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add cashew-labs/libretto --skill generate-spec-v2 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install cashew-labs/libretto generate-spec-v2 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/generate-spec-v2 .gemini/skills/generate-spec-v2 && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "generate-spec-v2" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2 into .gemini/skills/generate-spec-v2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-spec-v2", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install cashew-labs/libretto generate-spec-v2Installs for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add cashew-labs/libretto --skill generate-spec-v2 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/generate-spec-v2 .github/skills/generate-spec-v2 && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "generate-spec-v2" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2 into .github/skills/generate-spec-v2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-spec-v2", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add cashew-labs/libretto --skill generate-spec-v2 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install cashew-labs/libretto generate-spec-v2 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/cashew-labs/libretto.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/generate-spec-v2 .opencode/skills/generate-spec-v2 && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "generate-spec-v2" agent skill from https://github.com/cashew-labs/libretto/tree/main/.agents/skills/generate-spec-v2 into .opencode/skills/generate-spec-v2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "generate-spec-v2", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
generate-spec-v2Create a code-based implementation spec in the specs/ directory for a significant feature, fix, or refactor.
Generate Spec V2 is an agent skill from cashew-labs/libretto. Create a code-based implementation spec in the specs/ directory for a significant feature, fix, or refactor. Use when the user asks to plan, spec, scope, or phase work before implementation and the plan should cover top-level Mermaid flows, important types, per-phase call-stack and code diffs, commit-sized phases, and checks.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).
It sits in Development, covering Diagrams. It works with Mermaid. The repository describes itself as: The AI toolkit for building reliable browser automations. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 41ab782. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
pnpmFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
vitest.devFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Generate Spec V2 loads about 1.9k tokens when it runs. Until then it costs about 86 tokens; SKILL.md has 784 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found patterns that need a careful read before installing.
nd non-goals from the request and code. Do not pause for confirmation when the scope is clear.Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from cashew-labs/libretto at commit 41ab782, republished under its MIT licence (© cashew-labs). 784 words, ~1,895 tokens.
.claude/skills/generate-spec-v2/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Write a spec in specs/ that an engineer can implement without repeating the research. Keep it lean, grounded in the current code, and focused on the requested result.
Use the amount of research the task needs. Do not impose a fixed research process.
Choose a short kebab-case name and create specs/<name>.md. Use this structure:
# <Feature or fix name>
## System flow
Put one or more Mermaid diagrams immediately after the title, before all prose. Show the main runtime flow and changed parts. Label current and proposed paths or use separate diagrams when that is clearer. Keep node text short and use valid Mermaid syntax.
```mermaid
flowchart TD
A[Entry point] --> B[Service]
B --> C[Observable result]
```
## Problem overview
Explain the current problem and why it matters in a few plain sentences.
## Solution overview
Explain the proposed change and its key design choice in a few plain sentences.
## Goals
- State the user-visible or system-level results that must hold.
## Non-goals
- State what this spec leaves out.
## Important files, docs, and websites
- [`path/to/file.ts`](../path/to/file.ts) — State what the implementer will change or learn here.
List only sources that help implement the change.
## Implementation
### Phase 1: <Commit-sized outcome>
Explain the intent and what becomes true after this phase lands in one or two sentences.
#### Important types
```ts
// path/to/types.ts
type ImportantInput = { id: string };
type ImportantResult =
| { status: "ok"; value: Value }
| { status: "error"; reason: FailureReason };
```
#### Call stack diff
Show how this phase changes the current call path. Keep the entry point and enough parents to make ownership clear.
```diff
requestHandler
-└── existingService
- └── dataStore
+└── validateInput
+ └── existingService
+ └── dataStore
```
#### Code diff preview
Show a short unified diff of the main edit. Use real file and symbol names, enough surrounding code to place the change, and `...` for parts the implementer will fill in. Do not try to write the full patch.
```diff
// path/to/handler.ts
async function requestHandler(input: ImportantInput) {
- return existingService(input);
+ const valid = validateInput(input);
+ return existingService(valid);
}
```
- [ ] Make one concrete implementation change, with file and symbol names.
- [ ] Wire the change into its nearest caller or consumer.
- [ ] Smoke the main failure case or boundary by hand. Do not commit this check until the feature is package-level end-to-end testable.
- [ ] Run the exact command that proves the phase works.Important types, Call stack diff, and Code diff preview in every code phase. Keep them inside that phase; do not collect call stacks or code diffs in a global section.Important types. Use the project language.Not applicable — no code path changes only for a true docs, data, or config phase. Do not invent types or call paths.Specs commit only package-level end-to-end tests. Act and observe the way a user of that package would:
pnpm halo-web, and assert visible elements, roles, labels, and text.Do not use mocks such as vi.fn, vi.mock, or hand-rolled fake collaborators. Do not spec internal unit tests, or assert implementation details such as internal file layouts or exact formatting of private outputs. If a package-level end-to-end test is hard to build and none already exist for the area, do not add a lower-level test instead.
Committed tests must read like end-user code or interactions: short, easy to follow, and free of setup noise. Put shared setup and teardown in Vitest fixtures (test.extend), not ad-hoc helpers or manual cleanup. See the Vitest fixtures documentation.
Until the feature is end-to-end testable at the package, each phase still includes a check. Write that check as a smoke step the implementer runs by hand and does not commit:
Once the feature is end-to-end testable, add the fixtures needed for those high-level tests, then commit the tests. Make fixture setup its own phase when it is more than a small add-on; fold it into the phase that first makes the feature testable when it is small:
Confirm that Mermaid diagrams appear only at the top and match the plan; each code phase has key types, an accurate call-stack diff, a code-diff preview, and four or five steps; links and commands are real; committed tests are package-level end-to-end and earlier phases use uncommitted smoke checks; and the full plan covers every goal without pulling in a non-goal.
© cashew-labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/generate-spec-v2 of cashew-labs/libretto.
Open the folder on GitHubat commit 41ab782
Generate Spec V2 next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Generate Spec V2 this skillcashew-labs/libretto | 904 | — | ~1.9k | Automated safety check: Warn | MIT | |
| Archify Diagramstt-a1i/archify | 81k | — | ~2.9k | Automated safety check: Pass | MIT | |
| Diagram Designcathrynlavery/diagram-design | 48k | 1 repos | ~7.6k | Automated safety check: Pass | MIT | |
| Draw.io Diagram StudioAgents365-ai/drawio-skill | 10k | — | ~2.4k | Automated safety check: Notes | MIT | |
| Pretty Mermaid Rendererimxv/Pretty-mermaid-skills | 1.5k | — | ~2k | Automated safety check: Pass | MIT | |
| Archify Diagram BuilderUnclecheng-li/AI_Animation | 1.5k | 2 repos | ~4.1k | Automated safety check: Pass | MIT |
tt-a1i/archify
Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.
cathrynlavery/diagram-design
Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.
Agents365-ai/drawio-skill
Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.
imxv/Pretty-mermaid-skills
Writes and renders Mermaid diagrams as themed SVG, PNG or terminal ASCII and Unicode art with a bundled Node.js CLI that needs no browser.
Unclecheng-li/AI_Animation
Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.
WH-2099/mermaid-skill
Generate Mermaid diagrams from user requirements. An agent skill from WH-2099/mermaid-skill.
cashew-labs/libretto
Lays out a minimal, iteration-first approach to writing system prompts for LLM agents, with model-specific notes for Claude, GPT, Gemini, and Codex.
cashew-labs/libretto
Works through the review comments on a pull request one by one: fetches the threads, makes the fixes, runs type-check, build and lint, pushes, and resolves the threads.
cashew-labs/libretto
Design rules for command-line tools: subcommand-scoped help, actionable success output, debuggable failures, stable output, meaningful exit codes and a --json mode.
cashew-labs/libretto
Drives desktop Electron apps already installed on your machine, such as Slack, Discord or VS Code, by relaunching them with a debugging port and using the Libretto CLI.
cashew-labs/libretto
Resolves Git merge, rebase and cherry-pick conflicts by reading the PRs behind each side, keeping both intents and asking you when they truly clash.
cashew-labs/libretto
Researches the codebase and relevant docs, asks clarifying questions, then writes a spec sheet in specs/ for a significant feature or complex fix.
Works with
Categories
Create a code-based implementation spec in the specs/ directory for a significant feature, fix, or refactor. Generate Spec V2 is an agent skill from cashew-labs/libretto. Create a code-based implementation spec in the specs/ directory for a significant feature, fix, or refactor.
Generate Spec V2 fits situations like: the user asks to plan; phase work before implementation and the plan should cover top-level Mermaid flows; important types; per-phase call-stack and code diffs.
Run `npx skills add cashew-labs/libretto --skill generate-spec-v2 -a claude-code`. Or copy the skill folder (.agents/skills/generate-spec-v2 in cashew-labs/libretto) into .claude/skills/generate-spec-v2 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add cashew-labs/libretto --skill generate-spec-v2 -a codex`. Or copy the skill folder (.agents/skills/generate-spec-v2 in cashew-labs/libretto) into .agents/skills/generate-spec-v2 in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cashew-labs/libretto --skill generate-spec-v2 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-spec-v2, .gemini/skills/generate-spec-v2, .github/skills/generate-spec-v2 and .opencode/skills/generate-spec-v2 in your project.
Going by SKILL.md and its folder, Generate Spec V2 needs the command-line tools its instructions call (pnpm).
SKILL.md names 1 domain. As links in the text: vitest.dev. This is read from the text; nothing was executed.
Our automated static check of SKILL.md flagged 1 warning(s): tells the agent its actions are pre-authorized / not to stop for confirmation. Read the flagged lines before installing; the check is not a guarantee either way.
Generate Spec V2 is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Generate Spec V2: Archify Diagrams (tt-a1i/archify, 81k stars), Diagram Design (cathrynlavery/diagram-design, 48k stars), Draw.io Diagram Studio (Agents365-ai/drawio-skill, 10k stars) and Pretty Mermaid Renderer (imxv/Pretty-mermaid-skills, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
cashew-labs (a GitHub organization) maintains it in cashew-labs/libretto, which has 904 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on August 21, 2026.
Source: cashew-labs/libretto on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.