
Tiered Audit
Decide when git-history audit (Tier 1) should escalate to targeted or full-codebase reviews using documented evidence thresholds.
Install
npx skills add https://github.com/athola/claude-night-market --skill tiered-auditWhat is this skill?
- Tier 1→2 triggers: module churn (3+ files, repeat edits), fix-on-fix commits, 200+ line single-module diffs
- Flags suspicious patterns: reverts, impl without tests, force-push impact, 5+ new files in one module
- Tier 2→3 escalation when targeted audit evidence warrants full codebase review (per skill continuation)
- Escalation requires documented justification—tiers do not deepen by default
- Three-tier model: git history → targeted area → full codebase
Adoption & trust: 1 installs on skills.sh; 304 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Journey fit
Tiered escalation is shelved under Ship/review because it governs how deep code audits go before release or after risky change batches. The skill is pure audit scoping and review depth—not security tooling install or test execution—so review is the natural subphase.
Common Questions / FAQ
Is Tiered Audit safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Tiered Audit
# Escalation Criteria Audit tiers escalate based on evidence from the previous tier, not by default. Each escalation requires documented justification. ## Tier 1 -> Tier 2 Escalation Tier 1 (git-history analysis) flags areas for Tier 2 when ANY of these criteria are met: ### Churn Hotspots - **3+ files** in the same module changed in the analyzed commit range - **AND** at least one file changed more than twice - Indicates active development area worth deeper review ### Fix-on-Fix Patterns - A commit that fixes a previous fix within the same module (commit messages containing "fix", "revert", "patch", "hotfix" targeting the same files) - Indicates instability or insufficient testing ### Large Diffs - Any single commit touching **200+ lines** in one module - Large changes are statistically more likely to contain defects ### Suspicious Patterns - Reverted commits (indicates something went wrong) - Commits with no tests added alongside implementation changes - Force-pushed branches affecting the module ### New File Clusters - **5+ new files** added to a single module in the analyzed range - Indicates new feature work that may lack review coverage ## Tier 2 -> Tier 3 Escalation Tier 2 (targeted area audit) recommends Tier 3 when ANY of these criteria are met: ### Cross-Cutting Concerns - Findings in one area reveal issues that likely affect other areas (e.g., a shared utility function with a bug, a pattern used across modules) ### Architectural Issues - Tier 2 findings indicate structural problems (circular dependencies, layering violations, inconsistent patterns across modules) ### Coverage Gaps - Tier 2 reveals that the flagged area is representative of a broader pattern (e.g., all plugins share the same anti-pattern) ### Severity Threshold - Tier 2 finds **3+ critical-severity issues** in a single area, suggesting systemic quality problems ## Tier 3 Gate Tier 3 (full codebase audit) requires: 1. **Documented justification** from Tier 2 findings 2. **Explicit user approval** before proceeding 3. **Recommended execution mode**: dedicated sessions (not subagents), one area at a time, sequential The system MUST present the justification and wait for confirmation. It MUST NOT auto-escalate to Tier 3. ## Escalation Log Format Every escalation records: ```markdown ## Escalation: Tier {N} -> Tier {N+1} **Date**: {timestamp} **From tier**: {N} **To tier**: {N+1} **Target areas**: {list of modules/directories} ### Triggering Evidence {specific findings from the previous tier that triggered this escalation, with evidence tags} ### Justification {why this escalation is warranted, referencing the criteria above} ``` ## No-Escalation Path When Tier 1 finds NO flags: - Audit completes at Tier 1 - Summary reports "no areas flagged for deeper review" - No Tier 2 is triggered - This is the expected happy path for stable codebases --- name: tier2-targeted description: | Tier 2 targeted area audit. Deep-dives into areas flagged by Tier 1, one area at a time, sequential. category: audit --- # Tier 2: Targeted Area Audit Runs ONLY for areas flagged by Tier 1 escalation. Each area is audited sequentially, never in parallel. ## Execution Protocol For each flagged area in the escalation list: 1. Load the area context from plugin CLAUDE.md and skill descriptions 2. Read source files in the area 3. Analyze for: - Code quality patterns and anti-patterns - Test coverage (do tests exist for this code?) - Documentation currency (do docs match the code?) - Architectural fit (does this follow project conventions?) 4. Write findings to `.coordination/agents/tier2-{area-slug}.findings.md` 5. Validate findings against the Tier 2 output contract 6. Move to n