Skip to content
Back to skills

Package Plugin

ASecurity

Package a plugin directory into a distributable ZIP archive with correct flags for symlink preservation, exclusion of build artifacts, and manifest validation before packaging.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 6, 2026
developmentpythonbashnodegit

Works with

  • claude code

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned June 6, 2026

npx -y skills add richfrem/Project_Sanctuary --skill package-plugin --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Package Plugin?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Package Plugin
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-package-plugin/badge)](https://www.skillsdirectory.com/skills/richfrem-package-plugin)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: package-plugin
description: Package a plugin directory into a distributable ZIP archive with correct flags for symlink preservation, exclusion of build artifacts, and manifest validation before packaging.
disable-model-invocation: false
allowed-tools: Bash, Read, Write
---
# 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:

```bash
python3 plugins/plugin-manager/skills/package-plugin/scripts/package.py \
  --validate-only --plugin <path-to-plugin>
```

This checks:
- `.claude-plugin/plugin.json` exists and is valid JSON
- `name` is kebab-case
- `version` is semver
- `author` is an object (not a string)
- At least one `skills/*/SKILL.md` exists

### 2. Package the Plugin

```bash
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)

```bash
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

1. Preserves symlinks (`--symlinks` flag) for `agents/` and `commands/` directories
2. Excludes: `.DS_Store`, `__pycache__`, `.history/`, `node_modules/`, `*.pyc`, `.git/`
3. Names output as `<plugin-name>-v<version>.zip`
4. Validates `plugin.json` schema 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.

Files in this skill

  • SKILL.md2 KB
  • scripts/package.py8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.