skills/angular-awesome-docs/SKILL.md
Generate, update, and maintain documentation for Angular Awesome components. Use when creating or updating rules.md, example.md, or toast/component docs, running the doc generator (generate-docs.js), updating the CHANGELOG.md, updating the components index, or syncing version badges across the docs site.
npx skillsauth add gedmarc/angular-awesome angular-awesome-docsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Maintain the docs pipeline: source markdown → generated HTML → changelog.
src/directives/<name>/<name>.rules.md ──┐
src/directives/<name>/<name>.example.md ──┤
docs/includes/template.html ──┼──→ node docs/generate-docs.js ──→ docs/components/<name>.html
docs/includes/components-list-template.html ─┘ ──→ docs/components.html
<name>.rules.mdAuthoritative API documentation. Structure:
# <ComponentName>
<One-line description extracted by generate-docs.js>
## Overview
<Detailed description — extracted as componentOverview>
## Getting Started
<Basic setup instructions>
## API Reference
<Inputs, Outputs, Methods, Slots — extracted as apiSection>
## Styling
<CSS custom properties, CSS parts — extracted as stylingSection>
Key: The doc generator extracts sections by heading. ## API Reference and ## Styling are parsed into separate page sections. The first paragraph after # Title becomes the subtitle.
<name>.example.mdRunnable code examples. Structure:
# <Name> Examples
## Basic Usage
\`\`\`html
<wa-name>content</wa-name>
\`\`\`
## Variants
\`\`\`ts
// TypeScript usage example
\`\`\`
Rendered as HTML via marked and inserted into the Examples section.
node docs/generate-docs.js
This:
src/directives/*/ for <name>.rules.md and <name>.example.mdrules/generative/frontend/webawesome/<name>.rules.md if local rules missingdocs/includes/template.html placeholdersdocs/components/<name>.htmldocs/components.html (component index)| Placeholder | Source |
|-------------|--------|
| PAGE_TITLE | Component name (camelCase, capitalized) |
| PAGE_SUBTITLE | First paragraph from rules.md |
| PAGE_CONTENT | Full assembled sections |
| {{COMPONENT_NAME}} | camelCase component name |
| {{COMPONENT_EXAMPLES}} | Rendered example markdown |
| {{COMPONENT_API}} | Rendered API Reference section |
| {{COMPONENT_STYLING}} | Rendered Styling section |
| {{COMPONENT_CARDS}} | Component index cards (components.html) |
Global badge in docs/includes/template.html:
<span class="version-badge">synced with Web Awesome 3.3.x</span>
Update when bumping the Web Awesome version alignment.
Format: Keep a Changelog + SemVer.
## [X.Y.Z] - YYYY-MM-DD
### Added
- New component wrappers...
### Changed
- Migration/breaking changes...
### Notes
- Breaking change callouts...
Add entries under the current version section. Create a new section only for new releases.
docs/components.html)Auto-generated from docs/includes/components-list-template.html. Categories are defined in generate-docs.js:
const componentCategories = {
'toast': 'feedback',
'button': 'input',
'dialog': 'feedback',
// ...
};
Add new components to this map when they don't match an existing category.
<name>.rules.md has Overview, API Reference, Styling sections<name>.example.md has runnable code snippetsnode docs/generate-docs.js succeeds without errorsdocs/components/<name>.html renders correctlydocs/components.html indexdevelopment
Use Angular Awesome wrapper directives for Web Awesome web components in Angular 20+ projects. Trigger when tasks mention wa-* components (wa-button, wa-input, wa-dialog, wa-toast, wa-select, wa-checkbox, etc.), Angular Awesome directives, Web Awesome Angular integration, component variants/appearance/size tokens, slot projection, form control binding, or angular-awesome imports. Covers component usage, layout utilities, services (toast), theming, and accessibility.
development
Theme and style Angular Awesome components using Web Awesome design tokens, CSS custom properties, CSS parts, variant/appearance/size tokens, and layout utilities. Use when customizing component appearance, applying brand colors, overriding default styles, using CSS shadow parts, or configuring layout directives (cluster, stack, grid, gap, align, flank, frame, split).
development
Write and maintain tests for Angular Awesome wrapper directives, components, and services. Use when creating spec files for wa-* components, testing form control integration, testing event emission, testing toast/service behavior, running headless or BrowserStack tests, or debugging test failures in Angular Awesome.
development
Create a new Angular Awesome wrapper directive or component for a Web Awesome web component. Use when adding a new wa-* component wrapper, scaffolding a directive with its spec/rules/example files, wiring it into public-api.ts, updating the changelog, and regenerating docs. Covers the full end-to-end flow from llms.txt API extraction through to build verification.