feat: add project-review workflow (whole-project / single-feature review)
Adds the project-review workflow for code review independent of the git diff. The scope is parsed from the user instruction: 全面/整个项目 -> whole-project (score every source file), otherwise feature + target keyword (locate the code with semantic search + graph queries). - scoring_tools.py: score_review_func gains all_files=True to score every source file in the graph via store.get_all_files() - main.py: score_review_tool gains all_files param; registers the project_review MCP prompt (prompts 6->7) - prompts.py: project_review_prompt(scope, target) with whole-project and feature branches (fixed a precedence bug that truncated the feature text) - skills.py + skills/project-review/: new read-only project-review skill with shared checklists - .opencode/command/code-review-graph-project-review.md: slash command - tests: test_project_review.py (prompt rendering), TestProjectReviewPrompt, skill count assertions 5->6, all_files wiring checks - docs: prompts (6->7) + project-review entries across COMMANDS, CLAUDE, README (+localized), INDEX, architecture, LLM-OPTIMIZED-REFERENCE, CHANGELOG
This commit is contained in:
@@ -19,7 +19,7 @@ When using code-review-graph MCP tools, follow these rules:
|
||||
- `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/` — 31 MCP tool implementations split by domain
|
||||
- `main.py` — FastMCP server entry point, registers 31 tools + 6 prompts
|
||||
- `main.py` — FastMCP server entry point, registers 31 tools + 7 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` — 6 MCP prompt templates (review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check, unified_review)
|
||||
- `prompts.py` — 7 MCP prompt templates (review_changes, architecture_map, debug_issue, onboard_developer, pre_merge_check, unified_review, project_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
|
||||
|
||||
Reference in New Issue
Block a user