research-code-internal
Hunt the repos in scope for parts a plan would otherwise rebuild, near-duplicate helpers and optimisation hot spots, before the plan is written. Use when the plan adds any helper, reader, parser, schema field or subsystem, or a repo has more than ~200 source files; always on the full path before phase 3. Read-only; dispatches one reuse-hunter agent.
- License 许可
- MIT
- 最近更新
- 2026-10-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- research-code-internal
- description
- Hunt the repos in scope for parts a plan would otherwise rebuild, near-duplicate helpers and optimisation hot spots, before the plan is written. Use when the plan adds any helper, reader, parser, schema field or subsystem, or a repo has more than ~200 source files; always on the full path before phase 3. Read-only; dispatches one reuse-hunter agent.
02 资源文件 1
03 SKILL.md 正文
research-code-internal
Finds what already exists in our own code so the plan reuses it instead of rebuilding it.
When to run it
Run when:
- the plan will add any helper, reader, parser, schema field or subsystem;
- a repo in scope has more than ~200 source files;
- always, on the full path, before phase 3.
Skip when:
- lean path with every file named and no new helper.
Procedure
- Get the brief path:
bash ${CLAUDE_PLUGIN_ROOT}/skills/start-research/scripts/doc_path.sh research "<topic>-code-internal". - Dispatch ONE
reuse-hunteragent. Model:sonnet;opuswhen more than two repos are in scope. Set the model explicitly. Pass it the task, the repos in scope, and the plan items or the design doc path. - Write its answer to the brief path and return the path plus the Plan inputs.
- Its
reuselist is the shared-parts map (part -> exists-at / needed-by / proposed owner) that phase 3 consumes. Pass it on unedited.
Output: Plan inputs
Return the four ## Plan inputs lists (reuse, do-not-build, fix-as-ac, ideas) exactly as
defined in phase 1 of ${CLAUDE_PLUGIN_ROOT}/skills/start-development/SKILL.md; do not restate
them.
Rules
- Read-only: no edits to the repos in scope.
- Every claim cites file:line or file:symbol that was found, not guessed.
- Model sonnet unless stated above; set the model explicitly on the agent call.
04 同仓库更多 Skills
claudy
d claudy
gamma
Literal line one. Literal line two.
beta
Quoted: description with a colon.
alpha
Folded description that spans two lines and ends here.
worktree-merge
Rebases one subagent's worktree onto the base branch, optionally verifies the rebased tree, fast-forwards it into the worktree that has the base checked out (an epic integration tree or the main checkout), verifies every commit landed, and only then removes the worktree and its branch. Keeps the worktree intact on any conflict, dirty tree, or failed check. Use after a subagent returns work created with worktree-create.
worktree-create
Creates one isolated git worktree for one subagent, at <workbench>/.claude/worktrees/<name>, branched from main with the newest origin/main and local main merged in. Refuses a name already in use so two agents can never share a tree. Use once per implementation or review subagent before dispatching it; pair with worktree-merge to land the work and clean up.