agentleFS
samuhssamuhs/mad-science/skills/mad-science-setup/SKILL.md

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

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
  1. Distinctive:

    Look at the current repo to understand its starting state.

    line 12
  2. Distinctive:

    If CLAUDE.md exists, edit it.

    line 43
  3. Distinctive:

    If neither exists, ask the user which one to create.

    line 45
  4. Distinctive:

    Never create AGENTS.md when CLAUDE.md already exists (or vice versa).

    line 47
  5. Distinctive:

    If you create the file, add these rules to it:

    line 49
  6. Distinctive:

    Add a rule to keep this file in sync with the docs folder, updated as experiments are created.

    line 52
  7. Distinctive:

    Create a section in the file with this template:

    line 53
  8. Distinctive:

    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.

    line 76
  9. Distinctive:

    If no: skip the section, continue.

    line 80
  10. Very specific:

    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).

    line 82
  11. Distinctive:

    Add the "Flow skills — notify human wait" block to CLAUDE.md (or the file being edited), listing the flow skills currently in this repo …

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Setup Mad Science Skills

  1. 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.
  1. 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.

  1. 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)
  1. 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.
  1. 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_ME to .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.
  1. Done

Tell the user the setup is complete and which engineering skills will now read from these files.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.