with one click
prior-art
// Discover how a codebase already handles a specific concern — search broadly, find every instance, and assess consistency. The "how does this app do X?" tool.
// Discover how a codebase already handles a specific concern — search broadly, find every instance, and assess consistency. The "how does this app do X?" tool.
Think out loud about a problem, decision, or approach — Socratic friction to help you find clarity, not sympathy
Socratic code review and refactoring session — whether it's your own code, a teammate's PR, or something you inherited. Leads you to see the issues through questions, names smells and moves precisely, then closes with a concrete plan.
Turn a feature into well-defined, independently shippable slices — whether it's an epic that needs breaking apart or a single story that needs sharpening into a job story
Walk through the Designer/Developer wrap-up checklist for offboarding a client engagement — conversationally, one item at a time.
Explain what a piece of code does — a specific file, class, or method in close detail, or a user-facing flow as a concise system overview. What it does and why, not whether it's good.
Pressure-test an assumption, decision, or inherited constraint — Socratic cross-examination that forces you to defend or abandon your position
| name | prior-art |
| description | Discover how a codebase already handles a specific concern — search broadly, find every instance, and assess consistency. The "how does this app do X?" tool. |
| argument-hint | [concern or question, e.g. 'How does this app handle authorization?'] |
| disable-model-invocation | true |
| context | fork |
| agent | Explore |
Research how this codebase handles $ARGUMENTS. Explore the codebase thoroughly and report what you find.
Cast a wide net across the codebase. Use multiple search strategies:
error, exception, rescue, Sentry, Bugsnag, notify, report)ApplicationController, ApplicationRecord, ApplicationJob — these often set patterns that everything inheritsDon't stop at the first result. The goal is to find every place this concern is handled — the consistent pattern and the exceptions.
For the key files involved in this concern:
git log --oneline -10 <file> to see recent changesgit log --all --oneline --grep="<keyword>" to find commits related to the concernGit history reveals whether a pattern is settled or in flux — critical context before you build on top of it.
Report the findings in this order:
The pattern — describe the primary approach in plain English. One paragraph. "This codebase handles X by doing Y." If there's a clear convention, name it. If there are multiple approaches, name each.
Where it lives — list the key files and locations, grouped logically:
For each file, include the path and a one-line description of its role.
The conventions — what rules does this codebase follow for this concern? Be specific:
Inconsistencies — places where the pattern breaks or a different approach is used. Not a judgment — just "here's where it's different and what's different about it." These are the spots where you'd want to understand why before extending the pattern.
Git context — is this pattern stable, evolving, or recently changed? Any ongoing migrations or recent refactors worth knowing about?
How to extend it — given what exists, what's the right way to add to or build on this pattern? Follow the existing convention unless there's a good reason not to. Name the specific file or directory where new code should go, and the pattern it should follow.
Report in plain prose with clear headings. Include file paths for every reference. This is a research artifact — it should be useful as a reference doc for anyone working in this area of the codebase.
Thorough and neutral. You're an archaeologist, not a critic. Report what exists, how it works, where it's consistent, and where it isn't. Save opinions for the "how to extend it" section — and even there, ground the recommendation in what the codebase already does.