remy-secure
Review branch changes for security vulnerabilities. Multi-stage: regex pre-scan, parallel agents, and false-positive filtering.
от 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/. UseRead("~/.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]
- If the first argument matches
low,medium, orhigh(case-insensitive): use as effort level, remaining arg is diff_range. - Otherwise: use
SECURITY_AUDIT_EFFORTenv var (defaultmedium), first arg is diff_range. - 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
- Run:
git rev-parse --show-toplevel - If exit code = 0: use the output as
REPO_ROOT. - If exit code ≠ 0: use
AskUserQuestionto 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.
- If user provides a path: verify it with
1.2 Diff Extraction
Using REPO_ROOT as the working directory:
- Run:
git -C <REPO_ROOT> diff --name-only <diff_range>→ file list. - Run:
git -C <REPO_ROOT> diff <diff_range>→ full diff content. - 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:
- Run
Grepwith the pattern's regex against the changed files. - 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:
- Diff content: Full unified diff from Phase 0.
- Pre-scan results:
prescan_findingslist (so agents skip already-flagged patterns). - Impact data (optional): If
.claude/logic_index.dbexists in the project:- Run:
python "~/.claude/skills/remy-index/impact.py" <changed_files...>
- MCP alternative: If
remy-indexMCP server is active,query_impact/query_callerstools 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).
- Run:
2.2 Agent Dispatch
Read prompt templates
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Bash - 05
AskUserQuestion - 06
Agent
Вложенные файлы
- 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…