Langsung ke konten
Skillpedia
Agen6.3k Β· #14345

brownfield

Fungsinya

Skill ini mengelola registri repositori git dan worktree yang bisa dipakai alat Ouroboros. Skill ini ditujukan untuk pengembang yang bekerja di beberapa proyek yang sudah ada dan ingin memilih yang tepat dengan cepat.

Kapan dipakai

  • βœ“Saat Anda punya beberapa repositori yang sudah ada dan ingin memilih default untuk sebuah wawancara.
  • βœ“Ketika Anda ingin mencari repositori terdaftar yang cocok dengan sebuah topik.
  • βœ“Saat Anda ingin memindai ulang folder kode untuk menyegarkan daftar proyek.

Link skill

https://github.com/Q00/ouroboros/blob/main/skills/brownfield/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Q00/ouroboros/blob/main/skills/brownfield/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPindai folder kode saya untuk mencari repositori dan atur default untuk proyek penagihan dan aplikasi admin.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini membaca daftar repositori yang tersimpan dalam basis data Ouroboros. Hanya perintah pemindaian yang menelusuri folder Anda di disk, sedangkan perintah lain membaca daftar yang sudah tersimpan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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 (~/repo and ~/group/repo are found; deeper nesting is not).
  • Dot-prefixed and noisy directories such as node_modules are not walked.
  • Normal repos (.git directory) and linked worktrees (.git file) 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 origin are eligible. Existing defaults are preserved; repos no longer on disk are not removed.
  • A rescan skips the git check 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

Pertanyaan umum

Apakah ia memindai komputer saya setiap kali?

Tidak, hanya perintah pemindaian yang menelusuri disk. Pencantuman, pencarian, dan pengaturan default membaca registri yang tersimpan.

Apa itu repositori default?

Itu adalah repositori yang dipakai wawancara sebagai konteks saat Anda memulai sesi.

Bisakah saya mencari registri berdasarkan topik?

Bisa, perintah find mengurutkan repositori terdaftar berdasarkan seberapa cocok dengan sebuah topik.

Detail

Deskripsi asli dari pembuat

Scan and manage brownfield repository/worktree defaults for interviews

repo: Q00/ouroboros

Popularitas

Bintang GitHub
6.3k
Peringkat
#14345
Lisensi
MIT
Diperbarui
1/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa