본문으로 건너뛰기
Skillpedia
일반 코딩40k · #7111

codebase-memory-mcp

하는 일

이 도구는 복잡한 프로그래밍 코드를 이해하고 탐색하는 데 도움을 줍니다. 코드의 구조를 지도로 그리고, 특정 부분을 찾고, 그 부분들이 어떻게 연결되는지 보여 줍니다.

사용하는 경우

  • ✓잘 모르는 코드를 만났을 때.
  • ✓전체 프로그램이 어떻게 구성되어 있는지 이해하고 싶을 때.
  • ✓특정 함수가 어디서 사용되거나 호출되는지 찾고 싶을 때.

스킬 링크

https://github.com/github/awesome-copilot/blob/main/skills/codebase-memory-mcp/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/github/awesome-copilot/blob/main/skills/codebase-memory-mcp/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“‘ecommerce’ 프로젝트에서 ‘calculate_total’ 함수가 어디에 사용되는지 보여 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 ‘Codebase Memory’라고 부르는 코드의 ‘지도’를 사용해 정보를 찾습니다. 질문하면 지도를 참고해 결과를 안내자처럼 보여 줍니다.

기술 내용 (원본 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% 믿어도 되나요?

아니요, 안내용으로 사용하세요. 변경하기 전에 중요한 정보는 항상 원본 코드를 보고 확인하세요.

모든 종류의 코드를 찾을 수 있나요?

프로그래밍 코드에 가장 적합합니다. 일반 텍스트나 설정 파일의 경우에는 다른 도구가 더 직접적일 수 있습니다.

‘증거 수준’이란 무엇인가요?

신뢰도 수준입니다. ‘Scout’는 빠른 훑어보기, ‘Verify’는 세부 사항 확인, ‘Auditor’는 깊이 있는 분석과 부정적 분석(예: 사용되지 않는 코드 찾기)에 쓰입니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬