codebase-benchmark
Run a whole-codebase, longitudinal engineering-practices review that produces a graded trend scorecard (security, architecture, type safety, testing…
Skill by ryangriffinau
Chalk Labs
Need help deploying codebase-benchmark?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ryangriffinau-codebase-benchmark
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, testing, devops, security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codebase-benchmark
What's inside
- Skill name
codebase-benchmark- Description
- Run a whole-codebase, longitudinal engineering-practices review that produces a graded trend scorecard (security, architecture, type safety, testing, performance, observability, sprawl, design tokens, a11y, deps, CI/CD, docs) plus per-lens companion findings with file:line evidence and fix contracts, diffed against the prior run for ↑→↓ trend arrows. Use when the user wants a weekly/periodic engineering review, a codebase health scorecard, an architecture-quality audit, or to track engineering practices over time across a project. NOT for reviewing a single PR or diff — use code-review for that.
- License
- MIT
- Instructions
- 58 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- SKILL.md
- grading-and-trends.md · references/
- lens-catalog.md · references/
- report-format.md · references/
- collect-metrics.sh · scripts/
SKILL.md (first lines)
# Codebase Benchmark Produce a repeatable, **longitudinal** scorecard of a codebase's engineering practices. Each run grades a fixed set of lenses, attaches file:line evidence and concrete fix contracts, re-statuses every prior-run finding, and diffs grades against the last run to show whether each area is trending ↑ → ↓. This is **whole-codebase and over-time**, not per-diff. For reviewing one PR/branch diff, use `code-review`. ## Core rules - **Grade against the repo's own declared standards first.** Read `AGENTS.md` / `CLAUDE.md` / `docs/adr/**` / `VISION.md` before grading. A rule the repo states about itself (file-size cap, no `any`, design-token policy, Zod boundary) is an objective, defensible grading anchor. Vague best-practice opinions are weaker evidence — prefer measured violations of stated rules. - **Every finding cites file:line and proposes a contract.** No finding without `path:line`. Each finding follows: *Current state (with code) → Why it matters → Fix contract → Migration sequence → Blast radius*. See [report-format.md](references/report-format.md). - **Verify before you score.** In `full` mode, every finding is re-checked by an independent adversarial agent against its cited file:line; a finding that can't be reproduced is dropped or downgraded. In `quick` mode, spot-check the headline findings yourself. - **Trends come from the registry, never from memory.** Read the prior run's grades from the registry, diff, and emit arrows. Do not invent a baseline. - **Redaction is a setting.** When the profile sets `redaction: split`, the tracked report carries only the trend scorecard + engineering narrative; security/tenancy/data-access finding detail (vuln class, file:line, repro) goes to the gitignored scratch dir and private issues. See [report-format.md](references/report-format.md#redaction). - **Read-only by default.** The review writes only review artifacts (its week dir, the registry, the scratch dir). It does not edit product code, open PRs, or change CI unless the user separately asks. - **Keep repo specifics in the profile, not in this skill.** Lens weights, paths, redaction, and tracker live in `.agents/codebase-benchmark/profile.json`. ## Existing installations This skill was named `engineering-review`. If the new profile is missing, move `.agents/engineering-review/profile.json` to `.agents/codebase-benchmark/profile.json`. Preserve the profile values, review home, registry, and prior reports. If both profiles exist, reconcile their settings before a run. A rename must not reset the scorecard history or invent a new baseline. ## Modes - `init` — create/update `.agents/codebase-benchmark/profile.json` and the review home (`docs/reviews/` by default). Run once per repo. - `baseline` — first run with no prior registry entry: grade every lens, write the registry's first row, no trend arrows yet. - `quick` — single-pass review (no fan-out, no adversarial verifier). Grounded in `collect-metrics.sh` output + targeted reads. Produces the scorecard + top findings per lens + verdict. Cheapest; upgradeable to `full` later. - `full` — the multi-agent run: parallel lens agents → adversarial verifier per finding → prior-finding re-status → scorecard → roadmap. Opt-in (uses the Workflow tool). Use for the authoritative periodic review. - `report` — re-render an existing run's JSON/markdown into the HTML report without re-analyzing. ## Workflow 1. **Load context.** Read the repo's `AGENTS.md`/`CLAUDE.md`, `docs/adr/**`, `VISION.md`, and the docs index. Load `.agents/codebase-benchmark/profile.json` (migrate an old profile first; run `init` if neither exists). 2. **Map the repo (quantitative).** Run [scripts/collect-metrics.sh](scripts/collect-metrics.sh) to get LOC, file-size violations, type-escape-hatch counts, design-token violations, test ratio, Convex index/`.collect()` ratios, dep/catalog signals. This is the measured spine every grade hangs on. 3. **Pick the lenses.** Default set + per-repo additions from the profile. See [lens-catalog.md](references/lens-catalog.md). 4. **Run the lenses.** - `quick`: review each lens yourself from metrics + targeted reads; record the 1–3 highest-leverage findings per lens with file:line. - `full`: one agent per lens (parallel), then one adversarial verifier per finding (see [methodology in report-format.md](references/report-format.md)). Drop unverified findings. 5. **Re-status prior findings.** For each finding in the last run, mark Addressed / Partial / Open / Worsened with current evidence. 6. **Grade + trend.** Assign each lens an A–F± grade using [grading-and-trends.md](references/grading-and-trends.md); diff against the prior registry row for the ↑ → ↓ arrow; derive the Overall grade. 7. **Write artifacts.** `SUMMARY.md` (scorecard + verdict + closed-since + roadmap), per-lens companions, the HTML report, and append the new row to the registry (`scorecard.json` + `REGISTRY.md`). Respect the redaction setting. 8. **Hand off.** Surface the scorecard, the deltas, and the roadmap. If `redaction: split`, route security/tenancy detail to private issues per the profile's `tracker`. ## Cadence The skill is cadence-agnostic. For a recurring weekly run, schedule a cloud agent (cron) that invokes this skill in `full` (or `quick`) mode against the repo and posts the scorecard. Keep the schedule definition in the repo's review home, not in this portable skill. ## References - [lens-catalog.md](references/lens-catalog.md) — the lenses, what each inspects, its measurable signals, and grade anchors. - [grading-and-trends.md](references/grading-and-trends.md) — the A–F± rubric, overall-grade derivation, the registry schema, and the trend mechanic. - [report-format.md](references/report-format.md) — `SUMMARY.md` + companion structure, the HTML report, the redaction policy, and the `full`-mode multi-agent methodology. - [scripts/collect-metrics.sh](scripts/collect-metrics.sh) — portable metric collector; emits the quantitative map the review grades against. - Local profile schema and an example live in the consuming repo at `.agents/codebase-benchmark/profile.json`.
From ryangriffinau/skills, MIT.
More from ryangriffinau/skills
- 0.592score
write-project-update
ryangriffinau
Write an evidence-grounded project update.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
write-goal
ryangriffinau
Create crisp, verifiable goal prompts and execution plans for long-running agent work after investigating available context first.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
add-prompt
ryangriffinau
Save a reusable instruction as a portable p-prefixed skill for Claude Code and Codex.
SkillAFreshness: A★ 1Claude Code +9 - 0.579score
p-smarter-beads-wizard
ryangriffinau
Read every bead deeply, use idea-wizard to find the smartest, most accretive ideas, and revise the beads with them; then offer beads-workflow polishing and…
SkillAFreshness: A★ 1Claude Code +9 - 0.552score
convex-prod-query
ryangriffinau
Read production Convex state from an agent session without approval prompts and without any way to write or deploy.
SkillBFreshness: B★ 1Claude Code +9 - 0.552score
joint-design-review
ryangriffinau
Joint design review of one product area: audit against the loaded design bar, split findings into standing-approved fixes vs decisions that need the user's…
SkillBFreshness: B★ 1Claude Code +9 - 0.547score
teach-me-nugget
ryangriffinau
Turn a concept just hit in live work into an immediately usable nugget — correct the user's guessed name, give the real terms of art, extract smells with…
SkillBFreshness: B★ 1Claude Code +9 - 0.502score
commit
ryangriffinau
Create Conventional Commit git commits for only the work completed in the current session.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
commit-whole-diff
ryangriffinau
Split the entire current git working tree diff into multiple atomic Conventional Commits when the user explicitly wants all outstanding changes committed…
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
stale-work-audit
ryangriffinau
Audits old agent sessions, stale threads, branches, PRs, worktrees, deployments, and migrated repos against current evidence, then returns a concise grouped…
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
website-porter
ryangriffinau
Port existing live, CMS, or Webflow marketing websites into a full-stack app or repository while preserving SEO, content coverage, visual fidelity…
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
review-council
ryangriffinau
Run any high-stakes question or decision through a council of 5 AI advisors (Contrarian, First Principles, Expansionist, Outsider, Executor) who independently…
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 14, 2026 (16 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ryangriffinau/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ryangriffinau
- 0.592score
write-project-update
ryangriffinau
Write an evidence-grounded project update.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
write-goal
ryangriffinau
Create crisp, verifiable goal prompts and execution plans for long-running agent work after investigating available context first.
SkillAFreshness: A★ 1Claude Code +9 - 0.587score
add-prompt
ryangriffinau
Save a reusable instruction as a portable p-prefixed skill for Claude Code and Codex.
SkillAFreshness: A★ 1Claude Code +9 - 0.579score
p-smarter-beads-wizard
ryangriffinau
Read every bead deeply, use idea-wizard to find the smartest, most accretive ideas, and revise the beads with them; then offer beads-workflow polishing and…
SkillAFreshness: A★ 1Claude Code +9 - 0.552score
convex-prod-query
ryangriffinau
Read production Convex state from an agent session without approval prompts and without any way to write or deploy.
SkillBFreshness: B★ 1Claude Code +9 - 0.552score
joint-design-review
ryangriffinau
Joint design review of one product area: audit against the loaded design bar, split findings into standing-approved fixes vs decisions that need the user's…
SkillBFreshness: B★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get codebase-benchmark running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
codebase-benchmark skill. Agent Mart. https://agentmart.dev/skills/ryangriffinau-codebase-benchmark (last updated 2026-10-24)