Documentation workflow guidelines. Activate when working with Markdown files (.md), README files, technical documentation, RFCs, ADRs, or specification documents.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
| Task | Tool | Command |
|------|------|---------|
| Lint | markdownlint | npx markdownlint-cli2 "**/*.md" |
| Format | Prettier | npx prettier --write "**/*.md" |
| Link check | markdown-link-check | npx markdown-link-check README.md |
# syntax, not underlines)- First item
- Nested item (4 spaces)
- Second item
Mermaid diagrams are RECOMMENDED for version-controlled visual documentation.
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[End]
Common types: flowchart, sequenceDiagram, classDiagram, erDiagram,
gantt, stateDiagram-v2
Best practices:
Purpose: Consensus-requiring proposals for significant changes.
# RFC-XXXX: Title
## Status
Draft | Review | Accepted | Rejected | Superseded
## Summary | ## Motivation | ## Detailed Design | ## Alternatives | ## Open Questions
Purpose: Document architectural decisions and their context.
ADRs MUST NOT be deleted, only superseded by newer ADRs.
# ADR-XXXX: Title
## Status
Proposed | Accepted | Deprecated | Superseded by ADR-YYYY
## Context | ## Decision | ## Consequences
Location: docs/adr/ or docs/architecture/decisions/
Purpose: Implementation blueprints for features or systems.
Sections: Overview, Background, Technical Design, Security Considerations, Testing Strategy, Rollout Plan.
Metadata SHOULD be included in YAML frontmatter:
---
title: Document Title
author: Name
date: 2025-01-15
status: draft | review | published
tags: [api, architecture]
---
See [Installation](./docs/install.md#prerequisites)
Lowercase, spaces become hyphens, remove punctuation except hyphens.
Example: ## API Design Patterns becomes #api-design-patterns
Documentation SHOULD be validated in CI pipelines.
# .github/workflows/docs.yml
name: Docs
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npx markdownlint-cli2 "**/*.md"
- run: npx markdown-link-check README.md
Configuration (.markdownlint.json):
{ "default": true, "MD013": { "line_length": 80 }, "MD033": false }
Project README files SHOULD follow this structure:
docs/
adr/ # Architecture Decision Records
rfcs/ # Request for Comments
guides/ # User guides
api/ # API documentation
README.md # Project overview
CONTRIBUTING.md # Contribution guidelines
CHANGELOG.md # Version history
| Element | Rule | |---------|------| | Line length | 80 chars (RECOMMENDED) | | Headings | ATX-style, no skips | | List indent | 4 spaces | | Code blocks | Fenced with language | | Links | Relative for internal | | ADRs | Never delete, supersede | | Diagrams | Mermaid (RECOMMENDED) | | Frontmatter | YAML metadata |
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer