vibe-coding-analytics
v0.3.1
Published
Initialize, audit, and evolve project harnesses for modern AI coding agents.
Maintainers
Readme
vibe-coding-analytics
Initialize, audit, and evolve project harnesses for modern AI coding agents.
vibe-coding-analytics treats vibe coding as an engineering loop — clear
instructions, scoped memory, repeatable checks, reviewer roles, reusable
skills, and recurring improvement. It ships as a single npm package with a
zero-config CLI and native adapters for Codex, Claude Code, Cursor, Kiro, and
GitHub Copilot.
✨ Features
- Audit a project for AI coding readiness across agents, memory, skills, tests, CI, and deploy hooks.
- Scaffold baseline harness files (
AGENTS.md,.ai/workflows,.ai/reviewers, knowledge base, ADR decision log, CI, validator script, and native adapters for Codex, Claude Code, Cursor, Kiro, and Copilot). - Evolve a concrete improvement plan: maps detected analytics gaps to promotion targets (tests, validators, CI, skills, rules) and surfaces recent git fix hotspots as regression-test candidates.
- Monorepo-aware — git submodules, npm workspaces, polyglot stacks, and fractal per-directory docs are detected automatically.
- Read-only by default — every command is safe to dry-run; pass
--writeto materialize changes.
📦 Installation
Run without installing:
npx vibe-coding-analytics analyticsOr install globally:
npm install -g vibe-coding-analyticsRequires Node.js >= 18.
🚀 Usage
# One-off, no install
npx vibe-coding-analytics scan # audit (alias: analytics)
npx vibe-coding-analytics init --write # scaffold missing harness files
npx vibe-coding-analytics evolve --write # evolve harness from recent fixesvca is also exposed as a CLI alias. With npx, use --package so npm
installs the vibe-coding-analytics package and then runs its vca binary:
npx --package vibe-coding-analytics vca scanWith a global install:
vibe-coding-analytics scan
vibe-coding-analytics init --write
vibe-coding-analytics evolve --write
# or the short alias
vca scan
vca init --write
vca evolve --writeCommands are read-only by default. Add --write to create missing harness
files.
The npm package and CLI are the same package — there is no separate CLI package to publish or install.
Commands
| Command | Purpose |
| --- | --- |
| scan | Audit the current project for AI coding readiness (analytics is an alias). |
| init | Propose or create a minimum viable harness: AGENTS.md, .ai/workflows, .ai/reviewers, knowledge base, ADR decision log, CI, validator script, plus native adapters for Codex, Claude Code, Cursor, Kiro, and Copilot. |
| evolve | Propose or create self-evolution loop files for repeated improvements; also backfills hooks + deny list when missing. |
Compatibility Model
vca init --write uses a multi-entry, single-source model:
AGENTS.mdis the canonical durable-rule file for project facts, commands, and stable agent rules..ai/workflows/*and.ai/reviewers/*are portable source material for reusable workflows and reviewer criteria.- Tool-native files are intentionally thin adapters:
- Codex reads
AGENTS.md. - Claude Code reads
CLAUDE.md,.claude/commands/*, and.claude/settings*.json. - Cursor reads
.cursor/rules/*.mdc. - Kiro reads
.kiro/steering/*.md. - GitHub Copilot reads
.github/copilot-instructions.md.
- Codex reads
The adapter files point back to AGENTS.md and .ai/ instead of duplicating
long-lived rules, so a project can be opened with multiple AI CLIs or IDEs
without maintaining several copies of the same guidance.
Integrations
Claude Code Slash Commands
The generated project templates support:
/analytics
/init
/evolve
/steerThe evolve and steer commands are designed to pair with local loops:
/loop 30m /evolve
/loop 30m /steer # after each bug fix: add the smallest sensor that would have caught itUse it to extract repeated user corrections, failed checks, review feedback, and repeated command sequences into durable tests, validators, rules, commands, skills, or reviewer agents.
Codex Skill
This repository includes a distributable skill at:
skills/vibe-coding-analytics/SKILL.mdThe skill triggers when initializing a new project, auditing an existing repository for AI coding readiness, adding agent rules, or improving a project's vibe coding harness.
Codex Plugin
The repository includes a Codex plugin manifest:
.codex-plugin/plugin.jsonIt points Codex at the included skills directory and can be used as the base for marketplace submission.
What It Checks
AGENTS.md,CLAUDE.md, Cursor rules, Kiro steering, and Copilot instructions- Project memory such as PRDs, constraints, patterns, known issues, or fractal
per-directory
CLAUDE.md - Reusable skills, slash commands, specialist reviewers (
.claude/agents/, reviewer skills, or plugin agents) - Tests, typecheck, lint, architecture validators, and CI
- Rule-to-sensor coverage: prose rules in
CLAUDE.md/AGENTS.mdbacked by computational sensors (tests, lint, validators), not prose-only - Steering loop: numbered rules (
Rule N) inCLAUDE.md/AGENTS.mdthat grow after each bug fix — the rising count is the feedback-loop heartbeat - Failure observability: monitoring, alerting, or error counters so critical-path failures surface instead of failing silently
- Deploy and post-deploy verification hooks
- Agent hooks:
PostToolUseonEdit|Writerunning eslint + prettier (format-on-save + lint-on-edit at edit time), plus apermissions.denylist blocking irreversible commands (rm -rf,git push -f,git reset --hard,curl | sh,psql -c 'DROP TABLE …', …).vca init --writescaffolds both for Claude Code projects; the deny list gains destructive-SQL entries (psql *-c *DROP TABLE*,mysql *-e *TRUNCATE*, …) on database projects — matched inside the client invocation, since the real command never starts with the bare keyword - Cross-session memory: ADR decisions, agent memory, or a decisions log
- Self-evolution loops that promote repeated work into durable harness assets
- Minimum viable harness generation: project facts, validation command, CI,
.ai/workflows,.ai/reviewers, knowledge base, decision memory, architecture validator, and native AI tool adapters - Depth hints on passing checks (test-file / instruction-line / skill counts) so a stub is distinguishable from a mature project at the same score
- False-safety warnings when checks are partially present (tests without CI, agent rules without enforcement, no single validation command)
Monorepo & Non-Standard Conventions
The analyzer is aware of common repository shapes and does not assume a flat single-package Node project:
- Git submodules — when
.gitmodulesis present, every check runs against the root plus each submodule root, so tests, scripts, and harness files living one level down are still detected. - npm workspaces — detected from the root
package.jsonworkspacesfield. - Polyglot stacks —
package.jsonscripts are merged from every subpackage; Go (go.mod), Flutter (pubspec.yaml), and TypeScript (tsconfig.json) are recognized as typecheck signals; test files are detected by convention (*_test.go,*_test.dart,*.test.{js,ts},test_*.py, …). - Fractal docs — two or more
CLAUDE.md/AGENTS.mdfiles count as project memory, matching the per-directory documentation pattern. - Architecture sensors — any
scripts/*validate*,*verify*,*check*, or*lint*file counts, not justscripts/validate-architecture.
The report prints the detected Project shape and how many roots were
scanned.
🤝 Contributing
Contributions are welcome! Please open an issue or submit a pull request.
