[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77YRX7X40NNJ6VWR1W1BMAB":3,"skill-same:01M77YRX7X40NNJ6VWR1W1BMAB":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M77YRX7X40NNJ6VWR1W1BMAB","xfire-security-review",null,"Multi-agent adversarial security review — 3 AI agents debate every finding, only real vulnerabilities survive","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fx\u002Fxfire-security-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: xfire-security-review\ndescription: \"Multi-agent adversarial security review — 3 AI agents debate every finding, only real vulnerabilities survive\"\nversion: 0.1.2\nhomepage: https:\u002F\u002Fgithub.com\u002FHar1sh-k\u002Fxfire\nmetadata:\n  openclaw:\n    emoji: \"🔥\"\n    homepage: \"https:\u002F\u002Fgithub.com\u002FHar1sh-k\u002Fxfire\"\n    requires:\n      env: [ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY, GITHUB_TOKEN, XFIRE_CONFIG_PATH, XFIRE_CACHE_DIR, XFIRE_AUTH_PATH]\n    primaryEnv: ANTHROPIC_API_KEY\n---\n\n# xfire — Multi-Agent Adversarial Security Review\n\n**Multiple agents. One verdict. Zero blind spots.**\n\nxfire sends your code to 3 AI agents (Claude, Codex, Gemini) independently, then runs an adversarial debate where they cross-examine each other's findings. Only vulnerabilities that survive prosecution, defense, and a judge's ruling make the final report.\n\n## When to Use\n\nInvoke xfire when a user asks for any of these:\n\n- \"security review this PR\"\n- \"find vulnerabilities in this code\"\n- \"audit this repo for security issues\"\n- \"run a security scan\"\n- \"analyze this diff for security problems\"\n- \"check this pull request for vulnerabilities\"\n- \"code review for security\"\n- \"pentest this codebase\"\n- \"threat model this change\"\n\n**Do NOT use xfire for:**\n\n- General code quality \u002F style reviews (use a linter)\n- Performance profiling\n- Dependency license auditing\n- Non-security functional testing\n\n## Prerequisites\n\n- **Python 3.11+**\n- Install: `pip install xfire`\n- At least one AI agent CLI or API key configured:\n\n| Agent   | CLI tool | API key env var    |\n|---------|----------|--------------------|\n| Claude  | `claude` | `ANTHROPIC_API_KEY` |\n| Codex   | `codex`  | `OPENAI_API_KEY`    |\n| Gemini  | `gemini` | `GOOGLE_API_KEY`    |\n\n## Setup\n\n```bash\n# Initialize config in current repo\nxfire init\n\n# Test agent connectivity\nxfire test-llm\n\n# Set up agent credentials\nxfire auth login --provider claude\nxfire auth login --provider codex\nxfire auth login --provider gemini\n```\n\n## Commands\n\n### Core Analysis\n\n#### `analyze-pr` — Analyze a GitHub pull request\n\n```bash\nxfire analyze-pr --repo owner\u002Frepo --pr 123\n```\n\n| Flag | Type | Default | Env var | Description |\n|------|------|---------|---------|-------------|\n| `--repo` | str | *required* | — | GitHub repo in owner\u002Frepo format |\n| `--pr` | int | *required* | — | PR number |\n| `--github-token` | str | None | `GITHUB_TOKEN` | GitHub token |\n| `--agents` | str | None | — | Comma-separated agent list (claude,codex,gemini) |\n| `--skip-debate` | bool | False | — | Skip adversarial debate phase |\n| `--context-depth` | str | None | — | Context depth: shallow\\|medium\\|deep |\n| `--output` | str | None | — | Output file path |\n| `--format` | str | markdown | — | Output format: markdown\\|json\\|sarif |\n| `--post-comment` | bool | False | — | Post review as GitHub PR comment |\n| `--cache-dir` | str | None | `XFIRE_CACHE_DIR` | Cache directory for context\u002Fintent persistence |\n| `--verbose` | bool | False | — | Enable verbose logging |\n| `--dry-run` | bool | False | — | Show what would be analyzed without calling agents |\n| `--debate` | bool | False | — | Show adversarial debate transcript after the report |\n| `--debug` | bool | False | — | Write full debug trace to xfire-debug-TIMESTAMP.md |\n| `--silent` | bool | False | — | Suppress all output — exit code only (for git hooks) |\n\n#### `analyze-diff` — Analyze a local diff or staged changes\n\n```bash\nxfire analyze-diff --staged --repo-dir .\nxfire analyze-diff --patch changes.patch --repo-dir .\nxfire analyze-diff --commit f1877d3 --repo-dir \u002Fpath\u002Fto\u002Frepo\nxfire analyze-diff --base main --head feature-branch\nxfire analyze-diff --commit f1877d3 --thinking --repo-dir \u002Fpath\u002Fto\u002Frepo\n```\n\n| Flag | Type | Default | Env var | Description |\n|------|------|---------|---------|-------------|\n| `--patch` | str | None | — | Path to a diff\u002Fpatch file |\n| `--commit` | str | None | — | Commit SHA to analyze (auto-generates patch via git show) |\n| `--repo-dir` | str | . | — | Path to the repository root |\n| `--staged` | bool | False | — | Analyze staged changes in the repo |\n| `--base` | str | None | — | Base branch\u002Fcommit for comparison |\n| `--head` | str | None | — | Head branch\u002Fcommit for comparison |\n| `--agents` | str | None | — | Comma-separated agent list |\n| `--skip-debate` | bool | False | — | Skip adversarial debate phase |\n| `--context-depth` | str | None | — | Context depth: shallow\\|medium\\|deep |\n| `--output` | str | None | — | Output file path |\n| `--format` | str | markdown | — | Output format: markdown\\|json\\|sarif |\n| `--cache-dir` | str | None | `XFIRE_CACHE_DIR` | Cache directory for context\u002Fintent persistence |\n| `--thinking` | bool | False | — | Enable extended thinking\u002Freasoning for all agents |\n| `--verbose` | bool | False | — | Enable verbose logging |\n| `--dry-run` | bool | False | — | Show what would be analyzed without calling agents |\n| `--debate` | bool | False | — | Show adversarial debate transcript after the report |\n| `--debug` | bool | False | — | Write full debug trace to xfire-debug-TIMESTAMP.md |\n| `--silent` | bool | False | — | Suppress all output — exit code only (for git hooks) |\n\n#### `code-review` — Full codebase security audit\n\n```bash\nxfire code-review \u002Fpath\u002Fto\u002Frepo\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `repo_dir` (argument) | str | . | Path to the repository root |\n| `--agents` | str | None | Comma-separated: claude,codex,gemini |\n| `--skip-debate` | bool | False | Skip adversarial debate phase |\n| `--max-files` | int | 150 | Maximum number of source files to scan |\n| `--thinking` | bool | False | Enable extended thinking\u002Freasoning for all agents |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--output` | str | None | Output file path |\n| `--verbose` | bool | False | Enable verbose logging |\n| `--dry-run` | bool | False | Show what would be analyzed without calling agents |\n| `--debate` | bool | False | Show adversarial debate transcript after the report |\n| `--debug` | bool | False | Write full debug trace to xfire-debug-TIMESTAMP.md |\n| `--silent` | bool | False | Suppress all output — exit code only (for git hooks) |\n\n#### `scan` — Baseline-aware incremental scan\n\n```bash\nxfire scan . --base main --head feature-branch\nxfire scan . --since-last-scan\nxfire scan . --last 5\nxfire scan . --range abc123~1..abc123\nxfire scan . --since 2026-01-01\nxfire scan . --diff changes.patch\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `repo_dir` (argument) | str | . | Path to the repository root |\n| `--base` | str | None | Base branch\u002Fcommit (use with --head) |\n| `--head` | str | None | Head branch\u002Fcommit (use with --base) |\n| `--range` | str | None | Commit range e.g. abc123~1..abc123 |\n| `--diff` | str | None | Path to a .patch file |\n| `--since-last-scan` | bool | False | Scan all commits since last scan |\n| `--since` | str | None | All commits since date (YYYY-MM-DD) |\n| `--last` | int | None | Last N commits |\n| `--agents` | str | None | Comma-separated: claude,codex,gemini |\n| `--skip-debate` | bool | False | Skip adversarial debate phase |\n| `--context-depth` | str | None | Context depth: shallow\\|medium\\|deep |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--output` | str | None | Output file path |\n| `--verbose` | bool | False | Enable verbose logging |\n| `--dry-run` | bool | False | Show what would be analyzed without calling agents |\n\n#### `baseline` — Build persistent repo baseline context\n\n```bash\nxfire baseline \u002Fpath\u002Fto\u002Frepo\nxfire baseline . --force\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `repo_dir` (argument) | str | . | Path to the repository root |\n| `--force` | bool | False | Rebuild baseline even if one already exists |\n| `--verbose` | bool | False | Enable verbose logging |\n\n### Output\n\n#### `report` — Re-generate a report from saved JSON results\n\n```bash\nxfire report --input xfire-results.json --format sarif\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--input` | str | *required* | Path to an xfire JSON results file |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--output` | str | None | Output file path |\n\n#### `debates` — Replay adversarial debate transcripts\n\n```bash\nxfire debates --input xfire-results.json\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--input` | str | *required* | Path to an xfire JSON results file |\n\n### Setup & Diagnostics\n\n#### `init` — Initialize xfire configuration\n\n```bash\nxfire init\n```\n\nCreates `.xfire\u002Fconfig.yaml` in the current directory. No flags.\n\n#### `config-check` — Validate configuration\n\n```bash\nxfire config-check --repo-dir .\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--repo-dir` | str | . | Path to the repository root |\n\n#### `test-llm` — Test agent connectivity\n\n```bash\nxfire test-llm\nxfire test-llm --agents claude --mode api\nxfire test-llm --thinking --prompt \"What is 2+2?\"\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--repo-dir` | str | . | Path to the repository root |\n| `--agents` | str | None | Comma-separated agent list to test (default: all enabled) |\n| `--timeout` | int | 30 | Timeout in seconds per agent |\n| `--mode` | str | None | Override mode for all agents: cli or api |\n| `--prompt` | str | None | Custom test prompt to send to each agent |\n| `--thinking` | bool | False | Enable extended thinking\u002Freasoning for the test |\n\n#### `auth login` — Set up agent credentials\n\n```bash\nxfire auth login --provider claude\nxfire auth login --provider codex\nxfire auth login --provider gemini\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--provider` \u002F `-p` | str | *required* | Provider to authenticate: codex\\|gemini\\|claude |\n| `--token` | str | None | Claude setup-token value (--provider claude only) |\n\n#### `auth status` — Show credential status\n\n```bash\nxfire auth status\n```\n\nNo flags. Displays a table of all provider credential statuses.\n\n### Demo\n\n#### `demo` — Run fixture or UI demo scenarios\n\n```bash\nxfire demo --ui\nxfire demo --ui --scenario both_accept\nxfire demo --fixture auth_bypass_regression\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--fixture` | str | \"\" | Fixture name (e.g., auth_bypass_regression) |\n| `--ui` | bool | False | Run synthetic UI demo scenarios (no LLM calls) |\n| `--scenario` | str | \"\" | Run one UI scenario: both_accept\\|judge_questions\\|defender_wins |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--verbose` | bool | False | Enable verbose logging |\n\n## Configuration\n\nxfire looks for `.xfire\u002Fconfig.yaml` in the repo root (override with `XFIRE_CONFIG_PATH`).\n\nPriority: CLI flags > environment variables > config.yaml > defaults.\n\n```yaml\nrepo:\n  purpose: \"\"                          # describe what your app does\n  intended_capabilities: []            # expected capabilities\n  sensitive_paths:                     # paths that get extra scrutiny\n    - auth\u002F\n    - payments\u002F\n    - migrations\u002F\n\nanalysis:\n  context_depth: deep                  # shallow | medium | deep\n  max_related_files: 20\n  include_test_files: true\n\nagents:\n  claude:\n    enabled: true\n    mode: cli                          # cli | api\n    cli_command: claude\n    model: claude-sonnet-4-20250514\n    api_key_env: ANTHROPIC_API_KEY\n    timeout: 600\n  codex:\n    enabled: true\n    mode: cli\n    cli_command: codex\n    model: o3-mini\n    api_key_env: OPENAI_API_KEY\n    timeout: 300\n  gemini:\n    enabled: true\n    mode: cli\n    cli_command: gemini\n    model: gemini-2.5-pro\n    api_key_env: GOOGLE_API_KEY\n    timeout: 300\n\n  debate:\n    role_assignment: evidence          # evidence | rotate | fixed\n    fixed_roles:\n      prosecutor: claude\n      defense: codex\n      judge: gemini\n    defense_preference: [codex, claude, gemini]\n    judge_preference: [codex, gemini, claude]\n    max_rounds: 2\n    require_evidence_citations: true\n    min_agents_for_debate: 2\n\n  skills:\n    code_navigation: true\n    data_flow_tracing: true\n    git_archeology: true\n    config_analysis: true\n    dependency_analysis: true\n    test_coverage_check: true\n\nseverity_gate:\n  fail_on: high                        # minimum severity to fail CI\n  min_confidence: 0.7\n  require_debate: true\n\nsuppressions: []\n\nfast_model:\n  provider: claude\n  model: claude-haiku-4-5-20251001\n  api_key_env: ANTHROPIC_API_KEY\n  cli_command: claude\n  cli_args: [--output-format, json]\n  timeout: 60\n```\n\n## Output Formats\n\n| Format | Flag | Description |\n|--------|------|-------------|\n| Markdown | `--format markdown` | Human-readable report (default) |\n| JSON | `--format json` | Machine-readable structured data |\n| SARIF | `--format sarif` | Static Analysis Results Interchange Format for CI tooling |\n\n## CI\u002FCD Integration\n\n### GitHub Actions\n\n```yaml\nname: xfire Security Review\non:\n  pull_request:\n    types: [opened, synchronize]\n\njobs:\n  security-review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: \"3.11\"\n\n      - run: pip install xfire\n\n      - name: Run xfire security review\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}\n          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}\n          GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}\n        run: |\n          xfire analyze-pr \\\n            --repo ${{ github.repository }} \\\n            --pr ${{ github.event.pull_request.number }} \\\n            --format sarif \\\n            --output results.sarif \\\n            --silent\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: results.sarif\n```\n\n## How It Works\n\n1. **Context Building** — parses the diff\u002FPR\u002Frepo and collects related files, git history, configs, and dependency data\n2. **Intent Inference** — uses a fast model (Haiku) to understand the repo's purpose, trust boundaries, and security controls\n3. **Independent Review** — sends the context to each enabled agent (Claude, Codex, Gemini) in parallel\n4. **Finding Extraction** — normalizes all agent responses into structured findings with severity, confidence, and CWE tags\n5. **Adversarial Debate** — each finding goes through a prosecution → defense → judge pipeline where agents argue for\u002Fagainst its validity\n6. **Verdict & Deduplication** — the judge issues a final ruling; findings are deduplicated and merged across agents\n7. **Report Generation** — produces the final report in markdown, JSON, or SARIF format with severity gating for CI\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `ANTHROPIC_API_KEY` | Yes (for Claude API mode) | Anthropic API key for Claude |\n| `OPENAI_API_KEY` | For Codex API mode | OpenAI API key for Codex |\n| `GOOGLE_API_KEY` | For Gemini API mode | Google API key for Gemini |\n| `GITHUB_TOKEN` | For `analyze-pr` | GitHub personal access token |\n| `XFIRE_CONFIG_PATH` | No | Override path to config.yaml |\n| `XFIRE_CACHE_DIR` | No | Cache directory for context\u002Fintent persistence across runs |\n| `XFIRE_AUTH_PATH` | No | Override path to auth.json credential store |\n\n## Limitations\n\n- Requires at least one AI agent (Claude, Codex, or Gemini) to be configured and reachable\n- CLI mode requires the agent CLI tools to be installed and on PATH\n- Does not replace manual penetration testing or formal security audits\n- Findings depend on AI model capabilities and may include false positives or miss subtle vulnerabilities\n- Large repositories may hit agent context limits; use `--max-files` to constrain scope\n- Does not scan binary files, compiled artifacts, or container images\n- Debate quality improves with more agents — single-agent mode skips the adversarial phase\n","# xfire — Multi-Agent Adversarial Security Review\n\n**Multiple agents. One verdict. Zero blind spots.**\n\nxfire sends your code to 3 AI agents (Claude, Codex, Gemini) independently, then runs an adversarial debate where they cross-examine each other's findings. Only vulnerabilities that survive prosecution, defense, and a judge's ruling make the final report.\n\n## When to Use\n\nInvoke xfire when a user asks for any of these:\n\n- \"security review this PR\"\n- \"find vulnerabilities in this code\"\n- \"audit this repo for security issues\"\n- \"run a security scan\"\n- \"analyze this diff for security problems\"\n- \"check this pull request for vulnerabilities\"\n- \"code review for security\"\n- \"pentest this codebase\"\n- \"threat model this change\"\n\n**Do NOT use xfire for:**\n\n- General code quality \u002F style reviews (use a linter)\n- Performance profiling\n- Dependency license auditing\n- Non-security functional testing\n\n## Prerequisites\n\n- **Python 3.11+**\n- Install: `pip install xfire`\n- At least one AI agent CLI or API key configured:\n\n| Agent   | CLI tool | API key env var    |\n|---------|----------|--------------------|\n| Claude  | `claude` | `ANTHROPIC_API_KEY` |\n| Codex   | `codex`  | `OPENAI_API_KEY`    |\n| Gemini  | `gemini` | `GOOGLE_API_KEY`    |\n\n## Setup\n\n```bash\n# Initialize config in current repo\nxfire init\n\n# Test agent connectivity\nxfire test-llm\n\n# Set up agent credentials\nxfire auth login --provider claude\nxfire auth login --provider codex\nxfire auth login --provider gemini\n```\n\n## Commands\n\n### Core Analysis\n\n#### `analyze-pr` — Analyze a GitHub pull request\n\n```bash\nxfire analyze-pr --repo owner\u002Frepo --pr 123\n```\n\n| Flag | Type | Default | Env var | Description |\n|------|------|---------|---------|-------------|\n| `--repo` | str | *required* | — | GitHub repo in owner\u002Frepo format |\n| `--pr` | int | *required* | — | PR number |\n| `--github-token` | str | None | `GITHUB_TOKEN` | GitHub token |\n| `--agents` | str | None | — | Comma-separated agent list (claude,codex,gemini) |\n| `--skip-debate` | bool | False | — | Skip adversarial debate phase |\n| `--context-depth` | str | None | — | Context depth: shallow\\|medium\\|deep |\n| `--output` | str | None | — | Output file path |\n| `--format` | str | markdown | — | Output format: markdown\\|json\\|sarif |\n| `--post-comment` | bool | False | — | Post review as GitHub PR comment |\n| `--cache-dir` | str | None | `XFIRE_CACHE_DIR` | Cache directory for context\u002Fintent persistence |\n| `--verbose` | bool | False | — | Enable verbose logging |\n| `--dry-run` | bool | False | — | Show what would be analyzed without calling agents |\n| `--debate` | bool | False | — | Show adversarial debate transcript after the report |\n| `--debug` | bool | False | — | Write full debug trace to xfire-debug-TIMESTAMP.md |\n| `--silent` | bool | False | — | Suppress all output — exit code only (for git hooks) |\n\n#### `analyze-diff` — Analyze a local diff or staged changes\n\n```bash\nxfire analyze-diff --staged --repo-dir .\nxfire analyze-diff --patch changes.patch --repo-dir .\nxfire analyze-diff --commit f1877d3 --repo-dir \u002Fpath\u002Fto\u002Frepo\nxfire analyze-diff --base main --head feature-branch\nxfire analyze-diff --commit f1877d3 --thinking --repo-dir \u002Fpath\u002Fto\u002Frepo\n```\n\n| Flag | Type | Default | Env var | Description |\n|------|------|---------|---------|-------------|\n| `--patch` | str | None | — | Path to a diff\u002Fpatch file |\n| `--commit` | str | None | — | Commit SHA to analyze (auto-generates patch via git show) |\n| `--repo-dir` | str | . | — | Path to the repository root |\n| `--staged` | bool | False | — | Analyze staged changes in the repo |\n| `--base` | str | None | — | Base branch\u002Fcommit for comparison |\n| `--head` | str | None | — | Head branch\u002Fcommit for comparison |\n| `--agents` | str | None | — | Comma-separated agent list |\n| `--skip-debate` | bool | False | — | Skip adversarial debate phase |\n| `--context-depth` | str | None | — | Context depth: shallow\\|medium\\|deep |\n| `--output` | str | None | — | Output file path |\n| `--format` | str | markdown | — | Output format: markdown\\|json\\|sarif |\n| `--cache-dir` | str | None | `XFIRE_CACHE_DIR` | Cache directory for context\u002Fintent persistence |\n| `--thinking` | bool | False | — | Enable extended thinking\u002Freasoning for all agents |\n| `--verbose` | bool | False | — | Enable verbose logging |\n| `--dry-run` | bool | False | — | Show what would be analyzed without calling agents |\n| `--debate` | bool | False | — | Show adversarial debate transcript after the report |\n| `--debug` | bool | False | — | Write full debug trace to xfire-debug-TIMESTAMP.md |\n| `--silent` | bool | False | — | Suppress all output — exit code only (for git hooks) |\n\n#### `code-review` — Full codebase security audit\n\n```bash\nxfire code-review \u002Fpath\u002Fto\u002Frepo\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `repo_dir` (argument) | str | . | Path to the repository root |\n| `--agents` | str | None | Comma-separated: claude,codex,gemini |\n| `--skip-debate` | bool | False | Skip adversarial debate phase |\n| `--max-files` | int | 150 | Maximum number of source files to scan |\n| `--thinking` | bool | False | Enable extended thinking\u002Freasoning for all agents |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--output` | str | None | Output file path |\n| `--verbose` | bool | False | Enable verbose logging |\n| `--dry-run` | bool | False | Show what would be analyzed without calling agents |\n| `--debate` | bool | False | Show adversarial debate transcript after the report |\n| `--debug` | bool | False | Write full debug trace to xfire-debug-TIMESTAMP.md |\n| `--silent` | bool | False | Suppress all output — exit code only (for git hooks) |\n\n#### `scan` — Baseline-aware incremental scan\n\n```bash\nxfire scan . --base main --head feature-branch\nxfire scan . --since-last-scan\nxfire scan . --last 5\nxfire scan . --range abc123~1..abc123\nxfire scan . --since 2026-01-01\nxfire scan . --diff changes.patch\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `repo_dir` (argument) | str | . | Path to the repository root |\n| `--base` | str | None | Base branch\u002Fcommit (use with --head) |\n| `--head` | str | None | Head branch\u002Fcommit (use with --base) |\n| `--range` | str | None | Commit range e.g. abc123~1..abc123 |\n| `--diff` | str | None | Path to a .patch file |\n| `--since-last-scan` | bool | False | Scan all commits since last scan |\n| `--since` | str | None | All commits since date (YYYY-MM-DD) |\n| `--last` | int | None | Last N commits |\n| `--agents` | str | None | Comma-separated: claude,codex,gemini |\n| `--skip-debate` | bool | False | Skip adversarial debate phase |\n| `--context-depth` | str | None | Context depth: shallow\\|medium\\|deep |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--output` | str | None | Output file path |\n| `--verbose` | bool | False | Enable verbose logging |\n| `--dry-run` | bool | False | Show what would be analyzed without calling agents |\n\n#### `baseline` — Build persistent repo baseline context\n\n```bash\nxfire baseline \u002Fpath\u002Fto\u002Frepo\nxfire baseline . --force\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `repo_dir` (argument) | str | . | Path to the repository root |\n| `--force` | bool | False | Rebuild baseline even if one already exists |\n| `--verbose` | bool | False | Enable verbose logging |\n\n### Output\n\n#### `report` — Re-generate a report from saved JSON results\n\n```bash\nxfire report --input xfire-results.json --format sarif\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--input` | str | *required* | Path to an xfire JSON results file |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--output` | str | None | Output file path |\n\n#### `debates` — Replay adversarial debate transcripts\n\n```bash\nxfire debates --input xfire-results.json\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--input` | str | *required* | Path to an xfire JSON results file |\n\n### Setup & Diagnostics\n\n#### `init` — Initialize xfire configuration\n\n```bash\nxfire init\n```\n\nCreates `.xfire\u002Fconfig.yaml` in the current directory. No flags.\n\n#### `config-check` — Validate configuration\n\n```bash\nxfire config-check --repo-dir .\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--repo-dir` | str | . | Path to the repository root |\n\n#### `test-llm` — Test agent connectivity\n\n```bash\nxfire test-llm\nxfire test-llm --agents claude --mode api\nxfire test-llm --thinking --prompt \"What is 2+2?\"\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--repo-dir` | str | . | Path to the repository root |\n| `--agents` | str | None | Comma-separated agent list to test (default: all enabled) |\n| `--timeout` | int | 30 | Timeout in seconds per agent |\n| `--mode` | str | None | Override mode for all agents: cli or api |\n| `--prompt` | str | None | Custom test prompt to send to each agent |\n| `--thinking` | bool | False | Enable extended thinking\u002Freasoning for the test |\n\n#### `auth login` — Set up agent credentials\n\n```bash\nxfire auth login --provider claude\nxfire auth login --provider codex\nxfire auth login --provider gemini\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--provider` \u002F `-p` | str | *required* | Provider to authenticate: codex\\|gemini\\|claude |\n| `--token` | str | None | Claude setup-token value (--provider claude only) |\n\n#### `auth status` — Show credential status\n\n```bash\nxfire auth status\n```\n\nNo flags. Displays a table of all provider credential statuses.\n\n### Demo\n\n#### `demo` — Run fixture or UI demo scenarios\n\n```bash\nxfire demo --ui\nxfire demo --ui --scenario both_accept\nxfire demo --fixture auth_bypass_regression\n```\n\n| Flag | Type | Default | Description |\n|------|------|---------|-------------|\n| `--fixture` | str | \"\" | Fixture name (e.g., auth_bypass_regression) |\n| `--ui` | bool | False | Run synthetic UI demo scenarios (no LLM calls) |\n| `--scenario` | str | \"\" | Run one UI scenario: both_accept\\|judge_questions\\|defender_wins |\n| `--format` | str | markdown | Output format: markdown\\|json\\|sarif |\n| `--verbose` | bool | False | Enable verbose logging |\n\n## Configuration\n\nxfire looks for `.xfire\u002Fconfig.yaml` in the repo root (override with `XFIRE_CONFIG_PATH`).\n\nPriority: CLI flags > environment variables > config.yaml > defaults.\n\n```yaml\nrepo:\n  purpose: \"\"                          # describe what your app does\n  intended_capabilities: []            # expected capabilities\n  sensitive_paths:                     # paths that get extra scrutiny\n    - auth\u002F\n    - payments\u002F\n    - migrations\u002F\n\nanalysis:\n  context_depth: deep                  # shallow | medium | deep\n  max_related_files: 20\n  include_test_files: true\n\nagents:\n  claude:\n    enabled: true\n    mode: cli                          # cli | api\n    cli_command: claude\n    model: claude-sonnet-4-20250514\n    api_key_env: ANTHROPIC_API_KEY\n    timeout: 600\n  codex:\n    enabled: true\n    mode: cli\n    cli_command: codex\n    model: o3-mini\n    api_key_env: OPENAI_API_KEY\n    timeout: 300\n  gemini:\n    enabled: true\n    mode: cli\n    cli_command: gemini\n    model: gemini-2.5-pro\n    api_key_env: GOOGLE_API_KEY\n    timeout: 300\n\n  debate:\n    role_assignment: evidence          # evidence | rotate | fixed\n    fixed_roles:\n      prosecutor: claude\n      defense: codex\n      judge: gemini\n    defense_preference: [codex, claude, gemini]\n    judge_preference: [codex, gemini, claude]\n    max_rounds: 2\n    require_evidence_citations: true\n    min_agents_for_debate: 2\n\n  skills:\n    code_navigation: true\n    data_flow_tracing: true\n    git_archeology: true\n    config_analysis: true\n    dependency_analysis: true\n    test_coverage_check: true\n\nseverity_gate:\n  fail_on: high                        # minimum severity to fail CI\n  min_confidence: 0.7\n  require_debate: true\n\nsuppressions: []\n\nfast_model:\n  provider: claude\n  model: claude-haiku-4-5-20251001\n  api_key_env: ANTHROPIC_API_KEY\n  cli_command: claude\n  cli_args: [--output-format, json]\n  timeout: 60\n```\n\n## Output Formats\n\n| Format | Flag | Description |\n|--------|------|-------------|\n| Markdown | `--format markdown` | Human-readable report (default) |\n| JSON | `--format json` | Machine-readable structured data |\n| SARIF | `--format sarif` | Static Analysis Results Interchange Format for CI tooling |\n\n## CI\u002FCD Integration\n\n### GitHub Actions\n\n```yaml\nname: xfire Security Review\non:\n  pull_request:\n    types: [opened, synchronize]\n\njobs:\n  security-review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: \"3.11\"\n\n      - run: pip install xfire\n\n      - name: Run xfire security review\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}\n          OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}\n          GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}\n        run: |\n          xfire analyze-pr \\\n            --repo ${{ github.repository }} \\\n            --pr ${{ github.event.pull_request.number }} \\\n            --format sarif \\\n            --output results.sarif \\\n            --silent\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: results.sarif\n```\n\n## How It Works\n\n1. **Context Building** — parses the diff\u002FPR\u002Frepo and collects related files, git history, configs, and dependency data\n2. **Intent Inference** — uses a fast model (Haiku) to understand the repo's purpose, trust boundaries, and security controls\n3. **Independent Review** — sends the context to each enabled agent (Claude, Codex, Gemini) in parallel\n4. **Finding Extraction** — normalizes all agent responses into structured findings with severity, confidence, and CWE tags\n5. **Adversarial Debate** — each finding goes through a prosecution → defense → judge pipeline where agents argue for\u002Fagainst its validity\n6. **Verdict & Deduplication** — the judge issues a final ruling; findings are deduplicated and merged across agents\n7. **Report Generation** — produces the final report in markdown, JSON, or SARIF format with severity gating for CI\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `ANTHROPIC_API_KEY` | Yes (for Claude API mode) | Anthropic API key for Claude |\n| `OPENAI_API_KEY` | For Codex API mode | OpenAI API key for Codex |\n| `GOOGLE_API_KEY` | For Gemini API mode | Google API key for Gemini |\n| `GITHUB_TOKEN` | For `analyze-pr` | GitHub personal access token |\n| `XFIRE_CONFIG_PATH` | No | Override path to config.yaml |\n| `XFIRE_CACHE_DIR` | No | Cache directory for context\u002Fintent persistence across runs |\n| `XFIRE_AUTH_PATH` | No | Override path to auth.json credential store |\n\n## Limitations\n\n- Requires at least one AI agent (Claude, Codex, or Gemini) to be configured and reachable\n- CLI mode requires the agent CLI tools to be installed and on PATH\n- Does not replace manual penetration testing or formal security audits\n- Findings depend on AI model capabilities and may include false positives or miss subtle vulnerabilities\n- Large repositories may hit agent context limits; use `--max-files` to constrain scope\n- Does not scan binary files, compiled artifacts, or container images\n- Debate quality improves with more agents — single-agent mode skips the adversarial phase\n",{"name":5,"version":24,"homepage":25,"metadata":26,"description":7},"0.1.2","https:\u002F\u002Fgithub.com\u002FHar1sh-k\u002Fxfire",{"openclaw":27},{"emoji":28,"homepage":25,"requires":29,"primaryEnv":31},"🔥",{"env":30},[31,32,33,34,35,36,37],"ANTHROPIC_API_KEY","OPENAI_API_KEY","GOOGLE_API_KEY","GITHUB_TOKEN","XFIRE_CONFIG_PATH","XFIRE_CACHE_DIR","XFIRE_AUTH_PATH","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fx\u002Fxfire-security-review",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill xfire-security-review",{"tool":53,"command":54},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill xfire-security-review",{"tool":56,"command":57},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill xfire-security-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fx\u002Fxfire-security-review\u002FSKILL.md",true,[],[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]