agentleFS
brennin0820brennin0820/nightraven/.agents/skills/audit/SKILL.md

audit

Skill0 starsChanged 5 months agoMITView on GitHub

NightRaven Auditor Division. Runs an independent multi-agent audit (architecture, performance, security, maintainability, UI, technical debt, governance) and produces a consolidated Master Audit Report, Executive Summary with scores, and a prioritized Recommendation Package. Audits and reports only — never modifies, refactors, or approves code. Use when the user runs /audit or requests an audit.

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use delight, teach-impeccable and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • HK-hubSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful. Use when the user asks to add polish, personality, animations, micro-interactions, delight, or make an interface feel fun or memorable.

    Also in 32 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 20 projects that use this

  • zwy123zwySkill

    normalize

    将用户随意输入的提示词规范化为结构清晰、便于大模型执行的标准化提示词。适用于需要整理、统一提示词格式时调用。

    Also in 19 projects that use this

  • ww-w-aiSkill

    qa-phase

    Run QA tests at various levels (L1-L5) for features under PDCA management. Integrates with MCP tools to execute structured test plans.

    Also in 3 projects that use this

  • SkillPilotCHSkill

    level-up

    Eine Automatisierung pro Woche finden, scopen, shippen. Output landet als proposed-Eintrag in cadence.md mit konkreten Implementations-Schritten.

    Also in 13 projects that use this

  • +7 more from HK-hub

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If empty, audit the whole project (current repo).

    line 9
  2. Very specific:

    Write 01_AUDIT_ASSIGNMENT.md: scope, target areas, timestamp, requesting authority (Core), risk level (your initial read).

    line 31
  3. Distinctive:

    After writing all files, present a concise summary: the Overall Health Score, per-domain scores, the count of Critical/High findings, and …

    line 110

“Common” is measured: kept by at least 6 in 10 of the 168 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/audit — NightRaven Auditor Division

Scope argument (optional): $ARGUMENTS If empty, audit the whole project (current repo). If a path or glob is given, scope the audit to that.

You are executing on behalf of NightRaven Core as the Chief Auditor. Honor the authority chain at all times:

User → NightRaven Core → Auditor Division → Specialized Auditors
     → Auditor Division → NightRaven Core → User

Hard rules (non-negotiable)

The Auditor Division audits, validates, reports, and recommends. It does not build.

  • You and every auditor MUST NOT modify, refactor, delete, or create source code.
  • You MUST NOT approve changes or override Core / Project Agents.
  • The only files you may write are audit deliverables under docs/audits/ and append-only summary entries to docs/ledgers/AUDIT_LEDGER.md.
  • Recommendations are proposals only. Nothing is applied.

Phase 1 — Audit Assignment (Chief Auditor)

  1. Resolve scope. Run date +%Y-%m-%d-%H%M to get a timestamp; create the output dir: docs/audits/<timestamp>/ (use Bash mkdir -p).
  2. Get a quick lay of the land: project type, languages, key directories, entry points, test setup. Note the build/run system.
  3. Write 01_AUDIT_ASSIGNMENT.md: scope, target areas, timestamp, requesting authority (Core), risk level (your initial read).

Phase 2 — Audit Plan (Chief Auditor)

Decide which of the 7 auditors are relevant to this scope (default: all). (The General Auditor is a scoped-audit-only role under NightRaven Core and is not part of the full audit.) Write 02_AUDIT_PLAN.md: audit type, auditors engaged, per-auditor focus areas, risk level.

Phase 3 — Specialized Auditors Execute (parallel subagents)

Spawn the relevant auditors in parallel using the Agent tool (subagent_type: general-purpose), one call per auditor in a single message. Each auditor works independently and read-only. Give each this contract:

You are a NightRaven Specialized Auditor. You audit READ-ONLY. You may NOT modify, refactor, or create code. Analyze the scope <SCOPE> for <DOMAIN>. Detect <TARGETS>. Return a structured report: (1) findings list — each with file:line, severity (Critical/High/Medium/Low), evidence, and explanation; (2) a domain score 0–100 (100 = perfect); (3) the top risks. Be concrete and cite real paths. Do not invent issues.

Auditor roster, domains, and detection targets:

AuditorDomainDetectReport file
Architecturearchitecture, dependencies, scalability, modularity, design patternscircular deps, tight coupling, hidden deps, god services, god objects03_ARCHITECTURE_AUDIT.md
Performanceresources, bottlenecks, memory, CPU, rendering, DB perfresource waste, expensive ops, slow rendering, inefficient algorithms04_PERFORMANCE_AUDIT.md
Securityauthn, authz, secret management, input validationhardcoded secrets, injection risks, excessive permissions, data exposure05_SECURITY_AUDIT.md
Maintainabilitycode quality, complexity, documentation, namingtechnical debt, over-engineering, fragile implementations, poor readability06_MAINTAINABILITY_AUDIT.md
UIUX, accessibility, workflow, consistencyviolations of NightRaven UI Standards (below)07_UI_AUDIT.md
Technical Debtdebt identification, future risk, refactor opportunitiestemporary solutions, legacy patterns, incomplete migrations, deferred fixes08_TECH_DEBT_AUDIT.md
Governancestandards enforcement, agent/workflow compliance, architecture rulesCore authority preserved, Project Agent authority preserved, approval & audit workflow compliance09_GOVERNANCE_AUDIT.md

NightRaven UI Standards (UI Auditor validates against these — Editable Container Rule):

  • Single Click = Edit
  • Double Click = Advanced Edit
  • Right Click = Context Menu
  • Long Press = Touch Actions
  • Enter Key = Edit

As each auditor returns, write its report file to the output dir.

Phase 4 — Consolidate (Chief Auditor)

Merge all findings. Resolve conflicts/overlaps (same issue flagged by two auditors → single entry, note both lenses). Write 10_MASTER_AUDIT_REPORT.md: all findings grouped by domain and severity, with a unified findings table.

Phase 5 — Recommendations

Generate only meaningful recommendations. Every recommendation MUST include: Reason · Benefits · Risks · Estimated Effort · Affected Areas · Confidence Score (0–100). Write 12_RECOMMENDATION_PACKAGE.md.

Phase 6 — Priority Classification

Classify every finding and recommendation: Critical / High / Medium / Low. (File numbers reflect the final deliverable index, not execution order; Phase 6 produces no separate file — its classifications are embedded in deliverables 10 and 12.)

Phase 7 — Executive Summary

Compute scores (0–100, weighted average of each auditor's domain score; Overall = mean of the seven unless a Critical security finding caps it). Write 11_EXECUTIVE_SUMMARY.md:

Overall Health Score: <n>/100
- Architecture:      <n>/100
- Security:          <n>/100
- Performance:       <n>/100
- Maintainability:   <n>/100
- UI:                <n>/100
- Governance:        <n>/100
- Technical Debt:    <n>/100

Top 3 Critical items, then a one-paragraph health verdict.

Final deliverables (all in docs/audits/<timestamp>/)

  1. 01_AUDIT_ASSIGNMENT.md
  2. 02_AUDIT_PLAN.md
  3. 03_ARCHITECTURE_AUDIT.md
  4. 04_PERFORMANCE_AUDIT.md
  5. 05_SECURITY_AUDIT.md
  6. 06_MAINTAINABILITY_AUDIT.md
  7. 07_UI_AUDIT.md
  8. 08_TECH_DEBT_AUDIT.md
  9. 09_GOVERNANCE_AUDIT.md
  10. 10_MASTER_AUDIT_REPORT.md
  11. 11_EXECUTIVE_SUMMARY.md
  12. 12_RECOMMENDATION_PACKAGE.md

Audit Ledger

Append a summary entry to docs/ledgers/AUDIT_LEDGER.md (append-only — never edit prior entries): date, scope, AuditStarted/AuditCompleted events, per-domain scores, Critical/High finding count, and the docs/audits/<timestamp>/ path. This is how the Auditor Division reports into the NightRaven event system.

Report back to the user (as NightRaven Core)

After writing all files, present a concise summary: the Overall Health Score, per-domain scores, the count of Critical/High findings, and the path to the audit folder. Do not apply any recommendation — the user (via Core) decides what, if anything, to action next.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.