Get the FREE Ultimate OpenClaw Setup Guide →

Documentation Manager

Scanned
npx machina-cli add skill crypdick/pynchy/docs-manager --openclaw
Files (1)
SKILL.md
3.1 KB

Documentation Manager

Helps decide where to document things and maintain consistency across Pynchy docs.

Style Guide

  • Write for a user trying to achieve a goal. Don't chronicle the evolution of the codebase. Don't go into unnecessary technical details that are not relevant to the user's goal.
  • Follow the Google Style Guide. Write in the present tense. Don't use "we" or "they". Write in the active voice. Don't use "is" or "are".
  • Read docs/contributing/contributing-docs.md for the full documentation philosophy and information architecture rules.

Where to Document What

Quick decision tree:

New feature?

  • Architecture decision → docs/architecture/ (find the relevant topic file, or create a new one)
  • Installation requirement → docs/install.md
  • Security implication → docs/architecture/security.md
  • Development workflow change → .claude/skills/pynchy-dev/SKILL.md

Bug fix?

  • If it needs install change → docs/install.md
  • Usually: No doc update needed

Refactoring?

  • If user-visible → Update relevant docs
  • If internal only → No doc update

File Purposes

FileWhat Goes There
README.mdPhilosophy, quick start, high-level overview
docs/install.mdComplete installation guide
docs/architecture/security.mdSecurity model, threat analysis
docs/architecture/index.mdArchitecture overview and links to topic pages
docs/architecture/*.mdOne topic per file (containers, routing, tasks, etc.)
.claude/skills/Development context skills for Claude Code agents

Information Architecture Rules

  1. Single source of truth — Every concept explained in exactly one place. Cross-link, don't duplicate.
  2. Tree-shaped navigation — Root files have links + short summaries. Leaf files have the actual content.
  3. Small, focused files — One topic per file. If it covers multiple concerns, split it.

Validation

Before committing:

# Check for broken links
uv run mkdocs build --strict

After moving/renaming files:

  1. Search for all references to old name
  2. Update each reference
  3. Update mkdocs.yml nav
  4. Test with uv run mkdocs build --strict

Common Mistakes

  • Duplicating content across files (link instead)
  • Chronological explanations ("First we tried X...")
  • Mixing audiences (keep README brief, details in docs/)
  • Forgetting to update references after renames
  • Writing mega-files that cover multiple topics

Link Checking

Link validation runs automatically in pre-commit hooks. If docs have broken links, the commit will fail.

To manually check: uv run mkdocs build --strict

Source

git clone https://github.com/crypdick/pynchy/blob/main/.claude/skills/docs-manager/SKILL.mdView on GitHub

Overview

Documentation Manager guides where to document in Pynchy, helping maintain consistency and fix broken links. It codifies information architecture, a writing philosophy, and tree-shaped navigation, covering doc-code coupling, no hard-coded usernames, and extensibility for pluggable subsystems.

How This Skill Works

Internally, it uses a quick decision tree to route content to the correct docs file (architecture topics, install guide, or subsystem pages). It enforces the style rules (Google Style, present tense, active voice) and checks for a single source of truth, cross-links, and broken links via pre-commit hooks and mkdocs build.

When to Use It

  • Adding a new feature and deciding the right docs location (architecture, install, or subsystems)
  • Documenting security implications
  • Reflecting a development workflow change
  • Bug fix that requires installation or doc updates
  • Refactoring with user-visible impact (update relevant docs)

Quick Start

  1. Step 1: Use the quick decision tree to choose the right docs location.
  2. Step 2: Add or update the topic file with a single source of truth and links.
  3. Step 3: Run uv run mkdocs build --strict to validate links and navigation.

Best Practices

  • Follow the Google Style Guide: write in present tense and active voice; no 'we' or 'they'.
  • Place content using the decision tree to ensure the correct file and navigation.
  • Maintain a single source of truth with precise cross-links rather than duplicates.
  • Keep files small and topic-focused; one topic per file.
  • Validate changes with link checks and mkdocs build before committing.

Example Use Cases

  • Created docs/architecture/index.md and linked new architecture topic when adding a feature.
  • Documented a security implication in docs/architecture/security.md.
  • Updated docs/install.md to reflect a new installation requirement.
  • Updated a docs/architecture topic after a user-visible refactor.
  • Fixed a broken link in a topic and refreshed the navigation in mkdocs.yml.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers