AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Dependency Injection

skill-gdvega-super-android-kotlin-firebase-skill-dependency-injection · by GDvega

Use for Hilt, Koin, DI modules, scopes, ViewModel injection, repository bindings and testing with dependency injection.

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-gdvega-super-android-kotlin-firebase-skill-dependency-injection

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-gdvega-super-android-kotlin-firebase-skill-dependency-injection)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Dependency Injection? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Purpose

Make dependencies explicit and replaceable without adding unnecessary framework weight.

When to use

  • Adding Hilt or Koin.
  • Injecting ViewModels, repositories or data sources.
  • Fixing scope or binding problems.
  • Replacing dependencies in tests.

Inputs to inspect

  • Existing DI framework or manual DI.
  • Object lifetimes and scopes.
  • ViewModel and repository constructors.
  • Test replacement needs.

Required workflow

  1. Detect current DI pattern.
  2. Add the smallest binding/module needed.
  3. Use scopes intentionally.
  4. Wire ViewModel and repository dependencies.
  5. Add test fakes or replacement modules.

Rules

  • Do not mix Hilt and Koin without strong reason.
  • Avoid hidden service locators.
  • Do not inject Context unless needed.
  • Keep singletons immutable or thread-safe.
  • Do not break Compose previews.

Related existing skills

Local skills to invoke

  • android-architecture
  • kotlin-core
  • testing
  • room-datastore

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult [Companion Skills](../../docs/COMPANION_SKILLS.md) for install and verification commands.

  • android/skills — use for official Android workflow alignment when a first-party companion skill exists for the task.

Files commonly touched

  • di modules
  • Application class
  • ViewModels
  • repositories
  • test modules

Commands to validate

./gradlew test
./gradlew assembleDebug
./gradlew lint

Common mistakes to avoid

  • Injecting everything by default.
  • Creating circular dependencies.
  • Using singletons for mutable state.
  • Forgetting test replacements.

Checklist

  • Bindings minimal.
  • Scopes correct.
  • Tests can replace dependencies.
  • Previews still work.
  • Build passes.

Example prompts

  • Use $super-android-kotlin-firebase to add Hilt for repositories and ViewModels.
  • Use $super-android-kotlin-firebase to fix this DI binding error.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/di-scopes-and-tests.md
  • templates/hilt-module-template.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.