spectrum-web-components / rules
adobe/spectrum-web-components/.cursor/rules/contributor-doc-update.mdc
Useful for updating auto-generated navigation and validating links in the contributor docs
Cursor rule1.5k starsChanged today
What's in it
- Contributor docs navigation and link validation
- When to run the nav script
- What to do
- If the instructions file is missing
- Quick reference
--- description: Useful for updating auto-generated navigation and validating links in the contributor docs globs: CONTRIBUTOR-DOCS/** alwaysApply: false --- <!-- GENERATED by .ai/scripts/sync.js from .ai/rules/contributor-doc-update.md. Do not edit. Edit the source and run `yarn ai:sync`. --> # Contributor docs navigation and link validation ## When to run the nav script **1. When the user asks** for any of the following: - Update contributor docs navigation / nav / TOC / breadcrumbs - Regenerate contributor docs - Validate or verify links in contributor docs - Fix broken links in contributor docs - CONTRIBUTOR-DOCS or contributor docs with "update", "nav", "links", or "verify" **2. When you change CONTRIBUTOR-DOCS structure or content:** - Add, remove, rename, or move files or folders under `CONTRIBUTOR-DOCS/` - Change document H1, H2, or H3 headings ## What to do 1. **Run the nav script** from the contributor docs script folder (from project root): ```bash cd CONTRIBUTOR-DOCS/01_contributor-guides/07_authoring-contributor-docs node update-nav.js ``` 2. **Confirm** the script completes without errors. 3. **Fix any link verification errors** reported by the script (fix straightforward cases; consult the user for ambiguous ones). 4. **Report results** to the user (files updated, link counts, any remaining issues). **Skill:** For full Operator and Maintainer workflows, use the contributor-docs-nav skill (`.ai/skills/contributor-docs-nav/SKILL.md`); it points to the full instructions below. Full instructions: `.ai/skills/contributor-docs-nav/references/ai-agent-instructions.md` (Role 1: Operator). ## If the instructions file is missing If the file above is not found: 1. Search for `**/ai-agent-instructions.md` and find the one under `.ai/skills/contributor-docs-nav/references/`. 2. Read it to confirm it contains the nav update instructions. 3. Update this rule with the correct path, inform the user, then run the nav process. ## Quick reference - Script updates breadcrumbs, TOC, and validates all links (~20–200ms for the tree). - Fix broken links automatically when the fix is clear; ask the user when the target is gone or intent is unclear.
More agent context in adobe/spectrum-web-components
12 other files this repository gives its agents.
Cursor rule
- .cursor/rules/accessibility-migration-analysis.mdc
- .cursor/rules/component-readme.mdc
- .cursor/rules/consumer-migration-guide.mdc
- .cursor/rules/memory-agnostic-lessons.mdc
- .cursor/rules/memory-css-styling-lessons.mdc
- .cursor/rules/stories-documentation.mdc
- .cursor/rules/stories-format.mdc
- .cursor/rules/styles.mdc
- .cursor/rules/text-formatting.mdc
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

