en un clic
clean-doc-examples
// 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 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 when triaging or fixing ng-mocks GitHub issues and bug reports in a dedicated worktree based on upstream/main, with a local issue-* regression test, a focused source fix, coverage validation, e2e matrix checks, a conventional commit message, and a pull request.
Use when refreshing package-lock.json files in ng-mocks.
Use when preparing GitHub Dependabot pull requests by listing open PRs, verifying they are authored by app/dependabot, enabling auto-merge, and approving them without merging manually.
Use when replaying the current local branch onto upstream/main, or onto another provided remote branch, by stashing local changes, resetting to the target branch, and cherry-picking missing commits back one by one.
Use when updating major Node.js versions across ng-mocks projects, including CI/CD, .nvmrc, Docker images, npm compatibility, @types/node, and wrapper-based validation.
| name | clean-doc-examples |
| description | 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/..., sync the block to the current source test before simplifying it for docs-only readability.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.