| name | docs-structure |
| description | Apply Seqera docs house structural conventions to a documentation page or selection — page introductions, prerequisites, troubleshooting placement, admonitions, and other structural elements. Use when the user asks to format, clean up, standardize, restructure, or fix the structure of a docs page, or when writing a new guide/tutorial that needs to follow house format. Each structural area has its own reference file under references/. |
Structure skill
Description
This skill applies the Seqera docs house formatting conventions to a page or a
selected region. It standardizes the structural, repeatable parts of a page —
how the introduction is written, how prerequisites are presented, which
admonition syntax to use — so pages look and read consistently across the docs.
This skill is about structure, not prose quality. To strip AI
slop and tighten wording, use the docs-deslop skill; the two compose (deslop owns
voice and cuts, docs-structure owns structure). When docs-deslop runs on a Seqera page
with prerequisites or inline troubleshooting, it applies this skill's conventions.
Scope: Seqera docs (platform-cloud/, platform-enterprise_docs/, versioned
docs, fusion_docs/, wave_docs/, multiqc_docs/). Markdown/MDX pages.
When to use
Use this skill when:
- The user asks to format, clean up, standardize, or fix the structure of a page.
- Writing a new guide or tutorial that must follow house format.
- A page's structure drifts from house conventions (non-standard admonitions, a
mixed intro/prerequisites block, prerequisites as numbered steps, etc.).
Formatting areas
References split into two tiers, mirroring docs-deslop: core conventions in
references/core/ apply to every product's docs; product conventions in
references/products/ differ by product (and some don't apply to every product).
Read the reference for the area you're working on and apply its spec.
Core (universal — all products):
| Area | Reference | Covers |
|---|
| Prerequisites | references/core/prerequisites.md | The :::info[**Prerequisites**] admonition, lead-in, bullet phrasing |
| Troubleshooting (identify + format) | references/core/troubleshooting.md | What counts as troubleshooting content, how to format an entry, the move process |
Product-specific (load the detected product's file):
| Area | Reference | Covers |
|---|
| Troubleshooting placement | references/products/<product>.md | Where troubleshooting goes for that product (destination, page-naming, existing-vs-new) — or that the product has none, so leave it inline |
Troubleshooting spans both tiers: identifying and formatting an entry is
universal (core); where it goes is product-specific (products). MultiQC and
Nextflow have no troubleshooting destination in this repo — their product files
say leave it inline.
(More areas will be added over time — page introductions, admonition types,
image/asset conventions, and so on. Add a row here and a reference file when you
codify a new convention; put it in core/ if it's universal, products/ if it
differs by product.)
Process
- Read the page. Use the file the user named, the file in focus, or the
changed files in the branch. Read the whole file before editing so an in-place
change can't drop content it never saw.
- Identify the in-scope region. If the user pointed at a section or
selection, format only that. Otherwise format the whole page.
- Detect the product (only needed for product-specific areas like
troubleshooting placement). Use the same signals as
docs-deslop: the file path
(platform-cloud/, platform-enterprise_docs/, fusion_docs/, wave_docs/,
multiqc_docs/, a Nextflow context), the user's statement, or the doc's
vocabulary. When docs-deslop invokes this skill, it passes the product it
already detected — use that instead of re-detecting. For a purely core area
(prerequisites), you can skip this.
- Pick the relevant formatting areas for what's in scope, and read each
area's reference file — the
core/ file always, plus the detected product's
products/<product>.md for placement.
- Apply each area's spec with surgical Edits — touch only the region the
convention governs; leave the rest of the page byte-for-byte unchanged.
- Preserve non-prose exactly: frontmatter keys and machine-read values,
code blocks,
import/export lines, JSX/MDX components, links, and anchors.
Never drop a link, anchor, or list item — only restructure.
- Summarize: name each formatting area you applied and the change made, and
flag any judgment call (e.g. a heading rename that affects inbound anchors) for
the user to confirm.
Important notes
- Format, not prose: this skill standardizes structure. For wording and slop,
defer to
docs-deslop.
- Surgical edits: change only the regions the conventions govern.
- Preserve content: never drop a prerequisite, link, anchor, or list item.
- Ask before overwriting when a change involves a judgment call the user
should weigh in on (e.g. rewriting an introduction).