/predicate:documentationfrom predicate
Enforces writing quality guidelines, formatting conventions, and stylistic constraints for documentation, READMEs, and guides.
Ships in predicate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill governs how you write. Section 1 applies to all text you produce — code comments, chat responses, documentation. (Commit messages are governed by commit-hygiene, which owns that jurisdiction in the §5 routing table.) Section 2 applies when you are producing or editing a standalone document (README, guide, reference page, explanation, specification).
These rules are always active. They are non-negotiable.
Lead with the conclusion, not the context. The reader's question should be answered in the first sentence or heading — background, caveats, and methodology come after. If someone stops reading after one paragraph, they should still have the answer.
Default to active voice. Use passive only when the actor is genuinely irrelevant or unknown. "The function returns an error" — not "An error is returned by the function."
One idea per sentence. Delete words that don't earn their place. If a sentence works without a word, remove that word. Prefer concrete language over abstract hedging.
Once you name a concept, use that name everywhere. Do not swap synonyms for variety — consistency beats prose elegance. If the codebase calls it a "store," never call it a "repository" or "database" in documentation. Terminological inconsistency is a documentation bug.
Readers scan before they read. Support this:
Do not pad text with words that add no information.
[!CAUTION] Anti-Patterns (FORBIDDEN):
- ❌ Preamble walls: "In this section, we will discuss the various aspects of..."
- ❌ Restating the question: "You asked about X. X is an important topic. Let me explain X."
- ❌ Hedge-word padding: "It's worth noting that perhaps it might be considered..."
- ❌ Empty transitions: "Now let's move on to the next topic."
- ❌ Compliment-before-content: "Great question! That's a really interesting point."
- ❌ Metatext about your own process: "I'll analyze this step by step."
✅ Correct behavior: Start with the substance. If a paragraph's first sentence could be deleted without losing information, delete it.
Activation scope: Apply this section when producing or editing a standalone document — any file whose primary purpose is to communicate information to a reader (README, guide, reference, spec, tutorial, explanation). Code comments are governed by Section 1. Commit messages defer to commit-hygiene.
Before drafting, identify which type of document you are writing. Each type has a distinct purpose, tone, and structure — mixing them produces documents that serve no audience well.
| Type | Purpose | Tone | Structure |
|---|---|---|---|
| Tutorial | Learning by doing | Guiding, encouraging | Step-by-step, linear, no forks |
| How-To | Solve a problem | Practical, direct | Numbered steps to a result |
| Reference | Describe the machine | Austere, precise | Tables, lists, type signatures |
| Explanation | Build understanding | Discursive, honest | Prose, diagrams, "why" chains |
A document should be one type. If you need to explain and provide reference, write two documents (or two clearly separated sections). A tutorial that drifts into reference material fails at both.
State who the reader is, either explicitly ("This guide is for developers integrating the X API") or implicitly through level of assumed knowledge. Do not write for everyone — writing for everyone serves no one. Key dimensions:
A document must not contradict itself. Before finalizing:
Write the minimum documentation that eliminates the maximum confusion. Every sentence must address the reader's information need, not the general topic. Ask: "If I remove this paragraph, does the reader lose something they need?" If not, remove it.
[!IMPORTANT] Over-documentation is itself a maintenance burden. Stale, verbose docs are worse than concise, current ones. Prefer a short document you will maintain over a comprehensive one you won't.
Present the simple, common path first. Link to edge cases, advanced configuration, and error recovery rather than interleaving them with the main flow. The reader who needs exceptions will follow the link; the reader who doesn't will thank you for not burying them.
Documentation debt is a first-class concept, parallel to technical debt:
When you encounter documentation debt, flag it explicitly. Do not silently work around it.
When editing or auditing markdown files, enforce the following structural rules. They keep documents portable across host environments and consistent in formatting.
Link integrity and portability — all markdown file cross-references must resolve from any host environment or mounting context:
[text](url).[constitution](../constitution/SKILL.md)).file:///var/home/... or file:///absolute/path/...) in any documentation, comments, or plans. They are host-specific and fail to resolve when skills or projects are copied, symlinked, or cloned.Header hierarchy — use a single <h1> (one #) per page, then nest header levels sequentially (##, ###, ...) without skipping a level.
Linting standards:
-).To check link integrity automatically, run the script at doc-audit/scripts/check_docs.py: it scans markdown files for broken local and external links.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nrdxp/predicate --plugin predicate35 skills in this plugin
/ai-auditSOP for auditing AI-generated code.
Trigger when:
- Reviewing, refactoring, or cleaning up AI-generated code to prevent regressions or hallucinated APIs.
- Prompt contains: /ai-audit, code audit, AI cleanup, common flaws.
/api-auditProtocol for auditing API surface coherence and type safety.
Trigger when:
- Evaluating API designs, interface type safety, or design elegance.
- Prompt contains: /api-audit, API surface, API coherence, type safety.
/boundaryNormative sufficiency conditions for Initial Boundary Conditions (IBCs)
and the SOP for the cheap-tier boundary refinement loop (/boundary).
Trigger when:
- Crafting, auditing, or refining a prompt/IBC destined for an expensive
(architect-class) model or an autonomous worker dispatch.
- Evaluating whether a task frame is sufficient to bound an agent walk.
- Prompt contains: /boundary, IBC, initial boundary condition, boundary
contract, sufficiency conditions, worker prompt, prompt refinement.
Other plugins' skills for the same job