/utils:package-pluginfrom utils
Validates and packages AIWG plugin wrappers for marketplace distribution, supporting built-in and project-local plugins with dry-run, provider-specific, and clean build options.
Ships in utils. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You validate and package either a built-in marketplace wrapper or a standalone
project-local wrapper. Standalone wrappers are auto-discovered under
.aiwg/plugins/<name>/ and emitted as deterministic provider archives.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action |
|---|---|---|
| Package plugin | "package plugin sdlc" | Run aiwg package-plugin sdlc |
| Bundle plugin | "bundle plugin voice" | Run aiwg package-plugin voice |
| Create package | "create plugin package utils" | Run aiwg package-plugin utils |
| Dry run | "validate sdlc plugin before packaging" | Run aiwg package-plugin sdlc --dry-run |
| Standalone wrapper | "package project-local plugin team-tools" | Run aiwg package-plugin team-tools --dry-run |
| Explicit source | "package wrapper from wrappers/team-tools" | Run aiwg package-plugin team-tools --source wrappers/team-tools |
When triggered:
Extract intent:
Run the appropriate command:
# Package a marketplace wrapper (creates archive, no publish)
aiwg package-plugin sdlc
aiwg package-plugin voice
aiwg package-plugin marketing
# Validate only — no archive created
aiwg package-plugin sdlc --dry-run
# Build one provider-specific wrapper
aiwg package-plugin sdlc --provider codex
# Clean generated output before rebuilding
aiwg package-plugin sdlc --clean
# Standalone/project-local wrapper (auto-discovered)
aiwg package-plugin team-tools --provider all --output dist/plugins
# Explicit in-repository source
aiwg package-plugin team-tools --source wrappers/team-tools --provider codex
Report the result — confirm generated wrapper path and included file counts.
A generated plugin wrapper includes provider metadata plus the selected payload files:
| Contents | Path in Archive |
|---|---|
| Agent definitions | agents/ |
| Command definitions | commands/ |
| Skill definitions | skills/ |
| Rule definitions | rules/ |
| Delivery manifest | plugin.json |
| Changelog | CHANGELOG.md (if present) |
Files excluded from packages: .aiwg/working/, test fixtures, development-only configs.
Before creating the archive, the command automatically runs:
aiwg validate-metadata — all extension definitions must passid, name, description, version requiredPackaging fails if any validation step fails.
User: "Package the voice plugin for release"
Extraction: Package voice plugin, no publish
Action:
aiwg package-plugin voice
Response: "Generated the voice marketplace wrapper under agentic/code/plugins/voice."
User: "Check if the SDLC plugin is ready to package"
Extraction: Dry-run validation
Action:
aiwg package-plugin sdlc --dry-run
Response: "Dry run: sdlc plugin metadata passed (58 agents, 42 commands, 12 skills, 33 rules validated). Ready to package. 1 warning: CHANGELOG.md not found — package will be created without it."
User: "Build the marketing plugin for Codex"
Extraction: Package marketing for the Codex provider
Action:
aiwg package-plugin marketing --provider codex
Response: "Generated the Codex marketing wrapper under agentic/code/plugins/marketing."
User: "Clean and rebuild the utils plugin"
Extraction: Remove prior generated output, then package
Action:
aiwg package-plugin utils --clean
Response: "Cleaned and regenerated the utils wrapper."
The wrapper must contain manifest.json with type: plugin and a
pluginConfig declaring payloadType and traversal-safe payloadPath. The
payload requires its own matching manifest. Sources must remain inside the
current repository; symlink escapes and output collisions are rejected.
Payload files are copied byte-for-byte into deterministic Claude and/or Codex
archives.
See docs/customization/standalone-plugin-repository.md for the complete
scaffold, validation, install-smoke, versioning, licensing, and publication
workflow.
--publish and --bump remain intentionally unsupported. Publish generated
archives through the repository's release workflow and change versions in the
authoritative wrapper/payload manifests before packaging.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jmagly/aiwg --plugin utils133 skills in this plugin
/activity-logQuery and manage the unified .aiwg/activity.log chronological record of AIWG-managed workflow operations/add-agentScaffold a new agent definition file inside an existing addon or framework/add-behaviorScaffold a new behavior definition with BEHAVIOR.md and optional scripts inside an existing addon or framework/add-commandScaffold a new command definition inside an existing addon or framework/add-skillScaffold a new SKILL.md inside an existing addon or framework/add-templateScaffold a new document template inside an existing addon or frameworkOther plugins' skills for the same job