Comprehensive writing guide for Angular documentation (adev). Covers Google Technical Writing standards, Angular-specific markdown extensions, code blocks, and components. Use when authoring or reviewing content in adev/src/content.
80
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
This skill provides comprehensive guidelines for authoring content in adev/src/content. It combines Google's technical writing standards with Angular-specific markdown conventions, components, and best practices.
CONTRIBUTING.md or similar).Use the appropriate language identifier for syntax highlighting:
angular-ts when TypeScript code examples contain inline templates.angular-html for Angular templates.ts for plain TypeScript.html for plain HTML.shell or bash.mermaid.You can enhance code blocks with attributes in curly braces {} after the language identifier:
header="Title": Adds a title to the code block.linenums: Enables line numbering.highlight="[1, 3-5]": Highlights specific lines.hideCopy: Hides the copy button.prefer: Marks code as a preferred example (green border/check).avoid: Marks code as an example to avoid (red border/cross).Example:
```angular-ts {header:"My Component", linenums, highlight="[2]"}
@Component({
selector: 'my-app',
template: '<h1>Hello</h1>',
})
export class App {}
```<docs-code> ComponentFor more advanced code block features, use the <docs-code> component:
path: Path to a source file (e.g., adev/src/content/examples/...).header: Custom header text.language: Language identifier (e.g., angular-ts).linenums: Boolean attribute.highlight: Array of line numbers/ranges (e.g., [[3,7], 9]).diff: Path to diff file.visibleLines: Range of lines to show initially (collapsible).region: Region to extract from source file.preview: Boolean. Renders a live preview (StackBlitz). Only works with standalone examples.hideCode: Boolean. Collapses code by default.Multifile Example:
<docs-code-multifile path="..." preview>
<docs-code path="..." />
<docs-code path="..." />
</docs-code-multifile>Use specific keywords followed by a colon for alerts. These render as styled blocks.
NOTE: For ancillary information.TIP: For helpful hints or shortcuts.IMPORTANT: For crucial information.CRITICAL: For warnings about potential data loss or severe issues.TODO: For incomplete documentation.QUESTION: To pose a question to the reader.SUMMARY: For section summaries.TLDR: For concise summaries.HELPFUL: For best practices.Example:
TIP: Use `ng serve` to run your application locally.<docs-card>):
<docs-card-container>.title, link, href.<docs-callout>):
title, important, critical.<docs-pill>):
<docs-pill-row>.title, href.<docs-step>):
<docs-workflow>.title.<docs-tab>):
<docs-tab-group>.label.<docs-video>):
src (YouTube embed URL), alt.Use standard markdown syntax with optional attributes for sizing and loading behavior.
#small, #medium: Append to image URL for sizing.{loading: 'lazy'}: Add attribute for lazy loading.Example:
#, ##, ###).h2 and h3 are most common for content structure.786ea44
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.