feat: add unified_review MCP prompt + sync tool/prompt counts

Adds the unified_review MCP prompt (invoked as /code-review-graph:unified_review)
that drives the unified-review workflow: graph context -> detect_changes ->
score_review -> findings -> dedupe_findings -> generate_report. READ-ONLY:
every finding waits for a manual fix decision. Takes base and tier
(fast/standard/strict) arguments.

- prompts.py: unified_review_prompt + docstring count 5->6
- main.py: @mcp.prompt() registration
- tests/test_prompts.py: TestUnifiedReviewPrompt + preamble test
- docs: LLM-OPTIMIZED-REFERENCE, COMMANDS, CLAUDE.md, INDEX, architecture,
  README + 4 localized READMEs; tool count 30->31 and prompt count 5->6
  synced (historical ROADMAP/FEATURES version notes left unchanged)
This commit is contained in:
dev
2026-08-05 13:58:51 +08:00
parent 84ae9b817e
commit b96f38276f
13 changed files with 159 additions and 21 deletions
+3 -3
View File
@@ -18,8 +18,8 @@ When using code-review-graph MCP tools, follow these rules:
- `parser.py` — Tree-sitter multi-language AST parser plus targeted fallbacks for broad source-language and notebook support
- `custom_languages.py` — Config-driven custom language support (`.code-review-graph/languages.toml`, see docs/CUSTOM_LANGUAGES.md)
- `graph.py` — SQLite-backed graph store (nodes, edges, weighted-score impact analysis)
- `tools/` — 30 MCP tool implementations split by domain
- `main.py` — FastMCP server entry point, registers 30 tools + 5 prompts
- `tools/` — 31 MCP tool implementations split by domain
- `main.py` — FastMCP server entry point, registers 31 tools + 6 prompts
- `incremental.py` — Git-based change detection, file watching
- `embeddings.py` — Optional vector embeddings (local sentence-transformers, OpenAI-compatible endpoints, Google Gemini, MiniMax)
- `visualization.py` — D3.js interactive HTML graph generator
@@ -30,7 +30,7 @@ When using code-review-graph MCP tools, follow these rules:
- `changes.py` — Risk-scored change impact analysis (detect-changes)
- `refactor.py` — Rename preview, dead code detection, refactoring suggestions
- `hints.py` — Review hint generation
- `prompts.py`5 MCP prompt templates (review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check)
- `prompts.py`6 MCP prompt templates (review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check, unified_review)
- `wiki.py` — Markdown wiki generation from community structure
- `skills.py` — Multi-platform install/config generation and shipped skill metadata
- `registry.py` — Multi-repo registry helpers