codebase-exploration
できること
このスキルは、Repowiseで索引されたプロジェクトを探索して、そのアーキテクチャとモジュールについての質問に答える手助けをAIにします。コードベースに慣れていない開発者向けです。
使う場面
- ✓プロジェクトのある部分がどう動くか、または流れが最初から最後までどう進むかを尋ねるとき。
- ✓ソースファイルを読む前に、ある機能がどこで実装されているかを見つける必要があるとき。
- ✓なじみのないリポジトリの構造と主要なモジュールの概要がほしいとき。
スキルのリンク
https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/codebase-exploration/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトのチェックアウトの流れはどう動きますか?ファイルを開く前に概要を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、各質問に合ったRepowiseの調べ方を選びます。たとえば、プロジェクトの概要、引用付きの統合された回答、呼び出し元の一覧などです。正確な名前やファイル名には、普通の検索を使います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Codebase Exploration with Repowise
This project has a Repowise intelligence layer. For an exact identifier, string or file name, Grep, Glob and Read are faster. For how code works, who calls it, what a change breaks and why it is shaped this way, reach for the Repowise MCP tools: they return documentation, ownership, history, decisions, and graph structure that plain file reads don't, usually in one round-trip instead of many.
Which tool for which question
| You want… | Call |
|---|---|
| An exact identifier, string or file name | Grep, Glob and Read. |
| First orientation in an unfamiliar repo | get_overview(): architecture summary, key modules, entry points, git health, knowledge map. Skip it once you have the map. |
| How X works or flows end to end | get_answer(question="how does …"), one question per call: synthesised answer with citations + one confidence trust signal. Collapses the search → read → reason loop. |
| Callers before a rename or signature change | get_context(targets=["<symbol>"], include=["references"]): definition, imports and calls; a complete list is the whole edit set. |
| What breaks if X changes | get_risk(targets=["<file>"]). |
| Why X is shaped this way, before changing a pattern | get_why(query="why …", targets=["<file>"]). |
| Before finishing a multi-file change | get_change_risk(revspec="<base>..HEAD"), then get_health(targets=["<files you touched>"]). |
A fuzzy concept, or symbol ids and line bounds to feed get_symbol |
search_codebase(query="…"): hybrid search. mode="auto" routes an identifier to indexed symbol hits (symbol_id/line bounds → pipe into get_symbol), a path to file pages (→ get_context), and prose to semantic wiki search (each hit reports search_method: embedding vs bm25). Force a branch with mode=symbol|path|concept|hybrid; narrow symbols with symbol_kind. |
| A triage card for specific files/symbols | get_context(targets=[…]): title, summary, signatures, hotspot bit, top callers, decision titles, symbol_ids (a row without one is path::name). Batch many targets in one call. |
| The actual source of one symbol | get_symbol("path/to/file.py::Name"): exact bytes with line bounds. Cheaper than Read + offset math. Use a symbol_id from get_context. |
Recommended flow
- New area you don't know →
get_overview()once. - A specific question →
get_answer(question=…)first.- High confidence → answer it, cite the paths.
medium/lowconfidence → followbest_guesses[0].fileorfallback_targets[0]intoget_context, thenget_symbolfor bytes.
- A named symbol or a path you only need to find → Grep, Glob or Read. When
you need its callers, risk or history, pass it to
get_context,get_riskorget_whyinstead. - More files around a concept →
search_codebase, thenget_contexton the hits (batched), thenget_symbolonly for the bodies you actually need.
Read source directly for details the indexed context doesn't cover.
Trust signals — verify when
_meta.stale_warningis present (the index has diverged from HEAD), orconfidenceismedium/low, or- a result's
search_methodisbm25.
Otherwise the response is current — act on it.
Error handling
- "No repositories found. Run 'repowise init' first." → suggest
/repowise:init. Add--no-editor-setupif this repo is a scratch clone, a fixture, or a worktree, soinitwrites nothing outside.repowise/(no editor config, agent hooks or git hook). - MCP tools unavailable → prefer the matching CLI slash commands when the
plugin is installed (
/repowise:ask,/repowise:context,/repowise:symbol,/repowise:search) rather than grepping blind. get_answer/search_codebasecome back empty → the repo may have a template-rendered wiki. Fall back toget_contextwith explicit paths, and note that model-written pages (repowise generate, or/repowise:initwith an LLM provider) unlock richer docs + semantic search.- Tools fail to connect at all → the
repowisebinary may not be installed; suggest/repowise:init.
よくある質問
普通の検索のほうがよいのはどのような場合ですか?
正確な識別子、文字列、ファイル名の場合は、普通の検索とファイルの読み取りのほうが速いと、スキルは述べています。
どのような回答を返しますか?
引用と信頼度のシグナル付きの、統合された回答です。
プロジェクトが索引されている必要がありますか?
はい。.repowiseフォルダを持つプロジェクトで動きます。
詳細
作者による元の説明
Use when exploring, understanding, or answering questions about a codebase that has Repowise indexed (a .repowise/ directory in the project root). Activates for "how does X work", "explain the architecture", "where is Y implemented", "what does this module do", or any task that needs an understanding of structure before diving into source files.
repo: repowise-dev/repowise
人気
- GitHubのスター
- 8.1k
- ランキング
- #12567
- ライセンス
- AGPL-3.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
architectural-decisions
8.1kアーキテクチャを変更する前に、記録された決定と履歴を使って、コードがなぜそのように作られているかを、エージェントが調べるよう支援します。
change-review
8.1kマージの前にプルリクエストや一連の変更を見直し、リスク、影響を受けるファイル、ほかに変えるべきものを示すよう、エージェントを支援します。
code-health
8.1kRepowiseの分析を使って、ファイルごとにコードの健全性を採点し、最もリスクの高いファイルを見つけ、次にリファクタリングするものを選ぶよう、エージェントを支援します。
dead-code-cleanup
8.1kプロジェクト内の使われていないコード、到達できないファイル、未使用のエクスポートを見つけ、安全に整理できるよう、エージェントを支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。