# Add Pluginpack Target

> Use when extending pluginpack itself with support for a new AI app or plugin format — i.e. adding a target adapter to the pluginpack codebase. This is for contributors hacking ON pluginpack, not for end users packaging their plugins.

- **Type:** Skill
- **Install:** `agentstack add skill-gleanwork-pluginpack-add-pluginpack-target`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [gleanwork](https://agentstack.voostack.com/s/gleanwork)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [gleanwork](https://github.com/gleanwork)
- **Source:** https://github.com/gleanwork/pluginpack/tree/main/skills/add-pluginpack-target

## Install

```sh
agentstack add skill-gleanwork-pluginpack-add-pluginpack-target
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Adding a pluginpack target

A target adapter owns one app's native layout, manifests, and validation.

## First: get the real format, do not guess

Find the app's actual plugin format from official docs or a real published
plugin repo (the way the existing adapters were derived from `github/copilot-plugins`,
`gleanwork/cursor-plugins`, the Claude plugins reference, and the documented
OpenAI Codex CLI plugin format). Capture an
external oracle you can validate against — a published JSON Schema, the app's
own validator CLI, or a real repo to `diff` against. Record it in
`CONFORMANCE.md`.

## Touch points

Adding a target means:

1. `src/types.ts` — add the name to the `TargetName` union.
2. `src/targets/.ts` — implement `PluginTargetDefinition` (see
   `src/targets/types.ts`): emit logic, manifest/marketplace builder,
   validation, install snippet, and defaults.
3. `src/targets/registry.ts` — add one entry mapping the name to that
   definition.

Everything else — the CLI's `--target` choices, `build()`'s target set, and
emit/validate dispatch — derives from the registry automatically via the
shared engine in `src/targets/engine.ts`. Reuse `src/targets/validation-shared.ts`
for checks whose shape genuinely matches the other targets (hooks, frontmatter);
write your own where the shape is genuinely different, the way codex's
structured `source` object does.

## Wire MCP

If the app supports MCP servers, decide whether it reads a `.mcp.json` file
(reference it from the manifest, like cursor/copilot, or rely on auto-discovery,
like claude), a target-specific config file (like Antigravity's
`mcp_config.json`), or another native shape. `resolveMcpServers` already merges
a plugin's servers; thread the result into your emitter.

## Verify

Add conformance tests in `tests/` against the external oracle, extend
`CONFORMANCE.md`, then run `npm run check`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [gleanwork](https://github.com/gleanwork)
- **Source:** [gleanwork/pluginpack](https://github.com/gleanwork/pluginpack)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-gleanwork-pluginpack-add-pluginpack-target
- Seller: https://agentstack.voostack.com/s/gleanwork
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
