Commandkit plugin development

From neplextech/commandkit · View interactive version

Commandkit plugin development is an AI agent skill from the GitHub repository neplextech/commandkit. Create CommandKit plugins for runtime and compiler extension points. Use when implementing RuntimePlugin hooks, CompilerPlugin transforms, template registration, or rolldownPlugins-based compiler customization.

How to use this skill

Skill file

CommandKit Plugin Development

Activation guidance

Use when building custom plugins that modify CommandKit runtime

behavior, command registration flow, or source compilation.

Required filesystem expectations

src/plugins/**)

Execution workflow

  1. Decide plugin type: runtime vs compiler.
  2. Implement focused plugin class with explicit hook usage.
  3. Register plugin in config and validate lifecycle behavior.
  4. Add logging/tests for hook behavior and failure modes.

Guardrails

transforming.

Reference index

| Name | Description |

| -------------------------------------------- | ---------------------------------------------------------------------------- |

| references/00-filesystem-structure.md | Plugin folder layout and config wiring expectations. |

| references/01-runtime-plugin-basics.md | RuntimePlugin class setup and minimal lifecycle hook usage. |

| references/02-runtime-hooks-reference.md | Practical mapping of major runtime hooks and when to use each. |

| references/03-compiler-plugin-transform.md | CompilerPlugin transform pipeline and safe transform patterns. |

| references/04-template-registration.md | Registering/unregistering commandkit create templates in compiler plugins. |

| references/05-rolldown-plugins.md | Using rolldownPlugins in config for compiler-time extension. |

Tool index

| Name | Description |

| --------------------------------------------- | ----------------------------------------------------------------------------- |

| tools/generate-runtime-plugin-template.mjs | Prints a minimal RuntimePlugin template with typed hook signatures. |

| tools/generate-compiler-plugin-template.mjs | Prints a minimal CompilerPlugin template including transform method skeleton. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.