agentleFS
samuhssamuhs/mad-science/CLAUDE.md

mad-science

CLAUDE.md1 starsChanged 13 days agoMITView on GitHub

Rules for agents working in this official data science skills repository. Read before changing anything under skills/. Manage and improve the hypothesis-driven experiment skills (skills/*), packaged as a multi-agent plugin (Claude Code, Codex, Copilot, Cursor, skills.sh). Every change to the skill ecosystem happens here. 1. Pull Request required: every change goes in through a Pull Request (PR) that describes the proposed change. Never commit directly to main. - Branches: type/description in kebab-case (feat/new-skill, fix/typo-what-i-do). - Commits: Conventional Commits, subject ≤…

  • Reads credentials

The file

We split this CLAUDE.md into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Very specific:

    Read before changing anything under skills/.

    line 4
  2. Distinctive:

    Pull Request required: every change goes in through a Pull Request (PR) that describes the proposed change.

    line 14
  3. Very specific:

    Catalogue in what-i-do: every skill must be catalogued in skills/what-i-do/SKILL.md before it is final.

    line 18
  4. Distinctive:

    All content (skills, docs, UI strings) is written in English.

    line 45
  5. Very specific:

    Prefer small, incremental changes.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md 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
CLAUDE.md

CLAUDE.md — mad-science

Rules for agents working in this official data science skills repository. Read before changing anything under skills/.

Repository purpose

Manage and improve the hypothesis-driven experiment skills (skills/*), packaged as a multi-agent plugin (Claude Code, Codex, Copilot, Cursor, skills.sh). Every change to the skill ecosystem happens here.

Mandatory rules

  1. Pull Request required: every change goes in through a Pull Request (PR) that describes the proposed change. Never commit directly to main.
    • Branches: type/description in kebab-case (feat/new-skill, fix/typo-what-i-do).
    • Commits: Conventional Commits, subject ≤ 72 characters.
  2. Catalogue in what-i-do: every skill must be catalogued in skills/what-i-do/SKILL.md before it is final.
    • If the skill changes the experiment flow, update what-i-do (Main Flow and/or Flow Checks sections) to reflect the new flow, and describe the flow change for the reviewer in the PR.
    • what-i-do is the source of truth for the catalogue; README.md mirrors it.

Checklist before opening a PR

  • Created a type/description branch and described the change in the PR.
  • The skill is catalogued in what-i-do (with a descriptive role per skill).
  • If the flow changed: what-i-do updated (Main Flow / Flow Checks / Standalone).
  • Conventional Commits; no secrets or .env in the diff.
  • Tests/validations run (e.g. scripts/tests of skills that have them).
  • python3 scripts/validate_plugin.py passes (frontmatter, catalogue, manifests).
  • New skill? It is also added to the README.md table.
  • Release? version is the same in all three manifests (.claude-plugin/plugin.json, .cursor-plugin/plugin.json, plugin.json).

Packaging (plugin)

  • Skills live in skills/<name>/SKILL.md; the frontmatter name equals the folder name.
  • Skill scripts never assume they live inside the user's repo: reference them as <skill-dir>/scripts/... and resolve project files from the working directory (the plugin is installed outside the project).
  • .claude-plugin/marketplace.json serves Claude Code, Codex and Copilot CLI; .cursor-plugin/plugin.json serves Cursor; skills.sh discovers skills/ on its own.
  • All content (skills, docs, UI strings) is written in English.
  • Local test: claude --plugin-dir . and claude plugin validate ..

Skill catalogue

Source: skills/what-i-do/SKILL.md (wins over this file on divergence).

SkillRoleWhen to use
/hypothesysSharpens the hypothesis and premises through an interview.First step of the flow.
/to-docConsolidates the discussion into an experiment doc and publishes it to the issue tracker.Experiment contract.
/experiment-pipelineBuilds a sliced pipeline and tracks the rounds.Execution in slices.
/let-it-ripImplements the experiment in the notebook (expectation-driven).Time to implement.
/exp-reviewReviews the experiment code (standards + quality) in parallel.Gate before moving on.
/expectation-driven-scienceScientific discipline (hypothesis → prediction → verification).Rigor reference.
/developing-data-science-notebooksProduction-grade notebook practices.Creating/refactoring notebooks.
/literature-researchResearch on primary sources, findings saved as Markdown.State of the art.
/to-articleGenerates/structures/reviews a scientific-technical article.Results become a paper.
/mad-science-setupConfigures the repo layout and documents.Once, before using the others.
/notify-gchat-human-waitSends a Google Chat card when the agent waits for a human.Operations/automation.
/critic-reviewReviews the whole project (docs, experiments, results) against the state of the art; flags gaps and weak evidence.End of project or a critical second opinion.
/experiment-graphRead-only interactive graph of the pipeline doc (status, dependencies, critical path).Visual overview of experiment state.
/what-i-doOrientation map and canonical catalogue.Unsure which skill to use.

Engineering standards

  • Global governance files (~/.claude/CLAUDE.md, rules in .agents/) apply unless this file says otherwise.
  • Prefer small, incremental changes; code size limits and quality standards (coverage, tests in scripts/) follow the global rules.

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.