Content

From Generous-Corp/pulp · View interactive version

Content is an AI agent skill from the GitHub repository Generous-Corp/pulp. 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.

How to use this skill

Skill file

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:

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:

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

./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:

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.

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.