clean-doc-examples
Skill by help-me-mom
Syncs Angular examples in docs/articles or README.md with executable specs and removes compatibility-only code from published snippets. Built for maintainers who write and update Angular documentation.
Install clean-doc-examples
Built from the published package, never by AI.
git clone --depth 1 https://github.com/help-me-mom/ng-mocks /tmp/ng-mocks && mkdir -p ~/.claude/skills && cp -r /tmp/ng-mocks/.agents/skills/clean-doc-examples ~/.claude/skills/clean-doc-examplesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/help-me-mom/ng-mocks /tmp/ng-mocks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ng-mocks/.agents/skills/clean-doc-examples ~/.gemini/antigravity-cli/skills/clean-doc-examplesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Clean Doc Examples is an agent skill for writing and updating published Angular examples in docs/articles or README.md. It syncs each snippet with its current executable spec, then removes compatibility-only code such as version guards, compatibility casts, empty query options and assertion aliases. It also checks source links and requires both CodeSandbox and StackBlitz links for each executable example.
The skill follows a fixed workflow: read the closest functional specs, choose one Angular version for each example, sync the snippets, then validate. Validation uses git diff --check, Prettier, and an optional Docusaurus build run through Docker. A separate reference covers form interaction guides. The skill is written for maintainers of the Angular documentation.
Written from the project's SKILL.md and checked against it.
What it can do
- Spec-based snippet syncSyncs each article snippet with its current executable spec while preserving setup and meaningful assertions.
- Compatibility cleanupRemoves version guards, compatibility casts, redundant standalone flags and empty query options from published snippets.
- Angular version consistencyChooses one Angular version per published example and states the version when it affects usage.
- Live example linksRequires Try it on CodeSandbox and Try it on StackBlitz links for each executable example.
- Form guide referenceProvides a form-specific reference covering selectors, control recipes and a declare, read, change, assert structure.
What you need
- Docker
- Git
- Node.js
Try asking
- Sync the signals example in this article with its executable spec
- Remove compatibility-only code from this Angular snippet
- Check the source links in this docs article after renaming a spec
Good to know
- Docs-only changes should not modify the executable spec to simplify an article.
- Live example contents are updated after release, so they should not block links to new examples.
- Docs builds must use the read-only worktree wrapper and must not disable last-update metadata.
- Does not invent snippet or generated-HTML validation scripts.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/clean-doc-examples/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
references/forms.md3 KB
Alternatives to clean-doc-examples
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
clean-doc-examples: common questions
What does Clean Doc Examples remove from Angular snippets?
It removes compatibility-only code such as version guards, compatibility casts, TODO comments, marker methods used only for the spread matrix, and empty query options. It also replaces assertion aliases with direct Jasmine assertions.
Does it work with both classic and signal Angular examples?
The source says the skill should clearly identify classic and signal variants and place core examples in examples/<ExampleName>/test.spec.ts, with files such as signals.spec.ts beside them.
How does it validate the docs changes?
It runs git diff --check and Prettier commands through Docker, and it can run a docs build with sh test.sh docs. For docs-only changes, wrapper tests may be skipped if the summary says so.
How do I install clean-doc-examples?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clean-doc-examples free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clean-doc-examples safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clean-doc-examples?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
