| name | consensus-loop:tools |
| description | Run consensus-loop deterministic analysis tools via CLI — code_map, dependency_graph, audit_scan, coverage_map, rtm_parse, rtm_merge, audit_history, fvm_generate, fvm_validate. Use this skill whenever you need codebase analysis (symbol index, dependency DAG, pattern scan, coverage), RTM operations (parse, merge, query), or FVM operations (generate matrix, validate against server) — even if the MCP server is not configured. This skill replaces mcp__plugin_consensus-loop_consensus-loop__* tool calls with equivalent CLI commands. |
| argument-hint | <tool_name> [context or parameters] |
| allowed-tools | Read, Bash(node *), Bash(git *) |
consensus-loop:tools
CLI interface for the 9 deterministic analysis tools that power the consensus-loop workflow. These tools run via tool-runner.mjs — same logic as the MCP server, but invoked through Bash instead of JSON-RPC.
Tool Runner Path
${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs
Invocation pattern:
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs <tool_name> --param value ...
Add --json to any command for structured JSON output instead of formatted text.
Tool Selection Guide
Workflow
- Identify which tool matches the user's need using the table above
- Read the corresponding reference file for detailed parameters and examples
- Run the tool via
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs
- Parse the output (text to stdout, summary to stderr)
Quick Examples
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs code_map --path src/
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs dependency_graph --path src/ --depth 3
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs audit_scan --pattern type-safety
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs rtm_parse --path docs/rtm.md --req_id EV-1
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs audit_history --summary
node ${CLAUDE_PLUGIN_ROOT}/scripts/tool-runner.mjs fvm_generate --path /project/root
Error Handling
- Exit code 0 = success (text to stdout, summary to stderr)
- Exit code 1 = error (message to stderr)
- Missing required params → error message lists what's needed
--json flag outputs structured JSON for programmatic use
MCP ↔ CLI Equivalence
Every MCP tool call maps 1:1 to a CLI command:
| MCP Call | CLI Equivalent |
|---|
mcp__consensus-loop__code_map({path: "src/"}) | node tool-runner.mjs code_map --path src/ |
mcp__consensus-loop__dependency_graph({path: "src/"}) | node tool-runner.mjs dependency_graph --path src/ |
mcp__consensus-loop__audit_scan({pattern: "all"}) | node tool-runner.mjs audit_scan --pattern all |
mcp__consensus-loop__rtm_parse({path: "x.md"}) | node tool-runner.mjs rtm_parse --path x.md |
The output format is identical — same text, same summary.