a0-create-plugin
Build, improve, review or publish Agent Zero plugins; local or community, with focused references.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- a0-create-plugin
- tags
- [ "plugins", "create", "develop", "review", "publish", "debug" ]
- version
- 2.0.0
- triggers
- [ "create plugin", "build plugin", "new plugin", "develop plugin", "write plugin", "plugin template", "improve plugin", "review plugin", "audit plugin", "validate plugin", "check plugin", "plugin review", "is my plugin correct", "plugin checklist", "contribute plugin", "publish plugin", "share plugin", "submit plugin", "contribute to plugin hub", "community plugin", "open source plugin", "debug plugin", "troubleshoot plugin", "fix plugin", "plugin not working", "plugin not loading", "plugin not showing", "plugin broken", "plugin error", "plugin missing", "plugin crash", "how does the plugin system work" ]
- description
- Build, improve, review or publish Agent Zero plugins; local or community, with focused references.
02 资源文件 7
- 参考文档AGENTS.md1.7 KB
- 参考文档references/AGENTS.md1.3 KB
- 参考文档references/channel-commands.md13.2 KB
- 参考文档references/contribute.md4.9 KB
- 参考文档references/implementation.md11.1 KB
- 参考文档references/review.md5.0 KB
- 参考文档references/webui.md9.7 KB
03 SKILL.md 正文
Agent Zero Plugin Development
Use this entrypoint to build or improve a plugin, review it, or prepare community contribution. For finding useful existing plugins and installing/updating them, use a0-manage-plugin.
Establish The Target
Honor an explicit local-only or community-contribution request. For a new plugin, if the user has not said which, ask once: "Should this stay local, or be prepared for community contribution?" Do not ask again when the answer is already in the conversation. For an existing plugin, inspect its location/repository and requested outcome; clarify only an unresolved distribution choice.
- Local: work in
/a0/usr/plugins/<name>/. No public repository or Index submission needed. - Community: develop and test locally, then prepare a standalone repository and a separate Plugin Index submission using
references/contribute.md. - Existing bundled plugin work: edit its tracked owner only when that is the requested task. New custom plugins do not belong in
/a0/plugins/.
Required Lifecycle Contract
Plugin setup, dependency installation, required initialization, and uninstall cleanup MUST use lifecycle functions in the plugin-root hooks.py. Never put these operations in execute.py, and never require an Execute button or manual post-install command to make a plugin usable.
install()prepares dependencies and initializes the plugin automatically after installation and again after updates. Make it safe to rerun.pre_update()stops plugin-owned processes or prepares state before an update when needed.uninstall()stops plugin-owned processes, removes registrations, and removes plugin-owned dependencies/resources before the framework deletes the plugin directory. Preserve shared dependencies and unrelated user data.- Keep lifecycle ownership in
hooks.py; it may delegate to plugin-local helpers. If boot-time initialization is needed, a startup extension may call the same helper or hook; it does not replace install/uninstall hooks. - Omit
execute.pyunless there is a separate, explicitly requested manual operation unrelated to setup, dependency installation, required initialization, updates, or removal.
Read Only What The Task Needs
After loading this skill, use skills_tool with action: "read_file", skill_name: "a0-create-plugin", and the reference path:
| Work | Reference |
|---|---|
| Manifest, layout, backend, tools, settings, hooks, runtime verification | references/implementation.md |
| Channel integrations: shared slash commands, effects, menus, authorization | references/channel-commands.md |
Alpine stores, settings UI, x-overflow controls, notifications, custom message/process-step handlers |
references/webui.md |
| Review existing code or verify a completed change | references/review.md |
| Standalone repository, license, Index entry, validation and PR | references/contribute.md |
Working Flow
- Inspect the existing plugin and relevant source. Read
/a0/AGENTS.md,/a0/plugins/AGENTS.md, and the closest applicable contracts. - Load the implementation reference, plus the UI reference if needed. Build only the requested capability; reuse existing helpers and patterns.
- Keep
plugin.yamlat the plugin root. Use stable underscore names for new custom plugins. Keep credentials and runtime state out of published source. - Verify the real target runtime, not just the checkout. Use the framework Python for backend/plugin checks. Read
references/review.mdbefore declaring the work complete; report actual checks and remaining limitations. - For local work, deliver the working plugin and usage instructions. For community work, continue through the contribution reference within the user's publication authorization. Preparing a plugin is not the same as publishing it or merging its Index PR.
Brief Troubleshooting
Follow the first failing boundary: root plugin.yaml and correct directory; global/project/profile toggle and effective config; imports in the framework runtime; API auth/CSRF and route; extension path/breakpoint; store import and gate. Inspect the relevant server/browser error before editing. Use management APIs for lifecycle refreshes; do not manually rerun install/uninstall hooks as a diagnostic or delete state to hide the failure.
Finish
Report the feature, usage, live verification, and any unresolved limits. For community work, distinguish repository publication, PR creation, CI results, and actual merge. Follow an existing request to commit or publish; otherwise keep changes ready for review.
04 同仓库更多 Skills
system-lifecycle-designer
Universal architectural methodology for designing granular, atomic, and sub-atomic lifecycles and end-to-end workflows for single functionality integrations across any domain (daemons, batch jobs, request transactions, resource pools). Provides patterns for deterministic identity, pre-commit validation, differential reconciliation, sticky leasing, state machines, transactional persistence, and closed-loop feedback.
style-sampling
Make a new episode in a proven video style - Collage Explainer, Finance Explainer, Animated Science Explainer, 3D Brand Explainer, 3D True Crime - on the person's topic. Use for "an episode of", "in the style of", "sample this style", 「用这个风格做一集」. One video to copy is reverse-any-video.
reverse-any-video
Rebuild any video file as an editable HyperFrames project - motion graphics, talking heads, live action or AI-generated footage - checked against the original frame by frame. Use to reverse, recreate, remake, replicate or copy a video, or 「复刻这个视频」「照着这个视频做一个」.
typescript-patterns
TypeScript patterns for strict, type-safe, maintainable code in modern TypeScript and JavaScript applications. Covers strict compiler configuration, type design, narrowing, discriminated unions, generics, async and error handling, module boundaries, dependency hygiene, and type-level testing. Use when writing or reviewing TypeScript or JavaScript code.
test-collaboration
Inventory and govern a project's test assets. Connect requirements, business rules, risks, bugs, and cross-boundary contracts to stable TEST-IDs and executable evidence in the repository's existing test registry or TESTS.md. Use for test inventory, test gap analysis, unit/integration/contract/E2E/smoke classification, bug-to-test regression protection, consumer/provider contract testing, test-necessity review, and pre-delivery evidence review.
story-lifecycle
Manage a file-based epic → story → sprint development loop without requiring an external project management tool. Creates and tracks epics, breaks them into user stories, assigns them to sprints, and drives implementation story by story. Use when starting a new feature initiative or when the team has no Jira/Linear/Taiga but needs structured delivery tracking.