examples
Installation
SKILL.md
Examples (*.examples.ts)
You MUST review @projects/site/src/docs/internal/guidelines/examples.md before making any changes to example files.
When to Use This Skill
- Creating new
*.examples.tsfiles for components - Adding or updating example templates within existing example files
- Reviewing example naming conventions and structure
- Writing or updating
@summaryJSDoc comments for examples
Key Principles
- PascalCase Naming: Use PascalCase for example names (e.g.,
Default,StatusFlat,FormSubmit) - Concise Names: Keep example names to 1-3 words maximum, describing what the example shows
- Required @summary: Every example must include a
@summaryJSDoc comment explaining what, why, when, and how - Stateless Templates: Examples should be stateless HTML templates demonstrating UI patterns