semble
できること
このガイドは、sembleの検索ツールを使い、意味によってコード、文書、設定を見つけ、既知の箇所に似たコードを見つける方法を説明します。なじみのないコードベースを調べる開発者向けです。
使う場面
- ✓開発者が、プロジェクトのどこに機能が実装されているかを見つける必要があるとき。
- ✓開発者が、ある設定を説明する文書や設定ファイルを見つけたいとき。
- ✓開発者が、既知の関数に似たコードを見たいとき。
スキルのリンク
https://github.com/MinishLab/semble/blob/main/src/semble/agents/skill.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトがユーザーのログインをどこで扱っているかを見つけ、近くにある似たコードも見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルはAIに、平易な説明または記号の名前でsembleの検索を実行し、コード、文書、設定などのコンテンツの種類を選び、既知の行から関連するコードを検索するよう指示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Use semble search to find code by describing what it does or naming a symbol/identifier, instead of grep:
semble search "authentication flow" ./my-project --max-snippet-lines 10 # first 10 lines only, concise
semble search "save_pretrained" ./my-project # full chunk content
semble search "save model to disk" ./my-project --top-k 10 # more results
Results are cached automatically on first run and invalidated when files change.
Use --content docs to search documentation and prose, --content config for config files (yaml, toml, etc.), or --content all to search code, docs, and config:
semble search "deployment guide" ./my-project --content docs
semble search "database host port" ./my-project --content config
semble search "authentication" ./my-project --content all
Use semble find-related to discover code similar to a known location (pass file_path and line from a prior search result):
semble find-related src/auth.py 42 ./my-project
path defaults to the current directory when omitted; git URLs are accepted. Pass several paths or URLs to search related repos together, e.g. when this project calls a service defined in a sibling repo. Result paths are then prefixed with the repo name and the output includes a repos map from prefix to location:
semble search "invoice endpoint" ./service-a ../service-b
If semble is not on $PATH, use uvx --from "semble[mcp]" semble in its place.
Workflow
- Start with
semble searchto find relevant chunks. The index is built and cached automatically. - Use
--content docsfor documentation,--content configfor config files, or--content allfor everything. - Navigate directly to the returned file and line. Do not re-search or grep for the same content.
- Optionally use
semble find-relatedwith a promising result'sfile_pathandlineto discover related implementations. - If the answer may live in a dependent or sibling repo, pass all relevant repo paths to one
semble searchcall. - Use grep only when you need every occurrence of a literal string across the whole repo (e.g., all callers of a renamed function).
よくある質問
grepの代わりになりますか?
何をするかによってコードを探すときには、テキスト検索のツールより先に使うよう、スキルは述べています。
複数のプロジェクトを一度に検索できますか?
はい。複数のパスやリポジトリのリンクをまとめて検索できるとスキルは述べています。
結果は保存されますか?
初回の実行で結果がキャッシュされ、ファイルが変わると更新されるとスキルは述べています。
詳細
作者による元の説明
Code search for the current repository. Use this before Grep, Glob or find whenever you need to locate code: where something is implemented, which file defines a function, class or symbol, how a feature works, or where docs and config live.
repo: MinishLab/semble
人気
- GitHubのスター
- 6.3k
- ランキング
- #14234
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。