agentsclimarketplace

Repo audit

Skill PSDN-AI/nexus-skills/skills/repo-audit

Scans repositories for hardcoded secrets, API keys, credentials, PII, Web3 private keys, code quality issues, missing documentation, and compliance problems before making them public. Use when preparing to open-source a private repo, auditing a codebase for accidentally committed secrets, or running a pre-release security and compliance checklist.From its SKILL.md

Install
npx -y skills add PSDN-AI/nexus-skills --skill repo-audit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.3 KB, as published. Nobody here has run it

Repo Audit Scanner

Before making a repository public, teams need to ensure it contains no secrets, meets quality standards, has proper documentation, and is free of compliance issues. This Skill provides a comprehensive, automated scan with a clear pass/fail report.

When Should You Use This?

  • You are about to make a private repository public on GitHub, GitLab, or any hosting platform.
  • You want to audit a repository for accidentally committed secrets, credentials, or internal references.
  • You need a pre-release checklist that covers security, code quality, documentation, hygiene, and legal compliance.

How This Skill Can Be Used

This Skill supports three consumption models:

ModelHow it worksWhen to use
A — Script ExecutionRun run_scan.sh and read the Markdown reportYou have bash and want automated, deterministic results
B — Knowledge-DrivenAn LLM reads the Scan Specification and performs the checks using its own toolsNo bash available, or the LLM is operating in a sandboxed environment
C — HybridAn LLM runs the scripts AND uses the spec to interpret, triage, or extend findingsBest coverage — combines automation with LLM judgment

Prerequisites

Required (built-in on macOS/Linux):

  • bash (4.0+), grep, find, file, wc, du, stat

Optional (enhanced checks when available):

  • jq — required to parse JSON output from tools below; without it those checks are SKIPPED
  • gitleaks — deep secret scanning including git history
  • trufflehog — additional secret detection patterns
  • shellcheck — bash script linting
  • trivy — dependency vulnerability scanning
  • npm / pip — language-specific dependency audits

If an optional tool is not installed, the scanner reports the check as SKIPPED rather than failing.

Quick Start

# Basic usage — report to stdout
./skills/repo-audit/scripts/run_scan.sh /path/to/target/repo

# Save report to file
./skills/repo-audit/scripts/run_scan.sh /path/to/repo > report.md

The scanner executes five check modules in sequence, then generates a Markdown report with an overall verdict.

Scan Dimensions

The scanner checks five dimensions. For the complete check-by-check specification, see SCAN_SPEC.md.

DimensionWhat it coversSeverities
SecuritySecrets, API keys, private keys, PII, Web3 keys, .env files, git historyCRITICAL / HIGH
Code QualityTODO comments, shellcheck, dependency vulnerabilities, linter/typechecker configHIGH / MEDIUM / LOW
DocumentationREADME, LICENSE, CONTRIBUTING, .gitignore, SECURITY.md, CHANGELOGHIGH / MEDIUM / LOW
Repo HygieneLarge files, log files, data dumps, build artifacts, OS files, directory depthHIGH / MEDIUM / LOW
Legal & ComplianceLicense validation, internal references, copyright headersHIGH / LOW

Scoring Logic

CRITICAL finding exists  →  ❌ NOT READY  (block public release)
HIGH finding exists      →  ⚠️ NEEDS WORK (strongly recommend fixing)
MEDIUM only              →  ✅ READY      (minor improvements suggested)
LOW only                 →  ✅ READY      (cosmetic suggestions)
No findings              →  ✅ READY      (clean)

Per-dimension status: any CRITICAL in that dimension → ❌, any HIGH → ⚠️, otherwise ✅.

Every finding includes: severity, file path, line number (where applicable), description, and remediation.

Report Format

See REPORT_FORMAT.md for the full report template and severity icons.

Validation

  • The report contains a summary table with all five dimensions and their status.
  • Each finding includes file path, line number (where applicable), description, and remediation.
  • The overall verdict matches the scoring logic (CRITICAL → NOT READY, HIGH → NEEDS WORK).
  • Running the scanner twice on the same repo produces the same results (deterministic).
  • For Model B: the LLM should aim to cover all checks listed in the Scan Specification. Checks that cannot be performed (e.g., no access to git history) should be reported as SKIPPED with a reason.

Common Pitfalls

  • Git history not scanned without gitleaks: The built-in regex checks only scan the working tree (HEAD). Install gitleaks to scan the full git history for secrets.
  • False positives on test fixtures: Files containing example API keys for testing may trigger secret detection. Review findings before acting.
  • Large repos slow the scan: Repos with deep node_modules or build artifacts will be slow. Clean build artifacts before scanning or let the hygiene check flag them.
  • Symlinks: The scanner follows symlinks. If the repo contains symlinks to outside directories, results may include external files.
  • Model B coverage gap: An LLM performing checks without scripts cannot run shellcheck, npm audit, pip-audit, trivy, or gitleaks. These should be reported as SKIPPED with installation instructions.
  • Internal keywords need customization: The default confidential keywords (internal-only, company-confidential, etc.) are generic. Set SCAN_INTERNAL_KEYWORDS or tell the LLM your company-specific terms for better coverage.

Keep looking

Skills are one crate of 628,853. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.