create-plugin

A guided workflow for building a complete plugin, an add-on that extends an AI coding tool. It covers requirements, component design, implementation, validation, and testing.

In plain words
What is it for?
Use it to create plugins containing skills, agents, commands, or hooks, while tracking the work and checking the finished result.
Why use it?
It turns an unclear plugin idea into a defined build process and helps catch missing details before delivery.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ronmkr/promptbook/create-plugin
Clone the repo
git clone --depth 1 https://github.com/ronmkr/PromptBook
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,551 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00016 $0.03551
Opus 5 $0.00008 $0.01775
Sonnet 5 $0.00003 $0.00710
Haiku 4.5 $0.00002 $0.00355

Measured 2d ago against content hash 12cc4a72fe8a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to create-plugin — 32 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

core/plugin-dev-toolkit/commands/create-plugin.md · 450 lines

How it starts

The opening of the file, as written. The whole thing — 450 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Plugin Creation Workflow

Guide the user through creating a complete, high-quality Antigravity plugin from initial concept to tested implementation. Follow a systematic approach: understand requirements, design components, clarify details, implement following best practices, validate, and test.

Core Principles

  • Ask clarifying questions: Identify all ambiguities about plugin purpose, triggering, scope, and components. Ask specific, concrete questions rather than making assumptions. Wait for user answers before proceeding with implementation.
  • Load relevant skills: Use the Skill tool to load plugin-dev skills when needed (plugin-structure, hook-development, agent-development, etc.)
  • Use specialized agents: Leverage agent-creator, plugin-validator, and skill-reviewer agents for AI-assisted development
  • Follow best practices: Apply patterns from plugin-dev's own implementation
  • Progressive disclosure: Create lean skills with references/examples
  • Use TodoWrite: Track all progress throughout all phases

Initial request: $ARGUMENTS


Phase 1: Discovery

Goal: Understand what plugin needs to be built and what problem it solves

Actions:

  1. Create todo list with all 7 phases
  2. If plugin purpose is clear from arguments:
    • Summarize understanding
    • Identify plugin type (integration, workflow, analysis, toolkit, etc.)
  3. If plugin purpose is unclear, ask user:
    • What problem does this plugin solve?
    • Who will use it and when?
    • What should it do?
    • Any similar plugins to reference?
  4. Summarize understanding and confirm with user before proceeding

Output: Clear statement of plugin purpose and target users


Phase 2: Component Planning

Goal: Determine what plugin components are needed

MUST load plugin-structure skill using Skill tool before this phase.

Actions:

  1. Load plugin-structure skill to understand component types
  2. Analyze plugin requirements and determine needed components:
    • Skills: Specialized knowledge OR user-initiated actions (deploy, configure, analyze). Skills are the preferred format for both — see note below.
    • Agents: Autonomous tasks? (validation, generation, analysis)
    • Hooks: Event-driven automation? (validation, notifications)
    • MCP: External service integration? (databases, APIs)
    • Settings: User configuration? (.local.md files)

Read the full file on GitHub · 450 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 450 lines · 16 tokens per session scan A 12cc4a72fe8a

Subscribe to this mod's changes

create-plugin is a command published in the GitHub repository ronmkr/PromptBook (2 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 16 tokens to every session and 3,551 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to create-plugin, differing in 32 lines, and is treated as a copy.