/machina-agent-builder:extend-machina What to add (e.g. "a connector for the Fiix CMMS REST API")from machina-agent-builder
Adds a connector, capability, MCP tool, mapper, or workflow to Machina at a declared seam, using the spine's extension manifest.
Ships in machina-agent-builder. Installing the plugin adds it to Claude Code.
Machina is meant to be extended. The extension seams are declared in the self-description spine, so you never have to reverse-engineer them from source. Read them, then implement against the named seam.
machina describe (or read the seam section of docs/capabilities.md) to get the live list of seams: the reflectable Protocols (BaseConnector, SupportsConfirmation, RefreshableConnector) with their required methods, and the convention seams (transport/mapper split, connector-type registration, the Capability enum, MCP-tool registration, workflow builtins) — each with its location template.docs/connectors/custom.md for the full method contract and an end-to-end example.src/machina/connectors/{category}/{name}.py and implement the BaseConnector Protocol structurally (a bare class — never subclass it). Declare capabilities: ClassVar[frozenset[Capability]] using members of the Capability StrEnum. Keep transport in the connector and vendor payload↔domain mapping in connectors/cmms/mappers/{vendor}.py. All I/O is async; heavy transport deps are imported lazily inside methods and gated behind a pip extra.type → dotted factory path entry to _CONNECTOR_FACTORIES in runtime.py.Capability StrEnum (connectors/capabilities.py), then map it to its backing method in CAPABILITY_TO_METHOD (introspect/_methods.py) — capability values are not always method names.CAPABILITY_TO_TOOL (mcp/tools.py).The spine is code-derived and CI-gated, so your new connector/capability must show up in it:
python scripts/gen_spine.py and commit docs/capabilities.{md,json}. make ci (the drift gate) goes red until you do.machina describe and confirm your addition appears as expected.What the command file sets; muted values are Claude Code's defaults
extension, connectors, capabilities, mcp-tools, workflow, spine
7-day visitors to each command page
npx claudepluginhub lgdimaggio/machina --plugin machina-agent-builder2 commands in this plugin
Other plugins' commands for the same job