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.
Getting Started with PRPM
First Time Setup
-
Install the CLI:
-
Verify installation:
-
Create an account and login:
-
Browse available packages:
Discovering and Installing Packages
Finding the Right Package
Search by keyword:
Browse trending packages:
prpm trending --format cursor
View package details:
prpm info @username/typescript-rules
Check collections:
# List all collections
prpm collections --list
# View a specific collection
prpm collections web-development
Installing Packages
Install a single package:
prpm install @username/typescript-best-practices
Install multiple packages at once:
prpm install \
@username/react-rules \
@username/typescript-config \
@username/testing-guidelines
Install an entire collection:
prpm collections web-development --install
Install and convert to a specific format:
prpm install @username/typescript-rules --as cursor
Verifying Installation
List installed packages:
List packages for a specific format:
prpm list --format cursor
Check package details:
Managing Existing Projects
Indexing Local Prompt Files
If you have existing prompt files in your project, register them with PRPM:
# Scan and register all prompt files
prpm index
# View registered packages
prpm list
This will scan these directories:
.cursor/rules/, .cursor/agents/, .cursor/commands/
.claude/agents/, .claude/skills/, .claude/commands/
.continue/rules/
.windsurf/rules/
.prompts/
.mcp/
Keeping Packages Up to Date
Check for outdated packages:
Update a specific package:
Update all packages:
Preview updates without applying:
Interactive updates (choose which to update):
prpm upgrade --interactive
Cleaning Up Packages
Remove a package:
prpm uninstall package-name
Remove multiple packages:
prpm uninstall package1 package2 package3
Remove without confirmation:
prpm uninstall package-name --force
Creating and Publishing Packages
Creating Your First Package
-
Initialize a new package:
mkdir @username/my-cursor-rules
cd @username/my-cursor-rules
prpm init
-
Follow the interactive prompts:
- Package name:
my-username/@username/my-cursor-rules
- Description: Describe what your package does
- Format:
cursor
- Subtype:
rule
- Author: Your name
- License:
MIT (or your choice)
- Tags:
typescript, react, best-practices
-
Edit the generated files:
# Edit your rules file
vim .cursorrules
# Update the README
vim README.md
-
Test locally:
# Install in a test project
cd ../test-project
prpm install /path/to/@username/my-cursor-rules
Publishing Your Package
-
Ensure you’re logged in:
prpm whoami
# If not logged in:
prpm login
-
Validate your package:
prpm schema --validate prpm.json
-
Test publish (dry run):
-
Publish to registry:
-
Verify publication:
prpm info my-username/@username/my-cursor-rules
Updating Your Published Package
-
Update version in
prpm.json:
{
"name": "@username/my-cursor-rules",
"version": "1.1.0",
...
}
-
Publish the update:
-
Publish a beta version:
# Update version to 2.0.0-beta.1
prpm publish --tag beta
Working Across Multiple Projects
Setting Up a Standardized Environment
Create a script to install your standard packages across projects:
#!/bin/bash
# setup-prpm.sh
echo "Installing standard PRPM packages..."
prpm install \
@username/typescript-rules \
@username/react-best-practices \
@username/testing-guidelines \
@username/git-commit-standards
echo "Setup complete!"
Make it executable and run:
chmod +x setup-prpm.sh
./setup-prpm.sh
Sharing Configurations Across Teams
-
Create a collection for your team:
- Contact PRPM support or create via registry API
- Add your team’s standard packages
-
Team members can install everything at once:
prpm collections your-team-name --install
Cross-Project Packages
PRPM currently installs packages into the current project directory. To use packages across projects:
# Create a shared setup script
cat > ~/prpm-setup.sh << 'EOF'
#!/bin/bash
prpm install @username/typescript-rules
prpm install @username/react-patterns
EOF
# Run in each project
chmod +x ~/prpm-setup.sh
cd /path/to/project && ~/prpm-setup.sh
Advanced Workflows
Using PRPM in CI/CD
Install packages in CI:
# .github/workflows/ci.yml
steps:
- name: Install PRPM packages
run: |
npm install -g prpm
prpm install @username/typescript-rules1 @username/typescript-rules2
env:
PRPM_TOKEN: ${{ secrets.PRPM_TOKEN }}
Verify packages are up to date:
steps:
- name: Check for outdated packages
run: |
prpm outdated --json > outdated.json
if [ $(jq length outdated.json) -gt 0 ]; then
echo "Outdated packages found!"
exit 1
fi
Scripting with PRPM
Check if a package is installed:
#!/bin/bash
if prpm list --json | jq -e '.[] | select(.id=="package-name")' > /dev/null; then
echo "Package is installed"
else
echo "Package not found"
prpm install @username/typescript-rules
fi
Batch operations:
#!/bin/bash
# Update all cursor packages
prpm list --format cursor --json | \
jq -r '.[].id' | \
xargs prpm update
Custom Registry
Use a private registry:
# Set custom registry
prpm config set registry https://registry.example.com
# Or use environment variable
export PRPM_REGISTRY_URL=https://registry.example.com
prpm search internal-packages
Switch between registries:
# Production registry
alias prpm-prod='PRPM_REGISTRY_URL=https://registry.prpm.dev prpm'
# Development registry
alias prpm-dev='PRPM_REGISTRY_URL=https://dev.registry.prpm.dev prpm'
# Use them
prpm-prod search typescript
prpm-dev publish
Troubleshooting Common Issues
Package Not Found
# Ensure you're using the correct package name
prpm search package-name
# Check if you're authenticated (for private packages)
prpm whoami
# Try specifying a version
prpm install @username/typescript-rules --version 1.0.0
Installation Fails
# Check for conflicting files
ls -la .cursor/rules/
# Force reinstall
prpm uninstall package-name
prpm install @username/typescript-rules --force
# Check disk space and permissions
df -h
ls -la .cursor/
Authentication Issues
# Re-authenticate
prpm login
# Check current auth status
prpm whoami
# Manually set token
prpm config set token YOUR_TOKEN
Updates Not Working
# Check what's outdated
prpm outdated
# Try force update
prpm update package-name --force
# Or uninstall and reinstall
prpm uninstall package-name
prpm install @username/typescript-rules
Lock File Conflicts
# Rebuild lock file from installed packages
prpm index
# Or manually edit prpm.lock if needed
vim prpm.lock
Best Practices
For Package Users
-
Always check package info before installing:
prpm info @username/typescript-rules
-
Keep packages updated:
# Set up a weekly reminder
prpm outdated
-
Convert to your preferred format:
prpm install package-name --as cursor # Convert to Cursor format
prpm install package-name --as claude # Convert to Claude format
-
Document your dependencies:
# README.md
## PRPM Packages
This project uses:
- `@username/typescript-rules` - TypeScript coding standards
- `@username/react-patterns` - React best practices
For Package Authors
-
Follow semantic versioning:
- Patch: Bug fixes (1.0.1)
- Minor: New features (1.1.0)
- Major: Breaking changes (2.0.0)
-
Write comprehensive READMEs:
- What the package does
- Installation instructions
- Usage examples
- Configuration options
-
Use descriptive tags:
{
"tags": ["typescript", "react", "testing", "best-practices"]
}
-
Test before publishing:
-
Keep packages focused:
- One clear purpose per package
- Split large packages into smaller ones
- Use collections to group related packages
Getting Help