discover-setup
Skill1 starsChanged 43 days agoMITView on GitHub
Install or refresh discover on this machine and in one CLAUDE.md, the project's or the user's global one: links the discover agent and the two discover skills, then installs or updates the mandatory Discovery section.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- test-authorSkill
- discoverSkill
- discussSkill
- do-code-reviewSkill
- doSkill
- improve-promptSkill
- journeySkill
- prototypeSkill
- setup-pre-commitSkill
- sketchSkill
- specSkill
- testing-policySkill
- test-triageSkill
- ticketsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run bash <this-skill-dir>/scripts/install.sh <scope-args>.
- Very specific: line 28
Run bash <this-skill-dir>/scripts/verify.sh <scope-args> again.
- Very specific: line 30
Only if this session was prompted for permission on the agent's Bash call (bash ~/.claude/skills/discover/scripts/discover.sh): offer, and …
- Distinctive: line 35
Do not commit: a project CLAUDE.md change is left for the user to review.
≈ “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
Install or refresh discover. Runs inline: it edits a CLAUDE.md, which the forked discover agent
cannot do. Every script below takes --user for the user scope (~/.claude/CLAUDE.md) and a
project directory for the project scope (<project>/CLAUDE.md).
Scope argument: $ARGUMENTS
- Pick the scope(s). If the argument is
project,userorboth, use it and skip the question. Otherwise runbash <this-skill-dir>/scripts/verify.sh <project>andbash <this-skill-dir>/scripts/verify.sh --user, then ask with AskUserQuestion (multiSelect, so both may be chosen), showing each scope'ssection=state in its description:- Project:
<project>/CLAUDE.md; shared with teammates through the repo. - User:
~/.claude/CLAUDE.md; applies to every project on this machine, yours only. Recommend the one that is notcurrentyet; when both arecurrent, say so and offer only a refresh.
- Project:
- For each chosen scope, run
bash <this-skill-dir>/scripts/verify.sh <scope-args>and readsection=,agent_link=,skill_links=,deps=. Adepsentry:missingblocks the install: say which tool is missing (rg,ast-grep,jq) and stop. - Run
bash <this-skill-dir>/scripts/install.sh <scope-args>. It creates or repairs the agent symlink and the two skill hops, then handles the section:none→ appends it at the end of thatCLAUDE.md;stale(an older version installed) → updates the text between the markers;current→ no change. Ondriftedit prints the diff and exits 5: show the diff, ask whether the hand edits may be replaced, and only then re-run with--force. The script touches nothing else in thatCLAUDE.md, and nothing else in the project or in~/.claude. - Run
bash <this-skill-dir>/scripts/verify.sh <scope-args>again; it must exit 0. Report, per scope, the transition (section: none -> current v=3,stale v=2 -> current v=3), the link states andagent_ref. - Only if this session was prompted for permission on the agent's Bash call
(
bash ~/.claude/skills/discover/scripts/discover.sh): offer, and wait for a yes, to addBash(bash ~/.claude/skills/discover/scripts/discover.sh:*)topermissions.allowin~/.claude/settings.json. Never edit that file without the explicit yes.
Do not commit: a project CLAUDE.md change is left for the user to review.
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.

