context-discovery
Skill127 starsChanged 26 days agoMITView on GitHub
Use MCP tools to trace behavior that spans multiple modules or history sources.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- Rhiadc/skillstheir own version, first seen Aug 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Rhiadc/skills★ 1same 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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- wiki/AGENTS.mdAGENTS.md
- wiki/CLAUDE.mdCLAUDE.md
- accountable-engineeringSkill
- adrSkill
- babysit-prSkill
- blindspot-passSkill
- capability-experimentsSkill
- codemapSkill
- code-quality-reviewSkill
- code-reviewSkill
- commit-atomicSkill
- diagnosing-bugsSkill
- doc-searchSkill
- docs-updateSkill
- draft-pull-requestSkill
- git-contextSkill
- handoffsSkill
- implementation-loggerSkill
- implement-specSkill
- llm-wikiSkill
- orchestrating-fusionSkill
- pickupSkill
- plannotator-setup-goalSkill
- portless-localSkill
- prdSkill
- pr-reviewSkill
- prSkill
- qmd-knowledgeSkill
- quiz-meSkill
- ralphSkill
- retroSkill
- security-auditSkill
- slopSkill
- spec-interviewSkill
- tddSkill
- tmuxSkill
- visual-prSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill before and during implementation when:
- Distinctive: line 53
Search past agent sessions for relevant context:
- Distinctive: line 89
Look up documentation for libraries and frameworks:
- Distinctive: line 116
Already familiar: If you know the codebase well, skip steps
- Very specific: line 117
External APIs: Use context7 or web search instead
- Very specific: line 122
Use after /blindspots to investigate surfaced unknowns
- Very specific: line 123
Use before implementation-logger to establish baseline understanding
- Distinctive: line 125
Document surprising finds in implementation log
- Very specific: line 129
Start broad, narrow fast: Use fff to find candidates, then sem/qmd for depth
- Distinctive: line 132
Document what you find: Add significant discoveries to implementation log or qmd
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context Discovery
When to Use
Use this skill before and during implementation when:
- Starting work on an unfamiliar module or feature
- The task involves multiple files or systems
- You need to understand existing patterns before coding
- Previous decisions or discussions may be relevant
- You want to avoid duplicating existing functionality
What It Does
Leverages available MCP tools to proactively discover context about the codebase, existing patterns, decisions, and related work. Instead of relying solely on grep/read cycles, it uses purpose-built discovery tools.
Discovery Workflow
Step 1: File Discovery
Find the relevant files using fff:
fff auth # Find auth-related files
fff "*order*" # Find order-related files by pattern
fff config # Find config filesScan the results to identify the module structure. fff returns frecency-ranked results — the files you access most appear first.
Step 2: Pattern Discovery via sem
Once you know the relevant files, use sem to understand the code's history and structure:
sem blame path/to/file.ts # See who changed each line and when
sem diff main..HEAD -- path/ # See what changed in this area
sem summary path/to/ # Get a summary of the modulesem provides entity-level diffs (function-level, not just file-level), making it easier to understand what actually changed.
Step 3: Historical Context via ctx
Search past agent sessions for relevant context:
ctx search "auth implementation patterns" # Past work on auth
ctx search "this module" path/to/module/ # Past discussions about this area
ctx search "decision" "why did we" path/ # Past decision-makingctx indexes agent sessions, so you can find past discussions, decisions, and patterns the agent has already encountered.
Step 4: Project Knowledge via qmd
Query durable project knowledge:
qmd query "What architecture decisions exist for X?"
qmd search "authentication patterns"
qmd get ADR-001 # Get a specific ADRqmd stores project learnings, ADRs, conventions, and gotchas that persist across sessions.
Step 5: Code Structure via codebase-memory-mcp
For large codebases, use the code graph to understand structure:
search_graph("OrderHandler") # Find the function/class
trace_path("OrderHandler", calls) # What does it call?
trace_path("OrderHandler", callers) # What calls it?
get_code_snippet("package.OrderHandler") # Read the source
get_architecture() # Project overviewStep 6: External Context via context7
Look up documentation for libraries and frameworks:
context7 "express.js middleware API reference"
context7 "react useEffect cleanup pattern"Decision Tree
Where to look depends on what you need:
┌─────────────────────────────┬─────────────────┐
│ Need this │ Use this tool │
├─────────────────────────────┼─────────────────┤
│ Find files by name/pattern │ fff │
│ Find what changed recently │ sem diff │
│ Find past agent discussions │ ctx search │
│ Find ADRs / project memory │ qmd query │
│ Understand code structure │ codebase-memory │
│ Look up external docs │ context7 │
│ Find related PRs │ github MCP │
└─────────────────────────────┴─────────────────┘When Not to Use Context Discovery
- Simple tasks: For well-known code, grep + read is faster
- Already familiar: If you know the codebase well, skip steps
- External APIs: Use
context7or web search instead - Configuration-only changes: Straightforward edits don't need deep context
Integration with Other Skills
- Use after
/blindspotsto investigate surfaced unknowns - Use before
implementation-loggerto establish baseline understanding - Results from context discovery feed into implementation decisions
- Document surprising finds in implementation log
Tips
- Start broad, narrow fast: Use
fffto find candidates, thensem/qmdfor depth - Prefer recent context:
ctxandgit loggive you recent work, which is most relevant - Limit discovery: 2-5 minutes is usually enough
- Document what you find: Add significant discoveries to implementation log or qmd
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.

