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.

164 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use overdrive, delight 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.
  • nikafastovets-langSkill

    overdrive

    Push interfaces past conventional limits with technically ambitious implementations. Whether that's a shader, a 60fps virtual table, spring physics on a dialog, or scroll-driven reveals — make users ask "how did they do that?

    Also in 12 projects that use this

  • mtctSkill

    delight

    Add moments of joy, personality, and unexpected touches that make interfaces memorable and enjoyable to use. Elevates functional to delightful.

    Also in 18 projects that use this

  • mtctSkill

    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 12 projects that use this

  • nikafastovets-langSkill

    arrange

    Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy to create intentional compositions.

    Also in 6 projects that use this

  • zwy123zwySkill

    normalize

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

    Also in 10 projects that use this

  • tdiminoSkill

    shape

    Plan the UX and UI for a feature before writing code. Run a structured discovery interview, then produce a design brief (.design-context.md) that guides implementation. Establishes design direction, constraints, and strategy before any code is written. Triggers on plan the design, design brief, shape the UX, before we build, design discovery.

    Also in 8 projects that use this

  • +4 more from mtct
  • +1 more from nikafastovets-lang

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 147 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 147 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.