Documentation Writer
This skill ensures documentation stays current and accessible for non-technical users. SITE.md is the single source of truth for what a website contains.
File Location
SITE.md must be created in the project root directory (same level as package.json and src/).
project-root/ ├── SITE.md ← HERE ├── package.json ├── src/ └── ...
Core Principle
Update documentation immediately after every change. Non-developers rely on SITE.md to understand their site. Outdated docs cause confusion and frustration.
Automatic Triggers
This skill should be invoked automatically after:
- •Any file is created in
src/routes/ - •Any file is edited in
src/routes/orsrc/lib/components/ - •Colors or fonts are changed in
app.cssor layout files - •Images are added to
static/ - •The navigation or footer is modified
SITE.md Structure
# [Site Name] ## What's On Your Site ### Pages - **Homepage** (`/`) - What visitors see first. Contains [describe sections]. - **About** (`/about`) - Information about [topic]. ### Shared Elements - **Navigation bar** - Links to [list pages]. Appears on every page. - **Footer** - Contains [describe content]. ## Recent Changes - [Date]: [What changed in plain English] - [Date]: [What changed in plain English] ## Quick Guide - To change the site name: [simple instruction] - To add a new page: [simple instruction] - To change colors: [simple instruction]
Writing Style Rules
- •No jargon: Say "the main page" not "the root route"
- •No code terms: Say "the top menu" not "the nav component"
- •Be specific: Say "Added a blue Contact button" not "Updated CTA"
- •Use familiar words: "section", "button", "link", "picture", "menu"
- •Explain what users see: Describe visual elements, not implementation
When to Update
Update SITE.md after:
- •Creating or deleting a page
- •Adding or removing sections
- •Changing navigation or footer
- •Modifying colors, fonts, or layout
- •Adding images or media
- •Any visible change to the site
Example Updates
Good:
Added a "Contact Us" section at the bottom of the homepage with an email form.
Bad:
Implemented ContactForm component with $state for form handling.
Good:
Changed the button colors from blue to green across the site.
Bad:
Updated primary color CSS variable in app.css.
After Every Task
- •Make the code changes
- •Open SITE.md
- •Update the relevant section
- •Add entry to "Recent Changes" with today's date
- •Tell the user what changed in simple terms