Logo: Repo Security Audit

Repo Security Audit

Communautéit
valorisa
repo-security-audit

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.

Iwwersiicht

Editeurvalorisa
RepositoryClaude-Skills
Skill-Nummrepo-security-audit
Stären
20
Forks
5
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    valorisa huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Repo Security Audit an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/valorisa/Claude-Skills/tree/main/skills/repo-security-audit
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/valorisa/Claude-Skills.git /tmp/Claude-Skills
mkdir -p .claude/skills
cp -r /tmp/Claude-Skills/skills/repo-security-audit .claude/skills/repo-security-audit
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Repo Security Audit an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Repo Security Audit automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Repo Security Audit net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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:

  1. Read README.md to understand the project's goals and documented features
  2. Read pyproject.toml / package.json / go.mod / Cargo.toml to identify language, dependencies and version
  3. List source files and test files to understand coverage ratio
  4. 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. isinstance with typing types instead of abc)
  • Wrong argument order in function calls
  • sys.modules or 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 description

Ask 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:

bash
gh issue create --repo <owner/repo> \
  --title "<short descriptive title>" \
  --body "<full markdown body>"

Each issue body must follow this structure:

markdown
## 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:

IssueTitleSeverity
#NtitleCritical
#NtitleHigh

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.

markdown
---
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:

  1. Read README.md to understand the project's goals and documented features
  2. Read pyproject.toml / package.json / go.mod / Cargo.toml to identify language, dependencies and version
  3. List source files and test files to understand coverage ratio
  4. 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. isinstance with typing types instead of abc)
  • Wrong argument order in function calls
  • sys.modules or 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:

markdown
## 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 description

Ask 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:

bash
gh issue create --repo <owner/repo> \
  --title "<short descriptive title>" \
  --body "<full markdown body>"

Each issue body must follow this structure:

markdown
## 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:

IssueTitleSeverity
#NtitleCritical
#NtitleHigh

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

Heefeg gestallte Froen

Wat mécht de KI-Skill Repo Security Audit?

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.

Firwat Repo Security Audit op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Repo Security Audit besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Repo Security Audit an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/valorisa/Claude-Skills/tree/main/skills/repo-security-audit an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Repo Security Audit benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Repo Security Audit benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Repo Security Audit domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Repo Security Audit gratis?

Jo. valorisa huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇