| name | write-docs |
| description | Write or update Tabler documentation pages in simple English using the current docs schema. Use when the user asks to create docs, edit docs, add new feature docs to an existing page, or standardize docs structure across any docs/content category. |
| disable-model-invocation | true |
Write Tabler Docs
Write docs directly in files (do not stop at draft mode) and follow the current Tabler documentation schema.
1. Scope and behavior
- Works for any docs page type under
docs/content/** (components, utilities, forms, layout, plugins, base, getting started, emails, illustrations, icons, index pages).
- Edit existing pages when the user asks to document new functionality in an existing component/page.
- Create new pages when needed.
- Use simple English in all prose.
2. Required language style (simple English)
- Use short sentences and common words.
- Keep one main idea per sentence when possible.
- Prefer direct verbs:
Use, Add, Set, Show.
- Avoid buzzwords and marketing filler.
- Keep paragraphs short and easy to scan.
3. Frontmatter rules
Default frontmatter (required unless user asks otherwise):
---
title: ...
summary: ...
description: ...
---
Rules:
- Keep frontmatter static YAML only.
- By default, include only
title, summary, and description.
- Add extended keys (for example
order, plugin, docs-libs, layout, redirect, related, source-scss, bootstrap-url, classnames) only when the user explicitly asks for them.
4. Documentation schema to follow
Use this section order as the default structure:
## Overview
## Installation (optional)
## Variants or ## Usage (choose one based on page type)
## Examples (optional)
## Accessibility
## SCSS variables (optional)
## Migration notes (optional)
Guidance by page type:
- Component-like pages: prefer
Variants.
- Utility or workflow pages: prefer
Usage.
- Library/package pages (for example icons, emails): keep
Installation + Usage.
- Intro/index pages: may use concise overview sections, but keep hierarchy clear and consistent.
5. Example and snippet pattern
For visual examples, use project includes:
- Wrap preview markup with:
{% capture html -%} ... {%- endcapture %}
{% include "docs/example.html" html=html %}
- Add 1-2 short sentences before each preview block to explain what the preview shows.
- Use include options when useful:
hide-code, separated, centered, vertical, raw, column, bg.
- For examples with cleaner source markup, also add:
{% capture code -%} ... {%- endcapture %}
{% include "docs/example.html" html=html code=code %}
- For icons inside examples, use:
{% include "ui/icon.html" icon="icon-name" %}
6. Workflow for each request
- Identify target file(s) in
docs/content/**.
- Read the target page and 2-3 nearby pages in the same category to match tone and conventions.
- Apply the schema from section 4.
- Write/update the page directly in file(s).
- Keep only required frontmatter by default.
- Ensure prose is in simple English.
- Verify heading hierarchy (
## then ###) and snippet validity.
7. Rules while updating existing docs
- Preserve valid existing content that is still correct.
- Add new functionality docs as focused new subsection(s), usually under
Variants, Usage, or Examples.
- Remove or rewrite only conflicting or outdated text.
- Keep naming and terms consistent across the page.
8. Quality checklist before finishing