Logo di Repo Security Audit

Repo Security Audit

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

Panoramica

Pubblicato davalorisa
RepositoryClaude-Skills
Nome della skillrepo-security-audit
Stelle
20
Fork
5
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da valorisa su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Repo Security Audit in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/valorisa/Claude-Skills/tree/main/skills/repo-security-audit
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Repo Security Audit in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Repo Security Audit non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Repo Security Audit non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Repo Security Audit su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Repo Security Audit è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Repo Security Audit in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/valorisa/Claude-Skills/tree/main/skills/repo-security-audit. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Repo Security Audit?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Repo Security Audit?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Repo Security Audit: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Repo Security Audit è gratuita?

Sì. È pubblicata su GitHub da valorisa con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇