मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग40k · #7111

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/github/awesome-copilot/blob/main/skills/codebase-memory-mcp/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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

  1. 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.
  2. Call list_projects first. Select only the entry whose canonical root_path matches the live checkout, and retain both its exact project name and root for later calls. If no match appears and has_more is true, continue with offset=next_offset before 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.
  3. Before branch-sensitive or edit-sensitive conclusions, use index_status and verify the actual version-control state. Use detect_changes only 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.
  4. Use get_architecture once for unfamiliar structure. Request clusters to discover de-facto module seams. Treat cycles as an opt-in whole-call-graph scan: path does not scope cycle detection, so verify relevant cycles before making module-local claims.
  5. Use search_graph for definitions, implementations, routes, classes, interfaces, and related symbols. Prefer a BM25 query for keyword discovery and a name or qualified-name pattern for known symbols. Use semantic_query for 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 with offset=next_offset while has_more is true, not by adding the requested limit: output budgets can return fewer rows. Page semantic results independently with semantic_offset=semantic_next_offset while semantic_has_more is true.
  6. Use search_code or 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.
  7. After graph search, use get_code_snippet with 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 with member_offset=next_member_offset. To read such a container's body, pass source_mode="full": start_line and max_lines alone do not switch off the outline. With full, page the body with start_line/max_lines and continue from next_start_line while source_clipped is true and a continuation is available. To list a file's declarations without reading it, use get_file_outline(file_path=...); this tool uses offset += returned while has_more is true. If source snippets are unavailable, open the local file before relying on the result.
  8. Use trace_path for callers, callees, dependency paths, data flow, cross-service paths, and impact analysis. Include tests when the claim covers them. When has_more and a continuation are present, pass next (tree output) or next_cursor (json output) back as cursor, keeping traversal arguments unchanged; the output budget may increase. truncated=true alone does not promise another page: engine ceilings can yield a lower-bound total (gte) without a cursor. With direction="both" callers are paged after all callees, so page 1 can show zero callers while callers_total is positive; ask direction="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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस 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 सुनिश्चित करने में उपयोगी है।

AI और एजेंटएजेंट

मिलती-जुलती skills