/vibeflow:prompt-packfrom vibeflow
Generates a self-contained prompt pack from a spec, embedding real code patterns from .vibeflow/ so coding agents follow project conventions without repo context.
Ships in vibeflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
What it does: Reads a spec from .vibeflow/specs/ (or path), builds a single prompt that includes objective, DoD, anti-scope, and real code patterns. Saves to .vibeflow/prompt-packs/<slug>.md. Give that file to the coding agent so it implements without needing the rest of the repo context.
Examples:
prompt-pack .vibeflow/specs/login-flow.md — Generate prompt pack from the login-flow spec.prompt-pack login-flow — Same; agent finds the spec by name.Write the whole pack — opening line, objective, DoD, anti-scope, guidance — in the user's detected language. Code, paths, and technical names stay in English.
Generate a self-contained prompt pack for the spec in the user's current request.
The knowledge base is what the analyze workflow writes: .vibeflow/index.md,
.vibeflow/conventions.md, .vibeflow/decisions.md and .vibeflow/patterns/.
Its signal is .vibeflow/index.md, which only analyze writes: a .vibeflow/
folder that holds only specs/ or prds/ is not a knowledge base. Check
.vibeflow/index.md by its path, because search tools respect .gitignore
and miss it. Before step 0, and before any file is written, settle which
of three states holds:
present: .vibeflow/index.md exists at the root of this checkout.missing here: it does not, this checkout is a linked worktree, and the
main checkout has <main>/.vibeflow/index.md. <main> is the path on the
first worktree <path> line of git worktree list --porcelain; this
checkout is a linked worktree when that path differs from
git rev-parse --show-toplevel run here, both resolved with realpath
(macOS puts /private in front of /var and /tmp).
When that first path is a git folder and not a checkout, as in a worktree of
a submodule (<super>/.git/modules/<x>), <main> is its
core.worktree, from git --git-dir=<that path> config core.worktree,
resolved from that path. Where the host gives no shell,
read .git at the root by its path: a file that says
gitdir: <path>/.git/worktrees/<name> makes this checkout a linked worktree
whose main checkout is <path>, resolved from this checkout's root when it
is relative. The root is the folder that holds .git, found by going up
from the current folder.
A file that says gitdir: <super>/.git/modules/<x>/worktrees/<name> makes
this checkout a linked worktree of a submodule, whose main checkout is the
core.worktree set in <super>/.git/modules/<x>/config, resolved from
<super>/.git/modules/<x>.none: neither here nor in the main checkout, including the main checkout
itself without index.md and a folder outside git.In the missing here state, stop. The reply's first line is
Knowledge base missing in this worktree: <main>/.vibeflow/index.md exists in the main checkout.,
with nothing before it. That line stays in English in any output language.
Then comes, in a code block, the command that brings the base into this
worktree, run from its root. It lists only the items the main checkout
has, in the order index.md, conventions.md, decisions.md, patterns.
Before writing it, check each of the four by its path in the main checkout
and leave out only the ones that do not exist. Each path goes in single
quotes (a single quote inside a path becomes '\''), as in:
mkdir -p .vibeflow && cp -RL '<main>/.vibeflow/index.md' '<main>/.vibeflow/conventions.md' '<main>/.vibeflow/decisions.md' '<main>/.vibeflow/patterns' .vibeflow/
The reply ends saying that this command goes on without the base only when
the person says so in the conversation; with that word, it runs as in the
none state.
Suggested budget line in
.vibeflow/index.md, else ≤6 files), and you stop without generating the
pack — tell the user it exceeds limits (N checks / N files) and to run
gen-spec again to split it first..vibeflow/specs/. No spec exists → generate one in the
gen-spec format, save it, then continue..vibeflow/conventions.md, plus the pattern docs the spec lists under
Applicable Patterns. If it lists none, resolve them: read the
## Pattern Registry block in index.md (between
<!-- vibeflow:patterns:start/end --> markers) and cross-reference its tags
and modules against the spec's scope — top 3–5 matches; with no registry,
infer which are relevant.
The spec's Documents to read: line counts these documents; in a spec
without that line, the list is found as before, and only the list: its
documents are read whole all the same. Read each of these documents whole, one file
per read: open it with your file-reading tool, without an offset or a limit,
and never several files in one shell command. When a read comes back cut (a
preview, a notice that the output was saved to a file, a line or size
limit), keep reading from where it stopped to the last line. A list of
headings or a keyword search is not a read.
In the none state, skip this step: warn that the pack improves after
analyze, and section 4 carries the conventions the codebase files of
step 3 show.You are only seeing this prompt; there is no context outside it.
From the spec. Non-negotiable.
What not to do, from the spec.
Max files to change — the budget resolved in step 0.
What decides whether the pack works. Copy the relevant sections of
.vibeflow/patterns/*.md and .vibeflow/conventions.md in full, with their
real code examples — the receiving agent cannot open files you reference.
Format:
## Patterns to Follow
### <Pattern Name>
<description>
<real code example from this project showing the pattern>
### Coding Conventions
<relevant conventions for this task>
Only when the spec lists References. Same self-containment rule as the patterns: embed the mockup, the test file, or the snippet the implementation has to match, in full. Too large to embed → give the verified path and say what the agent should take from it. A reference that is neither embedded nor reachable by the receiving agent doesn't belong in the pack.
Real file paths from the codebase, with the code snippets that give them context.
Architectural direction and constraints to respect, not step-by-step instructions. The pack carries this contract, adapted to the task:
Deliver what the spec asks, at the scope it defines. Make routine judgment calls yourself; check in only when different readings would lead to materially different work. If the spec seems mistaken, say so in a sentence and continue as specified. Finish the whole task, and stop short of changes clearly beyond it. Match what you write — code, docs, comments — to what the task needs, without filler or boilerplate.
Required. Detect the runner from .vibeflow/index.md or the project's config
files and include the command, plus any the spec lists. None detected → "No
test runner detected. Add manual tests to validate." Format:
## How to validate
1. Run tests: <detected command>
2. Verify manually: [description]
Which docs need changes after implementation.
Flag any path you could not verify with <!-- TODO: verify this path -->.
Save the prompt pack to .vibeflow/prompt-packs/<feature-slug>.md (create the
directory if it doesn't exist).
The reply ends with the read receipt, its labels in English in any language; only the next-step suggestion below comes after it:
Read in full: <n> of <m>
- <path> (<lines> lines)
Not read whole: none
One - <path> (<lines> lines) line per document read whole, its path relative
to the project root. When a document was not read whole, Not read whole:
stands alone and each such document follows on its own line, - <path>: <why>,
and the reply says so. The receipt is what this session actually read: a
document not read to its last line goes under Not read whole, and a document
read to its last line over more than one read, each read starting from where the previous read stopped, counts as read whole.
After saving, suggest: "Prompt pack saved. Hand it off to the coding agent.
After implementation, run audit with the spec to verify."
If this command is modified, update MANUAL.md to reflect the changes.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pe-menezes/vibeflow --plugin vibeflow10 skills in this plugin
/analyzeDeep-analyzes the current codebase to discover stack, architecture, patterns, conventions, and pitfalls. Creates curated documentation in .vibeflow/ that persists and can be committed to git. Supports incremental updates, scoped deep-dives, interactive review, and satellite repo analysis. Use when setting up a project, after significant changes, or to deep-dive into a specific module.
/auditAudits recent work against its Definition of Done and project patterns, from a review package of the diff. Runs the test suite, compares code against the spec, tests scenarios, sabotages risk code, and reports PASS / PARTIAL / FAIL with a severity and a cause on every finding. Also runs the Critical Gate — a safety scan of the diff for destructive or dangerous operations. Generates an incremental prompt pack for any gaps found. With --reaudit, checks a fix round against its own diff; with --consolidate-hotfixes, reclassifies hotfix trace docs against the current code. Use after implementation to verify quality before shipping.
/discoverRuns an interactive discovery dialogue (1–5 rounds) to turn a vague idea into a clear, actionable PRD. Challenges assumptions, cuts scope, and forces decisions. Saves the PRD to .vibeflow/prds/. Use before gen-spec when the idea is not yet well-defined or requirements are unclear.
/gen-specGenerates a technical spec with objective, Definition of Done (3–7 binary checks), scope, anti-scope, technical decisions, and applicable patterns. Grounded in the project's real patterns from .vibeflow/. Auto-splits specs that exceed budget or DoD limits. Use when requirements are clear and you're ready to define the implementation contract.
/hotfixFixes an observed defect with reproducible evidence in one call: writes a short trace doc before touching code, implements the fix, and backs it with a regression test written before the fix. Production incidents are the motivating case, not a gate. When blocked, it halts by name and saves the doc for a later call to resume. Use when a defect has concrete evidence and you need the fix with its paper trail now — planned small tasks belong to quick, spec'd features to implement.
/implementImplements a feature from its spec following all guardrails: budget, DoD, anti-scope, and pattern compliance. Runs a 9-phase pipeline, phases 0 to 8 (find spec → extract guardrails → load patterns → plan → implement → test → refine → self-verify DoD → finish). Use after gen-spec when you're ready to code. The agent has filesystem access and acts as Coding Agent.
2 plugins ship this exact skill · first indexed Nov 15, 2026
Other plugins' skills for the same job