[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EK6D4XQDP1ZAS5Q4M6FD4J":3,"skill-same:01M6EK6D4XQDP1ZAS5Q4M6FD4J":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":44,"updatedAt":45,"install":46,"resources":59},"01M6EK6D4XQDP1ZAS5Q4M6FD4J","prpm-json-best-practices",null,"Best practices for structuring prpm.json package manifests with required fields, tags, organization, multi-package management, enhanced file format, eager\u002Flazy activation, and conversion hints","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"best practices","json","prpm json best practices","package","file","package management","format","management","conversion","activation","organization","tags","multi","2026-11-10 10:12:30",false,"---\nname: prpm-json-best-practices\ndescription: Best practices for structuring prpm.json package manifests with required fields, tags, organization, multi-package management, enhanced file format, eager\u002Flazy activation, and conversion hints\n---\n\n# PRPM JSON Best Practices\n\nYou are an expert at creating and maintaining `prpm.json` package manifests for PRPM (Prompt Package Manager). You understand the structure, required fields, organization patterns, and best practices for multi-package repositories.\n\n## When to Apply This Skill\n\n**Use when:**\n- Creating a new `prpm.json` manifest for publishing packages\n- Maintaining existing `prpm.json` files\n- Organizing multi-package repositories\n- Adding or updating package metadata\n- Ensuring package manifest quality and completeness\n\n**Don't use for:**\n- User configuration files (`.prpmrc`) - those are for users\n- Lockfiles (`prpm.lock`) - those are auto-generated by PRPM\n- Regular package installation (users don't need `prpm.json`)\n- Dependencies already tracked in lockfiles\n\n## Core Purpose\n\n`prpm.json` is **only needed if you're publishing packages**. Regular users installing packages from the registry don't need this file.\n\nUse `prpm.json` when you're:\n- Publishing a package to the PRPM registry\n- Creating a collection of packages\n- Distributing your own prompts\u002Frules\u002Fskills\u002Fagents\n- Managing multiple related packages in a monorepo\n\n## File Structure\n\n### Single Package\nSee `examples\u002Fsingle-package.json` for complete structure.\n\n**Key fields:** `name`, `version`, `description`, `author`, `license`, `format`, `subtype`, `files`\n\n### Multi-Package Repository\nSee `examples\u002Fmulti-package.json` for complete structure.\n\n**Use when:** Publishing multiple related packages from one repo\n**Key difference:** Top-level `packages` array with individual package definitions\n\n### Collections Repository\nSee `examples\u002Fcollections-repository.json` for complete structure.\n\n**Use when:** Bundling existing published packages into curated collections\n**Key points:**\n- `collections` array references packages by `packageId` (not files)\n- Each collection has `id`, `name`, `description`, `packages`\n- Packages can be `required: true` (default) or `false` (optional)\n- Use version ranges (`^1.0.0`) or `latest`\n- Add `reason` to explain why package is included\n\n### Packages + Collections (Combined)\nSee `examples\u002Fpackages-with-collections.json` for complete structure.\n\n**Use when:** Publishing packages AND creating collections that bundle them\n**Key points:**\n- Define packages in `packages` array with files\n- Define collections in `collections` array referencing those packages\n- Collections can reference both local packages and external ones\n- Publish both individual packages and collection bundles from same repo\n\n## Required Fields\n\n### Top-Level (Single Package)\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | **Yes** | Package name (kebab-case, unique in registry) |\n| `version` | string | **Yes** | Semver version (e.g., `1.0.0`) |\n| `description` | string | **Yes** | Clear description of what the package does |\n| `author` | string | **Yes** | Author name and optional email |\n| `license` | string | **Yes** | SPDX license identifier (e.g., `MIT`, `Apache-2.0`) |\n| `format` | string | **Yes** | Target format: `claude`, `cursor`, `continue`, `windsurf`, etc. |\n| `subtype` | string | **Yes** | Package type: `agent`, `skill`, `rule`, `slash-command`, `prompt`, `collection` |\n| `files` | string[] | **Yes** | Array of files to include in package |\n\n### Optional Top-Level Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `repository` | string | Git repository URL |\n| `organization` | string | Organization name (for scoped packages) |\n| `homepage` | string | Package homepage URL |\n| `documentation` | string | Documentation URL |\n| `license_text` | string | Full text of the license file for proper attribution |\n| `license_url` | string | URL to the license file in the repository |\n| `tags` | string[] | Searchable tags (kebab-case) |\n| `keywords` | string[] | Additional keywords for search |\n| `category` | string | Package category |\n| `private` | boolean | If `true`, won't be published to public registry |\n| `dependencies` | object | Package dependencies (name: semver) |\n| `scripts` | object | Lifecycle scripts (multi-package only) |\n| `eager` | boolean | If `true`, skill\u002Fagent loads at session start (not on-demand) |\n\n### Multi-Package Fields\n\nWhen using `packages` array:\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | **Yes** | Unique package name |\n| `version` | string | **Yes** | Package version |\n| `description` | string | **Yes** | Package description |\n| `format` | string | **Yes** | Package format |\n| `subtype` | string | **Yes** | Package subtype |\n| `tags` | string[] | Recommended | Searchable tags |\n| `files` | string[] | **Yes** | Files to include |\n| `private` | boolean | No | Mark as private |\n| `eager` | boolean | No | Load at session start (skills\u002Fagents only) |\n\n### Collection Fields\n\nWhen using `collections` array:\n\n**Top-level (repository with collections):**\n- `name`, `version`, `description`, `author`, `license` - **Required**\n- `repository`, `organization` - Recommended\n- Note: No `format`, `subtype`, or `files` required at top level\n\n**Each collection object:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `id` | string | **Yes** | Unique collection identifier (kebab-case, 3-100 chars) |\n| `name` | string | **Yes** | Display name (3-100 chars) |\n| `description` | string | **Yes** | What the collection provides (10-500 chars) |\n| `packages` | array | **Yes** | Array of packages to include (minimum 1) |\n| `version` | string | Recommended | Semantic version of collection |\n| `category` | string | Recommended | Collection category (development, testing, etc.) |\n| `tags` | string[] | Recommended | Searchable tags (kebab-case, 1-10 items) |\n| `icon` | string | Optional | Emoji or icon (max 10 chars) |\n\n**Each package within collection:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `packageId` | string | **Yes** | Package to include |\n| `version` | string | Optional | Version range (^1.0.0, ~2.1.0, 1.0.0, latest) |\n| `required` | boolean | Optional | Whether package is required (default: true) |\n| `reason` | string | Optional | Why package is included (max 200 chars) |\n\n## Format and Subtype Values\n\n### Format (Target AI Tool)\n\n| Format | Description |\n|--------|-------------|\n| `claude` | Claude Code (agents, skills) |\n| `cursor` | Cursor IDE (rules, MDC files) |\n| `continue` | Continue.dev extension |\n| `windsurf` | Windsurf IDE |\n| `copilot` | GitHub Copilot |\n| `kiro` | Kiro IDE |\n| `agents.md` | Agents.md format |\n| `generic` | Generic\u002Funiversal format |\n| `mcp` | Model Context Protocol |\n\n### Subtype (Package Type)\n\n| Subtype | Description | Typical Formats |\n|---------|-------------|-----------------|\n| `agent` | Autonomous agents | `claude`, `agents.md` |\n| `skill` | Specialized capabilities | `claude` |\n| `rule` | IDE rules and guidelines | `cursor`, `windsurf` |\n| `slash-command` | Slash commands | `cursor`, `continue` |\n| `prompt` | Prompt templates | `generic` |\n| `collection` | Package collections | Any |\n| `chatmode` | Chat modes | `kiro` |\n| `tool` | MCP tools | `mcp` |\n\n## Eager vs Lazy Activation\n\nSkills and agents can be configured to load eagerly (at session start) or lazily (on-demand when relevant).\n\n### When to Use Eager\n\n**Use `eager: true` when:**\n- The skill should ALWAYS be active (coding standards, style guides)\n- Critical behavior that must never be skipped\n- Small, foundational skills with minimal token cost\n\n**Keep lazy (default) when:**\n- Specialized skills for specific contexts\n- Large skills with significant token overhead\n- Skills that only apply to certain file types\n\n### Setting Eager in prpm.json\n\n**Package-level:**\n```json\n{\n  \"name\": \"code-style-enforcer\",\n  \"version\": \"1.0.0\",\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"eager\": true,\n  \"files\": [\".claude\u002Fskills\u002Fcode-style\u002FSKILL.md\"]\n}\n```\n\n**File-level (enhanced files format):**\n```json\n{\n  \"files\": [\n    {\n      \"path\": \".claude\u002Fskills\u002Fcritical-skill\u002FSKILL.md\",\n      \"format\": \"claude\",\n      \"subtype\": \"skill\",\n      \"eager\": true\n    },\n    {\n      \"path\": \".claude\u002Fskills\u002Foptional-skill\u002FSKILL.md\",\n      \"format\": \"claude\",\n      \"subtype\": \"skill\",\n      \"eager\": false\n    }\n  ]\n}\n```\n\n### Precedence\n\nWhen installing, the final eager setting is determined by:\n1. CLI flag (`--eager`\u002F`--lazy`) - highest priority\n2. File-level `eager` setting (enhanced files)\n3. Package-level `eager` setting\n4. Default: lazy (false)\n\n### Applicable Subtypes\n\n| Subtype | Supports Eager |\n|---------|----------------|\n| `skill` | Yes |\n| `agent` | Yes |\n| `rule` | No |\n| `slash-command` | No |\n| `hook` | No |\n\nEager loading only affects progressive disclosure formats (agents.md, gemini.md, claude.md, aider).\n\n## Tags Best Practices\n\n### Tag Structure\n\n- Use **kebab-case** for all tags\n- Be **specific** and **searchable**\n- Include 3-8 tags per package\n- Combine technology, domain, and purpose tags\n\n### Tag Categories\n\n**Technology Tags:**\n- Languages: `typescript`, `python`, `javascript`, `rust`\n- Frameworks: `react`, `nextjs`, `fastify`, `django`\n- Tools: `aws`, `docker`, `kubernetes`, `postgresql`\n\n**Domain Tags:**\n- `deployment`, `testing`, `ci-cd`, `database`\n- `infrastructure`, `cloud`, `monitoring`\n- `documentation`, `code-review`, `security`\n\n**Purpose Tags:**\n- `troubleshooting`, `debugging`, `best-practices`\n- `automation`, `quality-assurance`, `performance`\n- `architecture`, `design-patterns`\n\n**Meta Tags:**\n- `meta` - For packages about creating packages\n- `prpm-internal` - For internal\u002Fprivate packages\n- `prpm-development` - For PRPM development itself\n\n### Tag Examples\n\n**Good Tags:**\n```json\n{\n  \"tags\": [\n    \"typescript\",\n    \"type-safety\",\n    \"code-quality\",\n    \"best-practices\",\n    \"static-analysis\"\n  ]\n}\n```\n\n**Poor Tags:**\n```json\n{\n  \"tags\": [\n    \"code\",  \u002F\u002F Too generic\n    \"stuff\", \u002F\u002F Meaningless\n    \"TypeScript\", \u002F\u002F Wrong case\n    \"type_safety\"  \u002F\u002F Wrong format (use kebab-case)\n  ]\n}\n```\n\n## Organization Best Practices\n\n### Multi-Package Organization\n\n**Order packages by:**\n1. **Privacy** - Private packages first\n2. **Format** - Group by format (claude, cursor, etc.)\n3. **Subtype** - Group by subtype (agent, skill, rule)\n\n**Example organization:**\n\n```json\n{\n  \"packages\": [\n    \u002F\u002F Private > Claude > Agents\n    { \"name\": \"internal-agent\", \"private\": true, \"format\": \"claude\", \"subtype\": \"agent\" },\n\n    \u002F\u002F Private > Claude > Skills\n    { \"name\": \"internal-skill\", \"private\": true, \"format\": \"claude\", \"subtype\": \"skill\" },\n\n    \u002F\u002F Private > Cursor > Rules\n    { \"name\": \"internal-rule\", \"private\": true, \"format\": \"cursor\", \"subtype\": \"rule\" },\n\n    \u002F\u002F Public > Claude > Skills\n    { \"name\": \"public-skill\", \"format\": \"claude\", \"subtype\": \"skill\" },\n\n    \u002F\u002F Public > Cursor > Rules\n    { \"name\": \"public-rule\", \"format\": \"cursor\", \"subtype\": \"rule\" }\n  ]\n}\n```\n\n### Naming Conventions\n\n**Package Names:**\n- Use **kebab-case**: `my-awesome-skill`\n- Be **descriptive**: `typescript-type-safety` not `ts-types`\n- Avoid duplicates across formats: use suffixes if needed\n  - `format-conversion-agent` (Claude agent)\n  - `format-conversion` (Cursor rule)\n\n**File Paths:**\n- Use **full paths from project root** (where prpm.json lives)\n- Agents: `.claude\u002Fagents\u002Fname.md`\n- Skills: `.claude\u002Fskills\u002Fname\u002FSKILL.md`\n- Rules: `.cursor\u002Frules\u002Fname.mdc`\n- Commands: `.claude\u002Fcommands\u002Fcategory\u002Fname.md`\n\n## Version Management\n\n### Semver Guidelines\n\nFollow semantic versioning:\n\n- **Major (1.0.0 → 2.0.0)**: Breaking changes\n- **Minor (1.0.0 → 1.1.0)**: New features, backward compatible\n- **Patch (1.0.0 → 1.0.1)**: Bug fixes, backward compatible\n\n### Version Bumping\n\nWhen to bump versions:\n- **Patch**: Bug fixes, typo corrections, minor improvements\n- **Minor**: New sections, additional examples, new features\n- **Major**: Complete rewrites, breaking changes, renamed fields\n\n### Keep Versions in Sync\n\nFor multi-package repos, keep related packages in sync:\n```json\n{\n  \"packages\": [\n    { \"name\": \"pkg-one\", \"version\": \"1.2.0\" },\n    { \"name\": \"pkg-two\", \"version\": \"1.2.0\" },\n    { \"name\": \"pkg-three\", \"version\": \"1.2.0\" }\n  ]\n}\n```\n\n## File Management\n\n### Files Array\n\n**CRITICAL: File paths must be full paths from project root (where prpm.json lives).**\n\n**Required:**\n- List all files to include in the package\n- Use **full paths from project root** - not relative to destination directories\n- Paths should start with `.claude\u002F`, `.cursor\u002F`, etc.\n- Include documentation files\n\n**Why Full Paths?**\nFile paths in `prpm.json` are used for:\n1. **Tarball creation** - Reads files directly from these paths\n2. **Snippet extraction** - Shows file preview before install\n3. **Installation** - CLI derives destination from format\u002Fsubtype\n\n**Examples:**\n\nClaude agent (single file):\n```json\n{\n  \"format\": \"claude\",\n  \"subtype\": \"agent\",\n  \"files\": [\".claude\u002Fagents\u002Fmy-agent.md\"]\n}\n```\n\nClaude skill (multiple files):\n```json\n{\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"files\": [\n    \".claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\",\n    \".claude\u002Fskills\u002Fmy-skill\u002FEXAMPLES.md\",\n    \".claude\u002Fskills\u002Fmy-skill\u002FREADME.md\"\n  ]\n}\n```\n\nCursor rule:\n```json\n{\n  \"format\": \"cursor\",\n  \"subtype\": \"rule\",\n  \"files\": [\".cursor\u002Frules\u002Fmy-rule.mdc\"]\n}\n```\n\nSlash command:\n```json\n{\n  \"format\": \"claude\",\n  \"subtype\": \"slash-command\",\n  \"files\": [\".claude\u002Fcommands\u002Fcategory\u002Fmy-command.md\"]\n}\n```\n\n### Enhanced File Format\n\n**Advanced:** Files can be objects with metadata instead of simple strings. Useful for packages with multiple files targeting different formats or needing per-file metadata.\n\n**Enhanced file object structure:**\n```json\n{\n  \"files\": [\n    {\n      \"path\": \".cursor\u002Frules\u002Ftypescript.mdc\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"name\": \"TypeScript Rules\",\n      \"description\": \"TypeScript coding standards and best practices\",\n      \"tags\": [\"typescript\", \"frontend\"]\n    },\n    {\n      \"path\": \".cursor\u002Frules\u002Fpython.mdc\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"name\": \"Python Rules\",\n      \"description\": \"Python best practices for backend development\",\n      \"tags\": [\"python\", \"backend\"]\n    }\n  ]\n}\n```\n\n**When to use enhanced format:**\n- Multi-file packages with different formats\u002Fsubtypes per file\n- Need per-file descriptions or tags\n- Want to provide display names for individual files\n- Building collection packages with mixed content types\n\n**Enhanced file fields:**\n\n| Field | Required | Description |\n|-------|----------|-------------|\n| `path` | **Yes** | Relative path to file from project root |\n| `format` | **Yes** | File's target format (`cursor`, `claude`, etc.) |\n| `subtype` | No | File's subtype (`rule`, `skill`, `agent`, etc.) |\n| `name` | No | Display name for this file |\n| `description` | No | Description of what this file does |\n| `tags` | No | File-specific tags (array of strings) |\n\n**Note:** Cannot mix simple strings and objects in the same `files` array. Use all strings OR all objects, not both.\n\n**Common Mistake:**\n```json\n{\n  \u002F\u002F ❌ WRONG - Relative paths without directory prefix\n  \"files\": [\"agents\u002Fmy-agent.md\"]  \u002F\u002F Will fail to find file\n\n  \u002F\u002F ✅ CORRECT - Full path from project root\n  \"files\": [\".claude\u002Fagents\u002Fmy-agent.md\"]\n}\n```\n\n### File Verification\n\nAlways verify files exist:\n```bash\n# Check all files in prpm.json exist\nfor file in $(cat prpm.json | jq -r '.packages[].files[]'); do\n  if [ ! -f \"$file\" ]; then\n    echo \"Missing: $file\"\n  fi\ndone\n```\n\n## Duplicate Detection\n\n### Check for Duplicate Names\n\nRun this check before committing:\n\n```bash\n# Check for duplicate package names\ncat prpm.json | jq -r '.packages[].name' | sort | uniq -d\n```\n\nIf output is empty, no duplicates exist. If names appear, you have duplicates to resolve.\n\n### Resolving Duplicates\n\n**Bad:**\n```json\n{\n  \"packages\": [\n    { \"name\": \"typescript-safety\", \"format\": \"claude\" },\n    { \"name\": \"typescript-safety\", \"format\": \"cursor\" }\n  ]\n}\n```\n\n**Good:**\n```json\n{\n  \"packages\": [\n    { \"name\": \"typescript-safety\", \"format\": \"claude\", \"subtype\": \"skill\" },\n    { \"name\": \"typescript-safety-rule\", \"format\": \"cursor\", \"subtype\": \"rule\" }\n  ]\n}\n```\n\n## Conversion Hints (Advanced)\n\n**Purpose:** Help improve quality when converting packages to other formats. The `conversion` field provides format-specific hints for cross-format transformations.\n\n**Note:** This is an advanced feature primarily used by format conversion tools. Most packages don't need this.\n\n**Structure:**\n\n```json\n{\n  \"name\": \"my-package\",\n  \"version\": \"1.0.0\",\n  \"format\": \"claude\",\n  \"conversion\": {\n    \"cursor\": {\n      \"alwaysApply\": false,\n      \"priority\": \"high\",\n      \"globs\": [\"**\u002F*.ts\", \"**\u002F*.tsx\"]\n    },\n    \"kiro\": {\n      \"inclusion\": \"fileMatch\",\n      \"fileMatchPattern\": \"**\u002F*.ts\",\n      \"domain\": \"typescript\",\n      \"tools\": [\"fs_read\", \"fs_write\"],\n      \"mcpServers\": {\n        \"database\": {\n          \"command\": \"mcp-server-postgres\",\n          \"args\": [],\n          \"env\": {\n            \"DATABASE_URL\": \"${DATABASE_URL}\"\n          }\n        }\n      }\n    },\n    \"copilot\": {\n      \"applyTo\": [\"src\u002F**\", \"lib\u002F**\"],\n      \"excludeAgent\": \"code-review\"\n    }\n  }\n}\n```\n\n**Supported conversion hints:**\n\n### Cursor Hints\n```json\n{\n  \"conversion\": {\n    \"cursor\": {\n      \"alwaysApply\": boolean,      \u002F\u002F Whether rule should always apply\n      \"priority\": \"high|medium|low\", \u002F\u002F Rule priority level\n      \"globs\": [\"**\u002F*.ts\"]         \u002F\u002F File patterns to auto-attach\n    }\n  }\n}\n```\n\n### Claude Hints\n```json\n{\n  \"conversion\": {\n    \"claude\": {\n      \"model\": \"sonnet|opus|haiku|inherit\", \u002F\u002F Preferred model\n      \"tools\": [\"Read\", \"Write\"],          \u002F\u002F Allowed tools\n      \"subagentType\": \"format-conversion\"  \u002F\u002F Subagent type if agent\n    }\n  }\n}\n```\n\n### Kiro Hints\n```json\n{\n  \"conversion\": {\n    \"kiro\": {\n      \"inclusion\": \"always|fileMatch|manual\", \u002F\u002F When to include\n      \"fileMatchPattern\": \"**\u002F*.ts\",         \u002F\u002F Pattern for fileMatch mode\n      \"domain\": \"typescript\",                \u002F\u002F Domain category\n      \"tools\": [\"fs_read\", \"fs_write\"],     \u002F\u002F Available tools\n      \"mcpServers\": {                        \u002F\u002F MCP server configs\n        \"database\": {\n          \"command\": \"mcp-server-postgres\",\n          \"args\": [],\n          \"env\": { \"DATABASE_URL\": \"${DATABASE_URL}\" }\n        }\n      }\n    }\n  }\n}\n```\n\n### Copilot Hints\n```json\n{\n  \"conversion\": {\n    \"copilot\": {\n      \"applyTo\": \"src\u002F**\",                         \u002F\u002F Path patterns\n      \"excludeAgent\": \"code-review|coding-agent\"  \u002F\u002F Agent to exclude\n    }\n  }\n}\n```\n\n### Continue Hints\n```json\n{\n  \"conversion\": {\n    \"continue\": {\n      \"alwaysApply\": boolean,           \u002F\u002F Always apply rule\n      \"globs\": [\"**\u002F*.ts\"],             \u002F\u002F File patterns\n      \"regex\": [\"import.*from\"]         \u002F\u002F Regex patterns\n    }\n  }\n}\n```\n\n### Windsurf Hints\n```json\n{\n  \"conversion\": {\n    \"windsurf\": {\n      \"characterLimit\": 12000  \u002F\u002F Warn if exceeding limit\n    }\n  }\n}\n```\n\n### Agents.md Hints\n```json\n{\n  \"conversion\": {\n    \"agentsMd\": {\n      \"project\": \"my-project\",  \u002F\u002F Project name\n      \"scope\": \"backend\"        \u002F\u002F Scope\u002Fdomain\n    }\n  }\n}\n```\n\n**When to use conversion hints:**\n- Publishing cross-format packages that need specific settings per format\n- Format conversion tools need guidance on how to transform content\n- Package behavior should change based on target format\n- Want to preserve format-specific metadata during conversions\n\n## Common Patterns\n\n### Private Internal Packages\n\n```json\n{\n  \"name\": \"internal-tool\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Internal development tool\",\n  \"private\": true,\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"tags\": [\"prpm-internal\", \"development\"],\n  \"files\": [\".claude\u002Fskills\u002Finternal-tool\u002FSKILL.md\"]\n}\n```\n\n### Meta Packages (Creating Other Packages)\n\n```json\n{\n  \"name\": \"creating-skills\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Guide for creating effective Claude Code skills\",\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"tags\": [\"meta\", \"claude-code\", \"skills\", \"documentation\", \"best-practices\"],\n  \"files\": [\".claude\u002Fskills\u002Fcreating-skills\u002FSKILL.md\"]\n}\n```\n\n### Cross-Format Packages\n\nWhen you have the same content for multiple formats:\n\n```json\n{\n  \"packages\": [\n    {\n      \"name\": \"format-conversion-agent\",\n      \"format\": \"claude\",\n      \"subtype\": \"agent\",\n      \"description\": \"Agent for converting between AI prompt formats\",\n      \"files\": [\".claude\u002Fagents\u002Fformat-conversion.md\"]\n    },\n    {\n      \"name\": \"format-conversion\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"description\": \"Rule for converting between AI prompt formats\",\n      \"files\": [\".cursor\u002Frules\u002Fformat-conversion.mdc\"]\n    }\n  ]\n}\n```\n\n### Collections in prpm.json\n\nCollections CAN be defined in prpm.json alongside packages using the `collections` array. Collections bundle multiple packages together for easier installation.\n\n**Example with both packages and collections:**\n\n```json\n{\n  \"name\": \"my-prompts-repo\",\n  \"author\": \"Your Name\",\n  \"license\": \"MIT\",\n  \"packages\": [\n    {\n      \"name\": \"typescript-rules\",\n      \"version\": \"1.0.0\",\n      \"description\": \"TypeScript best practices\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"tags\": [\"typescript\"],\n      \"files\": [\".cursor\u002Frules\u002Ftypescript.mdc\"]\n    }\n  ],\n  \"collections\": [\n    {\n      \"id\": \"my-dev-setup\",\n      \"name\": \"My Development Setup\",\n      \"description\": \"Complete development setup with TypeScript and React\",\n      \"version\": \"1.0.0\",\n      \"category\": \"development\",\n      \"tags\": [\"typescript\", \"react\"],\n      \"packages\": [\n        {\n          \"packageId\": \"typescript-strict\",\n          \"version\": \"^1.0.0\",\n          \"required\": true,\n          \"reason\": \"Enforces strict TypeScript type safety\"\n        },\n        {\n          \"packageId\": \"react-best-practices\",\n          \"version\": \"^2.0.0\",\n          \"required\": true\n        }\n      ]\n    }\n  ]\n}\n```\n\nFor more details on creating collections, see the PRPM documentation at https:\u002F\u002Fdocs.prpm.dev or run `prpm help collections`.\n\n**Summary:** `prpm.json` can contain both packages (skills, agents, rules, slash-commands, etc.) and collections.\n\n## Lifecycle Scripts\n\n**IMPORTANT:** The `scripts` field only applies to **multi-package manifests** (prpm.json with a `packages` array). It does NOT work in single-package manifests.\n\nUse the `scripts` field to run commands automatically during package operations, particularly for building TypeScript hooks before publishing.\n\n### When to Use Scripts\n\n**Primary use case: Building TypeScript Hooks**\n\nIf your packages include Claude Code hooks written in TypeScript, you MUST build them to JavaScript before publishing:\n\n```json\n{\n  \"name\": \"my-packages\",\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"prepublishOnly\": \"cd packages\u002Fhooks && npm run build\"\n  },\n  \"packages\": [\n    {\n      \"name\": \"my-hook\",\n      \"version\": \"1.0.0\",\n      \"format\": \"claude\",\n      \"subtype\": \"hook\",\n      \"files\": [\n        \".claude\u002Fhooks\u002Fmy-hook\u002Fhook.ts\",\n        \".claude\u002Fhooks\u002Fmy-hook\u002Fhook.json\",\n        \".claude\u002Fhooks\u002Fmy-hook\u002Fdist\u002Fhook.js\"\n      ]\n    }\n  ]\n}\n```\n\n### Available Script Types\n\n| Script | When it Runs | Use Case |\n|--------|--------------|----------|\n| `prepublishOnly` | Before `prpm publish` only | **Recommended** - Build hooks, compile assets |\n| `prepublish` | Before publish AND on npm install | **Not recommended** - causes unexpected builds |\n\n**Always use `prepublishOnly` instead of `prepublish`** to avoid running builds when users install your packages.\n\n### prepublishOnly Examples\n\n**Single hook:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd .claude\u002Fhooks\u002Fmy-hook && npm run build\"\n  }\n}\n```\n\n**Multiple hooks:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd .claude\u002Fhooks\u002Fhook-one && npm run build && cd ..\u002Fhook-two && npm run build\"\n  }\n}\n```\n\n**With tests:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"npm test && cd packages\u002Fhooks && npm run build\"\n  }\n}\n```\n\n### What Happens During Publishing\n\nWhen you run `prpm publish`:\n\n1. PRPM checks for `scripts.prepublishOnly` in your prpm.json\n2. If found, runs the script from the directory containing prpm.json\n3. If script succeeds (exit code 0), publishing continues\n4. If script fails (non-zero exit code), publishing is aborted\n\n**Script execution details:**\n- Working directory: Same directory as prpm.json\n- Timeout: 5 minutes (300,000ms) default\n- Environment: Inherits your shell's environment variables\n- Output: Shown in real-time\n\n### Best Practices for Scripts\n\n**DO:**\n- ✅ Use `prepublishOnly` for building hooks\n- ✅ Chain commands with `&&` for dependencies: `npm test && npm run build`\n- ✅ Keep scripts fast (under 1 minute if possible)\n- ✅ Test scripts locally before publishing\n\n**DON'T:**\n- ❌ Use `prepublish` (runs on install too)\n- ❌ Forget to build hooks before publishing\n- ❌ Use scripts in single-package manifests (not supported)\n- ❌ Put long-running operations in scripts\n\n### Common Patterns\n\n**Hooks in packages\u002F directory:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd packages\u002Fhooks && npm run build\"\n  }\n}\n```\n\n**Hooks in .claude\u002F directory:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd .claude\u002Fhooks\u002Fmy-hook && npm run build\"\n  }\n}\n```\n\n**Build multiple components:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"npm run build:hooks && npm run build:assets\"\n  }\n}\n```\n\n### Debugging Script Failures\n\nIf your prepublishOnly script fails:\n\n1. **Check the output** - Error messages show what went wrong\n2. **Run manually** - Test the exact command in your terminal\n3. **Verify working directory** - Scripts run from prpm.json location\n4. **Check dependencies** - Ensure npm packages are installed\n\n**Example debugging:**\n```bash\n# Test your prepublishOnly script manually\ncd \u002Fpath\u002Fto\u002Fprpm.json\u002Fdirectory\ncd packages\u002Fhooks && npm run build\n\n# If it works manually but fails in PRPM, check:\n# - Working directory assumptions\n# - Environment variables\n# - Installed dependencies\n```\n\n### Why This Matters\n\n**Without prepublishOnly:**\n- You might forget to build hooks before publishing\n- Published packages contain stale\u002Foutdated JavaScript\n- Users install broken hooks\n- Manual builds are error-prone\n\n**With prepublishOnly:**\n- Hooks automatically build before every publish\n- JavaScript always matches TypeScript source\n- Prevents publishing broken code\n- Consistent, reliable publishing workflow\n\n## Validation Checklist\n\nBefore publishing, verify:\n\n**Required Fields:**\n- [ ] All packages have `name`, `version`, `description`\n- [ ] All packages have `format` and `subtype`\n- [ ] All packages have `files` array\n- [ ] Top-level has `author` and `license`\n\n**File Verification:**\n- [ ] All files in `files` arrays exist\n- [ ] File paths are relative to repo root\n- [ ] No missing or broken file references\n\n**No Duplicates:**\n- [ ] No duplicate package names\n- [ ] Package names are unique across entire manifest\n\n**Tags:**\n- [ ] Tags use kebab-case\n- [ ] 3-8 relevant tags per package\n- [ ] Tags include technology, domain, and purpose\n\n**Organization:**\n- [ ] Private packages listed first\n- [ ] Packages grouped by format and subtype\n- [ ] Consistent versioning across related packages\n\n## Lockfile Management\n\n### Understanding prpm.lock\n\nThe `prpm.lock` file is **auto-generated** and tracks installed packages. It serves as the source of truth for what's installed in your project.\n\n**IMPORTANT:** Do NOT add packages to `prpm.json` if they already exist in `prpm.lock`:\n\n- `prpm.lock` tracks **installed dependencies** (packages you use)\n- `prpm.json` defines **published packages** (packages you create and share)\n\n### When to Use prpm.json vs prpm.lock\n\n**Use `prpm.json` when:**\n- You're creating a package to publish to the registry\n- You want to define metadata for YOUR packages\n- You're setting up a multi-package repository\n\n**Use `prpm.lock` (auto-generated) when:**\n- You install packages with `prpm install`\n- You want to track which packages are installed\n- You want reproducible installations across environments\n\n### Common Mistake: Duplicating Dependencies\n\n**❌ WRONG - Don't add installed packages to prpm.json:**\n\n```json\n\u002F\u002F prpm.json\n{\n  \"name\": \"my-project\",\n  \"packages\": [\n    {\n      \"name\": \"typescript-safety\",  \u002F\u002F ❌ This is an INSTALLED package\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"files\": [\".cursor\u002Frules\u002Ftypescript-safety.mdc\"]\n    }\n  ]\n}\n```\n\n```json\n\u002F\u002F prpm.lock (auto-generated)\n{\n  \"packages\": {\n    \"@prpm\u002Ftypescript-safety\": {  \u002F\u002F ✅ Already tracked here\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\"\n    }\n  }\n}\n```\n\n**✅ CORRECT - prpm.json only for YOUR packages:**\n\n```json\n\u002F\u002F prpm.json - Only YOUR packages you're publishing\n{\n  \"name\": \"my-project\",\n  \"packages\": [\n    {\n      \"name\": \"my-custom-rule\",  \u002F\u002F ✅ This is YOUR package\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"files\": [\".cursor\u002Frules\u002Fmy-custom-rule.mdc\"]\n    }\n  ]\n}\n```\n\n```json\n\u002F\u002F prpm.lock - Installed dependencies (auto-generated)\n{\n  \"packages\": {\n    \"@prpm\u002Ftypescript-safety\": {  \u002F\u002F ✅ Installed from registry\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\"\n    }\n  }\n}\n```\n\n### Key Principles\n\n1. **Lockfile is Auto-Generated** - Never manually edit `prpm.lock`\n2. **Separation of Concerns**:\n   - `prpm.json` = What you PUBLISH\n   - `prpm.lock` = What you INSTALL\n3. **Check Lockfile First** - Before adding to `prpm.json`, check if it's already in `prpm.lock`\n4. **Trust the Lockfile** - It's the authoritative record of installed packages\n\n### Workflow Example\n\n```bash\n# Install a package (updates prpm.lock automatically)\nprpm install @prpm\u002Ftypescript-safety\n\n# This creates\u002Fupdates prpm.lock - DO NOT add to prpm.json!\n\n# Only create prpm.json entries for packages YOU create:\n# 1. Create your custom rule\u002Fskill\u002Fagent\n# 2. Add entry to prpm.json\n# 3. Publish with: prpm publish\n```\n\n## Publishing Workflow\n\n### 1. Validate Manifest\n\n```bash\n# Validate JSON syntax\ncat prpm.json | jq . > \u002Fdev\u002Fnull\n\n# Check for duplicates\ncat prpm.json | jq -r '.packages[].name' | sort | uniq -d\n\n# Verify files exist\n# (see File Verification section)\n```\n\n### 2. Bump Versions\n\nUpdate version numbers for changed packages.\n\n### 3. Test Locally\n\n```bash\n# Test package installation\nprpm install . --dry-run\n```\n\n### 4. Publish\n\n```bash\n# Publish all packages\nprpm publish\n\n# Or publish specific package\nprpm publish --package my-skill\n```\n\n## Common Mistakes to Avoid\n\n### ❌ Missing Required Fields\n\n```json\n{\n  \"name\": \"my-skill\",\n  \u002F\u002F Missing: version, description, format, subtype, files\n}\n```\n\n### ❌ Wrong Tag Format\n\n```json\n{\n  \"tags\": [\"TypeScript\", \"Code_Quality\", \"bestPractices\"]\n  \u002F\u002F Should be: [\"typescript\", \"code-quality\", \"best-practices\"]\n}\n```\n\n### ❌ Duplicate Names\n\n```json\n{\n  \"packages\": [\n    { \"name\": \"my-skill\", \"format\": \"claude\" },\n    { \"name\": \"my-skill\", \"format\": \"cursor\" }\n    \u002F\u002F Second should be: \"my-skill-rule\" or similar\n  ]\n}\n```\n\n### ❌ Missing Files\n\n```json\n{\n  \"files\": [\".claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\"]\n  \u002F\u002F But .claude\u002Fskills\u002Fmy-skill\u002FSKILL.md doesn't exist in the repo\n}\n```\n\n### ❌ Absolute Paths\n\n```json\n{\n  \"files\": [\"\u002FUsers\u002Fme\u002Fproject\u002F.claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\"]\n  \u002F\u002F Should be: \".claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\" (relative to project root)\n}\n```\n\n### ❌ Missing Directory Prefix\n\n```json\n{\n  \"files\": [\"agents\u002Fmy-agent.md\"]\n  \u002F\u002F Should be: \".claude\u002Fagents\u002Fmy-agent.md\" (include .claude\u002F prefix)\n}\n```\n\n## Remember\n\n- `prpm.json` is **only for publishing YOUR packages\u002Fcollections**, not for installed dependencies\n- **Never add packages from `prpm.lock` to `prpm.json`** - they serve different purposes\n- `prpm.lock` tracks what you INSTALL, `prpm.json` defines what you PUBLISH\n- Use `collections` array to bundle existing packages (references by packageId)\n- Use `packages` array to define packages with files\n- Can combine both `packages` and `collections` in same repo\n- Always validate before committing\n- Keep versions in sync for related packages\n- Use consistent, searchable tags\n- Verify all file paths exist\n- Check for duplicate names\n- Follow semver for version management\n\n**Goal:** Create maintainable, well-organized package manifests and curated collections that are easy to publish and discover in the PRPM registry.\n","# PRPM JSON Best Practices\n\nYou are an expert at creating and maintaining `prpm.json` package manifests for PRPM (Prompt Package Manager). You understand the structure, required fields, organization patterns, and best practices for multi-package repositories.\n\n## When to Apply This Skill\n\n**Use when:**\n- Creating a new `prpm.json` manifest for publishing packages\n- Maintaining existing `prpm.json` files\n- Organizing multi-package repositories\n- Adding or updating package metadata\n- Ensuring package manifest quality and completeness\n\n**Don't use for:**\n- User configuration files (`.prpmrc`) - those are for users\n- Lockfiles (`prpm.lock`) - those are auto-generated by PRPM\n- Regular package installation (users don't need `prpm.json`)\n- Dependencies already tracked in lockfiles\n\n## Core Purpose\n\n`prpm.json` is **only needed if you're publishing packages**. Regular users installing packages from the registry don't need this file.\n\nUse `prpm.json` when you're:\n- Publishing a package to the PRPM registry\n- Creating a collection of packages\n- Distributing your own prompts\u002Frules\u002Fskills\u002Fagents\n- Managing multiple related packages in a monorepo\n\n## File Structure\n\n### Single Package\nSee `examples\u002Fsingle-package.json` for complete structure.\n\n**Key fields:** `name`, `version`, `description`, `author`, `license`, `format`, `subtype`, `files`\n\n### Multi-Package Repository\nSee `examples\u002Fmulti-package.json` for complete structure.\n\n**Use when:** Publishing multiple related packages from one repo\n**Key difference:** Top-level `packages` array with individual package definitions\n\n### Collections Repository\nSee `examples\u002Fcollections-repository.json` for complete structure.\n\n**Use when:** Bundling existing published packages into curated collections\n**Key points:**\n- `collections` array references packages by `packageId` (not files)\n- Each collection has `id`, `name`, `description`, `packages`\n- Packages can be `required: true` (default) or `false` (optional)\n- Use version ranges (`^1.0.0`) or `latest`\n- Add `reason` to explain why package is included\n\n### Packages + Collections (Combined)\nSee `examples\u002Fpackages-with-collections.json` for complete structure.\n\n**Use when:** Publishing packages AND creating collections that bundle them\n**Key points:**\n- Define packages in `packages` array with files\n- Define collections in `collections` array referencing those packages\n- Collections can reference both local packages and external ones\n- Publish both individual packages and collection bundles from same repo\n\n## Required Fields\n\n### Top-Level (Single Package)\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | **Yes** | Package name (kebab-case, unique in registry) |\n| `version` | string | **Yes** | Semver version (e.g., `1.0.0`) |\n| `description` | string | **Yes** | Clear description of what the package does |\n| `author` | string | **Yes** | Author name and optional email |\n| `license` | string | **Yes** | SPDX license identifier (e.g., `MIT`, `Apache-2.0`) |\n| `format` | string | **Yes** | Target format: `claude`, `cursor`, `continue`, `windsurf`, etc. |\n| `subtype` | string | **Yes** | Package type: `agent`, `skill`, `rule`, `slash-command`, `prompt`, `collection` |\n| `files` | string[] | **Yes** | Array of files to include in package |\n\n### Optional Top-Level Fields\n\n| Field | Type | Description |\n|-------|------|-------------|\n| `repository` | string | Git repository URL |\n| `organization` | string | Organization name (for scoped packages) |\n| `homepage` | string | Package homepage URL |\n| `documentation` | string | Documentation URL |\n| `license_text` | string | Full text of the license file for proper attribution |\n| `license_url` | string | URL to the license file in the repository |\n| `tags` | string[] | Searchable tags (kebab-case) |\n| `keywords` | string[] | Additional keywords for search |\n| `category` | string | Package category |\n| `private` | boolean | If `true`, won't be published to public registry |\n| `dependencies` | object | Package dependencies (name: semver) |\n| `scripts` | object | Lifecycle scripts (multi-package only) |\n| `eager` | boolean | If `true`, skill\u002Fagent loads at session start (not on-demand) |\n\n### Multi-Package Fields\n\nWhen using `packages` array:\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `name` | string | **Yes** | Unique package name |\n| `version` | string | **Yes** | Package version |\n| `description` | string | **Yes** | Package description |\n| `format` | string | **Yes** | Package format |\n| `subtype` | string | **Yes** | Package subtype |\n| `tags` | string[] | Recommended | Searchable tags |\n| `files` | string[] | **Yes** | Files to include |\n| `private` | boolean | No | Mark as private |\n| `eager` | boolean | No | Load at session start (skills\u002Fagents only) |\n\n### Collection Fields\n\nWhen using `collections` array:\n\n**Top-level (repository with collections):**\n- `name`, `version`, `description`, `author`, `license` - **Required**\n- `repository`, `organization` - Recommended\n- Note: No `format`, `subtype`, or `files` required at top level\n\n**Each collection object:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `id` | string | **Yes** | Unique collection identifier (kebab-case, 3-100 chars) |\n| `name` | string | **Yes** | Display name (3-100 chars) |\n| `description` | string | **Yes** | What the collection provides (10-500 chars) |\n| `packages` | array | **Yes** | Array of packages to include (minimum 1) |\n| `version` | string | Recommended | Semantic version of collection |\n| `category` | string | Recommended | Collection category (development, testing, etc.) |\n| `tags` | string[] | Recommended | Searchable tags (kebab-case, 1-10 items) |\n| `icon` | string | Optional | Emoji or icon (max 10 chars) |\n\n**Each package within collection:**\n\n| Field | Type | Required | Description |\n|-------|------|----------|-------------|\n| `packageId` | string | **Yes** | Package to include |\n| `version` | string | Optional | Version range (^1.0.0, ~2.1.0, 1.0.0, latest) |\n| `required` | boolean | Optional | Whether package is required (default: true) |\n| `reason` | string | Optional | Why package is included (max 200 chars) |\n\n## Format and Subtype Values\n\n### Format (Target AI Tool)\n\n| Format | Description |\n|--------|-------------|\n| `claude` | Claude Code (agents, skills) |\n| `cursor` | Cursor IDE (rules, MDC files) |\n| `continue` | Continue.dev extension |\n| `windsurf` | Windsurf IDE |\n| `copilot` | GitHub Copilot |\n| `kiro` | Kiro IDE |\n| `agents.md` | Agents.md format |\n| `generic` | Generic\u002Funiversal format |\n| `mcp` | Model Context Protocol |\n\n### Subtype (Package Type)\n\n| Subtype | Description | Typical Formats |\n|---------|-------------|-----------------|\n| `agent` | Autonomous agents | `claude`, `agents.md` |\n| `skill` | Specialized capabilities | `claude` |\n| `rule` | IDE rules and guidelines | `cursor`, `windsurf` |\n| `slash-command` | Slash commands | `cursor`, `continue` |\n| `prompt` | Prompt templates | `generic` |\n| `collection` | Package collections | Any |\n| `chatmode` | Chat modes | `kiro` |\n| `tool` | MCP tools | `mcp` |\n\n## Eager vs Lazy Activation\n\nSkills and agents can be configured to load eagerly (at session start) or lazily (on-demand when relevant).\n\n### When to Use Eager\n\n**Use `eager: true` when:**\n- The skill should ALWAYS be active (coding standards, style guides)\n- Critical behavior that must never be skipped\n- Small, foundational skills with minimal token cost\n\n**Keep lazy (default) when:**\n- Specialized skills for specific contexts\n- Large skills with significant token overhead\n- Skills that only apply to certain file types\n\n### Setting Eager in prpm.json\n\n**Package-level:**\n```json\n{\n  \"name\": \"code-style-enforcer\",\n  \"version\": \"1.0.0\",\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"eager\": true,\n  \"files\": [\".claude\u002Fskills\u002Fcode-style\u002FSKILL.md\"]\n}\n```\n\n**File-level (enhanced files format):**\n```json\n{\n  \"files\": [\n    {\n      \"path\": \".claude\u002Fskills\u002Fcritical-skill\u002FSKILL.md\",\n      \"format\": \"claude\",\n      \"subtype\": \"skill\",\n      \"eager\": true\n    },\n    {\n      \"path\": \".claude\u002Fskills\u002Foptional-skill\u002FSKILL.md\",\n      \"format\": \"claude\",\n      \"subtype\": \"skill\",\n      \"eager\": false\n    }\n  ]\n}\n```\n\n### Precedence\n\nWhen installing, the final eager setting is determined by:\n1. CLI flag (`--eager`\u002F`--lazy`) - highest priority\n2. File-level `eager` setting (enhanced files)\n3. Package-level `eager` setting\n4. Default: lazy (false)\n\n### Applicable Subtypes\n\n| Subtype | Supports Eager |\n|---------|----------------|\n| `skill` | Yes |\n| `agent` | Yes |\n| `rule` | No |\n| `slash-command` | No |\n| `hook` | No |\n\nEager loading only affects progressive disclosure formats (agents.md, gemini.md, claude.md, aider).\n\n## Tags Best Practices\n\n### Tag Structure\n\n- Use **kebab-case** for all tags\n- Be **specific** and **searchable**\n- Include 3-8 tags per package\n- Combine technology, domain, and purpose tags\n\n### Tag Categories\n\n**Technology Tags:**\n- Languages: `typescript`, `python`, `javascript`, `rust`\n- Frameworks: `react`, `nextjs`, `fastify`, `django`\n- Tools: `aws`, `docker`, `kubernetes`, `postgresql`\n\n**Domain Tags:**\n- `deployment`, `testing`, `ci-cd`, `database`\n- `infrastructure`, `cloud`, `monitoring`\n- `documentation`, `code-review`, `security`\n\n**Purpose Tags:**\n- `troubleshooting`, `debugging`, `best-practices`\n- `automation`, `quality-assurance`, `performance`\n- `architecture`, `design-patterns`\n\n**Meta Tags:**\n- `meta` - For packages about creating packages\n- `prpm-internal` - For internal\u002Fprivate packages\n- `prpm-development` - For PRPM development itself\n\n### Tag Examples\n\n**Good Tags:**\n```json\n{\n  \"tags\": [\n    \"typescript\",\n    \"type-safety\",\n    \"code-quality\",\n    \"best-practices\",\n    \"static-analysis\"\n  ]\n}\n```\n\n**Poor Tags:**\n```json\n{\n  \"tags\": [\n    \"code\",  \u002F\u002F Too generic\n    \"stuff\", \u002F\u002F Meaningless\n    \"TypeScript\", \u002F\u002F Wrong case\n    \"type_safety\"  \u002F\u002F Wrong format (use kebab-case)\n  ]\n}\n```\n\n## Organization Best Practices\n\n### Multi-Package Organization\n\n**Order packages by:**\n1. **Privacy** - Private packages first\n2. **Format** - Group by format (claude, cursor, etc.)\n3. **Subtype** - Group by subtype (agent, skill, rule)\n\n**Example organization:**\n\n```json\n{\n  \"packages\": [\n    \u002F\u002F Private > Claude > Agents\n    { \"name\": \"internal-agent\", \"private\": true, \"format\": \"claude\", \"subtype\": \"agent\" },\n\n    \u002F\u002F Private > Claude > Skills\n    { \"name\": \"internal-skill\", \"private\": true, \"format\": \"claude\", \"subtype\": \"skill\" },\n\n    \u002F\u002F Private > Cursor > Rules\n    { \"name\": \"internal-rule\", \"private\": true, \"format\": \"cursor\", \"subtype\": \"rule\" },\n\n    \u002F\u002F Public > Claude > Skills\n    { \"name\": \"public-skill\", \"format\": \"claude\", \"subtype\": \"skill\" },\n\n    \u002F\u002F Public > Cursor > Rules\n    { \"name\": \"public-rule\", \"format\": \"cursor\", \"subtype\": \"rule\" }\n  ]\n}\n```\n\n### Naming Conventions\n\n**Package Names:**\n- Use **kebab-case**: `my-awesome-skill`\n- Be **descriptive**: `typescript-type-safety` not `ts-types`\n- Avoid duplicates across formats: use suffixes if needed\n  - `format-conversion-agent` (Claude agent)\n  - `format-conversion` (Cursor rule)\n\n**File Paths:**\n- Use **full paths from project root** (where prpm.json lives)\n- Agents: `.claude\u002Fagents\u002Fname.md`\n- Skills: `.claude\u002Fskills\u002Fname\u002FSKILL.md`\n- Rules: `.cursor\u002Frules\u002Fname.mdc`\n- Commands: `.claude\u002Fcommands\u002Fcategory\u002Fname.md`\n\n## Version Management\n\n### Semver Guidelines\n\nFollow semantic versioning:\n\n- **Major (1.0.0 → 2.0.0)**: Breaking changes\n- **Minor (1.0.0 → 1.1.0)**: New features, backward compatible\n- **Patch (1.0.0 → 1.0.1)**: Bug fixes, backward compatible\n\n### Version Bumping\n\nWhen to bump versions:\n- **Patch**: Bug fixes, typo corrections, minor improvements\n- **Minor**: New sections, additional examples, new features\n- **Major**: Complete rewrites, breaking changes, renamed fields\n\n### Keep Versions in Sync\n\nFor multi-package repos, keep related packages in sync:\n```json\n{\n  \"packages\": [\n    { \"name\": \"pkg-one\", \"version\": \"1.2.0\" },\n    { \"name\": \"pkg-two\", \"version\": \"1.2.0\" },\n    { \"name\": \"pkg-three\", \"version\": \"1.2.0\" }\n  ]\n}\n```\n\n## File Management\n\n### Files Array\n\n**CRITICAL: File paths must be full paths from project root (where prpm.json lives).**\n\n**Required:**\n- List all files to include in the package\n- Use **full paths from project root** - not relative to destination directories\n- Paths should start with `.claude\u002F`, `.cursor\u002F`, etc.\n- Include documentation files\n\n**Why Full Paths?**\nFile paths in `prpm.json` are used for:\n1. **Tarball creation** - Reads files directly from these paths\n2. **Snippet extraction** - Shows file preview before install\n3. **Installation** - CLI derives destination from format\u002Fsubtype\n\n**Examples:**\n\nClaude agent (single file):\n```json\n{\n  \"format\": \"claude\",\n  \"subtype\": \"agent\",\n  \"files\": [\".claude\u002Fagents\u002Fmy-agent.md\"]\n}\n```\n\nClaude skill (multiple files):\n```json\n{\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"files\": [\n    \".claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\",\n    \".claude\u002Fskills\u002Fmy-skill\u002FEXAMPLES.md\",\n    \".claude\u002Fskills\u002Fmy-skill\u002FREADME.md\"\n  ]\n}\n```\n\nCursor rule:\n```json\n{\n  \"format\": \"cursor\",\n  \"subtype\": \"rule\",\n  \"files\": [\".cursor\u002Frules\u002Fmy-rule.mdc\"]\n}\n```\n\nSlash command:\n```json\n{\n  \"format\": \"claude\",\n  \"subtype\": \"slash-command\",\n  \"files\": [\".claude\u002Fcommands\u002Fcategory\u002Fmy-command.md\"]\n}\n```\n\n### Enhanced File Format\n\n**Advanced:** Files can be objects with metadata instead of simple strings. Useful for packages with multiple files targeting different formats or needing per-file metadata.\n\n**Enhanced file object structure:**\n```json\n{\n  \"files\": [\n    {\n      \"path\": \".cursor\u002Frules\u002Ftypescript.mdc\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"name\": \"TypeScript Rules\",\n      \"description\": \"TypeScript coding standards and best practices\",\n      \"tags\": [\"typescript\", \"frontend\"]\n    },\n    {\n      \"path\": \".cursor\u002Frules\u002Fpython.mdc\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"name\": \"Python Rules\",\n      \"description\": \"Python best practices for backend development\",\n      \"tags\": [\"python\", \"backend\"]\n    }\n  ]\n}\n```\n\n**When to use enhanced format:**\n- Multi-file packages with different formats\u002Fsubtypes per file\n- Need per-file descriptions or tags\n- Want to provide display names for individual files\n- Building collection packages with mixed content types\n\n**Enhanced file fields:**\n\n| Field | Required | Description |\n|-------|----------|-------------|\n| `path` | **Yes** | Relative path to file from project root |\n| `format` | **Yes** | File's target format (`cursor`, `claude`, etc.) |\n| `subtype` | No | File's subtype (`rule`, `skill`, `agent`, etc.) |\n| `name` | No | Display name for this file |\n| `description` | No | Description of what this file does |\n| `tags` | No | File-specific tags (array of strings) |\n\n**Note:** Cannot mix simple strings and objects in the same `files` array. Use all strings OR all objects, not both.\n\n**Common Mistake:**\n```json\n{\n  \u002F\u002F ❌ WRONG - Relative paths without directory prefix\n  \"files\": [\"agents\u002Fmy-agent.md\"]  \u002F\u002F Will fail to find file\n\n  \u002F\u002F ✅ CORRECT - Full path from project root\n  \"files\": [\".claude\u002Fagents\u002Fmy-agent.md\"]\n}\n```\n\n### File Verification\n\nAlways verify files exist:\n```bash\n# Check all files in prpm.json exist\nfor file in $(cat prpm.json | jq -r '.packages[].files[]'); do\n  if [ ! -f \"$file\" ]; then\n    echo \"Missing: $file\"\n  fi\ndone\n```\n\n## Duplicate Detection\n\n### Check for Duplicate Names\n\nRun this check before committing:\n\n```bash\n# Check for duplicate package names\ncat prpm.json | jq -r '.packages[].name' | sort | uniq -d\n```\n\nIf output is empty, no duplicates exist. If names appear, you have duplicates to resolve.\n\n### Resolving Duplicates\n\n**Bad:**\n```json\n{\n  \"packages\": [\n    { \"name\": \"typescript-safety\", \"format\": \"claude\" },\n    { \"name\": \"typescript-safety\", \"format\": \"cursor\" }\n  ]\n}\n```\n\n**Good:**\n```json\n{\n  \"packages\": [\n    { \"name\": \"typescript-safety\", \"format\": \"claude\", \"subtype\": \"skill\" },\n    { \"name\": \"typescript-safety-rule\", \"format\": \"cursor\", \"subtype\": \"rule\" }\n  ]\n}\n```\n\n## Conversion Hints (Advanced)\n\n**Purpose:** Help improve quality when converting packages to other formats. The `conversion` field provides format-specific hints for cross-format transformations.\n\n**Note:** This is an advanced feature primarily used by format conversion tools. Most packages don't need this.\n\n**Structure:**\n\n```json\n{\n  \"name\": \"my-package\",\n  \"version\": \"1.0.0\",\n  \"format\": \"claude\",\n  \"conversion\": {\n    \"cursor\": {\n      \"alwaysApply\": false,\n      \"priority\": \"high\",\n      \"globs\": [\"**\u002F*.ts\", \"**\u002F*.tsx\"]\n    },\n    \"kiro\": {\n      \"inclusion\": \"fileMatch\",\n      \"fileMatchPattern\": \"**\u002F*.ts\",\n      \"domain\": \"typescript\",\n      \"tools\": [\"fs_read\", \"fs_write\"],\n      \"mcpServers\": {\n        \"database\": {\n          \"command\": \"mcp-server-postgres\",\n          \"args\": [],\n          \"env\": {\n            \"DATABASE_URL\": \"${DATABASE_URL}\"\n          }\n        }\n      }\n    },\n    \"copilot\": {\n      \"applyTo\": [\"src\u002F**\", \"lib\u002F**\"],\n      \"excludeAgent\": \"code-review\"\n    }\n  }\n}\n```\n\n**Supported conversion hints:**\n\n### Cursor Hints\n```json\n{\n  \"conversion\": {\n    \"cursor\": {\n      \"alwaysApply\": boolean,      \u002F\u002F Whether rule should always apply\n      \"priority\": \"high|medium|low\", \u002F\u002F Rule priority level\n      \"globs\": [\"**\u002F*.ts\"]         \u002F\u002F File patterns to auto-attach\n    }\n  }\n}\n```\n\n### Claude Hints\n```json\n{\n  \"conversion\": {\n    \"claude\": {\n      \"model\": \"sonnet|opus|haiku|inherit\", \u002F\u002F Preferred model\n      \"tools\": [\"Read\", \"Write\"],          \u002F\u002F Allowed tools\n      \"subagentType\": \"format-conversion\"  \u002F\u002F Subagent type if agent\n    }\n  }\n}\n```\n\n### Kiro Hints\n```json\n{\n  \"conversion\": {\n    \"kiro\": {\n      \"inclusion\": \"always|fileMatch|manual\", \u002F\u002F When to include\n      \"fileMatchPattern\": \"**\u002F*.ts\",         \u002F\u002F Pattern for fileMatch mode\n      \"domain\": \"typescript\",                \u002F\u002F Domain category\n      \"tools\": [\"fs_read\", \"fs_write\"],     \u002F\u002F Available tools\n      \"mcpServers\": {                        \u002F\u002F MCP server configs\n        \"database\": {\n          \"command\": \"mcp-server-postgres\",\n          \"args\": [],\n          \"env\": { \"DATABASE_URL\": \"${DATABASE_URL}\" }\n        }\n      }\n    }\n  }\n}\n```\n\n### Copilot Hints\n```json\n{\n  \"conversion\": {\n    \"copilot\": {\n      \"applyTo\": \"src\u002F**\",                         \u002F\u002F Path patterns\n      \"excludeAgent\": \"code-review|coding-agent\"  \u002F\u002F Agent to exclude\n    }\n  }\n}\n```\n\n### Continue Hints\n```json\n{\n  \"conversion\": {\n    \"continue\": {\n      \"alwaysApply\": boolean,           \u002F\u002F Always apply rule\n      \"globs\": [\"**\u002F*.ts\"],             \u002F\u002F File patterns\n      \"regex\": [\"import.*from\"]         \u002F\u002F Regex patterns\n    }\n  }\n}\n```\n\n### Windsurf Hints\n```json\n{\n  \"conversion\": {\n    \"windsurf\": {\n      \"characterLimit\": 12000  \u002F\u002F Warn if exceeding limit\n    }\n  }\n}\n```\n\n### Agents.md Hints\n```json\n{\n  \"conversion\": {\n    \"agentsMd\": {\n      \"project\": \"my-project\",  \u002F\u002F Project name\n      \"scope\": \"backend\"        \u002F\u002F Scope\u002Fdomain\n    }\n  }\n}\n```\n\n**When to use conversion hints:**\n- Publishing cross-format packages that need specific settings per format\n- Format conversion tools need guidance on how to transform content\n- Package behavior should change based on target format\n- Want to preserve format-specific metadata during conversions\n\n## Common Patterns\n\n### Private Internal Packages\n\n```json\n{\n  \"name\": \"internal-tool\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Internal development tool\",\n  \"private\": true,\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"tags\": [\"prpm-internal\", \"development\"],\n  \"files\": [\".claude\u002Fskills\u002Finternal-tool\u002FSKILL.md\"]\n}\n```\n\n### Meta Packages (Creating Other Packages)\n\n```json\n{\n  \"name\": \"creating-skills\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Guide for creating effective Claude Code skills\",\n  \"format\": \"claude\",\n  \"subtype\": \"skill\",\n  \"tags\": [\"meta\", \"claude-code\", \"skills\", \"documentation\", \"best-practices\"],\n  \"files\": [\".claude\u002Fskills\u002Fcreating-skills\u002FSKILL.md\"]\n}\n```\n\n### Cross-Format Packages\n\nWhen you have the same content for multiple formats:\n\n```json\n{\n  \"packages\": [\n    {\n      \"name\": \"format-conversion-agent\",\n      \"format\": \"claude\",\n      \"subtype\": \"agent\",\n      \"description\": \"Agent for converting between AI prompt formats\",\n      \"files\": [\".claude\u002Fagents\u002Fformat-conversion.md\"]\n    },\n    {\n      \"name\": \"format-conversion\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"description\": \"Rule for converting between AI prompt formats\",\n      \"files\": [\".cursor\u002Frules\u002Fformat-conversion.mdc\"]\n    }\n  ]\n}\n```\n\n### Collections in prpm.json\n\nCollections CAN be defined in prpm.json alongside packages using the `collections` array. Collections bundle multiple packages together for easier installation.\n\n**Example with both packages and collections:**\n\n```json\n{\n  \"name\": \"my-prompts-repo\",\n  \"author\": \"Your Name\",\n  \"license\": \"MIT\",\n  \"packages\": [\n    {\n      \"name\": \"typescript-rules\",\n      \"version\": \"1.0.0\",\n      \"description\": \"TypeScript best practices\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"tags\": [\"typescript\"],\n      \"files\": [\".cursor\u002Frules\u002Ftypescript.mdc\"]\n    }\n  ],\n  \"collections\": [\n    {\n      \"id\": \"my-dev-setup\",\n      \"name\": \"My Development Setup\",\n      \"description\": \"Complete development setup with TypeScript and React\",\n      \"version\": \"1.0.0\",\n      \"category\": \"development\",\n      \"tags\": [\"typescript\", \"react\"],\n      \"packages\": [\n        {\n          \"packageId\": \"typescript-strict\",\n          \"version\": \"^1.0.0\",\n          \"required\": true,\n          \"reason\": \"Enforces strict TypeScript type safety\"\n        },\n        {\n          \"packageId\": \"react-best-practices\",\n          \"version\": \"^2.0.0\",\n          \"required\": true\n        }\n      ]\n    }\n  ]\n}\n```\n\nFor more details on creating collections, see the PRPM documentation at https:\u002F\u002Fdocs.prpm.dev or run `prpm help collections`.\n\n**Summary:** `prpm.json` can contain both packages (skills, agents, rules, slash-commands, etc.) and collections.\n\n## Lifecycle Scripts\n\n**IMPORTANT:** The `scripts` field only applies to **multi-package manifests** (prpm.json with a `packages` array). It does NOT work in single-package manifests.\n\nUse the `scripts` field to run commands automatically during package operations, particularly for building TypeScript hooks before publishing.\n\n### When to Use Scripts\n\n**Primary use case: Building TypeScript Hooks**\n\nIf your packages include Claude Code hooks written in TypeScript, you MUST build them to JavaScript before publishing:\n\n```json\n{\n  \"name\": \"my-packages\",\n  \"license\": \"MIT\",\n  \"scripts\": {\n    \"prepublishOnly\": \"cd packages\u002Fhooks && npm run build\"\n  },\n  \"packages\": [\n    {\n      \"name\": \"my-hook\",\n      \"version\": \"1.0.0\",\n      \"format\": \"claude\",\n      \"subtype\": \"hook\",\n      \"files\": [\n        \".claude\u002Fhooks\u002Fmy-hook\u002Fhook.ts\",\n        \".claude\u002Fhooks\u002Fmy-hook\u002Fhook.json\",\n        \".claude\u002Fhooks\u002Fmy-hook\u002Fdist\u002Fhook.js\"\n      ]\n    }\n  ]\n}\n```\n\n### Available Script Types\n\n| Script | When it Runs | Use Case |\n|--------|--------------|----------|\n| `prepublishOnly` | Before `prpm publish` only | **Recommended** - Build hooks, compile assets |\n| `prepublish` | Before publish AND on npm install | **Not recommended** - causes unexpected builds |\n\n**Always use `prepublishOnly` instead of `prepublish`** to avoid running builds when users install your packages.\n\n### prepublishOnly Examples\n\n**Single hook:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd .claude\u002Fhooks\u002Fmy-hook && npm run build\"\n  }\n}\n```\n\n**Multiple hooks:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd .claude\u002Fhooks\u002Fhook-one && npm run build && cd ..\u002Fhook-two && npm run build\"\n  }\n}\n```\n\n**With tests:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"npm test && cd packages\u002Fhooks && npm run build\"\n  }\n}\n```\n\n### What Happens During Publishing\n\nWhen you run `prpm publish`:\n\n1. PRPM checks for `scripts.prepublishOnly` in your prpm.json\n2. If found, runs the script from the directory containing prpm.json\n3. If script succeeds (exit code 0), publishing continues\n4. If script fails (non-zero exit code), publishing is aborted\n\n**Script execution details:**\n- Working directory: Same directory as prpm.json\n- Timeout: 5 minutes (300,000ms) default\n- Environment: Inherits your shell's environment variables\n- Output: Shown in real-time\n\n### Best Practices for Scripts\n\n**DO:**\n- ✅ Use `prepublishOnly` for building hooks\n- ✅ Chain commands with `&&` for dependencies: `npm test && npm run build`\n- ✅ Keep scripts fast (under 1 minute if possible)\n- ✅ Test scripts locally before publishing\n\n**DON'T:**\n- ❌ Use `prepublish` (runs on install too)\n- ❌ Forget to build hooks before publishing\n- ❌ Use scripts in single-package manifests (not supported)\n- ❌ Put long-running operations in scripts\n\n### Common Patterns\n\n**Hooks in packages\u002F directory:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd packages\u002Fhooks && npm run build\"\n  }\n}\n```\n\n**Hooks in .claude\u002F directory:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"cd .claude\u002Fhooks\u002Fmy-hook && npm run build\"\n  }\n}\n```\n\n**Build multiple components:**\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"npm run build:hooks && npm run build:assets\"\n  }\n}\n```\n\n### Debugging Script Failures\n\nIf your prepublishOnly script fails:\n\n1. **Check the output** - Error messages show what went wrong\n2. **Run manually** - Test the exact command in your terminal\n3. **Verify working directory** - Scripts run from prpm.json location\n4. **Check dependencies** - Ensure npm packages are installed\n\n**Example debugging:**\n```bash\n# Test your prepublishOnly script manually\ncd \u002Fpath\u002Fto\u002Fprpm.json\u002Fdirectory\ncd packages\u002Fhooks && npm run build\n\n# If it works manually but fails in PRPM, check:\n# - Working directory assumptions\n# - Environment variables\n# - Installed dependencies\n```\n\n### Why This Matters\n\n**Without prepublishOnly:**\n- You might forget to build hooks before publishing\n- Published packages contain stale\u002Foutdated JavaScript\n- Users install broken hooks\n- Manual builds are error-prone\n\n**With prepublishOnly:**\n- Hooks automatically build before every publish\n- JavaScript always matches TypeScript source\n- Prevents publishing broken code\n- Consistent, reliable publishing workflow\n\n## Validation Checklist\n\nBefore publishing, verify:\n\n**Required Fields:**\n- [ ] All packages have `name`, `version`, `description`\n- [ ] All packages have `format` and `subtype`\n- [ ] All packages have `files` array\n- [ ] Top-level has `author` and `license`\n\n**File Verification:**\n- [ ] All files in `files` arrays exist\n- [ ] File paths are relative to repo root\n- [ ] No missing or broken file references\n\n**No Duplicates:**\n- [ ] No duplicate package names\n- [ ] Package names are unique across entire manifest\n\n**Tags:**\n- [ ] Tags use kebab-case\n- [ ] 3-8 relevant tags per package\n- [ ] Tags include technology, domain, and purpose\n\n**Organization:**\n- [ ] Private packages listed first\n- [ ] Packages grouped by format and subtype\n- [ ] Consistent versioning across related packages\n\n## Lockfile Management\n\n### Understanding prpm.lock\n\nThe `prpm.lock` file is **auto-generated** and tracks installed packages. It serves as the source of truth for what's installed in your project.\n\n**IMPORTANT:** Do NOT add packages to `prpm.json` if they already exist in `prpm.lock`:\n\n- `prpm.lock` tracks **installed dependencies** (packages you use)\n- `prpm.json` defines **published packages** (packages you create and share)\n\n### When to Use prpm.json vs prpm.lock\n\n**Use `prpm.json` when:**\n- You're creating a package to publish to the registry\n- You want to define metadata for YOUR packages\n- You're setting up a multi-package repository\n\n**Use `prpm.lock` (auto-generated) when:**\n- You install packages with `prpm install`\n- You want to track which packages are installed\n- You want reproducible installations across environments\n\n### Common Mistake: Duplicating Dependencies\n\n**❌ WRONG - Don't add installed packages to prpm.json:**\n\n```json\n\u002F\u002F prpm.json\n{\n  \"name\": \"my-project\",\n  \"packages\": [\n    {\n      \"name\": \"typescript-safety\",  \u002F\u002F ❌ This is an INSTALLED package\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"files\": [\".cursor\u002Frules\u002Ftypescript-safety.mdc\"]\n    }\n  ]\n}\n```\n\n```json\n\u002F\u002F prpm.lock (auto-generated)\n{\n  \"packages\": {\n    \"@prpm\u002Ftypescript-safety\": {  \u002F\u002F ✅ Already tracked here\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\"\n    }\n  }\n}\n```\n\n**✅ CORRECT - prpm.json only for YOUR packages:**\n\n```json\n\u002F\u002F prpm.json - Only YOUR packages you're publishing\n{\n  \"name\": \"my-project\",\n  \"packages\": [\n    {\n      \"name\": \"my-custom-rule\",  \u002F\u002F ✅ This is YOUR package\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\",\n      \"files\": [\".cursor\u002Frules\u002Fmy-custom-rule.mdc\"]\n    }\n  ]\n}\n```\n\n```json\n\u002F\u002F prpm.lock - Installed dependencies (auto-generated)\n{\n  \"packages\": {\n    \"@prpm\u002Ftypescript-safety\": {  \u002F\u002F ✅ Installed from registry\n      \"version\": \"1.0.0\",\n      \"format\": \"cursor\",\n      \"subtype\": \"rule\"\n    }\n  }\n}\n```\n\n### Key Principles\n\n1. **Lockfile is Auto-Generated** - Never manually edit `prpm.lock`\n2. **Separation of Concerns**:\n   - `prpm.json` = What you PUBLISH\n   - `prpm.lock` = What you INSTALL\n3. **Check Lockfile First** - Before adding to `prpm.json`, check if it's already in `prpm.lock`\n4. **Trust the Lockfile** - It's the authoritative record of installed packages\n\n### Workflow Example\n\n```bash\n# Install a package (updates prpm.lock automatically)\nprpm install @prpm\u002Ftypescript-safety\n\n# This creates\u002Fupdates prpm.lock - DO NOT add to prpm.json!\n\n# Only create prpm.json entries for packages YOU create:\n# 1. Create your custom rule\u002Fskill\u002Fagent\n# 2. Add entry to prpm.json\n# 3. Publish with: prpm publish\n```\n\n## Publishing Workflow\n\n### 1. Validate Manifest\n\n```bash\n# Validate JSON syntax\ncat prpm.json | jq . > \u002Fdev\u002Fnull\n\n# Check for duplicates\ncat prpm.json | jq -r '.packages[].name' | sort | uniq -d\n\n# Verify files exist\n# (see File Verification section)\n```\n\n### 2. Bump Versions\n\nUpdate version numbers for changed packages.\n\n### 3. Test Locally\n\n```bash\n# Test package installation\nprpm install . --dry-run\n```\n\n### 4. Publish\n\n```bash\n# Publish all packages\nprpm publish\n\n# Or publish specific package\nprpm publish --package my-skill\n```\n\n## Common Mistakes to Avoid\n\n### ❌ Missing Required Fields\n\n```json\n{\n  \"name\": \"my-skill\",\n  \u002F\u002F Missing: version, description, format, subtype, files\n}\n```\n\n### ❌ Wrong Tag Format\n\n```json\n{\n  \"tags\": [\"TypeScript\", \"Code_Quality\", \"bestPractices\"]\n  \u002F\u002F Should be: [\"typescript\", \"code-quality\", \"best-practices\"]\n}\n```\n\n### ❌ Duplicate Names\n\n```json\n{\n  \"packages\": [\n    { \"name\": \"my-skill\", \"format\": \"claude\" },\n    { \"name\": \"my-skill\", \"format\": \"cursor\" }\n    \u002F\u002F Second should be: \"my-skill-rule\" or similar\n  ]\n}\n```\n\n### ❌ Missing Files\n\n```json\n{\n  \"files\": [\".claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\"]\n  \u002F\u002F But .claude\u002Fskills\u002Fmy-skill\u002FSKILL.md doesn't exist in the repo\n}\n```\n\n### ❌ Absolute Paths\n\n```json\n{\n  \"files\": [\"\u002FUsers\u002Fme\u002Fproject\u002F.claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\"]\n  \u002F\u002F Should be: \".claude\u002Fskills\u002Fmy-skill\u002FSKILL.md\" (relative to project root)\n}\n```\n\n### ❌ Missing Directory Prefix\n\n```json\n{\n  \"files\": [\"agents\u002Fmy-agent.md\"]\n  \u002F\u002F Should be: \".claude\u002Fagents\u002Fmy-agent.md\" (include .claude\u002F prefix)\n}\n```\n\n## Remember\n\n- `prpm.json` is **only for publishing YOUR packages\u002Fcollections**, not for installed dependencies\n- **Never add packages from `prpm.lock` to `prpm.json`** - they serve different purposes\n- `prpm.lock` tracks what you INSTALL, `prpm.json` defines what you PUBLISH\n- Use `collections` array to bundle existing packages (references by packageId)\n- Use `packages` array to define packages with files\n- Can combine both `packages` and `collections` in same repo\n- Always validate before committing\n- Keep versions in sync for related packages\n- Use consistent, searchable tags\n- Verify all file paths exist\n- Check for duplicate names\n- Follow semver for version management\n\n**Goal:** Create maintainable, well-organized package manifests and curated collections that are easy to publish and discover in the PRPM registry.\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":47,"prompt":57,"zipAvailable":58},[48,51,54],{"tool":49,"command":50},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill prpm-json-best-practices",{"tool":52,"command":53},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill prpm-json-best-practices",{"tool":55,"command":56},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill prpm-json-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002FSKILL.md",true,[60,66,70,74,78,82],{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"examples\u002Fcollections-repository.json","REFERENCE","参考文档",1215,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002Fexamples\u002Fcollections-repository.json",{"path":67,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Fmulti-package.json",744,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002Fexamples\u002Fmulti-package.json",{"path":71,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":72,"sourceHtmlUrl":73},"examples\u002Fpackages-with-collections.json",1397,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002Fexamples\u002Fpackages-with-collections.json",{"path":75,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":76,"sourceHtmlUrl":77},"examples\u002Fsingle-package.json",443,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002Fexamples\u002Fsingle-package.json",{"path":79,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":80,"sourceHtmlUrl":81},"prpm-manifest.schema.json",21445,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002Fprpm-manifest.schema.json",{"path":83,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":84,"sourceHtmlUrl":85},"skill-report.json",52771,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fagentworkforce\u002Fprpm-json-best-practices\u002Fskill-report.json",[87,96,105,114,120,126],{"skillNo":88,"name":89,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":32},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[93,94,95],"model","model hierarchy","model hierarchy skill",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":32},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[102,103,104],"MCP","zoom","zoom mcp",{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":32},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[111,112,113,103],"sdk","zoom apps sdk","apps",{"skillNo":115,"name":116,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":32},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[116],{"skillNo":121,"name":122,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":32},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[122],{"skillNo":127,"name":128,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":32},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[128]]