---
name: anomalyco-document-component
description: "Steps to add a new component to the SST docs."
license: "MIT"
metadata:
  decimalai-skill-id: "4f113cf3-5b04-49d8-be50-d78d67553d85"
  decimalai-version-id: "76586bd8-5a06-44d3-bd91-6a8c3ea3f941"
  decimalai-version: "1"
  decimalai-body-sha256: "569cdd434ae8a811e9eb102aba5a43667651a9b082e1aacdbdc0b74dd28df666"
  decimalai-name: "anomalyco/document-component"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "documentation"
  decimalai-source: "https://app.decimal.ai/s/anomalyco-document-component@1/SKILL.md"
---
# Document Component

Steps to add a new component to the SST docs.

1. Register in docs generator
   - Add the component `.ts` path to `entryPoints` in `www/generate.ts`

2. Add matching public getters
   - Ensure every property returned by `getSSTLink()` has a corresponding public getter on the class
   - The generator crashes otherwise because `renderLinks()` looks for a getter with the same name

3. Analyze docs for relevant places to link the component
   - Search existing guides (e.g. `cloudflare.mdx`) and component overviews for lists of related components
   - Add the new component link where appropriate

4. Add to Astro sidebar
   - Add the generated doc slug to the appropriate section in `www/astro.config.mjs`
   - Follow the existing visual ordering: components are sorted from shortest to longest name (least to most characters)

5. Generate docs
   - Run `bun run docs:generate`
