Skip to content
Back to skills

Content

ASecurity

Validate, install, update, list, rescan, remove, and reveal data-only Pulp content packs for installed plugins. Use for presets, themes, samples, sample banks, wavetables, and other end-user data that must be reviewed before install or update.

  • 23 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
developmentjavascriptrustjavabash

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add danielraffel/pulp --skill content --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Content?

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

Security grade badge for Content
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/danielraffel-content/badge)](https://www.skillsdirectory.com/skills/danielraffel-content)

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: content
description: Validate, install, update, list, rescan, remove, and reveal data-only Pulp content packs for installed plugins. Use for presets, themes, samples, sample banks, wavetables, and other end-user data that must be reviewed before install or update.
requires:
  scripts:
    - tools/kits/pulp-package.schema.json
    - tools/kits/pulp-plugin-runtime.schema.json
---

# Pulp Content

Use this skill when a user has a `.pulpcontent` archive or local `content-pack` directory for an installed plugin.

Content packs are valuable because:

- plugin authors ship presets, themes, samples, sample banks, and wavetables without custom installers;
- users get validation, a visible target plugin/content path, and reversible removal;
- runtime plugins consume installed data through `ContentRegistry` or `PresetManager` content capabilities.

## Trust Boundary

`pulp add <name>` is for curated developer dependency packages.

`pulp kit ...` is for developer artifacts that may transform a project.

`pulp content ...` is for end-user data installed into a plugin-specific content directory.

Trust rules:

- content commands copy data only; they never run package CMake, JavaScript, scripts, dynamic libraries, or network fetches;
- `.pulpcontent` archives must include `files.sha256.json`, and every payload file must be listed and hash-matched before preview/install/update;
- update uses an explicit local path, not registry resolution, and rolls back a replaced version on failure;
- install/update/remove/reveal require safe single-component plugin/package/version ids;
- rescan is metadata-only and records `plugin_id` plus `manifest_sha256`;
- removal deletes only the installed pack root; user edits stay in the plugin's normal user preset path. The OK line names the deleted pack path — `Removed content pack <id> for <plugin> (removed <path>)` — for parity with `tool uninstall`.

Built plugins should embed `pulp.plugin-runtime.json` via `pulp_add_plugin(... CONTENT_CAPABILITIES ... CONTENT_KINDS ...)`. Agents and in-app installers should preview with that manifest before approval, then install with `approved=true`. Validate built bundles with `ValidationHarness::validate_plugin_runtime_manifest(...)`.

For generic bundled-audio banks, use capability `content.sample-banks.v1`,
kind `sample-banks`, and `exports.sampleBanks`. Bank manifests use
`pulp.sample-bank.v1`; their audio paths are relative to the content-pack root
and their lowercase SHA-256 hashes are verified before decode. Preserve future
edit, analysis, and playback metadata under namespaced `extensions` keys.

Sampler Heritage profile JSON is not a content pack: validate, canonicalize,
inspect, and render it with `pulp audio heritage ...`. Use `pulp content` only
when a profile and its assets are deliberately packaged as data for an
installed plugin; the Heritage CLI itself neither installs files nor targets a
plugin content root.

## Commands

```bash
./build/pulp content validate <path> --json
./build/pulp content preview <path> --plugin-runtime <manifest> --json
./build/pulp content install <path> --plugin <plugin-id> --yes
./build/pulp content update <path> --plugin <plugin-id> --yes
./build/pulp content list --plugin <plugin-id> --json
./build/pulp content rescan --json
./build/pulp content reveal <package-id> --plugin <plugin-id> --version <version>
./build/pulp content remove <package-id> --plugin <plugin-id> --version <version> --yes
```

Use `--root <dir>` only for tests, CI, or explicit sandboxing. Normal installs use the platform user-data root.

## Agent Workflow

1. Validate the pack.
2. Preview against the trusted plugin runtime manifest when available, and explain content id, version, capabilities, target plugin, supported kinds, and reload/restart policy.
3. Preview the install root using `reveal` or the install plan text.
4. Install or update only after explicit approval with `--yes`.
5. Use `rescan` when the index is missing/stale or after manual repair.
6. Remove only after explicit approval with `--yes`.
7. Never delete user-created presets or files outside the installed pack root.

Use MCP tools when available:

- `pulp_content_validate`
- `pulp_content_preview`
- `pulp_content_install`
- `pulp_content_update`
- `pulp_content_list`
- `pulp_content_rescan`
- `pulp_content_remove`
- `pulp_content_reveal`

## Related extend surfaces

`packages`, `kits`, `content`, and `installable-tools` are Pulp's four ways to
extend a project or machine, and they share one lifecycle contract: **add is
validated, remove is confirmed + confined to the surface's own area + names what
it deleted, and both add and remove ship tests.** Pick the right surface and read
the shared contract in
[extending-pulp.md](../../../docs/reference/extending-pulp.md).

- [`packages`](../packages/SKILL.md) — third-party audio DSP libraries → a project
- [`kits`](../kits/SKILL.md) — reusable Pulp code/UI/templates → a project
- [`content`](../content/SKILL.md) — data-only packs (presets/samples) → an installed plugin
- [`installable-tools`](../installable-tools/SKILL.md) — machine-level dev/agent tooling under `~/.pulp/tools/`, plus the shared validate-and-uninstall-from-outside-a-checkout bar

## Archive entry names are screened portably

Content-pack archive entries pass through `pulp::runtime::is_safe_relative_path`
before extraction and `path_within` after the join. The helper refuses rooted
forms (`/x`, `\x`, `C:x`, `\\server\share`), `.`/`..`/empty components, and any
`\` or `:` inside a component on every OS, so a pack whose names would escape on
Windows is refused on macOS and Linux as well. A pack authored with backslash
separators or colons in file names therefore fails validation everywhere.

## Archives are size-budgeted from the central directory

A `.pulpcontent` archive declares each entry's decompressed size, so
`ContentSizeBudget` (`core/content/include/pulp/state/content_install_limits.hpp`)
admits the whole pack from metadata before anything is inflated: 4 GiB total,
1 GiB per entry and 65536 entries by default. `--max-pack-bytes <n>` on
`validate` / `install` / `update` lowers both byte caps through
`clamp_content_install_bytes`; it can never raise a default, which is what lets
the docs state the caps as ceilings. The entry-count cap is what bounds the hash
check's cross-reference of archived against declared files, so it is not a
knob. The runtime installer takes the same `ContentInstallLimits`. The budget runs *before* the `files.sha256.json` hash
check, because that check inflates every declared file onto the heap. A refusal
names the entry (`archive-size: entry ... above the per-entry cap`); miniz
enforces the declared size during extraction, so a stream that inflates past its
own header fails there rather than growing past the budget.

The header lives in `pulp-content`'s include directory even though its include
path is `pulp/state/...`: only content code uses it, and the owning directory,
not the prefix, decides which subsystem a header belongs to
(`tools/scripts/vellum_policy.json` lists `core/content/include` as content's).
Keep content-only headers there, never under `core/state/include`, or an
extracted state unit carries content policy it does not use.

## Design-import UI source snapshots stay out of content-pack extraction

The design-import `pulp ui build/check` surface emits and verifies an owned UI
source snapshot with a deterministic manifest. Keep its source/build contract
and clean-output validation in the UI/importer lane; do not route generated UI
source through content-pack extraction.

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.

View all in development →

Comments

Loading comments…

Newsletter

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