a0-create-plugin
БесплатноБез исполняемых скриптовНе проверенCreate, extend, or modify Agent Zero plugins. Follows strict full-stack conventions (usr/plugins, plugin.yaml, Store Gating, AgentContext, plugin settings)…
от Gen-Verse★ 40 звёзд на GitHubОб этом скилле
Agent Zero Plugin Development
[!IMPORTANT] Always create new plugins in
/a0/usr/plugins/<plugin_name>/. The/a0/plugins/directory is reserved for core system plugins.
Related skills: /a0/skills/a0-review-plugin/SKILL.md | /a0/skills/a0-contribute-plugin/SKILL.md | /a0/skills/a0-manage-plugin/SKILL.md
Primary references:
- /a0/AGENTS.md (Full-stack architecture & AgentContext)
- /a0/docs/agents/AGENTS.components.md (Component system deep dive)
- /a0/docs/agents/AGENTS.modals.md (Modal system & CSS conventions)
- /a0/docs/agents/AGENTS.plugins.md (Extension points, plugin.yaml, settings system, Plugin Index)
- /a0/docs/developer/plugins.md (Developer lifecycle and publishing)
Step 0: Ask First — Local or Community Plugin?
Before starting, ask the user one question:
"Should this plugin be local only (stays in your Agent Zero installation) or a community plugin (published to the Plugin Index so others can install it)?"
- Local plugin: Create it in
/a0/usr/plugins/<plugin_name>/. No repository needed. Skip to the manifest section below. - Community plugin: The plugin must live in its own GitHub repository (runtime manifest at the repo root), and then a separate index submission PR is made to https://github.com/agent0ai/a0-plugins. Guide the user through both steps.
Plugin Manifest (plugin.yaml)
Every plugin must have a plugin.yaml or it will not be discovered.
name: my_plugin # required for community plugins; must match dir name (^[a-z0-9_]+$)
title: My Plugin
description: What this plugin does.
version: 1.0.0
settings_sections:
- agent
per_project_config: false
per_agent_config: false
name: lowercase, numbers, underscores only (^[a-z0-9_]+$). Required by CI when submitting to the Plugin Index - must exactly match the index folder name.
settings_sections controls which Settings tabs show a subsection for this plugin. Valid values: agent, external, mcp, developer, backup. Use [] for no subsection.
Activation defaults to ON when no toggle rule exists. Set per_project_config and/or per_agent_config to enable advanced per-scope switching. Core system plugins may also use always_enabled: true to lock the plugin permanently ON (reserved for framework use).
Mandatory Frontend Patterns
1. The "Store Gate" Template
To avoid race conditions and undefined errors, every component must use this wrapper:
<div x-data>
<template x-if="$store.myPluginStore">
<div x-init="$store.myPluginStore.onOpen()" x-destroy="$store.myPluginStore.cleanup()">
<!-- Content goes here -->
</div>
</template>
</div>
2. Separate Store Module
Place store logic in a separate .js file. Do NOT use alpine:init listeners inside HTML.
// webui/my-store.js
import { createStore } from "/js/AlpineStore.js";
export const store = createStore("myPluginStore", {
status: 'idle',
init() { ... },
onOpen() { ... },
cleanup() { ... }
});
Import it in the HTML
:<head>
<script type="module" src="/plugins/<plugin_name>/webui/my-store.js"></script>
</head>
3. User Feedback: A0 Notifications Only
Do not show errors or success via inline boxes (e.g. a red <div> bound to store.error). Use the project notification system so toasts and history stay consistent.
- Errors:
toastFrontendError(message, "My Plugin")(or$store.notificationStore.frontendError(...)) - Success:
toastFrontendSuccess(message, "My Plugin") - Warnings/Info:
toastFrontendWarning,toastFrontendInfofrom/components/notifications/notification-store.js
Import and call from your store; do not render a dedicated error/success block in the template. See Notifications for the full API.
Plugin Settings
If your plugin needs user-configurable settings, add webui/config.html. The system detects it automatically and shows a Settings button in the relevant tabs (per settings_sections in plugin.yaml).
Settings modal contract
The modal provides Project + Agent profile context selectors. The plugin settings wrapper instantiates a local modal context from $store.pluginSettingsPrototype. Inside config.html, bind plugin fields to config.* and use context.* for modal-level state and actions:
<html>
<head>
<title>My Plugin Settings</title>
<script type="module">
import { store } from "/components/plugins/plugin-settings-store.js";
</script>
</head>
<body>
<div x-data>
<input x-model="config.my_key" />
<input type="checkbox" x-model="config.feature_enabled" />
</div>
</body>
</html>
The modal's Save button persists config to config.json in the correct scope (project/agent/global).
Sidebar Button (sidebar entry point)
- Extension point:
sidebar-quick-actions-main-start - Class:
class="config-button" - Placement:
x-move-after=".config-button#dashboard"
Установить a0-create-plugin в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл a0-create-plugin?
Create, extend, or modify Agent Zero plugins. Follows strict full-stack conventions (usr/plugins, plugin.yaml, Store Gating, AgentContext, plugin settings). Use for UI hooks, API handlers, lifecycle extensions, or plugin settings UI.
Как установить скилл a0-create-plugin?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл a0-create-plugin запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic