vibe
The lightweight production-standards and PDCA-loop layer for vibe coding.
Fixes the three ways AI coding sessions go wrong:
- You don't know what production-grade looks like → citation-grade
standards (Zalando, Google AIPs, OWASP ASVS, Azure patterns, RFC 9457)
loaded on demand, with stable rule IDs so every flag cites chapter and verse.
- The AI copies your codebase's bad patterns, compounding tech debt →
flag-don't-conform: new code is written to standard, deviations are flagged
once with the rule ID, and a Strangler-Fig
ROADMAP.md uplifts the codebase
one touch at a time — never a big-bang rewrite.
- Token burn and retry thrash → plan-before-code is enforced by a
zero-token hook, tests reach the model as failure lines only, every plan
carries a retry budget that stops thrashing loops, and the plugin's
always-on cost is about 550 tokens (six skill descriptions plus
two agent listings — measured; hooks, commands, and reference files cost
0 until used). Your working-agreements file adds only what you promote,
capped under 60 lines. No MCP server — nothing here ever invalidates the
prompt cache.
The loop (PDCA + upfront expectations)
/vibe:plan Plan — interview → explore → 1–3 page plan: plain-language
Objective, verifiable "Done means" criteria, retry
budget. Approval required. Translated copy at
.vibe/plan.<lang>.md (e.g. plan.vi.md) when
plan_language is set.
(code) Do — normal Claude coding. The plan gate blocks writes
without an approved plan; deviation nudges fire once
per pattern; standards load only when relevant. When
in-session work is done, the model runs Check itself.
/vibe:check Check — vibe-verify (failures only) → standards-reviewer
verifies each criterion with evidence → live
end-to-end run of the real feature (consent-gated
Playwright driving your own Chrome for web UIs, real
commands for CLIs, live payloads
for hooks) → uplift-scout offers ≤3 optional
improvements. Then it STOPS and hands you a short
test-it-yourself list. Stops at the retry budget
instead of thrashing.
(you test) ———— — you try the feature yourself and confirm. Feedback
on the same objective → fixed and re-checked in the
same loop; feedback that changes scope → new plan.
/vibe:act Act — yours to trigger once it looks good: promote working
agreements, record one learning, tick the roadmap,
archive the plan (closes the gate). Always the last
step. Git stays fully manual — you commit yourself.
The loop keeps a human in it: Check tests everything a machine can test —
deterministic checks, standards review, then actually driving the feature
end-to-end — and then stops so the final confirmation is yours. Act never
runs on the model's initiative; the only automatic hop is Do→Check.
/vibe:plan quick stamps a one-line plan for one-sentence diffs — no ceremony.
/vibe:setup onboards a repo: discovers house patterns, writes the gap
roadmap and .vibe/verify.sh, and (with your consent) defaults the project
to plan mode.
Install
From a marketplace checkout:
/plugin marketplace add mthanhlm/vibe-production
/plugin install vibe@vibe-marketplace
For local development:
claude --plugin-dir /path/to/vibe-production
Requirements: bash and python3 on PATH — everything is stdlib-only,
nothing else needs to be installed.
The plan gate and nudges are opt-in per project — they
activate only after .vibe/ exists (created by /vibe:setup or
/vibe:plan), so installing the plugin never gates other repos.
Emergency bypass: VIBE_GATE=off or "gate": "off" in .vibe/config.json.
Git safeguard (always on)
A PreToolUse hook guards git in every project while the plugin is enabled,
in two tiers:
- Destructive — blocked with a safer alternative: force-push
(
--force-with-lease stays allowed), remote branch deletion,
reset --hard, clean -f, checkout/restore ., branch -D,
stash drop/clear.
- Approval-required — blocked until you say go:
git add, git commit,
git push. The model never stages, commits, or pushes on its own
initiative; after your explicit go-ahead it re-runs the command prefixed
with VIBE_GIT=allow .
Read-only git (status, diff, log, stash list) is never touched. Disable per
project with "git_guard": "off" in .vibe/config.json or globally with
VIBE_GIT_GUARD=off.
Releasing (maintainer)