Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(style): add skill for applying docs style (#7907)

Adrian Kahali031972f94edd
diff --git a/.agents/skills/docs-style/SKILL.md b/.agents/skills/docs-style/SKILL.md
new file mode 100644
index 0000000000..f11b4f93e3
--- /dev/null
+++ b/.agents/skills/docs-style/SKILL.md
@@ -0,0 +1,88 @@
+---
+name: docs-style
+description: Write, edit, and review Infisical documentation to the house style guide. Use whenever creating or changing any file under docs/ (.mdx pages, snippets, docs.json navigation), when asked to document a feature, write or update a guide, or review a docs diff or pull request. Covers the deterministic Vale lint plus the sentence-level review pass Vale cannot check.
+---
+
+# Infisical docs style
+
+`docs/STYLE_GUIDE.md` is the source of truth. Read it before writing. This skill is the
+procedure for applying it, not a second copy of the rules.
+
+Two things to know up front:
+
+- `make lint-docs-branch` checks maybe a third of the guide. Everything in section 5 and
+ section 11 is a judgment call, and those are the rules AI drafts break by default.
+- Vale cannot see prose indented four or more spaces inside a Mintlify component, which is
+ roughly half of this repo. A clean run says nothing about a nested page.
+
+## Before you write
+
+Ask the engineer for the facts before drafting. The product knowledge is the part only they
+have, and a draft written without it reads plausible and says nothing.
+
+Then use the model where it earns its place. Structure, grouping, ordering, and spotting the
+section that is missing are worth delegating. Sentences are not. A page whose outline came
+from a model and whose prose came from the engineer beats a fully generated draft every time,
+so offer that split rather than assuming a full draft is wanted.
+
+## Writing
+
+Follow `docs/STYLE_GUIDE.md` sections 1 to 4 and 10 for what belongs on the page: context
+before mechanics, prerequisites in a `## Prerequisites` heading rather than a callout, the
+right component for the shape of the content, and the page structure for its type.
+
+Then run the review pass below over your own draft before handing it over. Every rule in it
+applies to a first draft, including yours.
+
+## Reviewing
+
+Work in this order. Structure first, because a rewritten sentence in the wrong section is
+wasted work.
+
+**1. Run the linter.** `make lint-docs-branch` from the repository root. It exits non-zero
+only on errors, so read the printed warnings and suggestions too. `Infisical.UIActions` and
+`Infisical.Contractions` never affect the exit code yet, and they are the two rules most
+likely to have something to say.
+
+**2. Check the structure, then leave it alone.** Headings, ordering, and section breaks are
+usually sound, in a human draft and a model draft alike. Confirm the page reads top to bottom,
+that a reader landing cold is oriented in the first few sentences, and that nothing was
+inserted without connecting it to what surrounds it. If the outline holds, accept it and move
+on.
+
+**3. Rewrite the sentences.** This is where the work is. Take `docs/STYLE_GUIDE.md` section 5
+and check every sentence against it. In practice these five catch the most:
+
+- A concept given a human verb. Nothing says, knows, understands, or wants anything.
+- Two sentences making the same point in different words. Keep the one with new information.
+- A definition that needs a second clause to explain its first.
+- A transitive verb with no object, as in "the agent requests". Read the second half of every
+ long sentence on its own; a verb left with nothing to act on is usually a sentence that lost
+ its tail in an edit, and it hides a detail nobody settled.
+- An abstract construction standing in for a mechanism the writer may not have known.
+
+Then read every sentence out loud. If you would not say it to a colleague standing next to
+you, rewrite it. That single test catches most of the rest.
+
+**4. Check the formatting Vale cannot see.** Section 11, none of it machine-checked:
+
+- Bold on a word that is not on screen. `**Note**:`, `**important**`, or a whole bolded
+ sentence is emphasis, and the prose should carry it instead. A `**Label:**` opening a list
+ item is a label, and fine.
+- A button or field name in quotes or a code span rather than bold: `Click 'Submit'`,
+ `` Select `SQL Database` ``. Code spans are for code, paths, keystrokes, and literal values.
+- A button or field name with no markup at all, which is the case no pattern can find.
+
+**5. Report, then offer to apply.** One finding per line as `path/to/file.mdx:12`, the sentence
+as written, and the rewrite. Group them by file. Then ask once before editing, for the whole
+set.
+
+Do not silently rewrite an engineer's prose. Their phrasing usually reads more like a person
+talking than a replacement would, and the question worth putting to them is whether they would
+have written the sentence themselves.
+
+## When Vale is wrong
+
+`docs/CONTRIBUTING.MD` covers adding a word to the vocabulary, enforcing a spelling, and
+suppressing a rule in place with `{/* vale Infisical.RuleName = NO */}`. Suppress a rule only
+where it is genuinely wrong about a specific line, never to quiet a page.
diff --git a/AGENTS.md b/AGENTS.md
index 5b9085d52d..98d213e2d5 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -14,9 +14,13 @@ Some of it needs judgment rather than a mechanical check. The deadlock rules can
## Documentation
-When writing or editing documentation in `docs/`, follow the [Documentation Style Guide](docs/STYLE_GUIDE.md). It covers writing for users (not implementers), Mintlify component usage, cross-referencing, page structure, and more.
+**Use the `docs-style` skill for any work under `docs/`** (`.agents/skills/docs-style/`). It carries the procedure for the [Documentation Style Guide](docs/STYLE_GUIDE.md), including the sentence-level review pass Vale cannot check.
-Run `make lint-docs-branch` after any change under `docs/` (or `make lint-docs` for the whole site; the `Check docs style` CI check runs the branch variant). It runs [Vale](https://vale.sh) over the docs and enforces the mechanical half of the style guide. A clean run is not a substitute for reading the guide: the judgment calls it cannot check are the ones that matter most. Vale cannot see prose indented inside Mintlify components, so a clean run is not evidence that nested content was checked.
+If the user wrote or edited the docs prose themselves, don't just accept it. Tell them the `docs-style` skill can run the review pass over their changes, and offer to run it.
+
+The style guide covers writing for users (not implementers), Mintlify component usage, cross-referencing, page structure, the sentence-level writing rules in section 5, and the bolding and UI conventions in section 11.
+
+Run `make lint-docs-branch` after any change under `docs/` (or `make lint-docs` for the whole site; the `Check docs style` CI check runs the branch variant). It runs [Vale](https://vale.sh) over the docs and enforces the mechanical half of the style guide. A clean run is not a substitute for reading the guide: the judgment calls it cannot check are the ones that matter most. Vale cannot see prose indented inside Mintlify components, so a clean run is not evidence that nested content was checked, and two rules report below error level so they never change the exit code.
## UI Development
diff --git a/CLAUDE.md b/CLAUDE.md
index b72aa37c38..459f9074ba 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -78,9 +78,13 @@ The v3 visual system (colors, typography, components, layout) and product voice/
### Documentation
-When writing or editing documentation in `docs/`, follow the [Documentation Style Guide](docs/STYLE_GUIDE.md). It covers writing for users (not implementers), Mintlify component usage, cross-referencing, page structure, and more.
+**Use the `docs-style` skill for any work under `docs/`** (`.agents/skills/docs-style/`). It carries the procedure for the [Documentation Style Guide](docs/STYLE_GUIDE.md): what belongs on a page, and the sentence-level review pass Vale cannot check.
-Run `make lint-docs` after any change under `docs/`. It runs [Vale](https://vale.sh) over the docs and enforces the mechanical half of the style guide: sentence case in headings and frontmatter titles, product and vendor spellings, spelling against a curated vocabulary, `$` prompts in code blocks, and em dash density. See [docs/CONTRIBUTING.MD](docs/CONTRIBUTING.MD) for how to extend the vocabulary or suppress a rule. `make lint-docs-branch` runs the same rules over only the `.mdx` files the branch touched. The `Check docs style` GitHub workflow runs that same script, so local and CI agree by construction. Note that Vale cannot see prose indented four or more spaces inside components -- roughly half of this repo -- and reports nothing about what it skipped, so a clean run does not mean a nested page was checked.
+If the user wrote or edited the docs prose themselves, don't just accept it. Tell them the `docs-style` skill can run the review pass over their changes, and offer to run it.
+
+The style guide covers writing for users (not implementers), Mintlify component usage, cross-referencing, page structure, the sentence-level writing rules in section 5, and the bolding and UI conventions in section 11.
+
+Run `make lint-docs-branch` after any change under `docs/`. It runs [Vale](https://vale.sh) over the docs and enforces the mechanical half of the style guide: sentence case in headings and frontmatter titles, product and vendor spellings, spelling against a curated vocabulary, `$` prompts in code blocks, and em dash density. See [docs/CONTRIBUTING.MD](docs/CONTRIBUTING.MD) for how to extend the vocabulary or suppress a rule. It lints only the `.mdx` files the branch touched; `make lint-docs` checks every page. The `Check docs style` GitHub workflow runs that same script, so local and CI agree by construction. `Infisical.UIActions` (click/tap where the verb should be select) and `Infisical.Contractions` report at warning and suggestion level, so they never change the exit code -- read the printed output, not just the status. Note that Vale cannot see prose indented four or more spaces inside components -- roughly half of this repo -- and reports nothing about what it skipped, so a clean run does not mean a nested page was checked.
### Auth & Permissions
diff --git a/docs/.vale/styles/Infisical/Contractions.yml b/docs/.vale/styles/Infisical/Contractions.yml
new file mode 100644
index 0000000000..287c8b75ab
--- /dev/null
+++ b/docs/.vale/styles/Infisical/Contractions.yml
@@ -0,0 +1,28 @@
+extends: substitution
+message: "Use '%s' instead of '%s'."
+level: suggestion
+link: https://github.com/Infisical/infisical/blob/main/docs/STYLE_GUIDE.md#use-contractions
+ignorecase: true
+vocab: false
+nonword: true
+swap:
+
+ '(?<!\b(?:in|on|at|around|inside|behind|within|under|underneath|above|below|beyond|from|with|for|by|near|through|alongside|beside)\s)\bit is\b(?! not)(?!\.)(?![,;)])(?!\s*$)': "it's"
+ '\byou will\b(?! not)(?![,;)])(?!\s*$)': "you'll"
+ '\byou are\b(?! not)(?![,;)])(?!\s*$)': "you're"
+ '\bwe are\b(?! not)(?![,;)])(?!\s*$)': "we're"
+ '\bthey are\b(?!\.)(?![,;)])(?!\s*$)': "they're"
+ '\bcannot\b': "can't"
+ '\bdo not\b': "don't"
+ '\bdoes not\b': "doesn't"
+ '\bdid not\b': "didn't"
+ '\bis not\b': "isn't"
+ '\bare not\b': "aren't"
+ '\bwas not\b': "wasn't"
+ '\bwere not\b': "weren't"
+ '\bhas not\b': "hasn't"
+ '\bhave not\b': "haven't"
+ '\bwill not\b': "won't"
+ '\bshould not\b': "shouldn't"
+ '\bcould not\b': "couldn't"
+ '\bwould not\b': "wouldn't"
diff --git a/docs/.vale/styles/Infisical/UIActions.yml b/docs/.vale/styles/Infisical/UIActions.yml
new file mode 100644
index 0000000000..5d5290b2c5
--- /dev/null
+++ b/docs/.vale/styles/Infisical/UIActions.yml
@@ -0,0 +1,16 @@
+extends: existence
+message: "Use 'select' instead of '%s'. It covers mouse, touch, and keyboard."
+level: warning
+link: https://github.com/Infisical/infisical/blob/main/docs/STYLE_GUIDE.md#select-not-click-or-tap
+ignorecase: true
+vocab: false
+# `right-click` and `double-click` name device gestures that have no "select"
+# equivalent, so they keep their own verbs. The lookbehinds sit on the tokens
+# rather than in `exceptions:` because the Mintlify CI runner predates Vale
+# 3.15, where an exception that only contains the match is ignored.
+#
+# A `click` handler or `onClick` prop is hidden already: `IgnoredScopes` covers
+# inline code, and fenced blocks never reach a text scope.
+tokens:
+ - '(?<!right-)(?<!double-)click(?:s|ed|ing)?(?: on)?'
+ - 'tap(?:s|ped|ping)?'
diff --git a/docs/CONTRIBUTING.MD b/docs/CONTRIBUTING.MD
index 8ab346d0be..d7d509d19a 100644
--- a/docs/CONTRIBUTING.MD
+++ b/docs/CONTRIBUTING.MD
@@ -8,6 +8,32 @@
- Cross-referencing related concepts
- Using Mintlify components (`<Steps>`, `<Tabs>`, `<Card>`, etc.)
- Page structure and formatting
+- Sentence-level writing rules, and the bolding and UI conventions
+
+## Using the docs-style skill
+
+Vale checks roughly a third of the style guide. The rest needs a reviewer.
+
+The `docs-style` skill in `.agents/skills/docs-style/` is that reviewer. Claude loads it on its
+own for any work under `docs/`, or you can invoke it explicitly with `/docs-style`. It runs the linter,
+checks the page structure, then goes sentence by sentence and reports each finding as
+`file:line` with a rewrite before changing anything.
+
+It's worth running on your own prose too, not only on a draft a model wrote.
+
+## Working from an AI draft
+
+Structure survives a model draft. Sentences do not, and that is where reviewers spend their
+time. The order that avoids it:
+
+1. **Brain dump first, in your own words.** Get everything you know onto the page before any
+ tool touches it. Write in whichever language is faster for you. The product knowledge is the
+ part only you have, and accuracy matters more than phrasing at this stage.
+2. **Use the model for structure.** Grouping, ordering, and spotting the section you forgot are
+ what it is good at. Ask it for headings and an outline.
+3. **Write the prose yourself.** Your own writing with a spell check, or a light review pass,
+ usually reads more like a person talking. Before you submit, go through the page and ask:
+ would I have written this sentence? Rewrite anywhere the answer is no.
## Linting prose
@@ -42,7 +68,22 @@ What it checks: sentence case in headings and in the `title`/`sidebarTitle` fron
fields, the enforced spellings in
`docs/.vale/styles/Infisical/Terminology.yml`, spelling against the vocabulary in
`docs/.vale/styles/config/vocabularies/Infisical/`, `$` prompts that break copy-paste,
-placeholders like `foo`, and em dashes piling up in one paragraph.
+placeholders like `foo`, em dashes piling up in one paragraph, "click" and "tap" where the
+verb should be "select", and the full forms of common contractions.
+
+**`Infisical.UIActions` and `Infisical.Contractions` do not fail the run yet.** They report at
+warning and suggestion level, because the existing pages carry 561 and 1,229 of them
+respectively and a blocking rule would fail every pull request that touches one. The target is
+error level for both, by this route:
+
+1. The rules land non-blocking, so the count only goes down as people touch pages.
+2. A dedicated pull request per rule sweeps the corpus. Neither sweep is safe to apply
+ mechanically. "Click" as a noun and the deliberately formal phrasing in some reference
+ tables both need a person, so this is a reviewed pass, not `vale --fix`.
+3. Flip `level:` to `error` in the rule file once the count is zero.
+
+Nothing checks the two bolding rules in section 11 of the style guide, and nothing will.
+Whether a noun is a button that should be bold needs someone who knows the product.
**Adding a word.** If Vale flags a term that is spelled correctly, add it to the vocabulary:
@@ -67,6 +108,15 @@ to see inside code blocks; they behave correctly locally, but treat their CI beh
unverified. Anything that needs a whole-file view is safer as a separate check than as a Vale
rule.
+**Write rules here rather than installing a style package.** The Google and Microsoft styles
+that `vale sync` can fetch cover some of the same ground, and `Microsoft.UIVerbs` is close to
+`Infisical.UIActions`. Installing one costs more than it saves. `Packages` requires a
+`vale sync` that Mintlify's runner does not perform, so a config naming a style it has not
+downloaded breaks that check; CI pins Vale by version and verified checksum, which a synced
+package cannot match; and enabling two rules out of forty-six means a long disable list that
+silently grows every time the package adds a rule. Copy the mechanics that are worth having and
+own the file.
+
**Enforcing a spelling.** Add a swap to `Infisical/Terminology.yml`. List only forms that are
always wrong, and remember the lowercase spelling of a product name is usually its binary,
package, or API group.
diff --git a/docs/STYLE_GUIDE.md b/docs/STYLE_GUIDE.md
index 421b5573ab..32e40bcb17 100644
--- a/docs/STYLE_GUIDE.md
+++ b/docs/STYLE_GUIDE.md
@@ -15,7 +15,9 @@ This guide defines how to write user-facing documentation for Infisical.
9. **Be consistent** — Use the same terms throughout.
10. **Structure by purpose** — Guides, concepts, overviews, and references have different shapes.
11. **Use sentence case** — Write page titles, sidebar titles, and headings in sentence case.
-12. **Run the linter** — `make lint-docs` checks the mechanical rules in this guide.
+12. **Rewrite the sentences** — Say it once, in your own voice. Read every sentence out loud.
+13. **Bold is for UI** — Bold marks buttons, menus, and fields. Use "select", not "click" or "tap".
+14. **Run the linter** — `make lint-docs-branch` checks the mechanical rules in this guide.
---
@@ -254,6 +256,90 @@ Documentation should read like instructions from a knowledgeable colleague: dire
- Keep sentences and paragraphs concise
- Explain jargon on first use
+### Don't give human verbs to things that aren't human
+
+A path, a policy, or a property doesn't say, know, understand, or want anything. Name the actor and the behavior.
+
+**Instead of:** A grant on `/payments` says nothing about `/payments/keys`.
+
+**Write:** If you have a role on `/payments`, that role does not automatically apply to `/payments/keys`.
+
+### Say what a thing is, in one clause
+
+Define a field or a concept plainly. If a second clause has to explain the first, the first clause isn't doing any work.
+
+**Instead of:** The `scope` property defines the boundary within which a grant is considered valid.
+
+**Write:** `scope` is the folder path the grant applies to.
+
+### Say it once
+
+Cut sentences that restate the previous sentence in new words. Keep the one that carries new information.
+
+**Instead of:** Access is granted per folder. Each folder carries its own access list. Because access is defined at the folder level, permissions on one folder do not carry over to another.
+
+**Write:** Access is granted per folder, so permissions on one folder don't carry over to another.
+
+### Keep pronouns next to what they refer to
+
+If a reader has to scan backwards to work out what "it" or "they" points at, repeat the noun. Repeating a word costs less than a reparse.
+
+**Instead of:** Add the service token to the project, then open the environment settings and confirm that it is active.
+
+**Write:** Add the service token to the project, then open the environment settings and confirm the token is active.
+
+### Give every transitive verb its object
+
+A verb like request, create, return, send, or apply has to say what. Drop the object and the reader has to guess, and the gap often marks a detail the writer had not settled yet.
+
+**Instead of:** You create the service in your Infisical dashboard, and the agent requests.
+
+**Write:** You create the service in your Infisical dashboard, and the agent requests credentials for it.
+
+This usually happens to a sentence that was edited after it was written, losing its tail. Read the second half of every long sentence on its own and check that each verb in it has something to act on.
+
+### Lead with the behavior, not a label for it
+
+Calling something an exception, a special case, or a caveat tells the reader to brace without telling them what for. State the behavior first.
+
+**Instead of:** Folder access is the exception.
+
+**Write:** Folder access doesn't inherit. A role on a parent folder gives no access to the folders inside it.
+
+### Split mid-sentence detours
+
+A clause wedged into the middle of a sentence makes the eye jump back to pick up the thread. Split the sentence, or move the condition to the front.
+
+**Instead of:** The menu adds temporary access and once a grant exists removes folder access.
+
+**Write:** The same menu lets you add temporary access or remove access.
+
+### Name what actually happens
+
+Replace an abstract construction with the system, the input, and the result. Abstraction hides whether the writer knew the mechanism.
+
+**Instead of:** Permissions are evaluated against the resource hierarchy.
+
+**Write:** Infisical checks the exact folder path you asked for, and only that path.
+
+### Use contractions
+
+Write "it's", "don't", "you'll", and "can't". Full forms read stiff and slow the sentence down for no gain.
+
+**Instead of:** It is not possible to recover a deleted secret. You will need to create it again.
+
+**Write:** You can't recover a deleted secret, so you'll need to create it again.
+
+Vale flags the common full forms as suggestions.
+
+### Read it out loud
+
+Read every sentence out loud before you submit it. If you wouldn't say it to a colleague standing next to you, rewrite it. This one test catches most of the rules above.
+
+**Instead of:** Access removal is reflected within the propagation window.
+
+**Write:** Access is removed within 60 seconds.
+
### Use sentence case for titles and headings
Always use sentence case for:
@@ -422,6 +508,36 @@ Use the structure that best serves the reader for that type of content.
---
+## 11. Formatting and UI conventions
+
+### Bold is for UI, never emphasis
+
+Bold marks something the reader has to find on screen: a button, a menu item, a tab, or a field name. If the prose needs bold to land, rewrite the prose.
+
+A bold label that opens a list item or a paragraph is a label rather than emphasis, so `**Prerequisites:**` is fine. An inline `**Note**:` prefix is not. Use a `<Note>` callout instead.
+
+**Instead of:** This is **important**: rotation only applies to **active** secrets.
+
+**Write:** Rotation only applies to active secrets. Select **Save** to apply the change.
+
+### Format UI labels as bold, not quotes or code
+
+A button, tab, or field name goes in bold. Quotes and code spans are for code, paths, keystrokes, and literal values.
+
+**Instead of:** Click 'Submit', then navigate to `Personal Settings`.
+
+**Write:** Select **Submit**, then go to **Personal settings**.
+
+### Select, not click or tap
+
+Use "select" for any interaction with a control. It covers mouse, touch, and keyboard, and assumes nothing about the reader's device. Gestures with no "select" equivalent keep their own verbs: `right-click` and `double-click`.
+
+**Instead of:** Click the three dot menu, then tap **Add temporary access**.
+
+**Write:** Select the three dot menu, then select **Add temporary access**.
+
+---
+
## 12. What Vale enforces
Some of this guide is checked by [Vale](https://vale.sh). Run `make lint-docs-branch` from
@@ -434,13 +550,26 @@ run is not evidence that a nested page was checked. See `docs/CONTRIBUTING.MD` f
Vale covers the mechanical rules only: sentence case in headings and in the `title` and
`sidebarTitle` fields, consistent product and vendor spellings, spelling against a curated
-vocabulary, `$` prompts in code blocks, placeholder names like `foo`, and more than two em
-dashes in one paragraph. The `description` frontmatter field is not checked automatically --
-watch for it in review.
+vocabulary, `$` prompts in code blocks, placeholder names like `foo`, more than two em
+dashes in one paragraph, "click" and "tap" where the verb should be "select", and the full
+forms of common contractions. The `description` frontmatter field is not checked
+automatically -- watch for it in review.
+
+Two of those rules do not fail the run yet. `Infisical.UIActions` reports at warning level and
+`Infisical.Contractions` at suggestion level, because the existing pages carry several hundred
+of each and a blocking rule would fail every pull request that touches them. Both are on their
+way to error level once the corpus is clean, so fix them on the pages you touch. Read the
+printed output, not just the exit code.
+
+Nothing checks the two bolding rules in section 11. Whether a given noun is a button that
+should be bold, or prose that should not, needs a reader who knows the product.
Everything else here -- providing context, writing for users, cross-referencing, choosing the
-right component, page structure -- is a judgment call that only a reviewer can make. A clean
-Vale run means nothing was mechanically wrong, not that the page is good.
+right component, page structure, and every sentence-level rule in section 5 -- is a judgment
+call that only a reviewer can make. A clean Vale run means nothing was mechanically wrong, not
+that the page is good.
+
+Run the `docs-style` skill to get the judgment half checked as well.
-See `docs/CONTRIBUTING.MD` for how to add a word to the vocabulary, enforce a new spelling,
-or suppress a rule where Vale is wrong.
+See `docs/CONTRIBUTING.MD` for how to invoke that skill, add a word to the vocabulary, enforce
+a new spelling, or suppress a rule where Vale is wrong.