> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prpm.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Packages

> Understanding PRPM packages

# Packages

Packages are the core unit of distribution in PRPM. A package contains prompts, rules, skills, agents, or other AI tool configurations.

## Package Types

PRPM supports different package subtypes:

| Subtype         | Description                               | Example                          |
| --------------- | ----------------------------------------- | -------------------------------- |
| `agent`         | Autonomous multi-step agents              | Complex workflow automation      |
| `skill`         | Specialized knowledge/capabilities        | Domain expertise, best practices |
| `rule`          | IDE rules and guidelines                  | Coding standards, conventions    |
| `slash-command` | Executable commands                       | Quick actions, shortcuts         |
| `prompt`        | Reusable prompt templates                 | Common tasks, queries            |
| `workflow`      | Multi-step automation workflows           | CI/CD pipelines, build processes |
| `tool`          | Executable utilities and scripts          | MCP tools, helper scripts        |
| `template`      | File and project templates                | Boilerplates, scaffolds          |
| `collection`    | Curated package collections               | Stack bundles, thematic sets     |
| `chatmode`      | Chat interface modes                      | Specialized AI modes             |
| `hook`          | Event-triggered executable hooks          | Pre/post actions, validations    |
| `plugin`        | Bundled packages with multiple components | Cursor plugins, Claude plugins   |

## Package Formats

Packages target different AI tools:

* **claude**: Claude Code agents and skills
* **cursor**: Cursor IDE rules, commands, hooks, and plugins
* **continue**: Continue.dev extension
* **windsurf**: Windsurf IDE
* **copilot**: GitHub Copilot instructions
* **kiro**: Kiro AI agents and steering files
* **gemini**: Gemini CLI custom commands
* **opencode**: OpenCode AI agents and commands
* **ruler**: Ruler coding rules and agents
* **droid**: Factory Droid skills and hooks
* **agents.md**: Universal agent format (OpenAI, Gemini, etc.)
* **mcp**: Model Context Protocol servers
* **generic**: Works across multiple tools

See the [Formats documentation](/concepts/formats) for complete details on each format.

## Package Structure

A basic package in prpm.json:

```json theme={null}
{
  "name": "@username/typescript-best-practices",
  "version": "1.0.0",
  "description": "TypeScript coding standards and best practices",
  "author": "Your Name",
  "license": "MIT",
  "format": "cursor",
  "subtype": "rule",
  "tags": ["typescript", "best-practices"],
  "files": [".cursor/rules/typescript.mdc"]
}
```

## Installing Packages

Install a package:

```bash theme={null}
prpm install @prpm/@username/typescript-best-practices
```

Install for a specific format:

```bash theme={null}
prpm install @prpm/@username/typescript-best-practices --as cursor
```

## Publishing Packages

See the [Publishing Guide](/publishing/getting-started) for details on publishing your packages.
