docs/ directory and uses Mintlify for rendering. This guide covers how to write docs that match Cline’s established style.
Using the Documentation Workflow
The fastest way to create documentation is using the/write-docs workflow. Type /write-docs in Cline and describe what you want to document. Cline guides you through a 4-step process:
- Research: Examine existing docs structure and patterns
- Scope: Clarify audience, doc type, and key use cases
- Outline: Select a template and create structure
- Write: Generate documentation following style guidelines
.clinerules/workflows/write-docs.md and contains templates, style rules, and examples.
Documentation Principles
Write for Developers
Your audience is developers who value their time. Get to the point. Every sentence should either help them understand something or help them do something.Show Real Examples
Abstract descriptions don’t help anyone. Show actual code, real file paths, and concrete implementations.Use Active Voice
Cline does things. Files don’t get created by Cline, Cline creates files.Anthropomorphize Cline
Refer to Cline as “him” not “it”. He’s your AI coding partner.File Format
All documentation uses MDX format with YAML frontmatter:Adding New Pages
After creating a new.mdx file, add it to docs/docs.json in the appropriate navigation group:
Mintlify Components
Use these components appropriately throughout your docs.Frame
Wrap all images and videos:Callouts
Use sparingly and purposefully:Steps
For sequential procedures:Cards
For navigation and feature overviews:Style Rules
Quick reference for consistent documentation:| Do | Don’t |
|---|---|
| Use “use” | Use “utilize” |
| Keep sentences under 25 words | Write run-on sentences |
| Use bullet points for lists | Write walls of text |
| Show where things are in the UI | Assume users can find features |
| Cross-link related docs | Leave readers stranded |
| Use code blocks with language tags | Use inline code for long snippets |
Avoid These Patterns
- Em dashes and emojis
- Starting with “This document explains…”
- The Bold Text: description pattern
- Explaining obvious things
- Passive voice
Previewing Changes
Run the docs locally to preview your changes:http://localhost:3000 to see your changes in real time.

