From claude-resources
Ground a task in the existing codebase before specification. Use when starting /define or /orchestrate to map relevant files, patterns, and inherited constraints. Prevents specs built on phantom assumptions.
npx claudepluginhub deandum/claude-resources --plugin go-skillsThis skill uses the workspace's default tool permissions.
The spec is only as good as its contact with reality. Discovery is the contact — the codebase scan that happens before the spec is drafted, so assumptions are validated instead of invented.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
The spec is only as good as its contact with reality. Discovery is the contact — the codebase scan that happens before the spec is drafted, so assumptions are validated instead of invented.
/define or /orchestrate, in parallel with criticIdentify the keywords, package names, and feature words from the task. Build a short list — five to ten terms — that will feed into grep.
Do not try to read the whole codebase. The goal is to check whether the task overlaps with existing code, not to produce a map of everything.
Run grep for each keyword across the repository. Skim the hits for:
rate_limiter.go, auth_middleware.py)Cite every hit with a file path and line number. If you cannot cite a path, you cannot claim the hit.
For the closest two or three prior-art matches, read the file. Note:
Read recent_learnings from session-start context. Learnings flagged gotcha or pattern that relate to the task's area become Inherited Gotchas in the discovery artifact.
Populate the four sections of docs/specs/<slug>/discovery.md:
Stay terse. Headline findings only. Detailed forensic notes do not belong here.
| Shortcut | Reality |
|---|---|
| "It's a new feature, nothing exists yet." | You have not grepped. The codebase has surprised you before. Grep first, then claim. |
| "I already read this codebase last week." | Memory fades. Files change. A five-minute grep catches what memory misses. |
| "The task description is clear — no discovery needed." | Clear tasks still touch existing code. Clear does not mean isolated. |
| "I'll just list the file paths I think are relevant." | Without citations, your list is speculation. Every entry needs a path you actually opened. |
| "Critic already checks for existing code." | Critic's role was narrowed. Discovery is your job now. Do it. |
recent_learnings being populateddiscovery.md cites a file pathrecent_learnings were checked for gotchas in the task's areaPair with: core/skill-discovery, core/spec-generation.