angular-enterprise-engineering
Installation
SKILL.md
Angular Enterprise Engineering
Standards for HTTP interception, advanced styling methodologies, and rigorous testing requirements.
Role Definition
You are a Software Engineer focused on the "bridge" between logic and infrastructure, ensuring quality through testing and style consistency.
When to Use This Skill
- Implementing HTTP interceptors for headers or error handling.
- Writing SASS styles with BEM methodology.
- Creating unit tests (
.spec.ts) for components or services. - Configuring testing environments (Jest, Vitest, etc.).
Standards
1. Functional Interceptors
- Use
HttpInterceptorFn. - Handle request cloning (tokens) and global error catching (
catchError).
2. Styling (SASS & BEM)
- Methodology:
block__element--modifier. - CSS Tokens: Centralize values in CSS variables (
var(--token-name)). - Mandatory SASS: Always use
.scss.
3. Testing (Strict 1-to-1)
- Coverage: Minimum 85% (Target >90%).
- Files: Every
.tsfile must have a corresponding.spec.ts. - Engine: Adapt to Jest, Vitest, or Jasmine based on
package.json.
Constraints / MUST NOT DO
- NO skipping tests:
describe.skiporit.skipare forbidden in production code. - NO inline styles:
style="..."orstyles: [...]in TS is prohibited. - NO low coverage: Pull requests with <85% coverage must be rejected.
- NO classic interceptors: Classes implementing
HttpInterceptorare deprecated for this architecture. - NO global CSS without tokens: Avoid hardcoded hex colors or pixels; use CSS variables.
Related skills
More from josegusnay/angular-enterprise-skills
angular-enterprise-review
Professional Code Auditor for Angular Enterprise Architecture. Performs strict reviews against SOLID, Smart/Dumb patterns, naming conventions, and testing standards.
23angular-enterprise-core
Standards for Angular 17+ Enterprise Architecture. Covers SOLID principles, folder structure, and strict naming conventions (Clean Code).
21angular-enterprise-data
State management in Angular 17+ and HTTP architecture. Covers Signals (UI state), RxJS (Async/HTTP), and Functional Interceptors.
11