Decorative Curve
Back to Field Notes

Keep Your Docs Consistent With the AI Linter

How to use ReadMe's AI Linter as a style guide enforcer, with tips for writing rules and prompts that actually work.

Lyzi DiamondTechnical WriterJuly 1, 20263 min read

One key element of good documentation is consistency. Docs with a single, unified voice and uniform structure increase trust in your product and help users get moving quickly.

But most documentation isn't written by a single person. In fact, collaboration is one of the most celebrated features of ReadMe — anyone on your team can contribute to your docs in the way that works best for them, whether they're a software engineer working in the ReadMe CLI or a product manager making edits in the IDE.

So how do teams maintain one voice with many contributors? A style guide. Style guides can include nearly anything, from grammar rules to code style for examples to guide structure and everything in between.

Enter the ReadMe AI Linter. Think of the Linter as an AI-powered style guide enforcer. Set your style rules right in your ReadMe project, then run the Linter on any Guides or API Reference page to get a Style Guide Score and a list of style guide violations and suggested changes. You can also run the Linter on every page in your documentation from the Linter page.

Warnings2 Issues
Jargon

The content uses unexplained internal jargon or acronyms that aren't expanded or clarified for general readers. (near "API Reference / ReadMe Basics")

Uncertain Language

The content includes uncertain wording or editorial suggestions that present options rather than definitive guidance. (near "/* Note to editors: Consider")

Successful Linting = Your Style Guide + Effective AI Prompts

The Linter uses your style guide as an AI prompt. When you run it, the Linter sends your documentation page and your prompt to an AI model, which evaluates the content against your rules and surfaces violations with suggested fixes.

A great Linter setup combines two things: a style guide that reflects your team's specific decisions, and prompts written clearly enough for an AI model to act on them. Here are some suggestions for setting your Linter up for success.

  • Write specific, detailed rules. The more specific you can be, the better. Use specific numbers wherever possible. "Keep sentences under 20 words" will be more effective than "write shorter sentences." The more important the rules are, the more specific you should be.
  • Add examples. Models respond better when shown specific format requirements. Wherever possible, include a bad/good example pair.
  • Favor rules that explain what to do over rules that explain what not to do. This gives the model a better understanding of your intentions and helps it generate better suggestions.
  • Keep your style guide current. A small set of fresh, accurate rules is more effective than a large collection in various states of disrepair. As your product and team evolve, your rules should too.
  • Pull your most specific, checkable rules into the Errors and Warnings sections so the Linter can flag them precisely. These rules get pulled out into individual lists and flag individual sections for revision. Enterprise customers can also prevent changes from being merged if the Linter detects any Errors.

To learn more about configuring the Linter, check out the Linter documentation.

Connector
Everything to Build Great Docs
Connector
The Full Documentation Stack
Decorative CurveReady?
Get a preview
of your docs
ConnectorConnector
Decorative Curve
Terms of ServicePrivacy Policy
MSA