prior-art
Skill26 starsChanged 8 months agoMITView on GitHub
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.
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Don't stop at the first result.
- Distinctive: line 32
Look for: when the pattern was established, whether it's evolved, any recent changes or migrations from one approach to another
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Behavior
Research how this codebase handles $ARGUMENTS. Explore the codebase thoroughly and report what you find.
Step 1: Search Broadly
Cast a wide net across the codebase. Use multiple search strategies:
- Grep for keywords — search for terms related to the concern (e.g. for error reporting:
error,exception,rescue,Sentry,Bugsnag,notify,report) - Check common Rails locations — initializers, middleware, concerns, base classes, config files, lib/
- Check the Gemfile — are there gems related to this concern? What do they tell you about the approach?
- Check application-level base classes —
ApplicationController,ApplicationRecord,ApplicationJob— these often set patterns that everything inherits - Check for dedicated directories or files — service objects, concerns, lib/ modules that handle this concern
Don't stop at the first result. The goal is to find every place this concern is handled — the consistent pattern and the exceptions.
Step 2: Check Git History
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 concern- Look for: when the pattern was established, whether it's evolved, any recent changes or migrations from one approach to another
Git history reveals whether a pattern is settled or in flux — critical context before you build on top of it.
Step 3: Map What You Found
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:
- Configuration (initializers, middleware, config)
- Base-level setup (ApplicationController, ApplicationRecord, etc.)
- Implementation files (services, concerns, models, specific controllers)
- Tests (how is this concern tested?)
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:
- Is there a consistent pattern, or multiple approaches?
- Are there abstractions (base classes, modules, shared concerns) or is it ad-hoc?
- What naming conventions are used?
- Is there test coverage for this concern?
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.
Output Format
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.
Tone
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.
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- runxhq/runx★ 97same name
- damacus/agent-skills★ 2same name
- crsmithdev/aleph★ 0same name
- dylanpulver/prior-art★ 0same name
- mmurakaru/skills★ 0same name
- Timi-Fish/chinese-pm-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- challengeSkill
- explainSkill
- feature-devSkill
- git-commitSkill
- hard-newsSkill
- offboardSkill
- rubber-duckSkill
- sliceSkill
- socratic-reviewSkill
- standupSkill
- test-driven-developmentSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

