repo-security-audit
Skill15 starsChanged 5 months agoMITView on GitHub
Use this skill when the user asks to "audit repo", "analyze repository", "find bugs", "find gaps", "review codebase", "check code quality", or wants to analyze a repository for bugs, missing features, test coverage gaps, security issues and create GitHub issues for findings. Performs a deep technical audit and optionally opens GitHub issues for high-priority problems.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- agentic-loop-githubSkill
- angle-mortSkill
- anti-hallucination-anti-acquiescenceSkill
- business-revenue-strategySkill
- constrained-decodingSkill
- create-github-issuesSkill
- diagnoseSkill
- dual-llm-contradiction-dialogSkill
- ExploitGym-paper-to-security-skillSkill
- fabuleuxSkill
- find-bugsSkill
- find-skillsSkill
- grill-meSkill
- improve-codebase-architectureSkill
- collaborative-technical-peer-reviewSkill
- intent-guard-shieldSkill
- llm-councilSkill
- long-context-lost-in-the-middleSkill
- maths-olympiadSkill
- multi-llm-debate-grill-meSkill
- task-observerSkill
- promptor-councilSkill
- promptorSkill
- rescue-tokensSkill
- rodinSkill
- setup-matt-pocock-skillsSkill
- skill-creatorSkill
- skill-factorySkill
- skills-smart-managerSkill
- spec-drivenSkill
- standardize-github-repoSkill
- storm-researchSkill
- task-observerSkill
- tdd-hybridSkill
- token-optimizationSkill
- verification-rigoureuseSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 13 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
If the user provided a GitHub URL (e.g.
- Distinctive: line 19
If the user provided a local path, use that directly.
- Distinctive: line 21
If neither was provided, use the current working directory as the target.
- Distinctive: line 23
Ask the user: "Should I create GitHub issues for high-priority findings?" before proceeding if not already specified.
- Distinctive: line 29
Read the repository to understand its purpose and architecture:
- Distinctive: line 37
Read README.md to understand the project's goals and documented features
- Very specific: line 38
Read pyproject.toml / package.json / go.mod / Cargo.toml to identify language, dependencies and version
- Distinctive: line 40
Read the main entry point and core modules
- Distinctive: line 151
Ask the user: "Which severity levels should I open GitHub issues for?" Default (if not specified): Critical + High Priority only.
- Distinctive: line 152
Default (if not specified): Critical + High Priority only.
- Distinctive: line 202
Write all issues in English
- Distinctive: line 204
Do not mention AI or automated tools in the issue body
- Distinctive: line 205
Keep titles under 80 characters, specific and actionable
- Distinctive: line 206
Use inline code formatting for file paths and function names
- Distinctive: line 212
After creating all issues, show the user a summary table:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repo Audit
Perform a deep technical audit of a repository: find bugs, gaps, missing tests, security issues, and API design problems. Optionally create GitHub issues for findings.
Make a todo list and track progress through all steps.
Step 0 — Determine target
If the user provided a GitHub URL (e.g. https://github.com/owner/repo), extract owner/repo.
If the user provided a local path, use that directly.
If neither was provided, use the current working directory as the target.
Ask the user: "Should I create GitHub issues for high-priority findings?" before proceeding if not already specified.
Step 1 — Explore repository structure
Read the repository to understand its purpose and architecture:
gh repo view <owner/repo>Then explore locally (if available) or via GitHub API:
- Read
README.mdto understand the project's goals and documented features - Read
pyproject.toml/package.json/go.mod/Cargo.tomlto identify language, dependencies and version - List source files and test files to understand coverage ratio
- Read the main entry point and core modules
Build a mental model of:
- What the project does
- Tech stack and architecture
- Execution modes or major features
- How tests are organized
Step 2 — Deep code analysis
Systematically read and analyze the source code. For each module, check for:
Bugs
- Logic errors in conditionals, setters, or property accessors
- Incorrect use of standard library (e.g.
isinstancewithtypingtypes instead ofabc) - Wrong argument order in function calls
sys.modulesor import cache misuse- Race conditions in threaded/async code
- Off-by-one errors in counters or indices
Performance Issues
- Busy-wait loops (while loops without sleep/blocking)
- Missing connection pooling or caching
- Redundant re-computation inside loops
- Unbounded memory growth (queues, lists, caches)
Security Issues
- Dynamic code execution (
exec,eval,exec_module) without input validation - World-readable file/directory creation without permission mode
- Serialization of untrusted data (pickle, JSON from user input)
- Credentials or secrets hardcoded or logged
API Design Issues
- Return type annotations that don't match actual return values
- Inconsistent method naming or behavior across similar methods
- Methods that silently swallow exceptions during retries
- Missing input validation at public API boundaries
- Unclear or undocumented side effects
Test Coverage Gaps
- Features documented in README but with no tests
- CLI commands with no integration tests
- Timeout and retry logic with no verification tests
- Platform-specific code paths never exercised
Documentation Gaps
- Features implemented but not mentioned in README
- Behavior that contradicts documentation
- Missing examples for non-obvious configuration options
Step 3 — Compile findings
Organize findings into four severity tiers:
Critical (runtime failures, data loss, security)
These break the software or expose serious vulnerabilities. Include:
- File path and line number
- What the bug is
- Why it fails
- Suggested fix (code snippet)
High Priority (incorrect behavior, performance, API breakage)
These cause incorrect behavior under common use cases or degrade performance significantly.
Medium Priority (missing features, coverage gaps, bad UX)
These don't break existing functionality but limit reliability or usability.
Low / Nice-to-have (style, docs, minor improvements)
Small improvements that improve maintainability or developer experience.
Step 4 — Present summary to user
Show a structured report:
## Audit Summary — <repo name>
### Critical Bugs (N)
- [file.py:line] Short description
### High Priority (N)
- [file.py:line] Short description
### Medium Priority (N)
- Short description
### Test Coverage Gaps (N)
- Short description
### Security Concerns (N)
- Short descriptionAsk the user: "Which severity levels should I open GitHub issues for?" Default (if not specified): Critical + High Priority only.
Step 5 — Create GitHub issues (if confirmed)
For each finding in the selected severity tiers, create a GitHub issue using:
gh issue create --repo <owner/repo> \
--title "<short descriptive title>" \
--body "<full markdown body>"Each issue body must follow this structure:
## Description
<One paragraph explaining the problem clearly.>
## Location
`<file/module>` line ~<N>
## Current Behavior
<Code snippet showing the problematic code>
<Explanation of what it does wrong>
## Expected Behavior
<What it should do instead>
## Suggested Fix
<Code snippet with the fix>
## Impact
<Who is affected and how severely>
## Priority
<Critical / High / Medium>Rules:
- Write all issues in English
- One issue per finding (do not bundle unrelated problems)
- Do not mention AI or automated tools in the issue body
- Keep titles under 80 characters, specific and actionable
- Use inline code formatting for file paths and function names
Step 6 — Final report
After creating all issues, show the user a summary table:
| Issue | Title | Severity |
| #N | title | Critical |
| #N | title | High |
Then suggest next steps:
- Which critical bugs to fix first
- Whether a 1.0 release is advisable given the findings
- Any architectural changes worth considering
Voici une version corrigée en un seul bloc, avec les blancs nécessaires autour des titres et des listes pour satisfaire MD022 et MD032.
---
allowed-tools: Bash(gh issue create:*), Bash(gh issue list:*), Bash(gh repo view:*), Bash(gh api:*), Bash(git log:*), Bash(git diff:*), Bash(find:*), Bash(cat:*), Bash(grep:*), Bash(jq:*), Read, Glob, Grep, Agent, WebFetch
description: Use this skill when the user asks to "audit repo", "analyze repository", "find bugs", "find gaps", "review codebase", "check code quality", or wants to analyze a repository for bugs, missing features, test coverage gaps, security issues and create GitHub issues for findings. Performs a deep technical audit and optionally opens GitHub issues for high-priority problems.
version: 1.0.0
---
# Repo Audit
Perform a deep technical audit of a repository: find bugs, gaps, missing tests, security issues, and API design problems. Optionally create GitHub issues for findings.
Make a todo list and track progress through all steps.
---
## Step 0 — Determine target
If the user provided a GitHub URL (e.g. `https://github.com/owner/repo`), extract `owner/repo`.
If the user provided a local path, use that directly.
If neither was provided, use the current working directory as the target.
Ask the user: **"Should I create GitHub issues for high-priority findings?"** before proceeding if not already specified.
---
## Step 1 — Explore repository structure
Read the repository to understand its purpose and architecture:
```bash
gh repo view <owner/repo>Then explore locally (if available) or via GitHub API:
- Read
README.mdto understand the project's goals and documented features - Read
pyproject.toml/package.json/go.mod/Cargo.tomlto identify language, dependencies and version - List source files and test files to understand coverage ratio
- Read the main entry point and core modules
Build a mental model of:
- What the project does
- Tech stack and architecture
- Execution modes or major features
- How tests are organized
Step 2 — Deep code analysis
Systematically read and analyze the source code. For each module, check for:
Bugs
- Logic errors in conditionals, setters, or property accessors
- Incorrect use of standard library (e.g.
isinstancewithtypingtypes instead ofabc) - Wrong argument order in function calls
sys.modulesor import cache misuse- Race conditions in threaded/async code
- Off-by-one errors in counters or indices
Performance Issues
- Busy-wait loops (while loops without sleep/blocking)
- Missing connection pooling or caching
- Redundant re-computation inside loops
- Unbounded memory growth (queues, lists, caches)
Security Issues
- Dynamic code execution (
exec,eval,exec_module) without input validation - World-readable file/directory creation without permission mode
- Serialization of untrusted data (pickle, JSON from user input)
- Credentials or secrets hardcoded or logged
API Design Issues
- Return type annotations that don't match actual return values
- Inconsistent method naming or behavior across similar methods
- Methods that silently swallow exceptions during retries
- Missing input validation at public API boundaries
- Unclear or undocumented side effects
Test Coverage Gaps
- Features documented in README but with no tests
- CLI commands with no integration tests
- Timeout and retry logic with no verification tests
- Platform-specific code paths never exercised
Documentation Gaps
- Features implemented but not mentioned in README
- Behavior that contradicts documentation
- Missing examples for non-obvious configuration options
Step 3 — Compile findings
Organize findings into four severity tiers:
Critical (runtime failures, data loss, security)
These break the software or expose serious vulnerabilities. Include:
- File path and line number
- What the bug is
- Why it fails
- Suggested fix (code snippet)
High Priority (incorrect behavior, performance, API breakage)
These cause incorrect behavior under common use cases or degrade performance significantly.
Medium Priority (missing features, coverage gaps, bad UX)
These don't break existing functionality but limit reliability or usability.
Low / Nice-to-have (style, docs, minor improvements)
Small improvements that improve maintainability or developer experience.
Step 4 — Present summary to user
Show a structured report:
## Audit Summary — <repo name>
### Critical Bugs (N)
- [file.py:line] Short description
### High Priority (N)
- [file.py:line] Short description
### Medium Priority (N)
- Short description
### Test Coverage Gaps (N)
- Short description
### Security Concerns (N)
- Short descriptionAsk the user: "Which severity levels should I open GitHub issues for?"
Default (if not specified): Critical + High Priority only.
Step 5 — Create GitHub issues (if confirmed)
For each finding in the selected severity tiers, create a GitHub issue using:
gh issue create --repo <owner/repo> \
--title "<short descriptive title>" \
--body "<full markdown body>"Each issue body must follow this structure:
## Description
<One paragraph explaining the problem clearly.>
## Location
`<file/module>` line ~<N>
## Current Behavior
<Code snippet showing the problematic code>
<Explanation of what it does wrong>
## Expected Behavior
<What it should do instead>
## Suggested Fix
<Code snippet with the fix>
## Impact
<Who is affected and how severely>
## Priority
<Critical / High / Medium>Rules:
- Write all issues in English
- One issue per finding (do not bundle unrelated problems)
- Do not mention AI or automated tools in the issue body
- Keep titles under 80 characters, specific and actionable
- Use inline code formatting for file paths and function names
Step 6 — Final report
After creating all issues, show the user a summary table:
| Issue | Title | Severity |
| #N | title | Critical |
| #N | title | High |
Then suggest next steps:
- Which critical bugs to fix first
- Whether a 1.0 release is advisable given the findings
- Any architectural changes worth considering
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
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.

