audit-code

Perform a read-only repository audit for security, correctness, dependencies, and maintainability with structured evidence.

Updated Aug 1, 2026
One-click install
npx skills add https://github.com/QuyDu/Skills-Orchestrator --skill audit-code-quydu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audit-code
Source: https://github.com/QuyDu/Skills-Orchestrator/tree/main/.github/skills/audit-code
Command: npx skills add https://github.com/QuyDu/Skills-Orchestrator --skill audit-code-quydu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Teams lack a consistent, evidence-backed way to assess an entire repository for security vulnerabilities, exposed secrets, correctness defects, resource leaks, dependency risk, and standards conformance without mutating source code. ## Core Features & Use Cases - Whole-Repository Audit: Scans the worktree, staged index, tracked reports, and reachable Git history with a pinned, checksum-verified Gitleaks scanner, plus language-specific analyzers for .NET, JavaScript, Python, Java, Go, and Rust. - Standards Conformance Matrix: Maps findings to versioned controls from Microsoft SDL, OWASP ASVS 5.0, NIST SSDF, CIS Controls v8.1, SLSA 1.2, and OpenSSF Scorecard, producing an assurance conclusion of conformant, conformant-with-exceptions, non-conformant, or insufficient-evidence. - Governed Artifact Chain: Emits schema-validated findings, review, and remediation-plan reports bound to one audit run ID and an immutable content-addressed evidence snapshot, stopping for approval before any remediation. - Use Case: Run a full audit of a GitHub-hosted C# service to detect hard-coded credentials in history, disposal and async misuse, vulnerable transitive packages, and missing branch protection, then receive a prioritized remediation plan. ## Quick Start Ask the agent to run /audit-code on this repository and produce the validated findings, review, and remediation plan reports.

Frequently Asked Questions about audit-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a full security audit on a repository?

Invoke /audit-code at the repository root. It gathers Git and scanner evidence, runs a pinned Gitleaks scan over the worktree, staged index, and reachable history, executes language-specific analyzers, and writes validated findings, review, and remediation-plan reports under reports/.

What is the difference between audit-code, change-review, and security-review?

audit-code performs a complete whole-repository assessment across security, correctness, performance, dependencies, and maintainability. Use change-review for a bounded diff and security-review for a security-only pass, as stated in the skill description.

Does audit-code modify my source code or secrets?

No. The audit is strictly read-only and never mutates source, infrastructure, history, or external systems. It stops in an approval-wait state before remediation, and discovering a secret never authorizes rotation, revocation, or history rewriting.

Which languages and frameworks does the audit support?

It defines verification profiles for C#/.NET, JavaScript, TypeScript, Node.js, Python, Java, Kotlin, Go, Rust, and infrastructure-as-code or CI/CD. Each profile maps required checks to native compilers, linters, test runners, and package advisory tools.

Why does my audit report say insufficient-evidence?

The audit fails closed when required evidence is missing, such as an unavailable pinned Gitleaks scan, stale secret evidence older than 24 hours, unapproved hosted GitHub access, or missing analyzer results. Blocked or partial coverage is never reported as passed.

Can audit-code detect secrets in Git history?

Yes. It installs a pinned, checksum-verified Gitleaks 8.30.1 binary and scans the worktree, staged content, tracked reports, all local refs, and reachable history with full redaction. Remote-only refs and unreachable objects are recorded as explicit limitations.