一键导入
commandkit-plugin-development
// Create CommandKit plugins for runtime and compiler extension points. Use when implementing RuntimePlugin hooks, CompilerPlugin transforms, template registration, or rolldownPlugins-based compiler customization.
// Create CommandKit plugins for runtime and compiler extension points. Use when implementing RuntimePlugin hooks, CompilerPlugin transforms, template registration, or rolldownPlugins-based compiler customization.
Build and maintain Discord bots with CommandKit core conventions. Use when implementing command/event architecture (including hierarchical subcommands), middleware chains, JSX components, and commandkit.config setup for plugin-based features.
Build AI-powered command flows with @commandkit/ai. Use for model selection, message filtering, schema-backed AI commands, and safe tool-calling behavior.
Instrument CommandKit bots with @commandkit/analytics. Use for provider setup, event taxonomy, runtime telemetry controls, and privacy-aware analytics design.
Implement deterministic caching with @commandkit/cache. Use for 'use cache' directives, cacheTag/cacheLife strategy, revalidateTag invalidation, and provider setup for memory or Redis deployments.
Configure and use @commandkit/devtools for local debugging, command inspection, and runtime diagnostics during development.
Implement localization with @commandkit/i18n and i18next. Use for locale resources, command metadata translations, and locale-aware runtime helpers.
| name | commandkit-plugin-development |
| version | 1.0.0 |
| author | neplextech |
| emoji | 🧩 |
| tags | ["commandkit","plugins","runtime-plugin","compiler-plugin","rolldown"] |
| description | Create CommandKit plugins for runtime and compiler extension points. Use when implementing RuntimePlugin hooks, CompilerPlugin transforms, template registration, or rolldownPlugins-based compiler customization. |
Use when building custom plugins that modify CommandKit runtime behavior, command registration flow, or source compilation.
src/plugins/**)commandkit.config.ts| 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. |
| 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. |