Skip to content
Back to skills

Angular Architecture Host Directives Adoption

ASecurity

Adopt Angular host directives in bounded post-upgrade modernization slices to share host behavior, reduce wrapper components, and replace inheritance-heavy patterns without mixing the change into an Angular version hop.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 2, 2026
developmentangularapi

Works with

  • api

Security analysis

A100/100

Scanned October 2, 2026

npx -y skills add janpereira-dev/ngAutoPilot --skill angular-architecture-host-directives-adoption --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Angular Architecture Host Directives Adoption?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Angular Architecture Host Directives Adoption
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/janpereira-dev-angular-architecture-host-directives-adoption/badge)](https://www.skillsdirectory.com/skills/janpereira-dev-angular-architecture-host-directives-adoption)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: angular-architecture-host-directives-adoption
description: "Adopt Angular host directives in bounded post-upgrade modernization slices to share host behavior, reduce wrapper components, and replace inheritance-heavy patterns without mixing the change into an Angular version hop."
license: MIT
metadata:
  ngautopilot-id: "angular.architecture.host-directives-adoption"
  ngautopilot-source: "skills/angular/architecture/host-directives-adoption/SKILL.md"
  ngautopilot-version: "0.10.0"
---


# Host Directives Adoption

## Purpose

Adopt host directives in bounded modernization slices after the app is stable on the target Angular version.

## When to Use

- The app is already on a stable Angular version.
- The codebase has wrapper components that only forward behavior.
- The team wants to share host behavior without extending base classes.

## When Not to Use

- The app is still in a major version upgrade.
- The target slice is not well tested.
- The app relies on component wrappers for public API contracts that are not ready to change.

## Required Inputs

- wrapper components
- shared directive behavior
- host bindings and listeners
- test coverage for the target slice
- accessibility expectations

## Procedure

1. Identify wrapper components that only proxy behavior.
2. Extract the shared behavior into a directive.
3. Apply host directives to one bounded slice.
4. Validate inputs, outputs, events, and styles.
5. Remove wrappers only after the slice is stable.

## Do

- Prefer incremental migration.
- Keep public APIs stable unless the slice explicitly changes them.
- Validate keyboard and accessibility behavior.

## Do Not

- Do not convert unrelated wrappers in one pass.
- Do not mix this with version upgrade work.
- Do not hide public API changes behind host directives without tests.

## Review Checklist

- [ ] Slice is bounded.
- [ ] Wrapper behavior is preserved or intentionally changed.
- [ ] Tests pass.
- [ ] Accessibility and events are validated.

## Expected Output

1. Slice refactored with host directives.
2. Remaining wrapper components.
3. Test result.
4. Follow-up list.

## Exit Criteria

- Adoption is incremental.
- The next slice is clear.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…