快速了解
它能做什么
发现本地 Git 项目,并选择供 Ouroboros 访谈使用的仓库上下文。
本站提供的是中文说明,不代表该项目或 Plugin 自身提供中文界面;语言支持请以上游文档为准。
选择前先看
此 Ouroboros 技能会在指定根目录下最多两层范围内扫描 Git 仓库和关联工作树。它可查看和更新提供给访谈的默认仓库,也可为项目生成包含建议验证命令的 mechanical.toml 文件。
适合谁
同时维护多个已有本地仓库,并希望为 Ouroboros 访谈指定正确项目上下文的开发者。
常见任务
- 扫描目录以发现可用的 Git 仓库和工作树。
- 查看、设置、保留或清除访谈默认仓库。
- 在评估前生成并审阅 .ouroboros/mechanical.toml。
权限与数据
读取本地目录和 Git 工作树元数据;部分命令会修改已保存的默认值或创建项目配置文件。
权限- 访问本地根目录以扫描 Git 仓库和关联工作树。
- 访问 Ouroboros MCP 工具以执行扫描和默认值管理。
- detect 子命令需要 Shell 访问权限。
- 会处理仓库名称、路径和默认选择,以提供访谈上下文。
- detect 可在选定项目中写入 .ouroboros/mechanical.toml。
- 扫描仓库和设置默认值需要访问 Ouroboros MCP 工具。
- 提供的技能文档未说明凭证要求。
局限
- 扫描仅覆盖根目录下最多两层,并会跳过点开头目录及已知噪声目录。
- 只有在受限扫描中被直接发现的工作树才会被注册。
- 如果未找到清单文件或 LLM 不可用,detect 可能无法提出可验证命令。
DSHub 已核对
- 固定版本的技能文档已被采集,并通过了必需的技能文档检查。
- 仓库声明采用 MIT 许可证。
DSHub 未核对
- DSHub 未执行该技能、未扫描文件系统、未调用 MCP 工具,也未运行 detect 命令。
固定版本安装
主要操作
这个独立 Skill没有 DSH Plugin 安装操作,请根据源码文档使用真实交付方式。
维护者原文
Skill 使用说明
name: brownfield description: "Scan and manage brownfield repository/worktree defaults for interviews"
/ouroboros:brownfield
Scan a root directory for existing git repositories and linked worktrees, then manage default repos used as context in interviews.
Usage
ooo brownfield # Scan repos and set defaults
ooo brownfield scan # Scan only (no default selection)
ooo brownfield defaults # Show current defaults
ooo brownfield set 6,18,19 # Set defaults by repo numbers
ooo brownfield detect [path] # Author mechanical.toml via one AI call
Trigger keywords: "brownfield", "scan repos", "default repos", "brownfield scan", "mechanical detect"
How It Works
Default flow (ooo brownfield with no args)
Step 1: Scan
Show scanning indicator:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Scanning for Existing Projects...
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Looking for git repositories and worktrees up to two directories below the scan root.
Local repos and repos with any remote name are eligible.
This may take a moment...
Implementation — use MCP tools only, do NOT use CLI or Python scripts:
CRITICAL — deferred-schema guard (prevents "Invalid tool parameters"):
This skill can call ouroboros_brownfield across multiple turns (scan,
set_defaults, defaults, and set). A deferred schema loaded for one turn is
NOT guaranteed to remain loaded for the next. Immediately before EVERY
ouroboros_brownfield call, re-run tool discovery query: "+ouroboros brownfield"
(idempotent — a no-op when already loaded). If the load returns no matching tool (and the tool is not already callable — an empty load for an already-exposed tool is an expected no-op, not absence),
stop with the MCP-not-available message instead of retrying the failing call.
- Load the brownfield MCP tool:
tool discovery query: "+ouroboros brownfield" - Call scan+register:
This walksTool: ouroboros_brownfield Arguments: { "action": "scan" }scan_root(up to two directory levels deep) for valid seed repos/worktrees and registers them in DB. Each repo or worktree found directly by the walk is registered self-only — Git worktree families are not expanded, so worktrees outside the depth-bounded walk (e.g. under.ouroboros/worktrees) are not pulled in. Existing defaults are preserved.
The scan response text already contains a pre-formatted numbered list with [default] markers. Do NOT make any additional MCP calls to list or query repos.
Display the repos in a plain-text 2-column grid (NOT a markdown table). Use a code block so columns align. Example:
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
Include * markers for defaults exactly as they appear in the scan response.
If no repos found, show:
No git repositories or worktrees found.
Then stop.
Scan boundaries
- The filesystem walk starts at
scan_root; when omitted,scan_rootdefaults to the current user's home directory. - Repositories are discovered by walking directories inside
scan_root, at most two levels deep (so~/repoand~/group/repoare found; deeper nesting is not). - Dot-prefixed directories and known noisy directories such as
node_modulesare not walked as seed locations. - Both normal repos (
.gitdirectory) and linked worktrees (.gitfile) are registered when the walk reaches them. Git worktree families are NOT expanded — a worktree is only registered if the walk finds it directly, not because its main repo's Git metadata reports it. - Local repos, repos without remotes, and repos whose remotes are not named
originare all eligible.
Step 2: Default Selection
Do NOT use AskUserQuestion for this selection. Two rendering constraints
make it unusable here:
- Assistant text emitted between tool calls (scan result → grid → question dialog) is not guaranteed to render, so the user may face the dialog without ever seeing the repo list.
- Embedding the list in option
previewfields does not work either — the preview box has a fixed height and silently truncates long lists ("N lines hidden"), and repo lists routinely exceed it.
Instead, end the turn with the repo grid as the final message so its display is guaranteed, and collect the selection as a plain chat reply.
Immediately below the grid (same message, same code block or right after it), append the selection prompt:
If defaults exist:
Current defaults: <current default names> (numbers <current default numbers>)
Reply with repo numbers to change defaults (e.g. "6, 18, 19"),
"keep" to keep the current defaults, or "none" to clear them.
If no defaults exist:
No defaults set.
Reply with repo numbers to set defaults (e.g. "6, 18, 19"),
or "none" to run interviews in greenfield mode.
Then end the turn — no tool calls after the grid. The RFC #1392 breadcrumb footer is still the last line of the message.
On the next turn, parse the user's reply:
- Numbers (any separator) → those indices
- "keep" (defaults exist) → stop; no MCP call needed, confirm defaults unchanged
- "none" → empty indices (clear all)
- Anything else → ask again in plain text; do not guess
Then re-run tool discovery query: "+ouroboros brownfield" and use ONE MCP call to update all defaults at once:
Tool: ouroboros_brownfield
Arguments: { "action": "set_defaults", "indices": "<comma-separated IDs>" }
Example: if the user picks IDs 6, 18, 19 → { "action": "set_defaults", "indices": "6,18,19" }
This clears all existing defaults and sets the selected repos as default in one call.
If "none" → { "action": "set_defaults", "indices": "" } to clear all defaults.
Step 3: Confirmation
Brownfield defaults updated!
Defaults: grape, podo-app, podo-backend
These repos will be used as context in interviews.
Or if "none" selected:
No default repos set. Interviews will run in greenfield mode.
You can set defaults anytime with: ooo brownfield
Or if "keep" selected:
Defaults unchanged: <current default names>
Subcommand: scan
Scan only, no default selection prompt. Show the numbered list and stop.
Subcommand: defaults
Re-run tool discovery query: "+ouroboros brownfield", then call:
Tool: ouroboros_brownfield
Arguments: { "action": "scan" }
Display only the repos marked with * (defaults). If none, show:
No default repos set. Run 'ooo brownfield' to configure.
Subcommand: set <indices>
Directly set defaults without scanning. Parse the comma-separated indices from the user's input, re-run tool discovery query: "+ouroboros brownfield", and call:
Tool: ouroboros_brownfield
Arguments: { "action": "set_defaults", "indices": "<indices>" }
Show confirmation with updated defaults.
Subcommand: detect [path]
Runs one AI call against the target directory (defaults to the user's cwd)
and writes .ouroboros/mechanical.toml with validated lint / build / test /
static / coverage commands. Stage 1 of evaluation reads this file verbatim,
so the toml is the authoritative Stage 1 contract — no hardcoded language
presets exist anymore.
Ouroboros auto-runs this detect the first time ouroboros_evaluate is
invoked without a toml present, so most users never need to call it
directly. Run it explicitly when:
- you want to pre-author the toml before the first evaluate,
- you moved to a new build tool and want to refresh (
--force), - you want to review/edit the commands before Stage 1 trusts them.
Implementation: invoke the CLI via Bash.
uvx --python '>=3.12' --from ouroboros-ai ouroboros detect [path]
# or, if already installed:
ouroboros detect [path] [--force]
Then print the resulting .ouroboros/mechanical.toml contents so the user
can confirm the proposed commands or hand-edit them.
If detect reports "could not propose any verifiable commands", surface the
reason (no manifests found, LLM unavailable, every proposal dropped) and
suggest the user write a minimal toml by hand — any single entry like
test = "pytest -q" is enough to opt back in to Stage 1 for that check.
RFC #1392 State Breadcrumb Footer
Your final response MUST end with exactly one breadcrumb footer line:
◆ <current state> → next: <recommended action>
Derive <current state> from live session state via ouroboros_session_status when that MCP projection is available; otherwise derive it from this skill's actual outcome. Never use a linear Step N of M footer because Ouroboros is an evolutionary loop. When the next action is genuinely a choice, list 2-3 honest options in the next: clause. The breadcrumb line must be the last line of the response.
有意识地管理
安装与管理
前置条件与目标 Profile
目标: developers Profile, repository-maintainers Profile
交付方式: Skill 文件 — https://raw.githubusercontent.com/Q00/ouroboros/03714ba446186423dcb46e25d12bd19c3a2e82f6/skills/brownfield/SKILL.md。
兼容性与访问范围
Requires Ouroboros MCP tools; detect also requires its CLI: Not declared in supplied evidence。
风险事实
证据与编辑审查Manifest、Bundle patch、分发与新鲜度
不可变证据
审查状态与源码活动
在核对来源内容和不可变发布记录后,已由人工批准发布。AI 参与了内容草稿生成,最终发布决定由人工完成。
人工审查于 2026/9/5 UTC 17:15。GitHub 事实核对日期: 2026/9/5 UTC 16:31。
自当前证据基线以来,没有记录到重要源码变化。