Author a docs.linea.build page
Help create a new documentation page that follows docs.linea.build's editorial standards
from the start.
When to use
- You need to scaffold a new page or write a first draft.
- You're helping a contributor who isn't a professional writer produce content that meets
the documentation team's expectations (for example, an ecosystem partner documenting
their integration).
Inputs
Ask the user for anything they haven't already provided:
- Tab: which tab is this for? (Linea Mainnet, Lineth Stack, Protocol, Reference,
Changelog)
- Content type: concept/explanation, how-to guide, reference, or tutorial?
- Topic: what is the page about?
- File path: where should the file live? Suggest one based on the tab and topic if
the user doesn't specify (see the directory table in
README.mdx).
- Source material: what code, spec, PR, or other reference verifies the content?
Step 1: Confirm an issue exists, then load the relevant rules
Per .cursor/rules/contributor-workflow.mdc, an issue should exist for this change
before work starts. Ask the user whether one's already open; if not, point them to
CONTRIBUTING.md and the templates in .github/ISSUE_TEMPLATE/
so they can open one before you invest time scaffolding and drafting. This matters most
for ecosystem/partner contributors.
Then read these rule files before scaffolding, and apply them by reference rather than
restating them in the draft:
.cursor/rules/contributor-workflow.mdc: issue-first workflow, redirects, PR hygiene.
.cursor/rules/content-structure.mdc: tab, audience, tone, and page-structure
conventions.
.cursor/rules/editorial-voice.mdc: voice, heading style, and the [VERIFY] marker
convention.
.cursor/rules/terminology.mdc: casing, Linea vs. Lineth naming, and component
capitalization.
.cursor/rules/markdown-formatting.mdc: frontmatter, links, and file conventions.
Also check how existing pages in the same folder are structured, and match their
conventions for headings, frontmatter fields, and intro style.
Step 2: Scaffold the page
Create the file with frontmatter (title, description; no image, see
markdown-formatting.mdc) and the structure from content-structure.mdc for the content
type: an opening (no heading), then content sections, then
verified code samples, then a resources section for links. How-to and tutorial pages use
numbered steps with prerequisites listed first instead.
Step 3: Write the content
Fill in the scaffold with content based on what the user provides:
- Identify the audience for this tab (
content-structure.mdc) and write for it.
- Define jargon on first use (
editorial-voice.mdc).
- Use the correct casing for Linea/Lineth, components, and roles
(
terminology.mdc). Check /protocol/linea-vs-lineth if you're unsure which product a
claim belongs to.
- Mark anything you can't verify with
[VERIFY] rather than guessing.
- No marketing language or superlatives ("best-in-class", "powerful", "seamless").
Step 4: Verify the page is complete
Before finishing, check:
Step 5: Remind the contributor
After creating the page, remind the user to:
- Add an entry to
redirects.json if any page was moved, renamed, or removed.
- Preview locally with
npm run start.
- Run
npm run lint and npm run typecheck before opening a PR.
- Link the issue from Step 1 in the pull request description (see
CONTRIBUTING.md).
1---2name: author-doc-page3description: Scaffold or draft a new docs.linea.build page to editorial standards. Use when creating a new page, writing a first draft, or helping a contributor who isn't a professional writer produce content that meets the documentation team's expectations.4---56# Author a docs.linea.build page78Help create a new documentation page that follows docs.linea.build's editorial standards9from the start.1011## When to use1213- You need to scaffold a new page or write a first draft.14- You're helping a contributor who isn't a professional writer produce content that meets15 the documentation team's expectations (for example, an ecosystem partner documenting16 their integration).1718## Inputs1920Ask the user for anything they haven't already provided:21221. **Tab**: which tab is this for? (Linea Mainnet, Lineth Stack, Protocol, Reference,23 Changelog)242. **Content type**: concept/explanation, how-to guide, reference, or tutorial?253. **Topic**: what is the page about?264. **File path**: where should the file live? Suggest one based on the tab and topic if27 the user doesn't specify (see the directory table in28 [README.mdx](../../../README.mdx)).295. **Source material**: what code, spec, PR, or other reference verifies the content?3031## Step 1: Confirm an issue exists, then load the relevant rules3233Per `.cursor/rules/contributor-workflow.mdc`, an issue should exist for this change34*before* work starts. Ask the user whether one's already open; if not, point them to35[CONTRIBUTING.md](../../../CONTRIBUTING.md) and the templates in `.github/ISSUE_TEMPLATE/`36so they can open one before you invest time scaffolding and drafting. This matters most37for ecosystem/partner contributors.3839Then read these rule files before scaffolding, and apply them by reference rather than40restating them in the draft:4142- `.cursor/rules/contributor-workflow.mdc`: issue-first workflow, redirects, PR hygiene.43- `.cursor/rules/content-structure.mdc`: tab, audience, tone, and page-structure44 conventions.45- `.cursor/rules/editorial-voice.mdc`: voice, heading style, and the `[VERIFY]` marker46 convention.47- `.cursor/rules/terminology.mdc`: casing, Linea vs. Lineth naming, and component48 capitalization.49- `.cursor/rules/markdown-formatting.mdc`: frontmatter, links, and file conventions.5051Also check how existing pages in the same folder are structured, and match their52conventions for headings, frontmatter fields, and intro style.5354## Step 2: Scaffold the page5556Create the file with frontmatter (`title`, `description`; no `image`, see57`markdown-formatting.mdc`) and the structure from `content-structure.mdc` for the content58type: an opening (no heading), then content sections, then59verified code samples, then a resources section for links. How-to and tutorial pages use60numbered steps with prerequisites listed first instead.6162## Step 3: Write the content6364Fill in the scaffold with content based on what the user provides:6566- Identify the audience for this tab (`content-structure.mdc`) and write for it.67- Define jargon on first use (`editorial-voice.mdc`).68- Use the correct casing for Linea/Lineth, components, and roles69 (`terminology.mdc`). Check `/protocol/linea-vs-lineth` if you're unsure which product a70 claim belongs to.71- Mark anything you can't verify with `[VERIFY]` rather than guessing.72- No marketing language or superlatives ("best-in-class", "powerful", "seamless").7374## Step 4: Verify the page is complete7576Before finishing, check:7778- [ ] Frontmatter has `title` and `description`, no manual `image` field.79- [ ] Opening answers "what" and "why" in one to two sentences.80- [ ] Structure matches the content type and neighboring pages.81- [ ] Terminology and casing match `terminology.mdc` and the canonical82 `/protocol/linea-vs-lineth` page.83- [ ] Any unverified values are marked `[VERIFY]`.84- [ ] Links are relative where possible, with no `.mdx` extension, and descriptive text.85- [ ] Code samples have language tags and are placed near the bottom of the page.86- [ ] File uses lowercase and dashes, and lives in the correct tab/content-type folder.8788## Step 5: Remind the contributor8990After creating the page, remind the user to:91921. Add an entry to `redirects.json` if any page was moved, renamed, or removed.932. Preview locally with `npm run start`.943. Run `npm run lint` and `npm run typecheck` before opening a PR.954. Link the issue from Step 1 in the pull request description (see96 [CONTRIBUTING.md](../../../CONTRIBUTING.md)).