package-plugin
SKILL.md
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.
Weekly Installs
2
Repository
richfrem/agent-…s-skillsGitHub Stars
1
First Seen
2 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2