本文へスキップ
Skillpedia
一般的なプログラミング6.3k · #14234

semble

できること

このガイドは、sembleの検索ツールを使い、意味によってコード、文書、設定を見つけ、既知の箇所に似たコードを見つける方法を説明します。なじみのないコードベースを調べる開発者向けです。

使う場面

  • ✓開発者が、プロジェクトのどこに機能が実装されているかを見つける必要があるとき。
  • ✓開発者が、ある設定を説明する文書や設定ファイルを見つけたいとき。
  • ✓開発者が、既知の関数に似たコードを見たいとき。

スキルのリンク

https://github.com/MinishLab/semble/blob/main/src/semble/agents/skill.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/MinishLab/semble/blob/main/src/semble/agents/skill.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

  1. Start with semble search to find relevant chunks. The index is built and cached automatically.
  2. Use --content docs for documentation, --content config for config files, or --content all for everything.
  3. Navigate directly to the returned file and line. Do not re-search or grep for the same content.
  4. Optionally use semble find-related with a promising result's file_path and line to discover related implementations.
  5. If the answer may live in a dependent or sibling repo, pass all relevant repo paths to one semble search call.
  6. 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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

似ているスキル