본문으로 건너뛰기
Skillpedia
에이전트6.3k · #14345

brownfield

하는 일

이 스킬은 Ouroboros 도구가 사용할 수 있는 git 저장소와 워크트리 목록을 관리합니다. 여러 기존 프로젝트를 다루며 필요한 프로젝트를 빨리 고르고 싶은 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓기존 저장소가 여러 개 있고 인터뷰의 기본 저장소를 고르고 싶을 때.
  • ✓주제에 맞는 등록된 저장소를 찾고 싶을 때.
  • ✓프로젝트 목록을 새로 고치려고 코드 폴더를 다시 스캔하고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/Q00/ouroboros/blob/main/skills/brownfield/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“코드 폴더에서 저장소를 스캔하고, 빌링 프로젝트와 관리자 앱을 기본 저장소로 설정해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 Ouroboros 데이터베이스에 저장된 저장소 목록을 읽습니다. 디스크의 폴더를 훑는 것은 scan 명령뿐이며, 다른 명령은 저장된 목록을 읽습니다.

기술 내용 (원본 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 (~/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

자주 묻는 질문

매번 컴퓨터를 스캔하나요?

아니요, 디스크를 훑는 것은 scan 명령뿐입니다. 목록 보기, 검색, 기본 저장소 설정은 저장된 목록을 읽습니다.

기본 저장소란 무엇인가요?

세션을 시작할 때 인터뷰가 맥락으로 사용하는 저장소입니다.

주제로 목록을 검색할 수 있나요?

네, find 명령은 등록된 저장소를 주제와 얼마나 잘 맞는지에 따라 순위를 매깁니다.

상세 정보

작성자의 원본 설명

Scan and manage brownfield repository/worktree defaults for interviews

repo: Q00/ouroboros

인기도

GitHub 스타
6.3k
순위
#14345
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬