brownfield
できること
Ouroborosツールが使えるgitリポジトリとワークツリーのレジストリを管理します。複数の既存プロジェクトで作業し、適切なものを素早く選びたい開発者向けです。
使う場面
- ✓既存のリポジトリがいくつもあり、インタビューの既定のものを選びたいとき。
- ✓トピックに合う登録済みのリポジトリを見つけたいとき。
- ✓コードのフォルダーを再スキャンして、プロジェクトの一覧を更新したいとき。
スキルのリンク
https://github.com/Q00/ouroboros/blob/main/skills/brownfield/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“コードのフォルダーをスキャンしてリポジトリを探し、請求プロジェクトと管理画面アプリの既定に設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、Ouroborosのデータベースに保存されたリポジトリの一覧を読みます。ディスク上のフォルダーを巡回するのはスキャンのコマンドだけで、他のコマンドは保存された一覧を読みます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
/ouroboros:brownfield
Manage the registry of existing git repositories and linked worktrees, and the default repos used as interview context. The registry lives in the Ouroboros DB: listing, defaults, and search read it and never walk the filesystem. Only scan walks the disk.
ooo brownfield # List registered repos and set defaults (scans only if none are registered)
ooo brownfield scan # Rescan the scan root and refresh the search index
ooo brownfield defaults # Show current defaults
ooo brownfield find <topic> # Rank registered repos by relevance to a topic
ooo brownfield set 6,18,19 # Set defaults by repo numbers
ooo brownfield detect [path] # Author mechanical.toml via one AI call
Loading MCP tools (deferred-schema guard)
Ouroboros tools may be deferred, and a schema loaded on one turn can unload by the next. Immediately before each ouroboros_* call, load it with the active runtime's tool-discovery capability: "+ouroboros brownfield" for ouroboros_brownfield. A call whose schema is not loaded fails with "Invalid tool parameters". If the tool is already callable, discovery is a no-op and an empty result is expected. If it is genuinely absent, stop and say the Ouroboros MCP server is not available. Listing, scan, find, defaults, and set use only this MCP tool, never the CLI or Python scripts.
Default flow (ooo brownfield)
Step 1: List the registry
Tool: ouroboros_brownfield
Arguments: { "action": "query" }
If meta.total is 0, nothing is registered yet: run the scan below instead and use its response. Otherwise do not scan; the user runs ooo brownfield scan when repos were added or moved.
Tool: ouroboros_brownfield
Arguments: { "action": "scan" }
Scan boundaries:
- The walk starts at
scan_root(default: the user's home directory) and goes at most two directory levels deep (~/repoand~/group/repoare found; deeper nesting is not). - Dot-prefixed and noisy directories such as
node_modulesare not walked. - Normal repos (
.gitdirectory) and linked worktrees (.gitfile) are registered self-only when the walk reaches them. Git worktree families are not expanded, so worktrees outside the depth-bounded walk (e.g. under.ouroboros/worktrees) are not pulled in. - Repos without remotes or with remotes not named
originare eligible. Existing defaults are preserved; repos no longer on disk are not removed. - A rescan skips the
gitcheck for already-registered repos and rebuilds a repo's search document (manifest name and description, README head, top-level entry names) only when those files changed.
The query or scan response text already holds the numbered {id}. {name} list with * markers on defaults (query lines also carry : {path} - {desc}); make no further MCP calls to list repos. Show the numbers and names (never the scores or paths) as a plain-text two-column grid in a code block (not a markdown table), keeping the * markers exactly:
Scan complete. 8 repositories registered.
1. repo-alpha 5. repo-epsilon
2. repo-bravo * 6. repo-foxtrot
3. repo-charlie 7. repo-golf *
4. repo-delta 8. repo-hotel
If the scan finds nothing, say "No git repositories or worktrees found." and stop.
Step 2: Default selection
Do NOT use the active runtime's ask_user dialog for this selection: text between tool calls may not render, and dialog previews truncate long lists. Instead, end the turn with the repo grid as the final message and collect the selection as a plain chat reply. Directly below the grid, append:
- With defaults:
Current defaults: <names> (numbers <numbers>), then "Reply with repo numbers to change defaults (e.g. "6, 18, 19"), "keep" to keep the current defaults, or "none" to clear them." - Without defaults:
No defaults set., then "Reply with repo numbers to set defaults (e.g. "6, 18, 19"), or "none" to run interviews in greenfield mode."
Make no tool calls after the grid; the breadcrumb footer is still the last line.
Next turn, parse the reply: numbers (any separator) → those indices; "keep" → confirm defaults unchanged, no MCP call; "none" → empty indices; anything else → ask again in plain text, never guess. Then update all defaults in one call (it replaces every existing default):
Tool: ouroboros_brownfield
Arguments: { "action": "set_defaults", "indices": "<comma-separated IDs>" }
For ex
よくある質問
毎回パソコンをスキャンしますか?
いいえ。ディスクを巡回するのはスキャンのコマンドだけです。一覧の表示、検索、既定の設定は、保存されたレジストリを読みます。
既定のリポジトリとは何ですか?
セッションを始めるときに、インタビューの文脈として使われるリポジトリです。
トピックでレジストリを検索できますか?
はい。findコマンドで、トピックへの一致度に応じて登録済みのリポジトリを順位付けします。
詳細
人気
- GitHubのスター
- 6.3k
- ランキング
- #14345
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
auto
6.3k大きな作業を書面の仕様に変え、仕様が完成して検証に通るまでバックグラウンドで構築とテストを行うのを支援します。
ouroboros-config
6.3kOuroborosの設定画面をブラウザーで開き、モデル、バックエンド、ステージごとのオプションを選べるようにするのを支援します。
evaluate
6.3k完成した作業が受け入れ基準を満たしているか、自動チェックと基準ごとのレビューで確認するのを支援します。
evolve
6.3k進化する開発ループを開始したり監視したりするのを支援します。計画と受け入れ基準を、複数のラウンドにわたって洗練させます。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。