multi-model-code-auditor
БесплатноЗапускает вложенные скриптыНе проверенRun a comprehensive security, privacy, and bug audit on any codebase using the absolute best frontier AI models via OpenRouter API. Dynamically discovers the…
от onfire7777★ 17 звёзд на GitHubОб этом скилле
Multi-Model Code Auditor — Elite Edition
Audit any codebase by sending it to a configured pool of frontier model roles (coding, reasoning, security, fast triage, and verification), each with model-specific prompt engineering optimized for its strengths. Findings are cross-compared, deduplicated by multi-signal similarity, merged by selecting the best description and fix from each cluster, and ranked by consensus. After fixes are applied, a verification re-audit confirms all issues are resolved.
When to Use
This skill activates when the user requests any of: "security audit", "code review", "vulnerability scan", "bug audit", "review with multiple models", "use AI to check my code", "find all bugs", "privacy audit", or "penetration test the code".
Architecture
The system uses 6 model tiers, each assigned a specialized role:
| Tier | Family | Role | Strengths |
|---|---|---|---|
| 1 | OpenAI Flagship | Structured Analysis Lead | Schema precision, systematic enumeration, exhaustive coverage |
| 2 | Anthropic Flagship | Nuanced Reasoning Specialist | Contextual understanding, subtle logic bugs, low hallucination |
| 3 | Google Flagship | Cross-File Architecture Analyst | Large context, cross-module dependency tracking, design flaws |
| 4 | OpenAI Reasoning | Deep Reasoning & Logic Auditor | Race conditions, state machines, multi-step attack chains |
| 5 | OpenAI Codex | Code-Native Security Scanner | Pattern recognition, API misuse, production-ready fixes |
| 6 | DeepSeek | Algorithmic & Low-Level Bug Hunter | Algorithmic correctness, boundary conditions, data handling |
Each model receives a tailored prompt with: a specialized persona, model-specific focus areas, few-shot examples calibrating severity levels, negative examples showing what NOT to report, and a strict output schema requiring exact code citations.
When the OpenRouter model discovery API is unavailable, the script falls back to a curated list of known-good stable models (Claude Sonnet 4, Gemini 2.5 Pro, GPT-4.1) to ensure the audit always runs.
Full Workflow
The audit follows a 7-step pipeline. Steps 1-3 use the scripts; steps 4-7 are performed by the agent.
Step 1: Discover Best Models
The script dynamically queries OpenRouter to find the best available model from each tier. Run with --discover to preview:
python3 /home/ubuntu/skills/multi-model-code-auditor/scripts/run_audit.py --discover
Step 2: Audit with All Models
# Sequential (default) — queries models one at a time with retry logic
python3 /home/ubuntu/skills/multi-model-code-auditor/scripts/run_audit.py <project_dir> --output audit_results.json
# Parallel (recommended) — queries all models simultaneously for speed
python3 /home/ubuntu/skills/multi-model-code-auditor/scripts/run_audit.py <project_dir> --output audit_results.json --parallel
# Specific models — override auto-discovery with chosen models
python3 /home/ubuntu/skills/multi-model-code-auditor/scripts/run_audit.py <project_dir> --models anthropic/claude-sonnet-4,google/gemini-2.5-pro --output audit_results.json
The script collects source files (prioritizing entry points, config, and auth files first), builds the payload with smart truncation for large codebases, and queries each model with its tailored prompt. Each model gets up to 3 retry attempts with exponential backoff (10s, 30s, 60s) on transient failures.
Reliability features:
- Exponential backoff retry (3 attempts per model) for timeouts, rate limits, and server errors
- Smart payload truncation: high-priority files (entry points, config, auth) are preserved in full; low-priority files are truncated to fit within model context limits
- Progress indicators during long API calls
- Per-model intra-finding deduplication
- Family-aware model override:
--modelsflag correctly infers prompt engineering from model ID prefix - Known-good fallback models when API discovery fails
Step 3: Cross-Compare and Merge
python3 /home/ubuntu/skills/multi-model-code-auditor/scripts/cross_compare.py audit_results.json --output combined_findings.json
The merger performs:
- Multi-signal clustering — groups findings by file + function + title + CWE + code snippet similarity (weighted Jaccard). Cross-file findings can still cluster when they share function names, CWEs, and code patterns.
- Best-result selection — for each cluster, picks: highest severity, most concise title, longest description, most complete fix code, most common CWE, highest CVSS
- False positive filtering — flags single-model findings matching known hallucination patterns (phantom functions, safe function misidentification, suspicious line numbers, theoretical-only risks)
- Consensus ranking — sorts by: model count (desc) then family diversity (desc) then severity (desc) then CVSS (desc)
Output: combined_findings.json + combined_findings_report.md (generated from templates/report_template.md)
Установить multi-model-code-auditor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл multi-model-code-auditor?
Run a comprehensive security, privacy, and bug audit on any codebase using the absolute best frontier AI models via OpenRouter API. Dynamically discovers the latest models, uses model-specific elite prompt engineering, merges findings by consensus, implements fixes, and runs a verification re-audit. Use when the user requests a code audit, security review, vulnerability scan, bug audit, or asks to review code with multiple AI models.
Как установить скилл multi-model-code-auditor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл multi-model-code-auditor запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic