Plugins

Everything the loop knows about a language lives in plugins. What a plugin holds, the ones that ship, and how to run your own.

On this page

Everything the loop knows about a language or a framework lives in plugins. The loop itself has no opinion about your stack.

What a plugin is#

A plugin is a Claude Code plugin folder.

PathWhat it does
.claude-plugin/plugin.jsonNames the plugin
skills/<role>/SKILL.mdWhat an agent in that role is told: coder, qa, design, manager
.mcp.jsonMCP servers each agent gets
workflows/*.jsonWorkflows it adds, or replaces by name
guardsPaths a reviewer is always shown changes to
testsThe folders your tests are in. The default is test

Every file except plugin.json is optional. A plugin can be one skill.

The ones that ship#

The package carries six plugins.

  • core: the roles every project needs.
  • hosting: deploys and environments.
  • elixir
  • phoenix-web
  • phoenix-contexts
  • ash

Phoenix and Ash are supported today. The parts for other languages are in place, and none is supported yet.

A project runs a list#

A project runs an ordered list of plugins. Each agent gets its role’s skill from every plugin in the list that has one. Where two plugins name the same workflow or the same MCP server, the later one wins.

With no list named, a project runs the package’s default list, which is a Phoenix project’s.

Run your own#

Name your plugins in ~/.workflow/config.json. An entry is a folder, or a packaged plugin’s name.

{
  "plugins": ["core", "elixir", "/path/to/my-plugin"]
}

workflow init --plugin DIR writes a plugin of your own into the config file for you. A plugin of yours with the same name as a packaged one is used instead of it, so you can run a changed copy from your own checkout.

Workflows are data#

A workflow is a JSON file: its steps in order, who acts in each, and for an agent’s step its brief and its tools.

{
  "name": "issue",
  "steps": [
    {"name": "fix", "actor": "coder", "agent": {"tools": ["read", "edit", "write", "bash"], "brief": "..."}},
    {"name": "certify", "actor": "system"},
    {"name": "review", "actor": "reviewer", "agent": {"tools": ["read", "bash"], "decides": true, "brief": "..."}},
    {"name": "promote", "actor": "system"},
    {"name": "ci", "actor": "external"}
  ]
}

You can change the order, the briefs and the tools, and add a workflow of your own. The step names come from a fixed set the loop has code for, such as specify, run, work, fix, certify, review, demo, approve, promote and ci. A file that names a step outside the set is refused.

Next#

Stuck, or is this page wrong? Write to contact@codemyspec.com and a person answers.