mad-science-setup
Skill1 starsChanged 13 days agoMITView on GitHub
Set up a repository for the mad-science data science skills: experiment tracker folder, domain glossary, agent instructions block and .env.example. Run once per repo before the other skills, or when the user says 'set up mad-science' or 'configure this repo for experiments'.
- Reads credentials
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- critic-reviewSkill
- developing-data-science-notebooksSkill
- expectation-driven-scienceSkill
- experiment-graphSkill
- experiment-pipelineSkill
- exp-reviewSkill
- hypothesysSkill
- let-it-ripSkill
- literature-researchSkill
- notify-gchat-human-waitSkill
- to-articleSkill
- to-docSkill
- what-i-doSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 12
Look at the current repo to understand its starting state.
- Distinctive: line 43
If CLAUDE.md exists, edit it.
- Distinctive: line 45
If neither exists, ask the user which one to create.
- Distinctive: line 47
Never create AGENTS.md when CLAUDE.md already exists (or vice versa).
- Distinctive: line 49
If you create the file, add these rules to it:
- Distinctive: line 52
Add a rule to keep this file in sync with the docs folder, updated as experiments are created.
- Distinctive: line 53
Create a section in the file with this template:
- Distinctive: line 76
Ask the user whether they want the repo to notify a human when a flow skill is in progress and the turn waits for human input.
- Distinctive: line 80
If no: skip the section, continue.
- Very specific: line 82
Add GCHAT_WEBHOOK_URL=CHANGE_ME to .env.example (if not present) and tell the user to set the real webhook URL in .env (never versioned).
- Distinctive: line 84
Add the "Flow skills — notify human wait" block to CLAUDE.md (or the file being edited), listing the flow skills currently in this repo …
≈ “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
Setup Mad Science Skills
- Explore Look at the current repo to understand its starting state. Read whatever exists; don't assume:
- git remote -v and .git/config: is this a GitHub repo? Which one?
- AGENTS.md and CLAUDE.md at the repo root: does either exist? Is there already an ## Agent skills section in either?
- GLOSSARY.md and GLOSSARY-MAP.md at the repo root
- Monorepo signals: a pnpm-workspace.yaml, a workspaces field in package.json, or a populated packages/* with its own src/. These are present only in a genuinely large multi-package repo; their absence means single-context, which is almost every repo.
- Show the Finds and Ask
Summarize what's present and what's missing. Then take the sections in order. One section, one answer, then the next.
Section A:
Experiment tracker: The experiment tracker lives in this repo at docs/experiments-pipeline.
Section B:
Domain docs: Default to single-context (one GLOSSARY.md at the repo root). This fits almost every repo; write it without asking.
Offer multi-context (a root GLOSSARY-MAP.md pointing to per-context GLOSSARY.md files) only when exploration found monorepo signals. Then confirm which layout they want.
- Confirm and edit
Show the user a draft of:
- The ## Agent skills block to add to whichever of CLAUDE.md / AGENTS.md is being edited (see step 4 for selection rules)
- Write Pick the file to edit:
- If CLAUDE.md exists, edit it.
- Else if AGENTS.md exists, edit it.
- If neither exists, ask the user which one to create; don't pick for them.
Never create AGENTS.md when CLAUDE.md already exists (or vice versa); always edit the one that's already there.
If you create the file, add these rules to it:
- The file must indicate that the
docs/folder is the main source of truth for the experiments. - Add a rule to keep this file in sync with the docs folder, updated as experiments are created.
- Create a section in the file with this template:
## Docs Indice
### Articles
<article_name_file.md> : <article short description>
### Experiments Docs
<experiments_name_file.md> : <experiment short summary> -
** Already complete? ** : Answer yes or no. If yes, add the date.
### Experiments Pipeline
<experiments_pipeline_name_file.md> : <experiment pipeline short summary> -
** Already complete? ** : Answer yes or no. If yes, add the date.
- Optional — Configure "notify human wait"
Ask the user whether they want the repo to notify a human when a flow skill is in progress and the turn waits for human input. Explain briefly what it does (Google Chat card with the open question + project name). One yes/no.
- If no: skip the section, continue.
- If yes:
- Add
GCHAT_WEBHOOK_URL=CHANGE_MEto.env.example(if not present) and tell the user to set the real webhook URL in.env(never versioned). - Add the "Flow skills — notify human wait" block to
CLAUDE.md(or the file being edited), listing the flow skills currently in this repo (e.g.let-it-rip,literature-research,to-article) plus the rule "notify whenever work inside a listed flow skill is waiting for a human response". Keep the list maintainable: new flow skills are added here.
- Add
- Done
Tell the user the setup is complete and which engineering skills will now read from these files.
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.

