agentleFS
jmrplensjmrplens/gitlab-mcp-server/.github/skills/update-starlight-docs/SKILL.md

update-starlight-docs

Skill43 starsChanged 6 months agoMITView on GitHub

Update Astro Starlight user documentation (site/src/content/docs/) when code changes affect user-facing features. Use when: adding new tools, changing configuration, updating deployment, modifying capabilities.

1 other project uses a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Update the Astro Starlight user documentation site to reflect code changes that affect user-facing features, configuration, or behavior.

    line 8
  2. Very specific:

    Read the current Starlight docs structure: site/src/content/docs/

    line 13
  3. Very specific:

    Every .mdx file must have title and description.

    line 65
  4. Very specific:

    Must produce zero errors. Check site/dist/ for output.

    line 110
  5. Distinctive:

    Always update BOTH EN and ES pages

    line 114
  6. Distinctive:

    Keep ES translations accurate — do not leave English text in ES pages

    line 115
  7. Distinctive:

    Use Starlight components (Aside, Tabs, etc.) instead of raw HTML

    line 117
  8. Very specific:

    Do NOT modify src/content.config.ts unless adding a new content collection

    line 119

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Update Starlight Documentation

Update the Astro Starlight user documentation site to reflect code changes that affect user-facing features, configuration, or behavior.

Before Starting

  1. Identify what changed in the code that affects users
  2. Read the current Starlight docs structure: site/src/content/docs/
  3. Determine affected pages (EN and ES)

Documentation Architecture

Two documentation systems coexist:

SystemPathAudienceFormat
Developer docsdocs/Contributors, AI agentsMarkdown
User docssite/src/content/docs/End usersMDX (Starlight)

Rule: Code changes that affect user-facing behavior MUST update BOTH systems.

Steps

1. Map code changes to affected docs

Code ChangeUser Doc Pages
New MCP tooltools/overview, tools/meta-tools or tools/dynamic-tools (tools/orbit for GitLab.com Orbit tools)
New config optionconfiguration
New capabilitycapabilities/overview and the capability's own page under capabilities/, getting-started
Transport changegetting-started, operations/http-server
Error handling changeoperations/troubleshooting, operations/error-handling
Security changeoperations/security
Installation channel changethe channel page under install/ and install/overview

2. Edit EN pages first

English is the Starlight root locale, so the English pages live directly under site/src/content/docs/ (there is no en/ folder):

site/src/content/docs/
├── index.mdx          # Landing page
├── getting-started.mdx
├── configuration.mdx
├── architecture.mdx
├── capabilities/      # overview + one page per capability
├── install/           # one page per distribution channel
├── operations/        # http-server, remote-deployment, security, telemetry, troubleshooting, ...
├── tools/             # overview, meta-tools, dynamic-tools, orbit, resources-prompts
├── examples/
└── es/                # Spanish mirror of everything above

3. Edit corresponding ES pages

Mirror structure under site/src/content/docs/es/ with translated content.

4. Frontmatter requirements

Every .mdx file must have title and description; the existing pages also carry chips, datePublished and faq, which the site's checks read, so copy the shape of a neighbouring page:

---
title: "Page Title"
description: "Brief description for SEO and search"
chips:
  - text: "One short fact"
datePublished: "YYYY-MM-DD"
faq:
  - q: "A question a reader of this page asks?"
    a: "Its answer, in one or two sentences; the site renders the list where the page places <FAQ />."
---

Sidebar position is not set in frontmatter: the sidebar is the explicit sidebar array in site/astro.config.mjs, where every entry names a slug, a label and its translations.es label.

5. Use Starlight components

import { Aside, Tabs, TabItem, Card, CardGrid, Steps, FileTree, LinkCard } from '@astrojs/starlight/components';

<Aside type="tip">Helpful tip here</Aside>
<Aside type="caution">Warning message</Aside>
<Aside type="danger">Critical warning</Aside>

<Tabs>
  <TabItem label="Linux">Linux instructions</TabItem>
  <TabItem label="macOS">macOS instructions</TabItem>
  <TabItem label="Windows">Windows instructions</TabItem>
</Tabs>

<Steps>
1. First step
2. Second step
3. Third step
</Steps>

6. Build verification

cd site && pnpm run build

Must produce zero errors. Check site/dist/ for output.

Rules

  • Always update BOTH EN and ES pages
  • Keep ES translations accurate — do not leave English text in ES pages
  • A new page must be added to the sidebar array in site/astro.config.mjs (slug, label and translations.es), which keeps both locales in the same order; that array is the only reason to touch the file
  • Use Starlight components (Aside, Tabs, etc.) instead of raw HTML
  • Link between Starlight pages with relative paths (e.g., ./configuration)
  • Do NOT modify src/content.config.ts unless adding a new content collection
  • Images go in site/src/assets/ and are referenced with relative imports

Validation Checklist

  • All affected EN pages updated
  • All affected ES pages updated with translated content
  • Frontmatter (title, description, and the chips/datePublished/faq fields the neighbouring pages carry) is correct
  • New pages listed in the sidebar array of site/astro.config.mjs with their Spanish label
  • Starlight components used correctly (imports present)
  • cd site && pnpm run build succeeds with zero errors, and pnpm run lint (the site's own checks: i18n parity, links, a11y, facts) passes
  • No broken internal links between pages
  • Developer docs (docs/) also updated if applicable

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.