codebase-memory-mcp
यह क्या करती है
यह tool जटिल programming code को समझने और उसमें रास्ता खोजने में मदद करता है। यह code का structure मैप करता है, खास हिस्से ढूंढता है, और दिखाता है कि वे आपस में कैसे जुड़े हैं।
कब इस्तेमाल करें
- ✓जब आपको कोई ऐसा code मिले जिसे आप नहीं जानते।
- ✓पूरा program किस तरह organized है, यह समझने के लिए।
- ✓किसी खास function का इस्तेमाल या call कहाँ हो रहा है, यह ढूंढने के लिए।
Skill का लिंक
https://github.com/github/awesome-copilot/blob/main/skills/codebase-memory-mcp/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे 'ecommerce' project में 'calculate_total' function कहाँ इस्तेमाल हो रहा है, यह दिखाओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह code के एक 'map' (जिसे Codebase Memory कहते हैं) का इस्तेमाल करके जानकारी ढूंढता है। आप कुछ पूछते हैं, यह map देखता है, और एक गाइड की तरह नतीजे दिखाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Codebase Memory MCP
Use the configured Codebase Memory graph as a discovery accelerator, not as the sole source of truth. Confirm graph-derived conclusions with source snippets or local files before editing code or making strong claims.
Evidence Levels
- Scout — Provisional positive orientation only. Do not make absence, exhaustive, dead-code, or complete-impact claims.
- Verify — Default for task-directed work. Check freshness where material, exact source snippets, relevant traces, path coverage, and every result page needed by the claim.
- Auditor — Use for negative, exhaustive, security, dead-code, architecture-boundary, and complete-impact work. Require the current index generation, a bounded scope, complete result streams, coverage inspection, and source checks for gaps.
Match the evidence level to the claim. If Auditor evidence cannot be completed, state the bounded limitation instead of making an absolute claim.
Workflow
- Discover the Codebase Memory tools exposed by the current MCP client and use their callable schemas; clients may prefix or rename tools and expose different parameters.
- Call
list_projectsfirst. Select only the entry whose canonicalroot_pathmatches the live checkout, and retain both its exact project name and root for later calls. If no match appears andhas_moreis true, continue withoffset=next_offsetbefore concluding the index is absent. For an absent index, follow the authorization rule in Safety and Fallbacks or use rooted local exploration; never substitute a similarly named project. - Before branch-sensitive or edit-sensitive conclusions, use
index_statusand verify the actual version-control state. Usedetect_changesonly when its Git base and head are valid for the checkout. If it unexpectedly reports zero changes, or the checkout uses another VCS, inspect that VCS's status or diff before claiming no impact. - Use
get_architectureonce for unfamiliar structure. Requestclustersto discover de-facto module seams. Treatcyclesas an opt-in whole-call-graph scan:pathdoes not scope cycle detection, so verify relevant cycles before making module-local claims. - Use
search_graphfor definitions, implementations, routes, classes, interfaces, and related symbols. Prefer a BM25queryfor keyword discovery and a name or qualified-name pattern for known symbols. Usesemantic_queryfor vocabulary mismatch and verify matches with source snippets; similarity scores are not confidence probabilities. Narrow by label or path and set a result limit. Continue the main stream withoffset=next_offsetwhilehas_moreis true, not by adding the requested limit: output budgets can return fewer rows. Page semantic results independently withsemantic_offset=semantic_next_offsetwhilesemantic_has_moreis true. - Use
search_codeor normal repository search for literal strings, configuration keys, test identifiers, error messages, and non-code files. Do not turn a precise text lookup into a broad graph query. - After graph search, use
get_code_snippetwith the returned qualified name. For a File, Module, Class, or Interface node spanning more than 200 lines,source_mode="auto"returns an outline; continue members withmember_offset=next_member_offset. To read such a container's body, passsource_mode="full":start_lineandmax_linesalone do not switch off the outline. Withfull, page the body withstart_line/max_linesand continue fromnext_start_linewhilesource_clippedis true and a continuation is available. To list a file's declarations without reading it, useget_file_outline(file_path=...); this tool usesoffset += returnedwhilehas_moreis true. If source snippets are unavailable, open the local file before relying on the result. - Use
trace_pathfor callers, callees, dependency paths, data flow, cross-service paths, and impact analysis. Include tests when the claim covers them. Whenhas_moreand a continuation are present, passnext(tree output) ornext_cursor(json output) back ascursor, keeping traversal arguments unchanged; the output budget may increase.truncated=truealone does not promise another page: engine ceilings can yield a lower-bound total (gte) without a cursor. Withdirection="both"callers are paged after all callees, so page 1 can show zero callers whilecallers_totalis positive; askdirection="inbound"when the question is who calls a symbol.
…
अक्सर पूछे जाने वाले सवाल
क्या मैं इसके नतीजों पर 100% भरोसा कर सकता हूँ?
नहीं, इसे एक गाइड की तरह इस्तेमाल करें। कोई भी बदलाव करने से पहले ज़रूरी जानकारी को original code में देखकर ज़रूर जाँच लें।
क्या यह हर तरह का code ढूंढ पाता है?
यह programming code के लिए सबसे अच्छा है। सादे text या configuration files के लिए दूसरे tools ज़्यादा सीधे तरीके से काम कर सकते हैं।
'evidence levels' क्या होते हैं?
ये भरोसे के स्तर हैं। 'Scout' एक जल्दी वाली नज़र है, 'Verify' विवरण जाँचने के लिए है, और 'Auditor' गहरे और नकारात्मक विश्लेषण के लिए है (जैसे इस्तेमाल न होने वाला code ढूंढना)।
जानकारी
लेखक का मूल विवरण
Use when exploring unfamiliar code, mapping architecture, finding symbols or relationships, tracing callers, callees, data flow or dependencies, assessing impact, auditing dead or complex code, or handling explicit Codebase Memory requests. Otherwise skip tasks confined to a supplied known file, tiny one-file check, exact literal, configuration value, error string, or non-code text.
repo: github/awesome-copilot
लोकप्रियता
- GitHub स्टार
- 40k
- रैंकिंग में स्थान
- #7111
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
acquire-codebase-knowledge
40kआपके एजेंट को किसी मौजूदा code प्रोजेक्ट को समझने और उसका documentation बनाने में मदद करता है। यह नए लोगों को प्रोजेक्ट से जोड़ने या architecture का सार जानने में उपयोगी है।
acreadiness-assess
40kआपके एजेंट को किसी प्रोजेक्ट की AI के लिए तैयारी जाँचने और रिपोर्ट बनाने देता है। यह समझने में उपयोगी है कि प्रोजेक्ट AI tools इस्तेमाल करने के लिए कितना तैयार है।
acreadiness-generate-instructions
40kआपके एजेंट को assessment के आधार पर AI tools के लिए निर्देश बनाने में मदद करता है। यह बताता है कि AI कोड के साथ बेहतर कैसे काम करे और पहचानी गई कमियाँ कैसे दूर हों।
acreadiness-policy
40kआपके एजेंट को AI प्रोजेक्ट assessment के लिए नीतियाँ तय करने या लागू करने में मदद करता है। यह प्रोजेक्ट्स के मूल्यांकन को मानक बनाने और compliance सुनिश्चित करने में उपयोगी है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।