mvp-ai's picture
|
download
raw
14.9 kB

Check Reference

Six core dimensions run by default (deterministic, no AI calls). Two extended dimensions (Deep and Session) require runtime conditions a CLI or CI run cannot provide and are opt-in via Claude Code /al. Every check below cites at least one evidence source — see standards/evidence.json for full citations.

Total: 51 core checks + 7 extended checks = 58.

Findability

ID Name What Evidence Fix
F1 Entry file exists Checks whether the repo has a standard entry file such as CLAUDE.md, AGENTS.md, or .cursorrules. anthropic-265, openai-agents Add a root entry file with the project purpose, workflow, and reading order.
F2 Entry file describes the project Checks whether the entry file explains what the project is in its opening lines. anthropic-265 Put a plain-language project description near the top of the entry file.
F3 Conditional loading guidance Checks whether the entry file tells the agent what to read for specific tasks. anthropic-265, eth-zurich Add task-based guidance such as "if X, read Y first."
F4 Large directories have index Checks whether a directory with more than 10 content files has an INDEX file for navigation. anthropic-265 Add an INDEX file that maps the important files in large directories.
F5 All references resolve Checks whether file references in the entry file point to files that actually exist. practical-audit, codified-context Fix or remove broken file references in the entry file and indexes.
F6 Predictable file naming Checks whether standard discovery files such as README.md, an entry file, and CHANGELOG.md are present. openai-agents, harness-engineering Use standard root filenames so tools and agents can find them without extra instructions.
F7 Include directives resolve Checks whether @include paths in the entry file point to files that exist. anthropic-265 Fix or remove broken @include paths — missing targets are silently ignored.
F8 Rule file frontmatter uses globs Checks whether .claude/rules/*.md frontmatter uses globs: (not paths:). paths: silently does not scope the rule. corpus-4533 Change paths: to globs: in rule file frontmatter.
F9 No unfilled template placeholders Checks the entry file for unreplaced [your project name], <framework>, or TODO: markers. corpus-4533 Replace placeholders with actual project values.

Instructions

ID Name What Evidence Fix
I1 Emphasis keyword usage Measures how often the entry file uses heavy emphasis words such as IMPORTANT, MUST, NEVER, and CRITICAL. anthropic-265 Reduce emphasis keywords and keep only the ones with a real decision boundary.
I2 Keyword density Measures the density of emphasis keywords per 1,000 words in the entry file. anthropic-265, ifscale Rewrite the file to say fewer things more directly and remove repeated imperatives.
I3 Rule specificity Measures how many "Don't ..." rules also explain the correct alternative and reason. anthropic-265, agent-readmes Rewrite vague rules into concrete "Don't X. Instead Y. Because Z." guidance.
I4 Action-oriented organization Measures whether section headings focus on workflows and actions instead of identity or persona. anthropic-265 Rename and reorganize sections around tasks, workflows, and operating rules.
I5 No identity language Checks whether the entry file avoids identity phrases such as "You are a ..." or "As an AI ...". anthropic-265 Delete identity framing and keep only operational instructions.
I6 Entry file length Measures whether the entry file length stays in a concise, usable reference range. anthropic-265, codified-context, ifscale Trim the entry file or split detail into linked docs if it is too long.
I7 Entry file size within limit Checks whether the entry file is under 40,000 characters (Claude Code hard limit). anthropic-265 Split the entry file into smaller files with @include directives.
I8 Total injected content within budget Counts non-empty lines across the entry file, AGENTS.md, and .claude/rules/*.md. corpus-4533, ifscale Consolidate rules or split into conditional includes if total injected content is too large.

Workability

ID Name What Evidence Fix
W1 Build/test commands documented Checks whether the entry file includes commands the agent can run to build or test the project. openai-agents Add the exact build and test commands to the entry file.
W2 CI exists Checks whether the repo has GitHub Actions workflow files. harness-engineering Add CI workflows so key checks run mechanically.
W3 Tests exist and are non-empty Checks whether the repo actually contains test files, not just test commands or empty CI. practical-audit Add real test files that exercise the project behavior.
W4 Linter configured Checks whether a linter or formatter configuration is present. harness-engineering Configure a linter or formatter and keep it in the repo.
W5 No oversized source files Checks whether any source file exceeds 256 KB (Claude Code hard read limit). Uses git ls-files in git repos so .gitignore'd artifacts (coverage, tmp, caches) never trigger false positives. anthropic-265 Split large files or move generated content out of the source tree.
W6 Pre-commit hooks are fast Estimates whether pre-commit hooks contain slow commands that would stall Claude Code commits. anthropic-265 Remove slow commands from pre-commit hooks or move them to CI.
W7 Local fast test command documented Checks whether the entry file documents a fast, local test command for the agent to run before pushing. anthropic-265 Add a clear "run tests locally with: …" section to the entry file.
W8 npm test script exists Checks whether JS/Node projects expose a test script in package.json so npm test works out of the box. anthropic-265 Add "test": "<your test runner>" to package.json scripts.
W9 Release workflow validates version consistency Checks whether release.yml cross-validates the git tag against package.json / pyproject.toml version. corpus-4533, vibekit-audit Compare the tag version against the manifest version in the release workflow and fail if they diverge.
W10 Test cost tiers defined Checks whether Python projects define pytest markers (unit/integration/slow) so agents can run the fast tier by default. corpus-4533, vibekit-audit Add pytest markers in pyproject.toml and use them in CI.
W11 feat/fix commits paired with test commits Checks whether the repo has a .github/workflows/test-required.yml that gates feat/fix PRs on paired test commits. vibekit-audit agentlint fix W11 creates the template workflow.

Continuity

ID Name What Evidence Fix
C1 Document freshness Measures how far the entry file lags behind recent code changes. codified-context, harness-engineering Update the entry file when workflows, structure, or commands change.
C2 Handoff information exists Checks whether the repo contains handoff, progress, or status information for the next session. anthropic-265 Add HANDOFF.md or equivalent progress notes in the repo.
C3 Changelog has why Checks whether the repo has a non-empty CHANGELOG.md that records changes for future sessions. anthropic-265 Keep a changelog with short entries that explain why something changed.
C4 Plans in repo Checks whether plan directories exist in the repo, such as docs/plans or plans. harness-engineering Store execution plans in the repo instead of external tools only.
C5 CLAUDE.local.md not tracked Checks whether CLAUDE.local.md is properly gitignored (not committed to git). anthropic-265 Add CLAUDE.local.md to .gitignore — it contains per-user private preferences.
C6 HANDOFF.md contains verify conditions Checks whether HANDOFF.md includes verify conditions (not just status text), so the next session can confirm readiness without re-running all checks. vibekit-audit Add a "verify" or "check" section to HANDOFF.md listing commands or files that confirm current state.

Safety

ID Name What Evidence Fix
S1 Env files gitignored Checks whether .env is in .gitignore to prevent secret exposure via AI tools. anthropic-265, practical-audit Add .env and .env.* to .gitignore.
S2 Actions SHA pinned Checks whether GitHub Actions use immutable SHA pins instead of floating tags. practical-audit Pin all uses: references to full 40-character SHA hashes.
S3 Secret scanning configured Checks whether gitleaks or pre-commit secret scanning is configured. practical-audit Add .gitleaks.toml or a pre-commit hook for secret detection.
S4 Security policy exists Checks whether SECURITY.md exists at the repo root. practical-audit Add SECURITY.md with vulnerability reporting instructions.
S5 Workflow permissions minimized Checks whether workflow-level contents: write is avoided in favor of job-level permissions. practical-audit Use permissions: contents: read at workflow level, elevate per-job only where needed.
S6 No hardcoded secrets Scans source files for hardcoded API keys, tokens, and private key patterns. practical-audit Move secrets to environment variables or a secrets manager.
S7 No personal paths in source Checks whether source files contain personal filesystem paths (/Users/xxx/, /home/xxx/). practical-audit, anthropic-265 Replace personal paths with environment variables or relative paths. AI's Glob tool ignores .gitignore — personal paths are visible.
S8 No pull_request_target trigger Checks whether workflows use pull_request_target, which runs with elevated permissions. practical-audit Use pull_request instead. Only use pull_request_target when secrets are explicitly needed.
S9 No personal email in git history Checks whether commits in the default branch's history contain a personal email in the author/committer fields. corpus-4533 Use a non-personal email for commits (e.g. GitHub's noreply@ address) and scrub historical commits before publishing.

Harness

Harness checks inspect .claude/settings.json for hook and permission configuration issues. These checks emit score=1 (pass) for projects without a settings.json, so they only affect repos that actually configured Claude Code hooks or permissions.

Evidence for all Harness checks comes from corpus-4533: analysis of 4,533 real Claude Code repositories containing 739 hook configurations and 1,562 settings.json files.

ID Name What Evidence Fix
H1 Hook event names valid Checks whether hook event names in .claude/settings.json match Claude Code's documented events. corpus-4533 Fix typos (e.g., preCommit → PreToolUse, sessionStart → SessionStart).
H2 PreToolUse hooks have matcher Checks whether PreToolUse hooks have a matcher field to filter by tool name. corpus-4533 Add a matcher to each PreToolUse hook so it only fires on relevant tools.
H3 Stop hook has circuit breaker Checks whether Stop hook scripts include a loop-prevention guard. corpus-4533 Guard Stop hooks with a variable like STOP_HOOK_ACTIVE to prevent infinite loops.
H4 No dangerous auto-approve Checks whether permissions.allow contains dangerous rules like bare Bash(*), *, or mcp__*. corpus-4533 Replace broad rules with scoped ones, e.g., Bash(git status:*) instead of Bash(*).
H5 Env deny coverage complete Checks whether .env deny rules cover .env.* variants. corpus-4533 Extend deny rules to cover .env.local, .env.production, etc.
H6 Hook scripts network access Detects hook scripts that make external network calls (curl, wget, fetch, etc.). corpus-4533 Review flagged hooks — external network calls may leak tool I/O to third parties.
H7 Gate workflows are blocking Checks whether test-required and similar gate workflows use exit 1 (blocking) rather than warn-only output. corpus-4533 Add exit 1 to gate steps so failing tests block the merge instead of merely printing a warning.
H8 Hook errors use structured format Checks whether hook error output uses a structured what/rule/fix shape so the agent can self-correct. vibekit-audit Emit hook errors with Rule: and Fix: lines so the agent knows what to do next.

Deep (extended, opt-in)

Deep checks run via Claude Code /al when "AI Deep Analysis" is selected. They spawn an AI sub-agent to read the entry file and flag problems plain pattern-matching cannot catch. They never run in CI.

ID Name What Evidence Fix
D1 Contradictory rules Finds pairs of rules in the entry file that tell the agent to do opposite things. anthropic-265 Resolve the contradiction: keep one rule, delete or qualify the other.
D2 Dead-weight rules Finds rules the model would follow anyway, which waste tokens and dilute priority. anthropic-265 Delete rules that restate defaults. Keep only rules the model would otherwise get wrong.
D3 Vague rules without decision boundary Finds instructions like "use good judgment" that give the model no evaluable criterion. anthropic-265, agent-readmes Rewrite vague rules into concrete triggers and thresholds.

Session (extended, opt-in)

Session checks read local Claude Code session logs at ~/.claude/projects/. They run via /al when "Session Analysis" is selected. They never run in CI.

ID Name What Evidence Fix
SS1 Repeated instructions Surfaces instructions the user types every session — candidates for CLAUDE.md. claude-insights Move repeated instructions into the persistent entry file.
SS2 Ignored rules Surfaces rules the agent keeps bypassing — candidates for rewriting. anthropic-265, claude-insights Rewrite ignored rules to be more specific, or add a precondition.
SS3 Friction hotspots Surfaces projects and tasks that generate the most rework, based on session logs. claude-insights Invest in harness improvements for the noisiest projects first.
SS4 Missing rule suggestions Surfaces common corrections that aren't captured in any rule file yet. claude-insights Capture the correction as a new rule in the entry file.

Xet Storage Details

Size:
14.9 kB
·
Xet hash:
7f915f5b99218dc616f61bb12296f5969825913c96ae368d50fb181515f6468d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.