documentation-standards
Standards and guidelines for organizing, structuring, and maintaining documentation in the PRPM repository - ensures consistency across user docs, development docs, and internal references
$ Installieren
git clone https://github.com/pr-pm/prpm /tmp/prpm && cp -r /tmp/prpm/.claude/skills/documentation-standards ~/.claude/skills/prpm// tip: Run this command in your terminal to install the skill
name: documentation-standards description: Standards and guidelines for organizing, structuring, and maintaining documentation in the PRPM repository - ensures consistency across user docs, development docs, and internal references
PRPM Documentation Standards
Documentation Organization
Internal Documentation (development/docs/)
Purpose: Documentation for developers working on PRPM itself
Location: development/docs/
Files:
GITHUB_WORKFLOWS.md- GitHub Actions workflows referencePUBLISHING.md- NPM package publishing process and orderDEVELOPMENT.md- Development setup, environment, and workflowsDOCKER.md- Docker setup, services, and troubleshooting
Audience: PRPM contributors, maintainers, CI/CD systems
User-Facing Documentation (docs/)
Purpose: Documentation for PRPM users and package authors
Location: docs/ (at project root)
Files:
- User guides
- API documentation
- Package authoring guides
- CLI command reference
- Examples and tutorials
Audience: PRPM end users, package authors, integrators
Project-Level Documentation (root)
Purpose: Standard project files that belong at repository root
Location: Project root /
Files:
README.md- Project overview, quick start, installationCONTRIBUTING.md- Contribution guidelinesCHANGELOG.md- Version history and changesLICENSE- License informationROADMAP.md- Project roadmap and future plans
Audience: Everyone (first impression)
Claude Skills (.claude/skills/)
Purpose: Knowledge base and reference materials for AI assistants
Location: .claude/skills/
Files:
postgres-migrations-skill.md- PostgreSQL migrations guidancepulumi-troubleshooting-skill.md- Pulumi troubleshootingNEW_SKILLS.md- How to create new skillsdocumentation-standards.md- This file
Subdirectories:
prpm-development/- PRPM-specific development knowledgeself-improving/- Self-improvement patternsthoroughness/- Thoroughness and quality guidelines
Audience: AI assistants (Claude, etc.)
Rules for Documentation Placement
When to use development/docs/
â GitHub Actions workflows and CI/CD â Internal build/release processes â Development environment setup â Architecture decision records â Internal troubleshooting guides â Database schema documentation â Infrastructure documentation
â User-facing tutorials â CLI usage guides â API reference for end users
When to use docs/
â User guides and tutorials â CLI command reference â Package authoring guides â API documentation for users â Integration examples â FAQ for users
â Internal development workflows â CI/CD documentation â Build/release processes
When to use .claude/skills/
â Specialized knowledge for AI assistants â Domain-specific best practices â Troubleshooting patterns â Code review guidelines â Project-specific conventions
â General documentation â User guides â API references
Documentation Standards
Markdown Files
- Use clear, descriptive filenames (kebab-case)
- Include table of contents for docs > 200 lines
- Use proper heading hierarchy (# â ## â ###)
- Include code examples with syntax highlighting
- Add frontmatter if using a static site generator
Example Structure
# Title
Brief description (1-2 sentences)
## Table of Contents
- [Section 1](#section-1)
- [Section 2](#section-2)
## Section 1
Content...
### Subsection 1.1
Details...
## Examples
\`\`\`bash
# Example command
prpm install @username/package-name
\`\`\`
## See Also
- [Related Doc](./related.md)
Cross-References
- Use relative paths for links
- Keep links within same category when possible
- Update links when moving files
Internal â Internal:
See [Publishing Guide](./PUBLISHING.md)
Internal â User:
See [User Guide](../../docs/user-guide.md)
Migration Checklist
When reorganizing documentation:
- â Move file to correct location
- â Update all references to moved file
- â Update README.md links if needed
- â Update .gitignore if needed
- â Test that all links work
- â Commit with clear message explaining move
Package-Specific Documentation
Each package should have its own README:
packages/
âââ cli/
â âââ README.md # CLI package overview
âââ registry/
â âââ README.md # Registry server docs
âââ registry-client/
â âââ README.md # Client library docs
âââ types/
â âââ README.md # Type definitions docs
âââ webapp/
âââ README.md # WebApp docs
Maintenance
Regular Reviews
- Quarterly review of docs/ for accuracy
- Remove outdated documentation
- Update examples to use latest version
- Check for broken links
When Adding Features
- Update relevant user docs in
docs/ - Update internal docs in
development/docs/if needed - Add examples
- Update CHANGELOG.md
When Deprecating Features
- Add deprecation notice to docs
- Provide migration guide
- Keep docs until feature is removed
- Update CHANGELOG.md
Quick Reference
| Documentation Type | Location | Audience | Examples |
|---|---|---|---|
| Internal Dev | development/docs/ | Contributors | CI/CD, publishing |
| User-Facing | docs/ | Users | Guides, tutorials |
| Project Root | / | Everyone | README, LICENSE |
| AI Skills | .claude/skills/ | AI assistants | Troubleshooting |
| Package Docs | packages/*/README.md | Package users | API reference |
Tools
Documentation Generators
- TypeDoc - For TypeScript API docs (future)
- VitePress or Docusaurus - For docs/ site (future)
Linting
# Check markdown
markdownlint docs/
# Check links
markdown-link-check docs/**/*.md
Building Docs Site (Future)
cd docs/
npm run build
Examples
Good Documentation Structure
prpm/
âââ README.md # Project overview
âââ CONTRIBUTING.md # How to contribute
âââ CHANGELOG.md # Version history
âââ ROADMAP.md # Future plans
âââ development/
â âââ docs/
â âââ GITHUB_WORKFLOWS.md # CI/CD reference
â âââ PUBLISHING.md # Release process
â âââ DEVELOPMENT.md # Dev setup
â âââ DOCKER.md # Services setup
âââ docs/
â âââ getting-started.md # User onboarding
â âââ cli-reference.md # Command reference
â âââ package-authoring.md # Creating packages
â âââ api/
â âââ registry-client.md # API docs
âââ .claude/
âââ skills/
âââ documentation-standards.md
âââ postgres-migrations-skill.md
âââ pulumi-troubleshooting-skill.md
Bad Documentation Structure â
prpm/
âââ README.md
âââ WORKFLOWS.md # Should be in development/docs/
âââ USER_GUIDE.md # Should be in docs/
âââ dev-setup.md # Should be in development/docs/
âââ troubleshooting.md # Unclear audience/location
Version
Last Updated: 2025-10-21 Applies To: PRPM v2+ Review Date: 2026-01-21
Repository
