picoclaw

PicoClaw Documentation

PicoClaw documentation is organized by document type first and language second.

This file describes the recommended documentation layout, how translated files should be named, and what make lint-docs currently checks locally.

These conventions are intended as contributor guidance for new or moved docs. Existing docs may still have historical exceptions, and make lint-docs only checks a common subset of the patterns described here.

Reader Navigation

If you are browsing docs rather than reorganizing them, start with these directory indexes:

For channel-specific setup, start with Chat Apps Configuration and then drill into docs/channels/<name>/README.md as needed.

Principles

Common Patterns To Avoid

Translation Placement

Code-Adjacent Docs

Keep documentation next to the implementation when it primarily describes a package, command, example, or subproject.

Examples:

These files still follow the same translation naming rules.

Adding a New Document

  1. Pick the correct document type directory.
  2. Create the English source file first.
  3. Add translated siblings after the English source exists when that source is part of the same docs set.
  4. Update links from existing docs when the new doc becomes a navigation target.
  5. Run make lint-docs locally when adding or moving docs.

Examples

Validation

Run:

make lint-docs

The local docs linter currently checks these common cases:

make lint-docs is a local consistency check for common naming and placement mistakes. It helps contributors stay close to the recommended layout, but it is not intended to describe every acceptable documentation pattern in the repository.

When a check fails, make lint-docs prints the failing path, the reason, and a suggested fix.

If you change these recommendations or want the local linter to reflect them more closely, update this file and scripts/lint-docs.sh together.