chore: 从版本管理中移除 .claude 和 .codex
- 清理 .gitignore 中重复/不一致的条目(.claude / .codex 统一为目录模式) - 从 Git 索引中移除 .claude/ 和 .codex/ 下所有文件,保留本地文件
This commit is contained in:
parent
12d76349b6
commit
4d945002ae
@ -1,28 +0,0 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": "Edit|Write|Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "code-review-graph update --skip-flows",
|
||||
"timeout": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SessionStart": [
|
||||
{
|
||||
"matcher": "",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "code-review-graph status",
|
||||
"timeout": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -1,48 +0,0 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(yarn install:*)",
|
||||
"WebFetch(domain:)",
|
||||
"Bash(git checkout:*)",
|
||||
"Bash(netstat -ano)",
|
||||
"mcp__figma-developer-mcp__get_figma_data",
|
||||
"mcp__figma-developer-mcp__download_figma_images",
|
||||
"mcp__MiniMax__understand_image",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/resources/mapper/\"*.xml \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/resources/mapper/gxzx/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/resources/mapper/lsjr/\"*.xml \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/resources/mapper/gxzx/lsjr/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/resources/mapper/lsjy/\"*.xml \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/resources/mapper/gxzx/lsjy/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/service/\"TxwGxzx*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/service/gxzx/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/service/lsjr/\"*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/service/gxzx/lsjr/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/service/lsjy/\"*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/service/gxzx/lsjy/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/service/impl/\"TxwGxzx*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/service/gxzx/impl/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/service/lsjr/impl/\"*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/service/gxzx/lsjr/impl/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/service/lsjy/impl/\"*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/service/gxzx/lsjy/impl/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/mapper/\"TxwGxzx*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/mapper/gxzx/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/mapper/lsjr/\"*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/mapper/gxzx/lsjr/\")",
|
||||
"Bash(cp \"E:/00项目/T_碳信网/code/txw/txw-gxzx/txw-gxzx-service-biz/src/main/java/com/css/txw/gxzx/mapper/lsjy/\"*.java \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/mapper/gxzx/lsjy/\")",
|
||||
"Bash(\"D:/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" compile -DskipTests)",
|
||||
"Bash(\"D:/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" compile -DskipTests -X)",
|
||||
"Bash(sed -i 's/package com\\\\.css\\\\.txw\\\\.gxzx\\\\.pojo\\\\.vo\\\\.lsjr/package com.css.txw.mhzc.pojo.vo.gxzx.lsjr/g' \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/pojo/vo/gxzx/lsjr/ProductApplyVO.java\")",
|
||||
"Bash(sed -i 's/com\\\\.css\\\\.txw\\\\.gxzx\\\\.pojo\\\\.vo\\\\.lsjr/com.css.txw.mhzc.pojo.vo.gxzx.lsjr/g' \"E:/00项目/T_碳信网/code/txw/txw-mhzc/txw-mhzc-service-biz/src/main/java/com/css/txw/mhzc/pojo/vo/gxzx/lsjr/ProductApplyVO.java\")",
|
||||
"Bash(\"/d/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" compile -pl txw-mhzc-service-biz -am)",
|
||||
"Bash(\"/d/Program Files/apache-maven/apache-maven-3.6.3/bin/mvn\" clean package -pl txw-mhzc-service-biz -am -DskipTests)",
|
||||
"Bash(\"/d/Program Files/jdk8/bin/java\" -Xms256m -Xmx512m -Duser.timezone=Asia/Shanghai -jar target/txw-mhzc-service-biz.jar --spring.profiles.active=local)",
|
||||
"Bash(mvn compile *)",
|
||||
"WebFetch(domain:www.figma.com)",
|
||||
"mcp__code-review-graph__get_architecture_overview_tool",
|
||||
"mcp__code-review-graph__list_graph_stats_tool",
|
||||
"mcp__code-review-graph__list_communities_tool",
|
||||
"mcp__code-review-graph__build_or_update_graph_tool",
|
||||
"mcp__code-review-graph__semantic_search_nodes_tool",
|
||||
"mcp__code-review-graph__query_graph_tool",
|
||||
"mcp__code-review-graph__detect_changes_tool",
|
||||
"Bash(cd \"/e/00项目/T_碳信网/code/txw/txw-mhzc-web\" && grep -nE \"closeAll|^\\\\s*close|export\\\\s+\\(function|const\\)\\\\s+close\" node_modules/tdesign-vue/es/message/index.js node_modules/tdesign-vue/es/message/plugin.js 2>/dev/null | head -30)",
|
||||
"Read(//e/e/00项目/T_碳信网/code/txw/txw-mhzc-web/node_modules/tdesign-vue/es/message/**)",
|
||||
"Bash(cd \"/e/00项目/T_碳信网/code/txw/txw-mhzc-web\" && cat node_modules/tdesign-vue/es/message/index.d.ts 2>/dev/null)"
|
||||
]
|
||||
},
|
||||
"enableAllProjectMcpServers": true,
|
||||
"enabledMcpjsonServers": [
|
||||
"code-review-graph"
|
||||
]
|
||||
}
|
||||
@ -1,27 +0,0 @@
|
||||
---
|
||||
name: Debug Issue
|
||||
description: Systematically debug issues using graph-powered code navigation
|
||||
---
|
||||
|
||||
## Debug Issue
|
||||
|
||||
Use the knowledge graph to systematically trace and debug issues.
|
||||
|
||||
### Steps
|
||||
|
||||
1. Use `semantic_search_nodes` to find code related to the issue.
|
||||
2. Use `query_graph` with `callers_of` and `callees_of` to trace call chains.
|
||||
3. Use `get_flow` to see full execution paths through suspected areas.
|
||||
4. Run `detect_changes` to check if recent changes caused the issue.
|
||||
5. Use `get_impact_radius` on suspected files to see what else is affected.
|
||||
|
||||
### Tips
|
||||
|
||||
- Check both callers and callees to understand the full context.
|
||||
- Look at affected flows to find the entry point that triggers the bug.
|
||||
- Recent changes are the most common source of new issues.
|
||||
|
||||
## Token Efficiency Rules
|
||||
- ALWAYS start with `get_minimal_context(task="<your task>")` before any other graph tool.
|
||||
- Use `detail_level="minimal"` on all calls. Only escalate to "standard" when minimal is insufficient.
|
||||
- Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800 total output tokens.
|
||||
@ -1,28 +0,0 @@
|
||||
---
|
||||
name: Explore Codebase
|
||||
description: Navigate and understand codebase structure using the knowledge graph
|
||||
---
|
||||
|
||||
## Explore Codebase
|
||||
|
||||
Use the code-review-graph MCP tools to explore and understand the codebase.
|
||||
|
||||
### Steps
|
||||
|
||||
1. Run `list_graph_stats` to see overall codebase metrics.
|
||||
2. Run `get_architecture_overview` for high-level community structure.
|
||||
3. Use `list_communities` to find major modules, then `get_community` for details.
|
||||
4. Use `semantic_search_nodes` to find specific functions or classes.
|
||||
5. Use `query_graph` with patterns like `callers_of`, `callees_of`, `imports_of` to trace relationships.
|
||||
6. Use `list_flows` and `get_flow` to understand execution paths.
|
||||
|
||||
### Tips
|
||||
|
||||
- Start broad (stats, architecture) then narrow down to specific areas.
|
||||
- Use `children_of` on a file to see all its functions and classes.
|
||||
- Use `find_large_functions` to identify complex code.
|
||||
|
||||
## Token Efficiency Rules
|
||||
- ALWAYS start with `get_minimal_context(task="<your task>")` before any other graph tool.
|
||||
- Use `detail_level="minimal"` on all calls. Only escalate to "standard" when minimal is insufficient.
|
||||
- Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800 total output tokens.
|
||||
@ -1,28 +0,0 @@
|
||||
---
|
||||
name: Refactor Safely
|
||||
description: Plan and execute safe refactoring using dependency analysis
|
||||
---
|
||||
|
||||
## Refactor Safely
|
||||
|
||||
Use the knowledge graph to plan and execute refactoring with confidence.
|
||||
|
||||
### Steps
|
||||
|
||||
1. Use `refactor_tool` with mode="suggest" for community-driven refactoring suggestions.
|
||||
2. Use `refactor_tool` with mode="dead_code" to find unreferenced code.
|
||||
3. For renames, use `refactor_tool` with mode="rename" to preview all affected locations.
|
||||
4. Use `apply_refactor_tool` with the refactor_id to apply renames.
|
||||
5. After changes, run `detect_changes` to verify the refactoring impact.
|
||||
|
||||
### Safety Checks
|
||||
|
||||
- Always preview before applying (rename mode gives you an edit list).
|
||||
- Check `get_impact_radius` before major refactors.
|
||||
- Use `get_affected_flows` to ensure no critical paths are broken.
|
||||
- Run `find_large_functions` to identify decomposition targets.
|
||||
|
||||
## Token Efficiency Rules
|
||||
- ALWAYS start with `get_minimal_context(task="<your task>")` before any other graph tool.
|
||||
- Use `detail_level="minimal"` on all calls. Only escalate to "standard" when minimal is insufficient.
|
||||
- Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800 total output tokens.
|
||||
@ -1,29 +0,0 @@
|
||||
---
|
||||
name: Review Changes
|
||||
description: Perform a structured code review using change detection and impact
|
||||
---
|
||||
|
||||
## Review Changes
|
||||
|
||||
Perform a thorough, risk-aware code review using the knowledge graph.
|
||||
|
||||
### Steps
|
||||
|
||||
1. Run `detect_changes` to get risk-scored change analysis.
|
||||
2. Run `get_affected_flows` to find impacted execution paths.
|
||||
3. For each high-risk function, run `query_graph` with pattern="tests_for" to check test coverage.
|
||||
4. Run `get_impact_radius` to understand the blast radius.
|
||||
5. For any untested changes, suggest specific test cases.
|
||||
|
||||
### Output Format
|
||||
|
||||
Provide findings grouped by risk level (high/medium/low) with:
|
||||
- What changed and why it matters
|
||||
- Test coverage status
|
||||
- Suggested improvements
|
||||
- Overall merge recommendation
|
||||
|
||||
## Token Efficiency Rules
|
||||
- ALWAYS start with `get_minimal_context(task="<your task>")` before any other graph tool.
|
||||
- Use `detail_level="minimal"` on all calls. Only escalate to "standard" when minimal is insufficient.
|
||||
- Target: complete any review/debug/refactor task in ≤5 tool calls and ≤800 total output tokens.
|
||||
@ -1,6 +0,0 @@
|
||||
[mcp_servers.code-review-graph]
|
||||
command = "uvx"
|
||||
args = [
|
||||
"code-review-graph",
|
||||
"serve",
|
||||
]
|
||||
@ -1,28 +0,0 @@
|
||||
{
|
||||
"hooks": {
|
||||
"PostToolUse": [
|
||||
{
|
||||
"matcher": "Edit|Write|Bash",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "code-review-graph update --skip-flows",
|
||||
"timeout": 30
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"SessionStart": [
|
||||
{
|
||||
"matcher": "",
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "code-review-graph status",
|
||||
"timeout": 10
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,5 +1,4 @@
|
||||
# Compiled class file
|
||||
.claude
|
||||
*.class
|
||||
target
|
||||
classes
|
||||
@ -76,4 +75,4 @@ devops/docker-compose.override.yml
|
||||
# graphify 临时分析产物(不提交,可随时删除)
|
||||
**/graphify-out/
|
||||
.mcp.json
|
||||
.codex
|
||||
.codex/
|
||||
Loading…
Reference in New Issue
Block a user