explore-codebase
하는 일
이 스킬은 code-review-graph 도구로 코드베이스를 탐색하도록 AI 에이전트를 안내합니다. 프로젝트에 처음 참여했거나 부분들이 어떻게 연결되는지 이해해야 하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓프로젝트에 합류해서 주요 모듈의 개요가 필요할 때.
- ✓이름이나 키워드로 함수나 클래스를 찾고 싶을 때.
- ✓어떤 코드가 함수를 호출하는지, 또는 무엇에 의존하는지 보고 싶을 때.
스킬 링크
https://github.com/tirth8205/code-review-graph/blob/staging/skills/explore-codebase/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 프로젝트가 어떻게 구성되어 있고 로그인 로직이 어디에 있는지 개요를 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 그래프에 아키텍처 개요를 요청하고, 지정한 코드를 검색하며, 파일과 함수 사이의 관계를 따라갑니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Explore Codebase
Use the code-review-graph MCP tools to find your way around the codebase.
Steps
- Call
get_architecture_overview_toolfor the community structure. Calllist_communities_tool, thenget_community_tool, only for the modules you need. - Call
semantic_search_nodes_toolto find a function or class by name or keyword. - Call
query_graph_toolwithcallers_of,callees_oforimports_ofto trace relationships.children_ofon a file lists its functions and classes. - Call
list_flows_tool, thenget_flow_toolfor one flow, to follow an execution path. - Call
find_large_functions_toolto find oversized functions. - Call
list_graph_stats_toolonly when you need node, edge and language counts.
Token Efficiency Rules
- Call
get_minimal_context_tool(task="<your task>")before any other graph tool. - Pass
detail_level="minimal"wherever a tool accepts it. Use "standard" only when minimal is not enough. - Prefer a targeted
query_graph_toolcall over a broad listing call. - Budget: about five tool calls and 800 tokens of graph output per task.
- Read the implementation and its tests before changing code. The graph narrows scope; it does not replace the source.
자주 묻는 질문
무엇을 보여 줄 수 있나요?
아키텍처 커뮤니티, 함수, 호출자, 피호출자, import, 실행 흐름을 보여 줄 수 있습니다.
큰 함수도 찾나요?
네. 스킬은 지나치게 큰 함수를 찾는 도구를 포함합니다.
그래프를 먼저 만들어야 하나요?
네. 탐색 도구가 유용한 결과를 반환하려면 그래프가 먼저 만들어져 있어야 합니다.
상세 정보
작성자의 원본 설명
Navigate and understand codebase structure using the knowledge graph
인기도
- GitHub 스타
- 33k
- 순위
- #9140
- 라이선스
- MIT
- 업데이트
- 2026. 10. 29.
댓글
- …
이 저장소의 다른 스킬
build-graph
33k에이전트가 저장소의 코드 지식 그래프를 만들거나 갱신해, 이후 코드 리뷰와 검색을 더 빠르게 돕습니다.
debug-issue
33k에이전트가 코드 지식 그래프에서 호출 체인을 따라 버그의 시작점을 추적하도록 돕습니다. 원본 코드를 읽기 전에 먼저 살펴봅니다.
refactor-safely
33k에이전트가 의존성 분석으로 코드 리팩터링을 계획하고, 이름 변경은 미리 보기를 확인한 뒤에만 적용하도록 돕습니다.
review-changes
33k에이전트가 위험 점수, 테스트 공백, 영향 범위와 함께 코드 변경을 검토하고 위험 수준별로 묶어 보여 줍니다.