rune-kit/rune/audit

Claude Code and agent skill by rune-kit/rune

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Comprehensive project audit — security, dependencies, code quality, architecture, performance, infra, docs, and mesh analytics. Use when needing a full 8-dimension health-score snapshot before a major release, M&A diligence, or quarterly review. Delegates to specialist skills (sentinel, dependency-doctor, perf, autopsy, etc.).

Install

npx vskill@latest install rune-kit/rune/audit

SKILL.md

The same SKILL.md was published earlier as rune-kit/rune/audit.

audit

Purpose

Comprehensive project health audit across 8 dimensions (7 project + 1 mesh analytics). Delegates security scanning to sentinel, dependency analysis to dependency-doctor, and code complexity to autopsy, then directly audits architecture, performance, infrastructure, and documentation. Applies framework-specific checks (React/Next.js, Node.js, Python, Go, Rust, React Native/Flutter) based on detected stack. Produces a consolidated health score and prioritized action plan saved to AUDIT-REPORT.md.

Triggers

  • /rune audit — full 8-dimension project health audit
  • /rune audit dx — DX Review Mode (Addy Osmani 8 principles, see below)
  • User says "audit", "review project", "health check", "project assessment"
  • User says "developer experience", "DX audit", "onboarding experience", "time to hello world"

Calls (outbound)

  • scout (L2): Phase 0 — project structure and stack discovery
  • dependency-doctor (L3): Phase 1 — vulnerability scan and outdated dependency check
  • sentinel (L2): Phase 2 — security audit (OWASP Top 10, secrets, config)
  • autopsy (L2): Phase 3 — code quality and complexity assessment
  • improve-architecture (L2): Phase 3.5 — architecture sub-score (depth / leverage / locality across top modules)
  • perf (L2): Phase 4 — performance regression check
  • db (L2): Phase 5 — database health dimension (schema, migrations, indexes)
  • journal (L3): record audit date, overall score, and verdict
  • constraint-check (L3): audit HARD-GATE compliance across project skills
  • sast (L3): Phase 2 — deep static analysis (Semgrep, Bandit, ESLint security rules)
  • retro (L2): Phase 6 — engineering velocity and health dimension (rune:retro)
  • browser-pilot (L3): DX Review Mode — real browser testing of docs, setup guides, error pages

Called By (inbound)

  • cook (L1): pre-implementation audit gate
  • launch (L1): pre-launch health check
  • User: /rune audit direct invocation

Executable Instructions

Phase 0: Project Discovery

Call rune:scout for a full project map. Then use Read on:

  • README.md, CLAUDE.md, CONTRIBUTING.md, .editorconfig (if they exist)

Determine:

  • Language(s) and version(s)
  • Framework(s) — determines which Framework-Specific Checks below apply
  • Package manager, build tool(s), test framework(s), linter/formatter config
  • Project type: API/backend | frontend/SPA | fullstack | CLI tool | library | mobile | infra/IaC
  • Monorepo setup (workspaces, turborepo, nx, etc.)

Output before proceeding: Brief project profile, stack summary, and which Framework-Specific Checks will be applied.

Phase 0.5: Context-Building (Pure Understanding)

<HARD-GATE> This phase is FORBIDDEN from producing findings. No BLOCKs, no WARNs, no issues. Context-building only. Rushed context = hallucinated vulnerabilities. Slow is fast. </HARD-GATE>

For each critical module (entry points, auth, data layer, core business logic):

  1. Read line-by-line. Note at minimum:
  • 3 invariants: What MUST always be true for this code to work? (e.g., "user is authenticated before reaching this handler")
  • 5 assumptions: What does this code assume about its inputs, environment, and callers?
  • 3 risks: What could break if assumptions are violated?
  1. Record findings as context notes — these feed into Phases 1-7, NOT into the final report directly

Why: Without this phase, the auditor pattern-matches against known vulnerability lists and hallucinates findings that don't exist in THIS specific codebase. The invariants + assumptions ground all later analysis in reality.


Phase 1: Dependency Audit

Delegate to dependency-doctor. The dependency-doctor report covers:

  • Vulnerability scan (CVEs by severity)
  • Outdated packages (patch / minor / major)
  • Unused dependencies
  • Dependency health score

Pass the full dependency-doctor report through to the final audit.


Phase 2: Security Audit

Delegate to sentinel. Request a full security scan covering:

  • Hardcoded secrets, API keys, tokens, passwords in source code
  • OWASP Top 10: injection, broken auth, sensitive data exposure, XSS, CSRF, insecure deserialization, broken access control
  • Configuration security (debug mode in prod, CORS *, missing HTTP security headers)
  • Input validation at API boundaries
  • .gitignore coverage of sensitive files

Pass the full sentinel report through to the final audit.


Phase 3: Code Quality Audit
Full detail moved to `references/phase-checklists.md` (progressive disclosure). Read that file before executing this section.
Phase 4: Architecture Audit
Full detail moved to `references/phase-checklists.md` (progressive disclosure). Read that file before executing this section.
Phase 5: Performance Audit
Full detail moved to `references/phase-checklists.md` (progressive disclosure). Read that file before executing this section.
Phase 6: Infrastructure & DevOps Audit
Full detail moved to `references/phase-checklists.md` (progressive disclosure). Read that file before executing this section.
Phase 7: Documentation Audit

Use Glob and Read to check:

7.1 Project Documentation

  • README completeness: description, prerequisites, setup, usage, deployment, contributing
  • API documentation (OpenAPI/Swagger spec, or documented endpoints)
  • Can a new developer get running from README alone?
  • Architecture Decision Records (ADRs) for non-obvious choices

7.2 Code Documentation

  • Public API / exported functions documented
  • Complex business logic with explanatory comments
  • CHANGELOG.md maintained
  • LICENSE file present

Framework-Specific Checks
Full detail moved to `references/phase-checklists.md` (progressive disclosure). Read that file before executing this section.
Phase 8: Mesh Analytics (H3 Intelligence)

Goal: Surface insights about skill usage, chain patterns, and mesh health from accumulated metrics.

Data source: .rune/metrics/ directory (populated by hooks automatically).

  1. Check if .rune/metrics/ exists. If not, emit INFO: "No metrics data yet — run a few cook sessions first."
  2. Read .rune/metrics/skills.json — extract per-skill invocation counts, last used dates
  3. Read .rune/metrics/sessions.jsonl — extract session count, avg duration, avg tool calls
  4. Read .rune/metrics/chains.jsonl — extract most common skill chains
  5. Read .rune/metrics/routing-overrides.json (if exists) — list active routing overrides

Compute and report:

  • Top 10 most-used skills (by total invocations)
  • Unused skills (0 invocations across all tracked sessions) — potential dead nodes
  • Most common skill chains (top 5 patterns from chains.jsonl)
  • Average session stats (duration, tool calls, skill invocations)
  • Active routing overrides and their application count
  • Mesh density check: cross-reference invocation data with declared connections — skills that are declared as "Called By" but never actually invoked may indicate broken mesh paths

Propose routing overrides: If patterns suggest inefficiency (e.g., debug consistently called 3+ times in a chain for the same session), propose a new routing override for user approval.

Output as a section in the final audit report:

### Mesh Analytics
| Skill | Invocations | Last Used | Chains Containing |
|-------|-------------|-----------|-------------------|
| cook | 47 | 2026-02-28| 34 |
| scout | 89 | 2026-02-28| 42 |
| ... | ... | ... | ... |
**Common Chains**:
1. cook → scout → plan → test → fix → quality → verify (34x)
2. debug → scout → fix → verification (12x)
**Session Stats**: 23 sessions, avg 35min, avg 52 tool calls
**Unused Skills**: [list or "none"]
**Routing Overrides**: [count] active

Shortcut: /rune metrics invokes ONLY this phase, not the full 7-phase audit.



DX Review Mode (Addy Osmani 8 Principles)

Triggered by /rune audit dx. Evaluates developer experience — how easy it is for a new contributor to understand, set up, use, and recover from mistakes in this project. Inspired by Addy Osmani's DX framework.

<HARD-GATE> DX Review is a SEPARATE mode — it does NOT run the 8-phase health audit above. If the user wants both, run /rune audit then /rune audit dx separately. </HARD-GATE>

DX Principle 1: Time to Hello World
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 2: First-Time Setup Friction
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 3: Error Message Quality
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 4: CLI Help Quality
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 5: Documentation Navigation
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 6: API Consistency
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 7: Progressive Disclosure
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Principle 8: Recovery from Mistakes
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
DX Review Output
Full detail moved to `references/dx-review.md` (progressive disclosure). Read that file before executing this section.
Final Report

After all phases complete:

Use Write to save AUDIT-REPORT.md to the project root with the full findings from all phases.

Call rune:journal to record: audit date, overall health score, verdict, and CRITICAL count.

Weighted Composite Scoring

Each dimension score feeds into a weighted composite formula that produces a single comparable health score. Use this formula to compute Overall Health — not a simple average.

Scoring Formula
Overall = (Security × 0.25) + (Code Quality × 0.20) + (Architecture × 0.15)
+ (Dependencies × 0.15) + (Performance × 0.10) + (Infrastructure × 0.08)
+ (Documentation × 0.07)

Mesh Analytics (Phase 8) is advisory — it contributes 0 to the weighted score but informs the verdict narrative.

Grade Thresholds
Score RangeGradeVerdictAction
90–100ExcellentPASSRoutine audit in 3 months
75–89GoodPASSAddress MEDIUM items next sprint
60–74FairWARNINGFix HIGH items within 2 weeks
40–59PoorFAILFix CRITICAL + HIGH within 1 week
0–39CriticalFAILEmergency response — CRITICAL items block all new work
Why Weighted (not average)

Security issues cause exponential blast — a 3/10 security score with all other dimensions at 9/10 = overall 72 (Fair), not 8.1 (Good). The formula ensures security and code quality dominate the verdict. Comparable across runs: if Overall moves from 68 → 74 after fixes, the project measurably improved.

Severity Levels

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
77
Repository forks
21
7-day trend score
22

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/rune-kit/rune/audit/badge)](https://verified-skill.com/skills/rune-kit/rune/audit)

Something wrong with this skill or its page? Tell us.