Use when syncing or simplifying example code in docs/articles or README.md so embedded docs samples stay aligned with examples tests while removing compatibility noise from the published snippets.
Use this skill when the task is to refresh and simplify documentation code examples without changing the real test sources unless explicitly requested.
Create a plain Markdown checklist that AI Agent can follow:
- [ ] Inspect the affected docs, examples, and recent non-bot history
- [ ] Sync embedded docs samples with the current example tests when needed
- [ ] Simplify docs-only snippets for readability
- [ ] Run lightweight validation and summarize what changed
docs/articles, README.md, and the matching files under examples.examples or docs:
git log --no-merges --author='^(?!.*(renovate|dependabot)).*$' --perl-regexp -- examples docs/articles README.mdexamples/...examples/*.spec.ts files as source-of-truth tests. Do not rewrite them unless the user explicitly asks.as never or as anystandalone: falsepublic someMarker() {}TODO comments and Angular version guards from docs snippetsViewChild, ViewChildren, ContentChild, or ContentChildren use {} as the second argument, remove that empty argumentconst assertion: any helpers and use jasmine directly@Injectable({ ... }) config instead of const ...Args = [...] plus @Injectable(...args)git diff --check. Skip wrapper tests unless the user specifically wants them or non-doc files changed.git diff --check -- docs/articles README.mdexamples tests just to make docs prettier unless the user explicitly asked to change the tests too.examples.examples, README.md, docs/articles, and recent human-authored git history.