Agent skill

Angular Dependency Injection

by HoangNguyen0403 in HoangNguyen0403/agent-skills-standard

Configure DI, inject() usage, and providers in Angular. An agent skill from HoangNguyen0403/agent-skills-standard.

MITAuto-check passedDevelopment

Install Angular Dependency Injection

skills CLI
$ npx skills add HoangNguyen0403/agent-skills-standard --skill angular-dependency-injection -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HoangNguyen0403/agent-skills-standard angular-dependency-injection --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HoangNguyen0403/agent-skills-standard.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/angular/angular-dependency-injection .claude/skills/angular-dependency-injection && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
angular-dependency-injection
GitHub stars
572
Token cost
~637 tokens
SKILL.md length
225 words
Files
3 (incl. references)
Skills in repo
211
Repo updated
First seen
Licence
MIT

At a glance

Configure DI, inject() usage, and providers in Angular. An agent skill from HoangNguyen0403/agent-skills-standard.

  • Configuring Angular dependency injection
  • SKILL.md covers Priority: P0 (CRITICAL), Principles, Guidelines and Anti-Patterns, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Defining providers

What it does

Angular Dependency Injection is an agent skill from HoangNguyen0403/agent-skills-standard. Configure DI, inject() usage, and providers in Angular. Use when configuring Angular dependency injection, using inject(), or defining providers.

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `evals/evals.json` and `references/di-patterns.md`).

It sits in Development, covering Design patterns. It works with Angular. The repository describes itself as: A collection of Agent Skills Standard and Best Practice for Programming Languages, Frameworks that help our AI Agent follow best practies on frameworks and programming laguages. The licence is MIT.

When your agent uses it

  • Configuring Angular dependency injection
  • Defining providers

Example prompts

  • “/angular-dependency-injection”

What it can do on your machine

Read from SKILL.md and the folder at commit b529c2d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Angular Dependency Injection loads about 637 tokens when it runs, and up to ~806 if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 225 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~637
With references · SKILL.md plus every file in references/, read only if the agent opens them
~806

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HoangNguyen0403/agent-skills-standard at commit b529c2d, republished under its MIT licence (© HoangNguyen0403). 225 words, ~637 tokens.

Download SKILL.mdSave it as .claude/skills/angular-dependency-injection/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
angular-dependency-injection
description
Configure DI, inject() usage, and providers in Angular. Use when configuring Angular dependency injection, using inject(), or defining providers.

Dependency Injection

Priority: P0 (CRITICAL)

Principles

  • inject() over Constructor: Use inject(MyService) function in class fields or constructor-equivalent class positions for cleaner injection. It works in any injection context (class fields, factory functions, guards).
  • Tree Shaking: Always use @Injectable({ providedIn: 'root' }) for app-wide singletons unless specific scoping required.
  • Tokens: Use new InjectionToken<T>('description') for configuration, primitives, or interface abstraction. Provide via: { provide: API_URL, useValue: 'https://api.example.com' } in app.config.ts. Inject with: inject(API_URL).

Guidelines

  • Providers: Prefer provide*() functions (e.g., provideHttpClient()) in app.config.ts providers array over importing NgModules.
  • Factories: Use useFactory strictly when dependencies need runtime configuration.
  • App Initializer: Use provideAppInitializer(() => inject(ConfigService).load()) (Angular 19+) to run async code before app bootstrap — replaces old APP_INITIALIZER token pattern.
  • Route Providers: Scope services to route tree using providers: [MyService] in route config ( routes array) instead of providedIn: 'root'. This creates instance destroyed when leaving route.
  • Multi Providers: Use { provide: TOKEN, useClass: Impl, multi: true } to collects all multi providers into array (e.g., HTTP_INTERCEPTORS, validators).

Anti-Patterns

  • No providedIn: 'platform': Use 'root' scoping; reserve platform only for Micro Frontend sharing.
  • No forwardRef: Refactor architecture to eliminate circular dependencies instead.

References

Canonical response anchors

When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:

  • HTTP_INTERCEPTORS

  • before app bootstrap

  • class fields or constructor-equivalent

  • collects all multi providers

  • inject(MyService)

  • provideHttpClient()

  • providers: [MyService]

  • route config

  • Additional task-grounded exact anchors: inject(API_URL)

© HoangNguyen0403, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/angular/angular-dependency-injection of HoangNguyen0403/agent-skills-standard.

  • SKILL.md
  • evals/evals.json
  • references/di-patterns.md

Open the folder on GitHubat commit b529c2d

Compare with similar skills

Angular Dependency Injection next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Angular Dependency Injection compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Angular Dependency Injection this skillHoangNguyen0403/agent-skills-standard572—~637Automated safety check: PassMIT
Angular Developerradix-ng/primitives274—~1.2kAutomated safety check: PassMIT
Angular Clean Architecturefmflurry/settings-opencode171—~3.6kAutomated safety check: PassMIT
Angular Copfmflurry/settings-opencode171—~1.4kAutomated safety check: PassMIT
Angular ModernWrongStack/WrongStack371—~801Automated safety check: PassMIT
Angular DiKilo-Org/kilo-marketplace190—~2.1kAutomated safety check: PassMIT

Similar skills

  • Angular Developer

    radix-ng/primitives

    Angular framework reference for building this signals-first, headless directive library.

    274 GitHub stars~1.2k tokensUpdated 12 days ago
    DevelopmentAuto-check passed
  • Angular Clean Architecture

    fmflurry/settings-opencode

    Scaffolds and extends Angular standalone feature MODULES under src/app/modules/{name} using Clean Architecture layering (presentation/application/core/infrastructure), a self-registering module…

    171 GitHub stars~3.6k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Angular Cop

    fmflurry/settings-opencode

    Pre-merge code review for Angular + TypeScript pull requests.

    171 GitHub stars~1.4k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Angular Modern

    WrongStack/WrongStack

    Build and upgrade Angular applications with typed components, reactive state, dependency injection and verified routing.

    371 GitHub stars~801 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Angular Di

    Kilo-Org/kilo-marketplace

    Implement dependency injection in Angular v20+ using inject(), injection tokens, and provider configuration.

    190 GitHub stars~2.1k tokensUpdated 12 days ago
    DevelopmentAuto-check passed
  • Generates Angular code and provides architectural guidance. An agent skill from mxtommy/Kip.

    127 GitHub starsUsed in 4 repos~2.4k tokens
    Frontend & DesignAuto-check passed

More from HoangNguyen0403/agent-skills-standard

All 211 skills in this repo
  • Subagent-Driven Development

    HoangNguyen0403/agent-skills-standard

    Runs a multi-task implementation plan by sending each task to a fresh implementer subagent, reviewing it independently, then reviewing the whole branch.

    572 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • draw.io Architecture Diagramming

    HoangNguyen0403/agent-skills-standard

    Draws architecture diagrams as editable draw.io files from a JSON spec, with a fixed house style, one C4 level per diagram and evidence-tagged shapes.

    572 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Android Navigation 3 Guide

    HoangNguyen0403/agent-skills-standard

    Implements and migrates to Jetpack Navigation 3 in Compose: NavDisplay, typed route objects, a state-list back stack, deep links, multiple back stacks and dialog scenes.

    572 GitHub stars~687 tokensUpdated yesterday
    Auto-check passed
  • Angular HttpClient Standards

    HoangNguyen0403/agent-skills-standard

    Sets rules for Angular HTTP code: functional interceptors, typed requests, services that own every call, and httpResource for reactive data loading in Angular 17+.

    572 GitHub stars~652 tokensUpdated yesterday
    Auto-check passed
  • Angular Tooling

    HoangNguyen0403/agent-skills-standard

    Angular CLI usage, code generation, build configuration, and bundle optimization.

    572 GitHub stars~743 tokensUpdated yesterday
    Auto-check passed
  • Common Code Review

    HoangNguyen0403/agent-skills-standard

    Conduct high-quality, persona-driven code reviews. An agent skill from HoangNguyen0403/agent-skills-standard.

    572 GitHub stars~772 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Angular Dependency Injection

What does Angular Dependency Injection do?

Configure DI, inject() usage, and providers in Angular. An agent skill from HoangNguyen0403/agent-skills-standard. Angular Dependency Injection is an agent skill from HoangNguyen0403/agent-skills-standard. Configure DI, inject() usage, and providers in Angular.

When should I use Angular Dependency Injection?

Angular Dependency Injection fits situations like: configuring Angular dependency injection; defining providers.

How do I install Angular Dependency Injection in Claude Code?

Run `npx skills add HoangNguyen0403/agent-skills-standard --skill angular-dependency-injection -a claude-code`. Or copy the skill folder (skills/angular/angular-dependency-injection in HoangNguyen0403/agent-skills-standard) into .claude/skills/angular-dependency-injection in your project. Claude Code loads it when a task matches its description.

How do I install Angular Dependency Injection in Codex?

Run `npx skills add HoangNguyen0403/agent-skills-standard --skill angular-dependency-injection -a codex`. Or copy the skill folder (skills/angular/angular-dependency-injection in HoangNguyen0403/agent-skills-standard) into .agents/skills/angular-dependency-injection in your project. Codex loads it when a task matches its description.

Can I use Angular Dependency Injection in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HoangNguyen0403/agent-skills-standard --skill angular-dependency-injection -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/angular-dependency-injection, .gemini/skills/angular-dependency-injection, .github/skills/angular-dependency-injection and .opencode/skills/angular-dependency-injection in your project.

What does Angular Dependency Injection need to run?

SKILL.md names no scripts, command-line tools or credentials: Angular Dependency Injection is instructions for the agent only.

Does Angular Dependency Injection access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Angular Dependency Injection safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Angular Dependency Injection use?

Angular Dependency Injection is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Angular Dependency Injection use?

About 637 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 169 tokens, read only when the agent opens those files.

What are the alternatives to Angular Dependency Injection?

Skills that share tags, products or a category with Angular Dependency Injection: Angular Developer (radix-ng/primitives, 274 stars), Angular Clean Architecture (fmflurry/settings-opencode, 171 stars), Angular Cop (fmflurry/settings-opencode, 171 stars) and Angular Modern (WrongStack/WrongStack, 371 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Angular Dependency Injection?

HoangNguyen0403 (a GitHub user) maintains it in HoangNguyen0403/agent-skills-standard, which has 572 GitHub stars. The repository holds 211 skills in this directory. The repository was last updated on October 9, 2026.

Source: HoangNguyen0403/agent-skills-standard on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.