package-plugin
Package Plugin
Package a plugin into a distributable .zip archive suitable for importing into Claude Code
or sharing with other teams.
When to Use
- Exporting a plugin for Claude Code import (
claude --plugin-dir) - Sharing a plugin with another developer or repository
- Creating a release artifact for distribution
Execution Steps
1. Validate the Plugin
Before packaging, verify the plugin has a valid manifest:
python3 plugins/plugin-manager/skills/package-plugin/scripts/package.py \
--validate-only --plugin <path-to-plugin>
This checks:
.claude-plugin/plugin.jsonexists and is valid JSONnameis kebab-caseversionis semverauthoris an object (not a string)- At least one
skills/*/SKILL.mdexists
2. Package the Plugin
python3 plugins/plugin-manager/skills/package-plugin/scripts/package.py \
--plugin <path-to-plugin> --output <destination>
Default output: ~/Desktop/<plugin-name>-v<version>.zip
3. Verify the Package (Optional)
python3 plugins/plugin-manager/skills/package-plugin/scripts/package.py \
--verify <path-to-zip>
Extracts to /tmp/package-verify/ and confirms the structure is intact.
What the Packager Does
- Preserves symlinks (
--symlinksflag) foragents/andcommands/directories - Excludes:
.DS_Store,__pycache__,.history/,node_modules/,*.pyc,.git/ - Names output as
<plugin-name>-v<version>.zip - Validates
plugin.jsonschema before packaging
Rules
- Always validate before packaging. Catch manifest issues before they reach consumers.
- Never manually zip a plugin. Always use this script to ensure correct flags.
- Source Transparency Declaration: state which plugin was packaged and the output path.
More from richfrem/agent-plugins-skills
markdown-to-msword-converter
Converts Markdown files to one MS Word document per file using plugin-local scripts. V2 includes L5 Delegated Constraint Verification for strict binary artifact linting.
52excel-to-csv
>
32zip-bundling
Create technical ZIP bundles of code, design, and documentation for external review or context sharing. Use when you need to package multiple project files into a portable `.zip` archive instead of a single Markdown file.
29learning-loop
(Industry standard: Loop Agent / Single Agent) Primary Use Case: Self-contained research, content generation, and exploration where no inner delegation is required. Self-directed research and knowledge capture loop. Use when: starting a session (Orientation), performing research (Synthesis), or closing a session (Seal, Persist, Retrospective). Ensures knowledge survives across isolated agent sessions.
26ollama-launch
Start and verify the local Ollama LLM server. Use when Ollama is needed for RLM distillation, seal snapshots, embeddings, or any local LLM inference — and it's not already running. Checks if Ollama is running, starts it if not, and verifies the health endpoint.
26spec-kitty-checklist
A standard Spec-Kitty workflow routine.
26