Claude Code Plugins

Community-maintained marketplace

Feedback

Dependency Injection (DI) skill for the ikigai project

Install Skill

Shared

Installs to .agents/skills, used by Codex, Amp, Warp, Cursor, OpenCode, and more.

CodexAmp
Warp
CursorOpenCode
Cline
Gemini CLI
GitHub Copilot
Personal

Available across projects.

$npx skills-installer add @majiayu000/claude-skill-registry/di --client shared
Project

Writes to .agents/skills.

$npx skills-installer add @majiayu000/claude-skill-registry/di -p --client shared
Note: Review the skill instructions before using it.

SKILL.md

name Android Dependency Injection (Hilt)
description Standards for Hilt Setup, Scoping, and Modules
metadata [object Object]

Android Dependency Injection (Hilt)

Priority: P0

Implementation Guidelines

Setup

  • App: Must annotate Application class with @HiltAndroidApp.
  • Entries: Annotate Activities/Fragments with @AndroidEntryPoint.

Modules

  • Binding: Use @Binds (abstract class) over @Provides when possible (smaller generated code).
  • InstallIn: Be explicit (SingletonComponent, ViewModelComponent).

Construction

  • Constructor Injection: Prefer over Field Injection (@Inject constructor(...)).
  • Assisted Injection: Use for runtime parameters (@AssistedInject).

Anti-Patterns

  • Component Manual Creation: **No Manual Dagger**: Use Hilt Standard.
  • Field Inject in Logic: **No Field Inject**: Only in Android Components.

References