tobihagemann/survey-patterns
Survey the codebase for analogous features, reusable utilities, and existing patterns relevant to a proposed change. Returns structured findings without writing code. Use when the user asks to \"survey patterns\", \"find existing patterns\", \"look for analogous features\", \"check how similar things are done\", \"find prior art for this change\", or needs pattern context before planning a change.
npx skills add https://github.com/tobihagemann/turbo --skill survey-patterns
Search the codebase for analogous features and reusable building blocks before planning a change. Returns structured findings. Does not write code or plans.
Determine what the change is about:
State the task back in one sentence to confirm scope before searching.
Spawn a single subagent in the foreground (model: "opus", no name). Its prompt must direct it to treat the shared working tree and its git index as read-only and to survey by reading and reasoning. The subagent's prompt must include:
The subagent covers all three categories (Analogous Features, Reusable Utilities, Convention Anchors) in one sweep and returns a single structured report.
Output the subagent's report verbatim. Do not reformat or re-synthesize — references/pattern-surveyor.md specifies the exact output format the subagent produces.
Then use the TaskList tool and proceed to any remaining task.
Take tobihagemann/survey-patterns from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.