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 four 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-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

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-nodes
/madsci-experiments
/madsci-managers
/madsci-cli

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

Skill Summaries

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 4 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: