check-module

Verifies an Angular module against stabilization plan criteria and reports pass/fail with evidence.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After refactoring or stabilizing an Angular module, it is hard to know objectively whether the work meets the agreed "Done" definition. This Skill automates that audit by running a 12-criterion checklist against the module's code and producing a pass/fail report with evidence. ## Core Features & Use Cases - Automated Code Audits: Checks for zero unjustified any types, proper catchError handling on every HTTP call, component loading/error/empty states, and takeUntilDestroyed subscription teardown. - Structural Verification: Detects duplicate services across modules, validates test coverage and meaningful specs, and confirms type safety in models and interfaces. - Build Verification: Runs typecheck, lint, and test commands, then generates a summary table scoring the module against all 12 criteria with a remaining-work list. - Use Case: After stabilizing the reporting module in an Angular 19 app, run the check to confirm every criterion passes before marking the module Done in the stabilization plan. ## Quick Start Ask the assistant to run the module check for a specific module name, for example: check the stabilization status of the reporting module.

Frequently Asked Questions about check-module

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

FAQPage Schema
How do I verify an Angular module meets a stabilization plan?

Run the check-module skill with the module name as the argument. It audits the module against 12 criteria from the stabilization plan, including type safety, error handling, and test coverage, then outputs a pass/fail report with evidence.

How to check Angular services for proper HTTP error handling?

The skill greps service files for HTTP calls missing catchError and verifies each uses handleHttpError that re-throws the original HttpErrorResponse. It also confirms the correct import from the shared error-handler utility.

Does this check work with Angular takeUntilDestroyed and DestroyRef?

Yes, it specifically validates the modern teardown pattern: DestroyRef injected as a field initializer and takeUntilDestroyed applied to every long-lived subscription. It flags legacy takeUntil patterns that still need migration.

What test coverage is required for an Angular module to pass?

The module needs at least 80 percent coverage, a spec file for every service covering HTTP methods and error cases, and meaningful component tests. Spec files containing only a 'should create' stub are flagged as failures.

Why does the module check fail on duplicate services?

The check compares service filenames against the project-management module to detect duplicates. If a service exists in both places, one copy must be deleted and all imports consolidated before the criterion passes.