brownfield
Skill này làm gì
Skill quản lý một sổ đăng ký các kho git và worktree mà công cụ Ouroboros có thể dùng. Skill dành cho lập trình viên làm nhiều dự án hiện có và muốn chọn nhanh đúng dự án.
Khi nào nên dùng
- ✓Khi bạn có nhiều kho mã hiện có và muốn chọn mặc định cho một phỏng vấn.
- ✓Khi bạn muốn tìm kho đã đăng ký nào khớp với một chủ đề.
- ✓Khi bạn muốn quét lại thư mục mã để làm mới danh sách dự án.
Liên kết skill
https://github.com/Q00/ouroboros/blob/main/skills/brownfield/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Quét thư mục mã của tôi tìm các kho và đặt mặc định cho dự án thanh toán và ứng dụng quản trị.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đọc danh sách kho đã lưu trong cơ sở dữ liệu của Ouroboros. Chỉ lệnh quét mới duyệt các thư mục trên đĩa, còn các lệnh khác đọc danh sách đã lưu.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
/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
Câu hỏi thường gặp
Skill có quét máy tính của bạn mỗi lần không?
Không. Chỉ lệnh quét mới duyệt qua đĩa. Liệt kê, tìm kiếm và đặt mặc định chỉ đọc sổ đăng ký đã lưu.
Kho mặc định là gì?
Đó là kho mà phỏng vấn dùng làm ngữ cảnh khi bạn bắt đầu một phiên.
Bạn có thể tìm kho trong sổ đăng ký theo chủ đề không?
Có. Lệnh tìm kiếm xếp hạng các kho đã đăng ký theo mức độ khớp với một chủ đề.
Chi tiết
Mô tả gốc của tác giả
Scan and manage brownfield repository/worktree defaults for interviews
repo: Q00/ouroboros
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14345
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
auto
6.3kGiúp agent của bạn biến một tác vụ lớn thành đặc tả bằng văn bản, rồi xây dựng và kiểm thử trong nền cho đến khi hoạt động và đạt các kiểm tra.
ouroboros-config
6.3kGiúp agent của bạn mở trang cài đặt Ouroboros để chọn mô hình, backend và các tùy chọn theo từng giai đoạn trong trình duyệt.
evaluate
6.3kGiúp agent của bạn kiểm tra xem công việc đã hoàn thành có đáp ứng tiêu chí nghiệm thu hay không, bằng các kiểm tra tự động và đánh giá theo từng tiêu chí.
evolve
6.3kGiúp agent của bạn khởi động hoặc theo dõi một vòng phát triển tiến hóa, tinh chỉnh kế hoạch và tiêu chí nghiệm thu qua nhiều vòng.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.