angular-modernization
Skill by bitwarden
Modernizes Angular components and directives using Angular CLI migrations and Bitwarden-specific patterns. It is for developers who want to bring legacy Angular code in line with current best practices and Bitwarden ADRs.
Install angular-modernization
Built from the published package, never by AI.
git clone --depth 1 https://github.com/bitwarden/clients /tmp/clients && mkdir -p ~/.claude/skills && cp -r /tmp/clients/.claude/skills/angular-modernization ~/.claude/skills/angular-modernizationRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/bitwarden/clients /tmp/clients && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/clients/.claude/skills/angular-modernization ~/.gemini/antigravity-cli/skills/angular-modernizationAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install angular-modernization in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
The angular-modernization skill transforms legacy Angular components to a modern architecture. It works in two steps. First it runs Angular CLI schematics for standalone components, control flow, signal inputs, signal outputs, signal queries, inject(), self-closing tags and unused imports. Then it applies Bitwarden patterns such as OnPush change detection, visibility modifiers, signals for component state and thin components.
After the changes, the skill runs npm run lint:fix and npm run test to validate the code. It follows Bitwarden ADRs on signals, observable data services and TypeScript enums. The skill is meant for developers working on Angular code who ask to modernize components or directives. The source says it should not be used for general Angular discussions unrelated to modernization.
Written from the project's SKILL.md and checked against it.
What it can do
- Standalone migrationConverts NgModule-based components to standalone architecture using the Angular CLI.
- Control flow migrationReplaces *ngIf, *ngFor and *ngSwitch with @if, @for and @switch.
- Signal migrationsRuns CLI schematics that move @Input, @Output and view or content queries to signals.
- inject() migrationChanges constructor injection to the inject() function.
- Bitwarden pattern updatesAdds OnPush change detection, visibility modifiers and thin components with logic in services.
- ValidationRuns lint fixes and tests after the migration and checks a list of required items.
What you need
- Angular CLI, run through npx ng
- npm scripts lint:fix and test in the project
Try asking
- Modernize the Angular components in this directory to standalone.
- Migrate the @Input and @Output decorators in this folder to signals.
- Apply Bitwarden Angular patterns to this component and its tests.
Good to know
- Migration commands must target directories, not single files.
- Run the CLI migrations in order because some depend on others.
- Allowed tools are limited to Read, Write, Glob and npx ng generate commands.
Security check
B- Allowed to use Write without limitsIn
SKILL.md
Checked automatically: .claude/skills/angular-modernization/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteGlobBash(npx ng generate:*)
-
SKILL.md4 KB -
migration-patterns.md5 KB
Alternatives to angular-modernization
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
angular-modernization: common questions
What does the angular-modernization skill change in Angular code?
It runs Angular CLI migrations for standalone components, control flow, signals, inject() and unused imports. It then applies Bitwarden patterns such as OnPush change detection and visibility modifiers.
Does this skill follow Bitwarden architecture decisions?
Yes. The source cites ADR-0003, ADR-0025 and ADR-0027 and says to use signals for component state, observables for service state and const objects instead of enums.
When should the skill not be used?
The source says not to invoke it for general Angular discussions that are unrelated to modernization.
How do I install angular-modernization?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is angular-modernization free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is angular-modernization safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade B (allowed to use write without limits). Review the code before you install. How grades work.
What are alternatives to angular-modernization?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
