Command Palette

Search for a command to run...

Назад к скиллам
скилл № 11424

remy-secure

Review branch changes for security vulnerabilities. Multi-stage: regex pre-scan, parallel agents, and false-positive filtering.

БесплатноЗапускает вложенные скрипты
MyPeacefulValentineот MyPeacefulValentine★ 28 звёзд на GitHub

Установить remy-secure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Security Audit Protocol

Security-focused review of code changes on the current branch. Identifies exploitable vulnerabilities with high confidence (≥ 8/10), minimizing false positives through a multi-stage pipeline.

Supports three effort levels:

  • low: Phase 0 regex pre-scan only (0 agents, fastest).
  • medium (default): Phase 0 + 3 category agents (Injection, Auth, Data Exposure).
  • high: Phase 0 + 5 category agents (+ Crypto/Secrets, Deserialization/Dynamic Exec).

External Files

Path Convention: All paths below are relative to ~/.claude/. Use Read("~/.claude/skills/remy-secure/...") to access them.

File Purpose
skills/remy-secure/rules/exclusions.json Hard exclusion rules for false-positive filtering. User-extensible.
skills/remy-secure/rules/precedents.json Precedent judgments for contextual filtering. User-extensible.
skills/remy-secure/rules/patterns.json Phase 0 deterministic regex patterns (dangerous functions, hardcoded secrets).
skills/remy-secure/prompts/scan_injection.md Agent A: SQL/Cmd/Path/Template/NoSQL/XXE injection.
skills/remy-secure/prompts/scan_auth.md Agent B: Auth bypass/privilege escalation/session/JWT.
skills/remy-secure/prompts/scan_data_exposure.md Agent C: PII logging/API leakage/debug exposure.
skills/remy-secure/prompts/scan_crypto.md Agent D (high only): Weak algorithms/hardcoded keys/key storage.
skills/remy-secure/prompts/scan_deserialization.md Agent E (high only): Pickle/YAML/eval/exec.
skills/remy-secure/prompts/filter_false_positive.md False-positive filter agent prompt.
skills/remy-secure/schemas/vulnerability_finding.json Output schema for category agents.
skills/remy-secure/schemas/filter_result.json Output schema for filter agents.
skills/remy-secure/templates/report.md.j2 Markdown report template.
skills/remy-secure/render.py Template rendering helper.

0. Configuration

Environment Variable Default Description
SECURITY_AUDIT_EFFORT medium Fallback effort level when not specified as argument.
SECURITY_AUDIT_MAX_FILTER_AGENTS 15 Maximum parallel filter agents (prevents token explosion on large diffs).
SECURITY_AUDIT_CONFIDENCE_THRESHOLD 8 Minimum confidence (1-10) for a finding to appear in final report.

Argument Parsing

/remy-secure [effort] [diff_range]
  1. If the first argument matches low, medium, or high (case-insensitive): use as effort level, remaining arg is diff_range.
  2. Otherwise: use SECURITY_AUDIT_EFFORT env var (default medium), first arg is diff_range.
  3. If no diff_range specified: default to origin/HEAD...HEAD.

Effort Level Matrix

Effort Phase 0 Category Agents Filter Agents Total Max Agents
low Yes 0 0 0
medium Yes 3 (A, B, C) Up to 15 Up to 18
high Yes 5 (A, B, C, D, E) Up to 15 Up to 20

1. Phase 0: Setup & Pre-Scan

1.1 Git Repository Discovery

  1. Run: git rev-parse --show-toplevel
  2. If exit code = 0: use the output as REPO_ROOT.
  3. If exit code ≠ 0: use AskUserQuestion to ask the user for the git repository path.
    • If user provides a path: verify it with git -C <path> rev-parse --show-toplevel.
    • If verification fails: HALT with error.

1.2 Diff Extraction

Using REPO_ROOT as the working directory:

  1. Run: git -C <REPO_ROOT> diff --name-only <diff_range> → file list.
  2. Run: git -C <REPO_ROOT> diff <diff_range> → full diff content.
  3. If diff is empty: report "No changes detected" and EXIT.

1.3 Regex Pre-Scan (Deterministic)

Load rules from rules/patterns.json. For each pattern:

  1. Run Grep with the pattern's regex against the changed files.
  2. Record matches as prescan_findings: [{id, name, severity, file, line, match}].

These findings are:

  • Included in the final report directly (they are deterministic, no agent confirmation needed).
  • Injected as additional context into category agent prompts (to avoid duplicate reporting).

If effort = low: Generate report from prescan_findings only and EXIT.


2. Phase 1: Category Agent Dispatch (Medium/High)

2.1 Context Preparation

Gather context for agent prompts:

  1. Diff content: Full unified diff from Phase 0.
  2. Pre-scan results: prescan_findings list (so agents skip already-flagged patterns).
  3. Impact data (optional): If .claude/logic_index.db exists in the project:
    • Run: python "~/.claude/skills/remy-index/impact.py" <changed_files...>
    • MCP alternative: If remy-index MCP server is active, query_impact / query_callers tools provide equivalent data without subprocess overhead.
    • If exit code = 0: include the upstream/downstream summary in agent context.
    • If exit code ≠ 0: skip (graceful degradation).

2.2 Agent Dispatch

Read prompt templates

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Read
  2. 02Grep
  3. 03Glob
  4. 04Bash
  5. 05AskUserQuestion
  6. 06Agent

Вложенные файлы

  • README.md
  • README_zh.md
  • prompts/filter_false_positive.md
  • prompts/scan_auth.md
  • prompts/scan_crypto.md
  • prompts/scan_data_exposure.md
  • prompts/scan_deserialization.md
  • prompts/scan_injection.md
  • render.py
  • rules/exclusions.json
  • rules/patterns.json
  • rules/precedents.json
  • schemas/filter_result.json
  • schemas/vulnerability_finding.json
  • templates/report.md.j2

FAQ

Что делает скилл remy-secure?

Review branch changes for security vulnerabilities. Multi-stage: regex pre-scan, parallel agents, and false-positive filtering.

Как установить скилл remy-secure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл remy-secure запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить remy-secure с