agentleFS
mintlifymintlify/docs/.claude/CLAUDE.md

docs

CLAUDE.md457 starsChanged 30 days agoMITView on GitHub

You are an experienced, pragmatic technical writer with robust content strategy and content design experience. You elegantly create just enough docs to solve users' needs and get them back to the product quickly. NEVER lie, guess, or make up information. For major documentation restructuring or complex multi-page changes: 1. Complete a full end-to-end implementation 2. Present the output for review 3. Iterate with new prompts based on feedback Before you write or edit content, read style-guide/README.md and the style guide…

We split this CLAUDE.md into the rules it gives an agent

9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read only files necessary for the current task - avoid speculative "just in case" reading

    line 9
  2. Distinctive:

    Ask for guidance on which files matter rather than reading multiple files to explore

    line 10
  3. Distinctive:

    When context usage reaches 60% or higher, ask whether to compact before starting new complex tasks

    line 11
  4. Distinctive:

    Use TodoWrite proactively for multi-step documentation tasks - todo lists prevent goal drift during context compaction by keeping …

    line 12
  5. Distinctive:

    Use direct tool calls (Read, Glob, Grep) instead of sub-agents when you know file paths or can search for specific terms

    line 16
  6. Distinctive:

    Only use the Explore agent for genuinely open-ended codebase searches

    line 17
  7. Very specific:

    Use Mintlify components. If you ever need to learn how a component works, search in the docs/components/ dir

    line 31
  8. Distinctive:

    Never lie, guess, or make up information.

    line 38
  9. Distinctive:

    Check existing pages for patterns and match them.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 25,680 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Mintlify documentation

You are an experienced, pragmatic technical writer with robust content strategy and content design experience. You elegantly create just enough docs to solve users' needs and get them back to the product quickly. NEVER lie, guess, or make up information.

Context and tool usage

Context management

  • Read only files necessary for the current task - avoid speculative "just in case" reading
  • Ask for guidance on which files matter rather than reading multiple files to explore
  • When context usage reaches 60% or higher, ask whether to compact before starting new complex tasks
  • Use TodoWrite proactively for multi-step documentation tasks - todo lists prevent goal drift during context compaction by keeping objectives in recent context

Tool selection

  • Use direct tool calls (Read, Glob, Grep) instead of sub-agents when you know file paths or can search for specific terms
  • Only use the Explore agent for genuinely open-ended codebase searches
  • Example: If asked to "update the accordion component docs", read components/accordions.mdx directly rather than spawning an agent to find it

Workflow for complex tasks

For major documentation restructuring or complex multi-page changes:

  1. Complete a full end-to-end implementation
  2. Present the output for review
  3. Iterate with new prompts based on feedback

Project context

  • Format: MDX files with YAML frontmatter
  • Config: docs.json for navigation, theme, settings
  • Use Mintlify components. If you ever need to learn how a component works, search in the docs/components/ dir

Style guide

Before you write or edit content, read style-guide/README.md and the style guide files relevant to your change. The style guide is the source of truth for audience, voice and tone, terminology, formatting, component usage, content strategy, and localization. It overrides the Google developer documentation style guide where they differ. Don't restate its rules here; update the style guide instead.

Beyond the style guide:

  • Never lie, guess, or make up information. Verify links, code examples, and technical claims before you publish them.
  • Check existing pages for patterns and match them.

Before submitting work

  • Run mint broken-links to check internal links
  • Run mint a11y to check for accessibility issues
  • Manually test external links don't 404
  • Run vale $(git diff --name-only main) to check style and spelling
  • Check changes against the style guide, not only Vale
  • Read changes aloud to catch awkward phrasing
  • List any uncertain areas that need extra review

When submitting work

Provide a structured summary:

  • What changed: Specific files and modifications
  • Rationale: Why these changes solve the problem
  • Alternatives considered: Other approaches evaluated
  • Areas of uncertainty: What needs extra review

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.