Skip to content

Latest commit

 

History

History
131 lines (92 loc) · 5.33 KB

File metadata and controls

131 lines (92 loc) · 5.33 KB

Contributing to PitchDocs

Thank you for your interest in contributing! This plugin helps generate better repository documentation, and we'd love your help making it even better.

Quick Links

Note: Claude Code's API may return HTTP 400 ("Output blocked by content filtering policy") when generating CODE_OF_CONDUCT.md, SECURITY.md, or LICENSE files. This is a known Claude Code limitation (#2111, #21880), not a PitchDocs bug. The plugin includes built-in workarounds that fetch these files from canonical URLs instead of generating them inline. If you hit this error while developing, see the docs-writer agent's Content Filter Mitigation section in .claude/agents/docs-writer.md.


How the Plugin Works

This is a Claude Code plugin — a collection of markdown files that extend Claude's capabilities. There is no compiled code, no build step, and no runtime dependencies.

pitchdocs/
├── .claude-plugin/plugin.json     # Plugin manifest
├── .claude/
│   ├── agents/docs-writer.md      # Long-form doc generation agent
│   ├── rules/doc-standards.md     # Tone, language, and quality standards
│   └── skills/                    # Reference knowledge (loaded on-demand)
│       ├── ai-context/SKILL.md
│       ├── api-reference/SKILL.md
│       ├── changelog/SKILL.md
│       ├── docs-verify/SKILL.md
│       ├── feature-benefits/SKILL.md
│       ├── launch-artifacts/SKILL.md
│       ├── llms-txt/SKILL.md
│       ├── package-registry/SKILL.md
│       ├── pitchdocs-suite/SKILL.md
│       ├── public-readme/SKILL.md
│       ├── roadmap/SKILL.md
│       ├── user-guides/SKILL.md
│       ├── context-guard/SKILL.md
│       └── doc-refresh/SKILL.md
├── commands/                      # Slash commands (/readme, /changelog, /ai-context, etc.)
└── upstream-versions.json         # Pinned upstream spec versions

Development Setup

# Clone the repo
git clone https://github.com/littlebearapps/pitchdocs.git
cd pitchdocs

# That's it — no dependencies to install

To test changes locally, install the plugin from your local path:

# In Claude Code, point to your local clone
/plugin install /path/to/pitchdocs

How to Contribute

Improving Documentation Templates

The most impactful contributions improve the quality of generated docs. Look at the skills in .claude/skills/ — each contains templates, language rules, and anti-patterns.

When improving a template:

  1. Show a before/after example of the generated output
  2. Explain why the new version is better for the reader
  3. Check spelling is consistent with the project's language conventions

Adding New Skills or Commands

  1. Create the skill in .claude/skills/<name>/SKILL.md with proper frontmatter
  2. Create the command in commands/<name>.md with proper frontmatter
  3. Update the pitchdocs-suite skill if the new doc type should appear in audits
  4. Update README.md with the new skill/command

Updating Upstream Specifications

When an upstream spec changes (Keep a Changelog, Contributor Covenant, etc.):

  1. Update the relevant skill content
  2. Update upstream-versions.json with the new version and date
  3. Note the key changes in your PR description

Commit Messages

We use Conventional Commits:

  • feat: add new skill — New functionality
  • fix: correct badge URL pattern — Bug fix
  • docs: update readme — Documentation only
  • chore: update upstream versions — Maintenance

Note: release-please auto-generates CHANGELOG entries from commit messages. Before merging a release PR, review the CHANGELOG entries and rewrite them in user-benefit language (e.g., "You can now..." not "add feature X"). Run /pitchdocs:changelog to help with this.

Pull Requests

  1. Fork the repo and create a branch: git checkout -b feature/your-feature
  2. Make your changes
  3. Commit using conventional commits
  4. Push and open a pull request using the PR template

Testing Your Changes

Since this plugin is pure markdown, there's no test suite to run. Instead, verify your changes by:

  1. Install your local copy: /plugin install /path/to/pitchdocs
  2. Run the relevant command against a test repository (e.g. /readme, /changelog)
  3. Review the generated output — does it pass the 4-question test?
  4. Check spelling is consistent throughout
  5. Ensure any new cross-links between docs resolve correctly

Code of Conduct

This project follows the Contributor Covenant v3.0 Code of Conduct. By participating, you agree to uphold this code.


Questions?

Open an issue — we're happy to help.

Thank you for making PitchDocs better!