stabilize-module

Stabilizes Angular feature modules by typing any, fixing subscriptions, and enforcing lint, build, and test gates.

Updated Jul 9, 2026
One-click install
npx skills add https://github.com/MadheshSM/learning --skill stabilize-module-madheshsm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stabilize-module
Source: https://github.com/MadheshSM/learning/tree/main/Angular/.claude/skills/stabilize-module
Command: npx skills add https://github.com/MadheshSM/learning --skill stabilize-module-madheshsm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Angular feature modules often accumulate untyped any usage, leaking subscriptions, dead code, magic strings, and missing tests. This Skill runs a complete, single-pass stabilization workflow that brings a module up to production coding standards with automated verification after every phase. ## Core Features & Use Cases - Full type safety pass: Replaces all any in services, models, and components with interfaces (IEntity, IEntityCreate, IApiResponse<T>), then runs npm run typecheck to catch cascading errors. - Code quality enforcement: Fixes subscription teardown with takeUntilDestroyed, removes dead code and console.log, extracts magic strings/numbers to enums and constants, and audits naming, spelling, and file sizes. - SCSS theming audit: Converts px to rem, replaces hardcoded hex colors with design tokens, and reviews !important and ::ng-deep usage. - Testing and final gates: Writes service and component unit tests, then validates with Prettier, ESLint, Stylelint, typecheck, production build, and tests before committing. - Use Case: Run it on a legacy Angular module like admin-role to eliminate all any types, add error handling to HTTP services, and reach 80%+ test coverage in one guided pass. ## Quick Start Ask the AI to run the stabilize-module skill on the admin-role feature module and fix every issue until all checks pass.

Frequently Asked Questions about stabilize-module

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What checks must pass before an Angular module is considered stabilized?

The module must have zero any usages, passing Prettier, ESLint, Stylelint, typecheck, production build, and unit tests with 80%+ coverage. It also requires no dead code, no console.log, extracted magic strings, and a completed SCSS theming audit.