Files
Nicholas Ferguson cfc7baa7cf docs: update documentation and add new plugins
- Update installation and hooks documentation
- Add documentation viewer guide
- Add parallel workflow enforcer guide
- Update watch mode and memory guides
- Add beads issue tracking configuration
- Add marketplace plugin configuration
- Add new plugin templates (accessibility, cognitive, frontend, ux)
- Update agents with improved prompts
- Update build configuration and manifest
2026-01-15 17:02:54 -05:00

1.0 KiB

Create plugins

Build a Claude Code plugin by organizing commands, agents, hooks, and optional servers under a single plugin root.

Quick layout

your-plugin/
├── .claude-plugin/
│   └── plugin.json
├── commands/
├── agents/
├── hooks/
│   └── hooks.json
└── scripts/

Hook configuration

Keep hook configuration in hooks/hooks.json at the plugin root (not in settings.json). Use ${CLAUDE_PLUGIN_ROOT} for any file paths so hooks resolve correctly no matter where the plugin is installed.

{
  "hooks": {
    "UserPromptSubmit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "python3",
            "args": [
              "${CLAUDE_PLUGIN_ROOT}/hooks/skill_auto_suggester.py"
            ]
          }
        ]
      }
    ]
  }
}

Reference the hooks file

Point the plugin manifest at the hooks file:

{
  "name": "your-plugin",
  "version": "0.1.0",
  "hooks": "./hooks/hooks.json"
}