best-copilot
CLAUDE.md12 starsChanged 6 months agoApache-2.0View on GitHub
This project supports structural code intelligence through whichever MCP tools are actually exposed in the current Claude Code session. A locally installed binary is not enough: prefer codebase-memory-mcp only when its mcp__codebase-memory-mcp__* tools are visible; otherwise fall back in order. Priority: mcp__codebase-memory-mcp__* → mcp__gitnexus__* → mcp__codegraph__* → built-in Read/Grep/Glob + shell rg Use code intelligence for structural questions — what calls what, what would break, where is X defined, what is X's signature. Use native grep/read only for literal text…
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use code intelligence for structural questions — what calls what, what would break, where is X defined, what is X's signature.
- Distinctive: line 32
Answer directly — don't delegate exploration: Use 2-3 code intelligence calls max.
- Very specific: line 34
Don't grep first: when looking up a symbol by name.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
<!-- CODEGRAPH_GITNEXUS_START -->Code Intelligence (codebase-memory-mcp / GitNexus / CodeGraph)
This project supports structural code intelligence through whichever MCP tools are actually exposed in the current Claude Code session. A locally installed binary is not enough: prefer codebase-memory-mcp only when its mcp__codebase-memory-mcp__* tools are visible; otherwise fall back in order.
Priority: mcp__codebase-memory-mcp__* → mcp__gitnexus__* → mcp__codegraph__* → built-in Read/Grep/Glob + shell rg
Availability check
- codebase-memory-mcp:
mcp__codebase-memory-mcp__*tools present → useget_graph_schema,search_graph,trace_path,detect_changes,get_code_snippet,get_architecture, etc. - GitNexus:
mcp__gitnexus__*tools present → usegitnexus_query,gitnexus_context,gitnexus_impact, etc. - CodeGraph:
mcp__codegraph__*tools present → usecodegraph_search,codegraph_context,codegraph_impact, etc. - None: fall back to built-in Read/Grep/Glob plus shell
rg. Do not block.
When to prefer code intelligence over native search
Use code intelligence for structural questions — what calls what, what would break, where is X defined, what is X's signature. Use native grep/read only for literal text queries (string contents, comments, log messages) or after you already have a specific file open.
| Question | codebase-memory-mcp Tool | GitNexus Tool | CodeGraph Tool |
| "Where is X defined?" | search_graph | gitnexus_query | codegraph_search |
| "What calls/does Y call?" | trace_path | gitnexus_context | codegraph_callers / codegraph_callees |
| "How does X reach Y?" | trace_path / query_graph | gitnexus_context / graph trace when exposed | codegraph_trace |
| "What would break if I changed Z?" | detect_changes / trace_path | gitnexus_impact | codegraph_impact |
| "Focused context for area" | get_architecture / search_graph | gitnexus_context | codegraph_context |
| "See several symbols' source" | get_code_snippet | gitnexus_query + gitnexus_context | codegraph_explore |
| "Check what changed" | detect_changes | gitnexus_detect_changes | — |
| "Is the index healthy?" | index_status / get_graph_schema | npx gitnexus status | codegraph_status |
Rules of thumb
- Answer directly — don't delegate exploration. Use 2-3 code intelligence calls max. The index IS the pre-built search layer — spawning a file-reading sub-agent repeats work it already did.
- Trust structural results. They come from AST + graph analysis. Do NOT re-verify with grep.
- Don't grep first when looking up a symbol by name.
search_graph,gitnexus_query, orcodegraph_searchis faster. - Index lag: file watchers may debounce behind writes; don't re-query immediately after editing a file in the same turn.
If index doesn't exist
- codebase-memory-mcp: run
codebase-memory-mcp config set auto_index trueonce, or ask the exposed MCP tools to index the current project when available. - GitNexus: run
npx gitnexus analyzeto build the index. - CodeGraph: run
codegraph init -ito build the index.
<!-- CODEGRAPH_GITNEXUS_END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

