univer-plugin-dev
Installation
SKILL.md
Univer Plugin Development
Guide for building custom plugins that extend Univer's functionality.
Compatibility: This skill is written for Univer
v0.21.x. Core plugin patterns (lifecycle, DI, commands) remain stable, but specific service tokens and facade classes may shift. Prefer the user's existing codebase patterns when they differ from examples here.
Quick Start
Scaffold a new plugin
Use the bundled script to generate a minimal plugin skeleton:
# If installed to ~/.codex/skills/
npx tsx ~/.codex/skills/univer-plugin-dev/scripts/scaffold-plugin.ts my-plugin --path ./src/plugins
# Or from this repo directly
npx tsx ~/univer-sdk-skills/skills/univer-plugin-dev/scripts/scaffold-plugin.ts my-plugin --path ./src/plugins