Skip to main content
Guides Last updated: 10 March 2026

Workflow Cookbook

Step-by-step recipes for common PitchDocs workflows: public-ready repos, releases, launches, and maintenance.

Summary: Step-by-step recipes for common PitchDocs workflows — making repos public-ready, preparing releases, launching on platforms, and keeping docs fresh.

Each recipe lists the commands in order with brief notes — see the Command Reference for full argument details.


Make a Repo Public-Ready

Generate the full documentation set for a project you’re about to open-source or publish.

  1. Extract user benefits — understand why someone should care about your project:

    /pitchdocs:features benefits

    Choose “talk it out” for the most compelling results — the conversational path surfaces your real use cases and motivations.

  2. Generate README — this uses the extracted benefits to establish the project’s voice:

    /pitchdocs:readme
  3. Audit for missing docs — check what else the repo needs:

    /pitchdocs:docs-audit
  4. Auto-generate everything missing — fill all gaps in one go:

    /pitchdocs:docs-audit fix
  5. Bootstrap AI context files — for AI context file management, install ContextDocs:

    /plugin install contextdocs@lba-plugins
    /contextdocs:ai-context init
  6. Generate llms.txt — make the repo AI-discoverable:

    /pitchdocs:llms-txt full
  7. Verify everything — check links, freshness, and quality:

    /pitchdocs:docs-verify
  8. Review the quality score — aim for 80+ (Grade B or above):

    /pitchdocs:docs-verify score

Tip: If your score is below 80, run /pitchdocs:docs-verify without arguments to see which dimensions need improvement, then address them individually.


Prepare a Release

Update documentation after cutting a new version.

  1. Update the changelog for the new version:

    /pitchdocs:changelog v1.5.0
  2. Refresh all affected docs — analyses git changes since the last tag and updates what’s needed:

    /pitchdocs:doc-refresh
  3. Verify nothing is broken — check for stale content and broken links:

    /pitchdocs:docs-verify
  4. Update badges — if your version badge is hardcoded, update it in README. If it uses shields.io dynamic badges, it updates automatically.

Using release-please? Run /pitchdocs:doc-refresh before merging the release-please PR. Release-please owns version strings; /pitchdocs:doc-refresh owns prose, features, metrics, and guides.


Launch on a Platform

Generate launch content for Dev.to, Hacker News, Reddit, Twitter/X, or awesome lists.

  1. Ensure README is polished — launch artifacts are derived from it:

    /pitchdocs:readme
  2. Generate all launch artifacts:

    /pitchdocs:launch

    Or target a specific platform:

    /pitchdocs:launch devto    # Dev.to article
    /pitchdocs:launch hn       # Hacker News "Show HN" post
    /pitchdocs:launch reddit   # Reddit post templates
    /pitchdocs:launch social   # Twitter/X thread + social preview guide
    /pitchdocs:launch awesome  # Awesome list submission PR
  3. Review before posting — all artifacts are written to docs/launch/ for human review. Check for:

    • Accuracy of feature claims
    • Tone appropriate to the platform (HN values technical depth; Reddit varies by subreddit)
    • Links are correct and publicly accessible
    • Social preview image is set (GitHub Settings → Social preview)
  4. Post and engage — launch artifacts are starting points, not copy-paste-ready. Adapt to the platform’s culture and your audience.


Keep Docs Fresh Over Time

Prevent documentation drift with regular maintenance.

TriggerAction
After every release/pitchdocs:doc-refresh (or /pitchdocs:doc-refresh v1.x.0)
Monthly (active projects)/pitchdocs:docs-verify to check for staleness
Quarterly/pitchdocs:features audit to catch undocumented features
After major refactorsInstall ContextDocs and run /contextdocs:ai-context update to patch drift
After extended Claude sessionsInstall ContextDocs and run /contextdocs:ai-context promote to move MEMORY.md patterns to CLAUDE.md

Add docs verification to CI

Run /pitchdocs:docs-verify ci to get a CI-friendly output format. Add to GitHub Actions:

# .github/workflows/docs.yml
name: Docs Verification
on:
  pull_request:
    paths: ['**.md', 'docs/**', 'llms.txt']

jobs:
  verify:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: DavidAnson/markdownlint-cli2-action@v18
      - uses: lycheeverse/lychee-action@v2
        with:
          args: --no-progress '**.md'

For PitchDocs-specific checks (quality score, feature coverage, llms.txt sync), run /pitchdocs:docs-verify ci --min-score 70 in a Claude Code session or CI agent.


Document a New Feature

After adding a feature to your codebase, update docs to reflect it.

  1. Check what PitchDocs detects:

    /pitchdocs:features audit
  2. Update user benefits (if the feature changes the project’s value proposition):

    /pitchdocs:features benefits

    Choose auto-scan for a quick draft, or “talk it out” for authentic, experience-driven benefits.

  3. Update README features section:

    /pitchdocs:readme focus on features
  4. Update affected guides (if any):

    /pitchdocs:doc-refresh guides
  5. Patch AI context files (if ContextDocs installed):

    /contextdocs:ai-context update
  6. Verify everything is consistent:

    /pitchdocs:docs-verify

Looking for command details? See the Command Reference. Having trouble? See the Troubleshooting guide.

Was this helpful?

Related Articles