← All tasks

🛒 Plugin Marketplace

Priority: P2Effort: 4–5 daysAssignee: Backend dev

P2 — Next 4–5 days

wshobson/agents has 72 plugins, 146 skills. oh-my-claudecode has a plugin system with /plugin install. AO has a plugin architecture internally but no marketplace and no community-facing install commands. This task ships the public marketplace surface.

Why this matters: Community plugins scale faster than the core team. wshobson grew to 31K stars partly because the community could contribute plugins. AO needs the same flywheel.

Plugin Types AO Should Support

agent-runtime
New agent backends (Goose, Cline, custom). Implements AgentRuntime interface.
agent-role
New specialized roles with system prompts. YAML + markdown files.
tracker
Issue tracker integrations (Asana, Jira Cloud, Notion). Implements TrackerPlugin interface.
workflow
Multi-step agent workflows (autopilot, spec-driven, review-then-fix).
dashboard-widget
Custom React components that appear in the web dashboard.
hook
Event hooks that run on session start/end/fail. Useful for notifications, logging.

Reference: wshobson Plugin Structure

Source: github.com/wshobson/agents/plugins/ — 72 plugin directories. Each has: Adapt this as AO's plugin format. It's battle-tested and community-familiar.

Implementation Steps

1

Define AO plugin manifest format

Adapt from wshobson's .claude-plugin format:

// .ao-plugin (JSON)
{
  "name": "ao-plugin-security-roles",
  "version": "1.0.0",
  "description": "Security-focused agent roles: OWASP auditor, pen-tester, secret scanner",
  "type": "agent-role",           // agent-runtime | agent-role | tracker | workflow | hook
  "author": "username",
  "ao_version": ">=1.0.0",
  "entrypoint": "./index.js",    // for code-based plugins
  "roles": ["./roles/owasp-auditor.md", "./roles/pen-tester.md"],
  "commands": ["./commands/security-scan.md"],
  "repository": "https://github.com/username/ao-plugin-security-roles"
}
2

Build plugin registry as GitHub repo

Create github.com/composiohq/ao-plugins as the official registry. Structure:

ao-plugins/
  registry.json          # list of all verified plugins
  plugins/
    security-roles/      # curated plugins live here
    goose-runtime/
    gemini-runtime/
  CONTRIBUTING.md        # how to submit a plugin
  PLUGIN_SPEC.md         # plugin format spec

registry.json:

[
  {
    "name": "ao-plugin-security-roles",
    "description": "Security-focused agent roles",
    "version": "1.0.0",
    "downloads": 142,
    "verified": true,
    "npm": "@ao-plugins/security-roles",
    "repo": "https://github.com/username/ao-plugin-security-roles"
  }
]
3

Implement ao plugin CLI commands

ao plugin list                    # list all available plugins from registry
ao plugin list --type agent-role  # filter by type
ao plugin search security         # search by keyword
ao plugin install security-roles  # install a plugin
ao plugin install @ao-plugins/security-roles  # by npm package name
ao plugin uninstall security-roles
ao plugin update security-roles
ao plugin list --installed        # show installed plugins
ao plugin create                  # scaffold a new plugin interactively
4

Plugin installer: npm + local directory

Two install methods:

  • npm package: npm install @ao-plugins/security-roles + register in AO's plugin config
  • Local directory: ao plugin install ./my-local-plugin — mounts from local path. Good for development.

Plugins are stored in ~/.ao/plugins/. Config in ao.yaml:

plugins:
  - security-roles
  - "@ao-plugins/gemini-runtime"
  - file:./my-local-plugin
5

Plugin loader on AO startup

On ao start, load all plugins from config:

async function loadPlugins(config: AoConfig): Promise<void> {
  for (const pluginRef of config.plugins || []) {
    const plugin = await resolvePlugin(pluginRef); // npm or local
    const manifest = await loadManifest(plugin.path);
    
    if (manifest.type === 'agent-role') {
      await registerRoles(manifest.roles, plugin.path);
    } else if (manifest.type === 'agent-runtime') {
      await registerRuntime(manifest.entrypoint, plugin.path);
    }
    // etc.
  }
}
6

Ship 5 built-in plugins to seed the marketplace

  • @ao-plugins/security-roles — OWASP auditor, pen-tester, secret scanner (adapted from wshobson)
  • @ao-plugins/goose-runtime — Goose (Block) as agent runtime
  • @ao-plugins/gemini-runtime — Finish PR #474
  • @ao-plugins/autopilot-workflow — Adapted from oh-my-claudecode's autopilot skill
  • @ao-plugins/deep-interview — Adapted from oh-my-claudecode's deep-interview skill
7

ao plugin create — scaffolding tool

Interactive wizard that generates a plugin template:

$ ao plugin create
? Plugin name: my-security-plugin
? Plugin type: (agent-role / agent-runtime / workflow / hook) › agent-role
? Description: Security-focused agents for OWASP compliance
? Author: your-username

✓ Created: my-security-plugin/
  ├── .ao-plugin        (manifest)
  ├── roles/
  │   └── example.md   (role template)
  ├── README.md
  └── package.json

Next: Edit roles/example.md, then run `ao plugin install ./my-security-plugin`

Acceptance Criteria

Competitor Source Code