| title | Build Your First Documentation Suite | |||
|---|---|---|---|---|
| description | Learn PitchDocs by building a complete documentation suite from scratch — from README to user guides using a real example project. | |||
| type | tutorial | |||
| difficulty | beginner | |||
| time_to_complete | 20 minutes | |||
| last_verified | 2.1.0 | |||
| related |
|
|||
| order | 1 |
What You'll Learn: In this tutorial, you'll build a complete documentation suite for a sample project — generating a README, changelog, roadmap, user guides, and verification reports. By the end, you'll understand PitchDocs workflows end-to-end and be ready to use it on your own projects.
Time to completion: ~20 minutes. No prior knowledge of PitchDocs required.
- Claude Code or OpenCode installed
- A project repository with at least a
README.mdand some structure (or use our sample below) - Terminal access
By the end of this tutorial, your project will have:
- ✅ A marketing-friendly README with hero section, features, and quick start
- ✅ A changelog documenting changes from your git history
- ✅ A roadmap showing future direction
- ✅ User guides explaining how to use key features
- ✅ A docs hub page linking everything together
- ✅ A quality score showing where your documentation stands
First, install PitchDocs as a plugin.
Open Claude Code and run:
/plugin marketplace add littlebearapps/lba-plugins
/plugin install pitchdocs@lba-pluginsYou should see confirmation that the plugin and all skills are loaded.
Verify it worked: Start a new session and you should see PitchDocs skills available in autocomplete.
Troubleshooting: Plugin not loading
If you don't see PitchDocs skills:
# List installed plugins
/plugin list
# If pitchdocs is missing, reinstall
/plugin uninstall pitchdocs
/plugin install pitchdocs@lba-pluginsIf you're using OpenCode, the install command is identical.
For this tutorial, we'll work with a sample project. Choose one:
cd /path/to/your/projectmkdir pitchdocs-tutorial
cd pitchdocs-tutorial
git init
# Create a basic project structure
cat > package.json << 'EOF'
{
"name": "data-transform-lib",
"version": "1.0.0",
"description": "Fast JSON and CSV transformation library",
"main": "src/index.js",
"scripts": {
"test": "jest",
"build": "tsc",
"dev": "nodemon src/index.js"
},
"keywords": ["json", "csv", "transform"],
"author": "Your Name",
"license": "MIT"
}
EOF
mkdir -p src docs
cat > src/index.js << 'EOF'
// Core transformation functions
export function transformJSON(data, rules) {
// Applies rules to transform JSON data
return processRules(data, rules);
}
export function transformCSV(csvString, options) {
// Converts CSV to JSON or vice versa
return convertCSV(csvString, options);
}
export function createRule(selector, transformer) {
// Allows custom transformation rules
return { selector, transformer };
}
EOF
cat > README.md << 'EOF'
# Data Transform Library
A JavaScript library for transforming JSON and CSV data.
## Installation
npm install data-transform-lib
## Usage
See documentation.
EOF
git add -A
git commit -m "feat: initial commit with core transformation functions"Expected output: A new git repository with a basic project structure.
If you already have a project, skip to the next step.
Now, let PitchDocs scan your project and identify what's worth documenting.
/pitchdocs:featuresPitchDocs will scan across 10 signal categories: CLI commands, public API, configuration, integrations, performance, security, TypeScript/DX, testing, extensibility, and documentation.
What to look for in the output:
- Evidence — each feature links to a file path (e.g.,
src/index.jsline 5) - Signal categories — which parts of your code are "interesting" enough to document
- Tier classification — Hero (standout), Core (essential), Supporting (nice-to-have)
Example: If the scan found your features...
You might see something like:
🎯 Hero Features (1–3 standout capabilities)
- Fast JSON transformation with automatic type detection (src/index.js:8)
📋 Core Features (4–8 essential capabilities)
- CSV-to-JSON converter (src/index.js:15)
- Custom transformation rules API (src/index.js:22)
- Streaming support for large files (src/transform.js:45)
🔧 Supporting Features
- Error handling with detailed messages
- Optional type validation
These become the basis for your README features section.
Next step: If the features look accurate, continue to Step 4. If you want to refine them, run:
/pitchdocs:features benefitsThis lets you "talk it out" — answer 4 questions to help PitchDocs understand your project's value from a user's perspective.
With features extracted, generate a professional README:
/pitchdocs:readmePitchDocs will create (or improve) a README.md with:
- Hero section — your project's logo, description, and badges
- Quick start — install and first code example (30-60 seconds to working code)
- Features table — Hero + Core features in benefit-driven language
- Comparison — how you compare to alternatives
- Contribution and support links — next steps for visitors
Verify it worked:
head -n 50 README.mdYou should see a well-formatted hero section with your project name, description, and badges.
If the README needs refinement
PitchDocs accepts natural language guidance:
# Focus on a specific section
/pitchdocs:readme focus on the comparison table
# Regenerate with a different tone
/pitchdocs:readme for a more technical audience
# Emphasise a particular feature
/pitchdocs:readme highlight the CSV transformation featureEach run refines the output — you're not overwriting; you're improving.
Your README is done, but there are usually 15+ other documentation files worth creating. Let PitchDocs scan your project against a comprehensive checklist:
/pitchdocs:docs-auditThis produces a 3-tier checklist:
- Tier 1 (Critical) — README, LICENSE, CONTRIBUTING
- Tier 2 (Essential) — CHANGELOG, SECURITY, ROADMAP
- Tier 3 (Nice-to-have) — user guides, issue templates, PR templates
What to look for: The output will show which files exist ✅ and which are missing ❌.
Instead of creating each file manually, generate everything that's missing:
/pitchdocs:docs-audit fixThis command:
- Checks which docs are missing
- Generates them automatically
- Handles Claude Code's content filter (so
CODE_OF_CONDUCTandLICENSEdon't fail) - Creates a
docs/folder with guides and supporting documentation
Expected output: Your repo now has:
- ✅
CHANGELOG.md— from your git history - ✅
ROADMAP.md— future direction - ✅
CONTRIBUTING.md— how to contribute - ✅
CODE_OF_CONDUCT.md— community standards - ✅
SECURITY.md— security policy - ✅
docs/guides/— user guides for key workflows - ✅
docs/README.md— documentation hub
Verify the docs were created:
ls -la docs/guides/
cat docs/README.md | head -n 20The docs/guides/ folder created in Step 6 contains auto-generated task-oriented guides. If you want to create guides for additional workflows, you can generate them explicitly:
/pitchdocs:user-guideThis scans your project and generates guides based on common questions and features:
- Getting Started — installation and first steps
- Configuration — all config options explained
- [Feature-specific guides] — one per major feature
- Troubleshooting — common issues and solutions
Verify the guides:
ls docs/guides/
head -n 30 docs/guides/getting-started.mdEach guide follows a numbered-steps format with verification steps so users know they've succeeded.
PitchDocs extracts your commit messages and converts them into user-friendly change notes:
/pitchdocs:changelogThis scans your git history and creates a CHANGELOG.md where:
- ✅ Features say "You can now..."
- ✅ Bug fixes say "Fixed..."
- ✅ Breaking changes are flagged clearly
- ✅ Each entry is user-benefit-driven, not developer-jargon
Verify it:
head -n 50 CHANGELOG.mdBefore you ship your docs, run a comprehensive verification:
/pitchdocs:docs-verifyThis checks:
- ✅ All links are valid (internal and external)
- ✅ No stale content (files updated recently)
- ✅ Heading hierarchy is correct (no level skipping)
- ✅ All referenced files exist
- ✅ Security issues (no leaked credentials or internal paths)
- ✅ Quality score (0–100 across 6 dimensions)
What a good score looks like:
- 80–100 — Excellent documentation
- 60–79 — Good, with minor gaps
- 40–59 — Needs attention, missing sections
- Below 40 — Significant gaps or errors
If your score is low
The verification output suggests specific improvements. Common issues:
- Broken links — Fix with
Edittool or re-run the command that generated them - Stale content — Update files that haven't changed in 90+ days
- Missing prerequisites — Add setup/install instructions to user guides
- Poor heading hierarchy — Ensure H1 → H2 → H3, no skipping levels
After fixing, run /pitchdocs:docs-verify again to confirm improvements.
Your documentation is complete! If you want to manage AI context files (AGENTS.md, CLAUDE.md, .cursorrules), install ContextDocs separately:
/plugin install contextdocs@lba-plugins
/contextdocs:ai-context initThis bootstraps your AI context files with best practices for your project type.
Congratulations! Your project now has:
- README.md — Marketing-friendly, with features and quick start
- CHANGELOG.md — User-benefit-driven change notes
- ROADMAP.md — Future direction and priorities
- docs/guides/ — Task-oriented user guides
- docs/README.md — Documentation hub
- CONTRIBUTING.md — How to contribute
- CODE_OF_CONDUCT.md — Community standards
- SECURITY.md — Security policy
- Quality score — Confidence that your docs are complete
All generated with evidence from your actual code — nothing is fabricated. Every claim traces back to a file path.
Now that you've built a complete documentation suite, here are your options:
When you add new features or prepare a release:
/pitchdocs:doc-refreshThis updates README features, CHANGELOG, user guides, and quality scores in one command.
Steer PitchDocs to match your project's voice:
/pitchdocs:readme focus on the security features
/pitchdocs:changelog for a non-technical audience
/pitchdocs:user-guide for DevOps engineersWhen you're ready to go public, generate platform-specific content:
/pitchdocs:launchThis creates Dev.to articles, Hacker News posts, Reddit posts, and Twitter threads — all from your new documentation.
Learn more about what PitchDocs can do:
- Command Reference — All 16 commands with arguments and examples
- Workflows — Recipes for releases, launches, and maintenance
- Customising Output — How to steer documentation toward your vision
- How PitchDocs Thinks — Design frameworks and philosophies
You've learned:
- ✅ How to install and use PitchDocs
- ✅ How to extract features with evidence
- ✅ How to generate professional README, CHANGELOG, and guides
- ✅ How to audit and fill documentation gaps
- ✅ How to verify documentation quality
- ✅ How to keep docs fresh with each release
You're ready to use PitchDocs on any project. Start with /pitchdocs:readme for your next project and build from there.
Questions? See the Getting Started Guide for common patterns, or Troubleshooting for specific issues.