/vibeflow:analyzefrom vibeflow
Scans codebase to discover stack, architecture, patterns, and conventions. Generates curated documentation in .vibeflow/ that persists across sessions. Supports incremental updates, scoped deep-dives, interactive review, and satellite repo analysis.
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: Scans the codebase and generates (or updates) .vibeflow/: index, conventions, and one pattern doc per significant pattern. Use once for project setup, then after big changes or to deep-dive into a module.
Examples:
analyze — First run or incremental (only re-analyzes what changed since last run).analyze --fresh — Rebuild everything from scratch, except what teach --from imported.analyze --scope src/app — Deep-dive into src/app only; requires .vibeflow/ to already exist. Enriches pattern docs with examples from that module.analyze --interactive — Run analysis with interactive review: validate patterns, remove false positives, add tribal knowledge before saving.analyze --fresh --interactive — Full rebuild with interactive review.analyze --satellite https://github.com/org/design-system — Analyze a dependency repo, keep only patterns your code uses, merge into .vibeflow/patterns/satellite-<name>/.analyze --measure — Also run the full-suite and affected-tests commands once each and record their time; without it they are recorded but not run, because a project's suite can start containers, call services or take many minutes.Detect the language of the user's conversation context.
Write ALL output in that same language.
Technical terms in English are acceptable regardless of the detected language.
Section names in generated .vibeflow/ files may be in English (they are technical),
but all descriptive text, analyses, observations, and final user reports should be
in the detected language.
Use WebSearch and WebFetch only when local context (.vibeflow/, codebase,
git history) is insufficient — an unfamiliar framework or API. Local first.
Perform a deep, adaptive analysis of this codebase. The goal is curated pattern documentation that every future spec, prompt pack, and audit uses to keep implementations on the project's real conventions.
Read .vibeflow/index.md directly by its path. Search, grep, and glob respect
.gitignore, so they miss the directory and report it as absent.
Then read any flags in the user's current request (--fresh, --scope <path>, --interactive,
--satellite <url>, --measure) and check whether git is available here.
Decision tree:
--satellite <url> → satellite mode (below); phases 1–5 don't run. Without an
existing .vibeflow/index.md, stop: "Run analyze first to
establish project context, then use --satellite to analyze a dependency repo."--scope <path> → scoped mode (below); phases 1–5 don't run. Without an
existing .vibeflow/index.md, stop: "Run analyze first to establish project
context, then use --scope to deep-dive into specific modules.".vibeflow/, or --fresh present → full analysis, phases 1–5..vibeflow/ exists and no --fresh → incremental analysis.--interactive composes with every mode: it adds Phase 3.5 before saving and
changes nothing else about which phases run.--measure composes with every mode that writes the Tests and Pitfalls block:
it makes the block due even when nothing else changed, so the commands are
measured on an up-to-date project too (the block-only path below), and it
runs the two test commands once (Tests and Pitfalls, in Phase 4).Incremental mode. Read Analyzed: <date> from index.md, then
git log --since="<date> 00:00" --name-only --pretty=format:"" to find what
changed. The explicit time matters: with a date alone, git counts from the
current time of day on that date, so commits made earlier that day would be
missed.
Filter out tests, docs, and config that doesn't affect source structure
(tests by the project's own naming, such as *.test.*, *.spec.*, *_test.go, test_*.py, *Test.java or a Tests/ folder; docs/, README.md, .env.*), then map what's left to
modules — those are the affected structural units. The Tests and Pitfalls block
is due when index.md lacks it (an index written before the block existed) or
when a test file, the CI configuration or the test runner's configuration
changed since , even when those changes need no pattern reanalysis, or
when the user passed --measure.
Nothing changed and the block is not due → report "No changes detected since
. .vibeflow/ is up to date." and stop. The block is due but nothing else
changed → regenerate only the block and move Analyzed: to today's date
(Phase 4), run the disk check against the index, report "Tests and Pitfalls
refreshed; no structural changes since ." with the result of the check,
and stop. With --measure, the report also says which commands were
measured, with their times, or that the project has no test runner and nothing
was measured.
No git → warn "Git not available. Falling back to full analysis." and run
phases 1–5. Otherwise report "Incremental mode: X affected modules: [list]" and
continue.
Through phases 1–4, incremental means: redo only what the affected modules
touch, reuse what index.md already records for everything else, and preserve
every byte outside the vibeflow:auto markers. Phases 3 and 4 add file-specific
preservation rules where the generic one isn't enough.
Imported sources. Every mode that writes — incremental, --fresh,
--scope and --satellite — leaves patterns/external-*/ and the
## Imported Sources block of index.md (between
<!-- vibeflow:sources:start --> and <!-- vibeflow:sources:end -->) exactly
as they are: they belong to teach --from, and every run carries them over
byte for byte. --fresh rebuilds everything else from scratch. An imported
doc never keeps a local pattern doc from being written: the imported rule is
the norm, and the local doc is the example of how the code does it today.
Read the project root — manifests, the top 2–3 directory levels, README, and any architecture docs — and detect the knowledge sources explicitly:
.cursorrules (project-level rules).cursor/rules/*.mdc (domain-specific rules)CLAUDE.md (project instructions).clinerules (Cline AI rules).github/copilot-instructions.md (GitHub Copilot rules)/docs/, ARCHITECTURE.md, ADRs/ (if present)Skip dependency and build directories. Determine the stack (languages, frameworks, runtime, DB), the project type (monorepo, single app, library, CLI, API, mobile), and the major structural units — which vary by project type: modules, packages, routes, features, crates, services. Report which knowledge sources you found.
Let the code tell you what it is: no assumed monorepo, framework, or layout.
Domain classification. Classify the project as mobile (for example Android, iOS, KMP, Flutter, React Native), web-frontend (for example React, Vue, Angular, Svelte, Next.js, Nuxt, Blazor), api-backend (REST, GraphQL, gRPC, microservices, in any language), library, cli, or other. The domain activates a pattern priority list used in Phases 2 and 3:
| Domain | Required patterns | Also look for |
|---|---|---|
| Mobile | design-system/UI-components, screen/feature-composition, navigation | state-management, networking/API-layer, DI, analytics, feature-flags, i18n |
| Web frontend | design-system/component-library, page/route-composition, state-management | API-layer, auth, i18n |
| API/backend | route/endpoint-definition, data-access/repository, auth/middleware | error-handling, DB-migrations, background-jobs |
| Library / CLI / other | none — use the general heuristics | — |
Read every knowledge source found in Phase 1 and extract the concrete conventions (naming, patterns, business rules, style) and the modules or subsystems they mention. Build an internal map — not an output file — with each convention attributed to its source ("via .cursorrules", "via docs/ARCHITECTURE.md") and the list of modules the rules name. The map guides sampling in Phase 2 and the deep-dive scope in Phase 3.
Rules are privileged input, not absolute truth: validate them against the code
and flag conflicts as "Conflict: .cursorrules says X, but code does Y". Keep the
sources distinct — .cursorrules and CLAUDE.md are project-level,
.cursor/rules/*.mdc is domain-specific, /docs/ is reference.
Detect modules and domains automatically: by directory, by file prefix
(for example fin_*.py, task_*.js or billing_*.go), and by what the Phase 1.5 rules map mentions.
Sampling scale (by estimated total source files):
| Source files | Min files to sample | Per module |
|---|---|---|
| ≤50 | 8 | ≥2 |
| 51–200 | 12 | ≥2 |
| 201–1000 | 20 | ≥2 |
| 1001–5000 | 30 | ≥3 |
| 5001–20000 | 40 | ≥3 |
| 20000+ | 50–60 | ≥3 |
Prioritize the largest files by line count, the most imported, and the ones the
rules mention. Above 100 source files, document what you did not cover in the
"Known Gaps" section of index.md.
Cross-module sampling (1000+ source files): instead of many files from few modules, read the same layer across 3–4 features — the main screen composable of four product features, say. Repetition reveals the real pattern; a single feature reveals its exceptions.
Mandatory pattern verification. After sampling, check the required patterns from the Phase 1 domain. For each one not yet covered, search for files in that domain and sample 2–3 more specifically for it. If it is genuinely absent, document it as "Not found" rather than omitting it silently.
Document, for every sampled file: naming conventions (files, functions,
variables, types, components), file and directory organization, import/export
style, error handling, test patterns (location, naming, framework, coverage),
state management, typing (strict or loose, and loose types such as any in TypeScript, interface{} in Go or dynamic in C#), and logging.
Look for repeated patterns, not one-off occurrences.
The phase that decides the quality of everything downstream. For each significant pattern: read 3–5 real usages, extract the pattern as it actually is, note variations and edge cases, and separate the right way from the deviations.
Expand scope with the rules map. Consider modules from the Phase 1.5 map, not only what Phase 2 sampled. A module named in the rules but missed by sampling gets read, then judged on whether it deserves a pattern doc.
Cross-module rule. A pattern doc for a horizontal layer (UI composition, data access, navigation, design-system usage, state management) needs examples from at least 3 different features — otherwise it documents an outlier.
Incremental preservation. For docs being updated, keep everything outside
the <!-- vibeflow:auto:start/end --> markers, including the YAML frontmatter.
If the doc has frontmatter and the content inside the markers did not change,
leave the frontmatter untouched — the dev may have edited tags via
teach. If the auto content did change, regenerate the frontmatter
from it. Legacy docs with no markers get rewritten with markers and frontmatter
added; new patterns are created with both. That rule is for local docs: a doc in
patterns/external-*/ has no markers by design and stays as it is.
What counts as significant depends on the project: API/route definitions, component architecture, data access and repositories, navigation, design-system usage and composition, DI and services, configuration and environment handling, build and deploy, auth flows, middleware and plugins, CLI commands, event and message handling.
One markdown file per pattern in .vibeflow/patterns/, named descriptively:
api-routes.md, component-architecture.md, data-access.md, auth-flow.md,
cli-commands.md. Each follows this structure:
---
tags: [tag1, tag2, tag3]
modules: [src/path1/, src/path2/]
applies_to: [artifact-type1, artifact-type2]
confidence: inferred
---
# Pattern: <Name>
<!-- vibeflow:auto:start -->
## What
1-2 sentence description of what this pattern is.
## Where
Which parts of the codebase use it.
## The Pattern
Show the REAL pattern with actual code examples from this repo.
Include 2-3 concrete examples so a coding agent can replicate it exactly.
## Rules
- Specific rules this pattern follows
- Naming conventions specific to this pattern
- What to do / what NOT to do
## Examples from this codebase
File: <real path>
<actual code snippet showing the pattern correctly>
File: <real path>
<another example, ideally showing a variation>
<!-- vibeflow:auto:end -->
## Anti-patterns (if found)
Things that exist in the codebase that BREAK this pattern.
Mark them so future work doesn't replicate mistakes.
YAML frontmatter rules:
# Pattern: heading and outside the <!-- vibeflow:auto --> markers.tags — 3-7 lowercase strings for the domain and concepts the pattern covers, derived from its name, its "What", and the key concepts in "The Pattern". Specific domain tags (auth, middleware, api-routes, state-management, navigation, design-system), never generic ones like code or pattern.modules — directory paths relative to the repo root, ending in /, taken from "Where" and from the file paths under "Examples from this codebase".applies_to — the artifact types the pattern governs, as generic names: components, routes, handlers, middleware, hooks, models, services, screens, tests, configs, migrations, commands, interceptors, guards, resolvers, controllers.confidence — inferred on creation (found by automated analysis), validated once a human confirms it via --interactive or teach.Marker placement rule: the markers wrap ## What, ## Where,
## The Pattern, ## Rules, and ## Examples from this codebase.
## Anti-patterns stays outside — it's where manual additions and evolution
land. The YAML frontmatter also stays outside, so tag edits made via
teach survive incremental updates.
Include real code snippets from real files — not pseudocode, not "something like this". Actual code is what makes a pattern doc actionable for a coding agent.
## Rationale section: when a rationale is provided (via --interactive
Phase 3.5 or teach), it goes between <!-- vibeflow:auto:end -->
and ## Anti-patterns — outside the markers, so it survives. Create it only
when there is a rationale; no empty placeholders.
Runs only with --interactive; otherwise go straight to Phase 4. Under
incremental, present only patterns that are new or changed — one already marked
confidence: validated and untouched in this run stays validated.
Present the patterns compactly:
## Patterns found (N):
1. **<Name>** — <1-line description> (modules: <paths>)
2. **<Name>** — <1-line description> (modules: <paths>)
...
Then ask the user three things: which of these are false positives — present in the code but not conventions the team follows; which conventions the team does follow that the analysis missed; and, for the most important ones, why the team adopted them. The third is optional and enriches the docs the most.
Incorporate the answers:
confidence: deprecated and explain in ## Anti-patterns.confidence: validated, note source: team-reported in ## What, and mark examples with <!-- TODO: find code examples -->.## Rationale section, outside the markers, before ## Anti-patterns.confidence: validated.Incremental specifics, on top of the general rule in Phase 0:
Analyzed: <date> to today; update Structural Units and Key Files only where they changed; preserve any manually added Known Issues; the Tests and Pitfalls block, inside its vibeflow:auto markers, is regenerated whenever this phase runs and added when an older index.md lacks it.<!-- vibeflow:auto:start/end --> markers. A legacy file without markers gets rewritten with them added..vibeflow/ structure.vibeflow/
├── index.md # Overview: stack, structure, Pattern Registry, imported sources
├── conventions.md # Coding conventions (naming, style, organization)
├── patterns/
│ └── <whatever>.md # One file per discovered pattern (varies by repo)
└── decisions.md # Empty for now, grows with use
# Project: <name>
> Analyzed: <date>
> Stack: <concise summary>
> Type: <project type>
> Suggested budget: ≤ N files per task
## Structure
<brief description of how the project is organized>
## Structural Units
<list the major units — modules, packages, routes, features, etc.>
<1-line description each>
## Pattern Registry
<!-- vibeflow:patterns:start -->
patterns:
- file: patterns/<name>.md
tags: [tag1, tag2, tag3]
modules: [src/path1/, src/path2/]
- file: patterns/<name>.md
tags: [tag4, tag5]
modules: [src/path3/]
<!-- vibeflow:patterns:end -->
## Imported Sources
<!-- vibeflow:sources:start -->
<one line per source, written only by `teach --from`; carried over as is, and the section left out when there is none>
<!-- vibeflow:sources:end -->
## Pattern Docs Available
<list each local doc, `.vibeflow/patterns/*.md` at the root and `.vibeflow/patterns/satellite-*/*.md`, with 1-line description; never `patterns/external-*/`>
## Key Files
<10-15 most critical files with 1-line descriptions>
## Dependencies (critical only)
<critical deps with 1-line rationale>
## Known Issues / Tech Debt
<bullet list if anything was found>
<!-- vibeflow:auto:start -->
## Tests
- Full suite: `<command>` — <measured time> on <date> | unmeasured
- Affected only: `<command scoped to a file, package or tag>` — <measured time> on <date> | unmeasured
## Pitfalls
- <a mistake that already cost this project time> — source: <decisions.md entry | CI configuration path | commit sha>
<!-- vibeflow:auto:end -->
Pattern Registry generation. After all pattern docs are written, read the
YAML frontmatter (tags, modules) of the local docs, the patterns/*.md at
the root and patterns/satellite-*/*.md, and build the registry block between the
<!-- vibeflow:patterns:start/end --> markers, keeping the human-readable
"Pattern Docs Available" list below it with links and 1-line descriptions of the
same docs. Only the docs in patterns/external-*/ stay out of both: they reach
gen-spec through ## Imported Sources and their own registry.md.
The registry is always regenerated from the frontmatters and never edited by
hand — that is what keeps it in sync.
Tests and Pitfalls. These two sections tell the implementer and the audit how to prove a change cheaply and what has already gone wrong here, so they stay factual.
--measure, run each one once
and record the measured time and the date. Without it, keep the measured time
and date already recorded; a command never measured is marked unmeasured.
A recorded time holds only for the command it was measured with: when that
command changes (another runner or script), drop its old time and mark it
unmeasured until the next run with --measure. No test runner → say so in one line.decisions.md, a line of the CI configuration that exists
to catch it, or a reverted or fix commit (git log -i --grep='^revert' --grep='^fix'). An item without a source stays out; prohibitions belong to
the Don'ts in conventions.md. No sourced pitfall → None found.Budget calculation. From the source files counted in Phase 2, suggest ~2-3%, clamped between 4 and 12:
| Source files | Budget |
|---|---|
| ≤50 | ≤ 4 |
| 51–150 | ≤ 6 |
| 151–500 | ≤ 8 |
| 501–2000 | ≤ 10 |
| 2000+ | ≤ 12 |
Write it as > Suggested budget: ≤ N files per task in the index.md header —
gen-spec and prompt-pack read it as their default budget.
Dense, specific, actionable: concrete rules with examples, not vague guidelines. A coding agent should read this and write code that fits in perfectly.
Wrap the auto-generated convention sections in <!-- vibeflow:auto:start --> /
<!-- vibeflow:auto:end -->, so team updates and discovered edge cases can live
outside the markers and survive incremental runs.
Conventions extracted in Phase 1.5 carry their source: "(via .cursorrules)", "(via .cursor/rules/design-system.mdc)", "(via docs/ARCHITECTURE.md)". Where a rule contradicts the code, say so: "Conflict: .cursorrules says X, but the code does Y".
Don'ts section. conventions.md needs a ## Don'ts section with the explicit
prohibitions found during analysis — as important as the prescriptive rules,
since coding agents need to know what not to do. It goes inside the markers,
after the prescriptive sections. Mine it from the anti-patterns in pattern docs,
explicit prohibitions in the rules sources, code that is clearly a mistake or
legacy, and the known pitfalls of the detected stack (for example any abuse in TypeScript, an ignored error value in Go, !! in Kotlin, hardcoded strings in an i18n project, mutable global state).
Format is a bullet list of concrete prohibitions with a brief rationale. The example below comes from a TypeScript project; each bullet you write names a prohibition found in this project, in its own stack:
## Don'ts
- Do NOT use `any` in TypeScript — use `unknown` + type narrowing
- Do NOT hardcode user-facing strings — all copy goes through i18n files
- Do NOT import from internal modules of a dependency (e.g., `lib/src/internal`)
- Do NOT add new dependencies without explicit justification in the spec
Every don't is traceable to something observed in this codebase's code, rules, or pattern anti-patterns — not a generic best practice.
Never modified by analyze, in any mode — it belongs to the architect agent and manual curation. On a fresh run, create it only if absent:
# Decision Log
> Newest first. Updated automatically by the architect agent.
Run this phase only when the host exposes an architect persistent-memory
directory, as Claude Code does for the architect sub-agent. Create or update
MEMORY.md inside that exact host-provided directory. Never create it at the
project root or guess a memory path. On Codex or any host that does not expose
an architect memory directory, skip this phase.
When the file is available, save this compact index to it:
# Vibeflow Index
> Project: <name> | Stack: <stack> | Analyzed: <date>
## .vibeflow/ docs available
- index.md — project overview and structure
- conventions.md — coding conventions
- patterns/<name>.md — <1-line desc>
- patterns/<name>.md — <1-line desc>
- ... (list all)
- decisions.md — architectural decision log
## Quick Reference
<top 5 most important conventions/rules to remember>
## Instructions
Before generating ANY spec, prompt pack, or audit:
1. Read .vibeflow/index.md for project context
2. Read .vibeflow/conventions.md for coding standards
3. Read the relevant pattern docs from .vibeflow/patterns/
4. Embed applicable patterns in your output
When you learn something new about this project, update:
- .vibeflow/decisions.md for architectural decisions
- .vibeflow/conventions.md if new conventions are discovered
- .vibeflow/patterns/*.md if patterns evolve
- This MEMORY.md index if new docs are added
Match the length of the generated docs to what the project needs: cover the substance, without filler sections, redundant summaries, or boilerplate.
Disk check against the index. It runs last, once index.md is final:
after Phase 5 in a full or incremental run, right after the block in the
incremental path that refreshes only Tests and Pitfalls, at the end of Step 5
in --scope, and at the end of Step 5 in --satellite. Its result goes in
the report. List the disk with find .vibeflow/patterns -name '*.md' or ls
through Bash, never with Glob or Grep: both respect .gitignore, find an
ignored .vibeflow/ empty, and the check would then pass on nothing. Compare
the disk with the index: every patterns/*.md at the root and every
patterns/satellite-*/*.md has an entry in the Pattern Registry; every
patterns/external-*/ folder has a line in the vibeflow:sources block; and
every .md in it except registry.md has an entry in that source's
registry. The first check also catches a local doc that an earlier run created
and never indexed. Report each divergence with the file, without fixing what
belongs to teach: the imported folders, their registries and the sources
block change only through teach --from. No divergence → "Disk check: index
matches the disk."
--scope <path>)A deep dive into one module or directory, complementing the general analysis.
Requires an existing .vibeflow/index.md.
Read from the existing .vibeflow/: index.md for stack, domain type,
structural units, and budget; conventions.md for the global conventions; the
list of pattern docs in patterns/. Don't re-detect any of it.
Focus exclusively on <path>: internal structure, what it imports from other
modules, its own external dependencies, entry points and public APIs, and any
module-specific docs or config.
Sample densely — the goal is depth, not coverage. A module with ≤30 source files gets read in full; above that, sample ≥80%, prioritizing entry points, largest files, most imported files, and files the rules mention. Apply the domain's mandatory pattern priorities inherited in Step 1, and document the same convention aspects as Phase 2.
A matching global pattern doc exists (say patterns/screen-composition.md):
add this module's examples inside the <!-- vibeflow:auto:start/end -->
markers, preserving everything outside them (frontmatter included); add the
module as a location under ## Where; add 1–2 examples under ## Examples from this codebase; and add the module's path to the frontmatter's modules field
if it isn't there, leaving tags and applies_to as they are. Only a doc at
the root of patterns/ counts as a match: what sits under patterns/satellite-*/
or patterns/external-*/ stays as it is.
The pattern is specific to this module — create a new doc in patterns/
with the standard structure, frontmatter, and markers, named descriptively and
prefixed with the module name when it's genuinely module-specific
(payments-reconciliation.md).
For conventions.md — conventions that extend or specialize the global ones
go inside the markers with attribution "(via --scope <path>)"; divergences are
flagged as "Module <path> diverges: ".
With --interactive, present only the patterns found or enriched in this scoped
run, following Phase 3.5's format, questions, and incorporation rules.
Add or update a ## Scoped Analyses section in index.md:
## Scoped Analyses
- `<path>` — analyzed on <date>, N files sampled, M patterns enriched/created
Then regenerate the ## Pattern Registry block from the frontmatters of the
patterns/*.md at the root and patterns/satellite-*/*.md, update
## Pattern Docs Available if new docs were created, and close with the disk
check against the index (its section follows Phase 5).
Module analyzed and how many of its source files you sampled; which pattern docs
were enriched and which were created; module-specific conventions; divergences
from the global ones; the result of the disk check. Then suggest: "Run gen-spec or prompt-pack — the
enriched patterns from <path> are now available."
--satellite <url>)Analyzes a dependency repository (design system, shared lib) from the
perspective of this repo: clone it, run the analysis on it, detect what this
repo actually uses, and merge only those patterns. Requires an existing
.vibeflow/index.md.
Derive <satellite-name> from the URL's last path segment, without .git,
sanitized to alphanumerics and hyphens. Clone shallow into a unique temp
directory outside the main repo: git clone --depth 1 <URL> <temp_dir>/satellite.
A failed clone (SSH key, network, private repo) is reported clearly, the partial
temp dir removed, and the mode stops.
With the clone as the effective codebase root, run the same phases as a fresh
analysis and write the output inside the clone, at
<temp_dir>/satellite/.vibeflow/. This repo's .vibeflow/ is not touched yet.
Any failure after the clone still removes the temp directory.
Back in this repo, collect what references the satellite: the declared dependency in the manifest (its package or module name), and the imports of it across the source — at least JS/TS plus this repo's primary language. That set of names and symbols is the usage filter.
Keep only the satellite pattern docs matching the usage set; when in doubt for a
direct dependency, include it. Write them to
.vibeflow/patterns/satellite-<satellite-name>/, each one prefixed with
> Patterns from satellite repo: <satellite-name> (ingested on YYYY-MM-DD for use by the main repo).
Only pattern docs cross over — not the satellite's index.md or conventions.md.
Then regenerate the ## Pattern Registry block and ## Pattern Docs Available
in index.md from the frontmatters of the patterns/*.md at the root and
patterns/satellite-*/*.md, so the merged docs reach the specs.
Remove the temp directory (rm -rf <temp_dir>) whether the merge succeeded or
failed, and close with the disk check against the index. Report the satellite
URL and name, that the clone was removed, how many pattern docs were merged, the
provenance and the result of the disk check. Then suggest: "Run
gen-spec or prompt-pack — patterns from
<satellite-name> are now available under
.vibeflow/patterns/satellite-<satellite-name>/."
Rules: one repo per invocation, the clone is always ephemeral, provenance is
always written, and the filter is by actual use. The merge writes pattern docs only under
patterns/satellite-<satellite-name>/, and in index.md only the Pattern
Registry and Pattern Docs Available: patterns/external-*/ and the
## Imported Sources block stay as they are.
.cursorrules, CLAUDE.md, docs/)If this command is modified, update MANUAL.md to reflect the changes.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub pe-menezes/vibeflow --plugin vibeflow10 skills in this plugin
/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.
/prompt-packGenerates a self-contained prompt pack from a spec. Embeds real code patterns from .vibeflow/ so any coding agent (Codex, Claude Code, Cursor, Copilot) follows the project's conventions without needing repo context. Use when handing off implementation to a separate session or agent.
2 plugins ship this exact skill · first indexed Nov 23, 2026
Other plugins' skills for the same job