Logo di Security Review

Security Review

Community
dianyike
security-review

Run a read-only dual-verification security audit (Semgrep + Codex cross-validation). Use when: user says "security review", "audit code", "scan for vulnerabilities", "is this safe", "check for secrets", "before merge security scan", or invokes /security:review. Produces a confidence-scored report; never modifies source code. For remediation, see /security:fix.

Add to TypingMind

Panoramica

Pubblicato dadianyike
Repositoryclaude-code-insights
Nome della skillsecurity-review
Stelle
69
Fork
13
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 dianyike su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Security Review 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/dianyike/claude-code-insights/tree/main/examples/security-reviewer/skills/security-review
  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/dianyike/claude-code-insights.git /tmp/claude-code-insights
mkdir -p .claude/skills
cp -r /tmp/claude-code-insights/examples/security-reviewer/skills/security-review .claude/skills/security-review
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Security Review 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 Security Review 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 Security Review 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à.

/security:review — Read-Only Security Audit

Run the security-reviewer subagent to produce a dual-verification security report. This command is always read-only — it will never modify source code files.

Command Syntax

/security:review [options] [path...]
  --base <branch>              # Diff against a base branch (merge-base)
  --scope staged|working-tree  # Explicit change scope
  --background                 # Run in background, return job ID
  --wait                       # Run in foreground (default)

Target Resolution

Determine the review scope before invoking the subagent:

Priority Order

  1. If --base <branch> is specified → branch diff mode
    • Run: git merge-base HEAD <branch> → git diff --name-only <merge-base>..HEAD
  2. If --scope is specified → explicit scope mode
    • staged: git diff --staged --name-only
    • working-tree: git diff --name-only + git ls-files --others --exclude-standard
  3. If neither specified and working tree is dirty → auto: working-tree
  4. If neither specified and working tree is clean → auto: branch diff against default branch

Path Filtering

If [path...] arguments are provided, filter the resolved file list to only include files whose paths start with any of the given prefixes.

Handoff to Subagent

Pass the resolved scope to the security-reviewer subagent:

Review scope:
- Mode: <branch-diff|staged|working-tree>
- Base: <branch> (if applicable)
- Files: <resolved file list>
- Path filters: <prefixes> (if applicable)

Background Execution

When --background is specified:

  1. Launch the security-reviewer subagent with run_in_background: true
  2. Return immediately with: "Security review started. Use /security:status to check progress."
  3. When the subagent completes, the notification will include the verdict and report path.

When --wait (default):

  1. Launch the security-reviewer subagent in foreground
  2. Display the verdict and report path when complete

Related Commands

  • /security:fix <report> — Opt-in remediation based on a review report (requires explicit user action)

Job Management (Phase 1 — not yet implemented)

The following commands are planned but not yet available as separate skills. Until implemented, use natural language (e.g., "check the security scan status") and the main agent will handle it via the Agent tool's built-in background notification.

  • /security:status [job-id] — Check background job progress. Without ID, list all active jobs
  • /security:result <job-id> — Retrieve completed job verdict and report path
  • /security:cancel <job-id> — Mark a running job as CANCELLED (subagent may still complete in background)

Expected behavior (for future implementation):

  • Job state is persisted at .agents-output/security/jobs/<job-id>.json
  • States: QUEUED → RUNNING → COMPLETED / FAILED / CANCELLED
  • On session restart, any RUNNING job is marked STALE (detected by checking status == RUNNING with created_at older than the current session start)

Completion Criteria

  • Target resolution produced a concrete file list (or "no changes found" if empty)
  • security-reviewer subagent invoked with resolved scope
  • Verdict and report path displayed to user
  • If --background: job ID returned immediately, no blocking
  • No source code files modified

Gotchas

  • --base and --scope are mutually exclusive in practice — if both specified, --base wins (priority order). Don't warn the user; just follow priority
  • When working tree is clean AND no default branch is detectable (e.g., fresh repo with only one commit), auto mode falls through to an empty file list. Surface this clearly instead of running Semgrep on zero files
  • --background relies on Claude Code's run_in_background for the Agent tool — the subagent cannot be cancelled mid-execution; /security:cancel only marks the job as CANCELLED and stops waiting for results
  • Path filters are prefix-matched, not glob-matched. src/auth matches src/auth/login.ts and src/auth-utils/helper.ts. If users expect glob semantics, clarify
  • Iterate this section: After each real usage, append new gotchas here

What This Command Does NOT Do

  • Does not modify source code (read-only)
  • Does not enter the Fix-Verify Loop (Section 4 of the protocol)
  • Does not auto-remediate findings
  • Does not require Write or Edit tool permissions

Domande frequenti

Cosa fa la skill IA Security Review?

Run a read-only dual-verification security audit (Semgrep + Codex cross-validation). Use when: user says "security review", "audit code", "scan for vulnerabilities", "is this safe", "check for secrets", "before merge security scan", or invokes /security:review. Produces a confidence-scored report; never modifies source code. For remediation, see /security:fix.

Perché usare Security Review su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Security Review è 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 Security Review in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/dianyike/claude-code-insights/tree/main/examples/security-reviewer/skills/security-review. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Security Review?

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 Security Review?

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

La skill IA Security Review è gratuita?

Sì. È pubblicata su GitHub da dianyike 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 👇