Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Agent Skills Reference

MADSci includes six domain-specific skills for AI coding agents (Claude Code, etc.). These skills auto-load contextual knowledge about MADSci’s architecture, patterns, and conventions when working on relevant code, reducing errors and improving code quality.

Available Skills

SkillTriggerWhat It Teaches
madsci-installInstalling, bootstrapping, or tearing down a labInteractive Docker Compose install flow: repo clone + project-local venv, prereq checks, error-recovery prompts, end-to-end verification, uninstall
madsci-nodesNode module codeAbstractNode, RestNode, @action decorator, file parameters, lifecycle, testing
madsci-experimentsExperiment code4 modalities (Script, Notebook, TUI, Node), lifecycle, manage_experiment()
madsci-managersManager servicesAbstractManagerBase, settings, DB handlers, clients, health checks
madsci-cliCLI commandsClick commands, lazy loading, templates, start/stop, output helpers, TUI
madsci-release-auditPreparing a PR or releaseCHANGELOG, docs, guides, example lab, notebooks, templates, and skills staleness checks

How Skills Work

Skills are defined in .agents/skills/madsci-*/SKILL.md (symlinked from .claude/skills/). Each contains:

Automatic Activation

Skills are model-invocable — the agent automatically loads the relevant skill when it detects you’re working on related code. For example, asking “add a new action to the plate reader node” will auto-load madsci-nodes.

Manual Activation

You can explicitly invoke a skill in Claude Code with a slash command:

/madsci-install
/madsci-nodes
/madsci-experiments
/madsci-managers
/madsci-cli
/madsci-release-audit

This is useful when you want to preload context before asking a question.

Skill Summaries

madsci-install

Covers the interactive install and bootstrap workflow — cloning the repo, standing up the Compose stack, recovering from common errors, verifying the running stack, and tearing it back down.

Key topics:

The skill never deletes .madsci/ data. Stopping containers and removing images are undone by a re-install; dropping the bind-mounted Postgres/FerretDB directories is not, and it needs sudo against a path the agent inferred. The skill resolves and prints the path, offers a backup, and hands the rm to the operator.

Seeding a lab with resources/nodes/locations, native (--mode local) operation, and contributor dev-environment setup (just init, pdm install) are explicitly out of scope.

madsci-nodes

Covers the node module development workflow for wrapping laboratory instruments behind MADSci’s standard API.

Key topics:

madsci-experiments

Covers the four experiment modalities and experiment lifecycle management.

Key topics:

madsci-managers

Covers the 7 manager services and their implementation patterns.

Key topics:

madsci-cli

Covers the madsci command-line interface architecture and extension.

Key topics:

Skills in Generated Projects

When you scaffold a new project using madsci new or madsci init, the relevant agent skills are automatically copied into the generated project’s .agents/skills/ directory. This means AI coding agents working on the generated project will have MADSci domain knowledge from day one, without any manual setup.

The skills included depend on the template category:

Template CategorySkills Included
Module, Node, Interface, Commmadsci-nodes
Experimentmadsci-experiments
Workflow, Workcellmadsci-nodes, madsci-managers, madsci-cli
LabAll 6 skills

The skill files are output to .agents/skills/{skill-name}/SKILL.md in the generated project directory. No additional configuration is needed.

Customizing Skills

Skills live in .agents/skills/ and are symlinked into .claude/skills/. To modify a skill, edit the SKILL.md file directly. The frontmatter controls when the skill activates:

---
name: madsci-nodes
description: Working with MADSci node modules for laboratory instrument integration...
---

The description field is what the agent uses to decide whether to auto-load the skill, so keep it specific and action-oriented.

Other Available Skills

In addition to the MADSci-specific skills, the project includes two general coding quality skills: