dependency-injection

dependency-injection is a skill for Claude Code, Codex from GDvega/super-android-kotlin-firebase-skill. It costs 29 tokens per session (552 once invoked), scanned A, original, MIT.

A guide for dependency injection, a way to provide services such as repositories or data sources to the parts of an Android app that need them.

In plain words
What is it for?
Use it when configuring Hilt or Koin, connecting ViewModels and repositories, choosing scopes, fixing bindings, or supplying test replacements.
Why use it?
It makes dependencies easier to replace in tests and helps prevent unclear object lifetimes or hidden global services.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it when configuring Hilt or Koin, connecting ViewModels and repositories, choosing scopes, fixing bindings, or supplying test replacements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add GDvega/super-android-kotlin-firebase-skill --skill dependency-injection
Clone the repo
git clone --depth 1 https://github.com/GDvega/super-android-kotlin-firebase-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dependency-injection

README.md
[![agentmods](https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection/github.svg)](https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection)
Your own site
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dependency-injection

Your own site · 80×15
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/dependency-injection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 552 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00552
Opus 5 $0.00015 $0.00276
Sonnet 5 $0.00006 $0.00110
Haiku 4.5 $0.00003 $0.00055

Measured 9d ago against content hash bde181a76edc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

dependency-injection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dependency-injection/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

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 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

Read the full file on GitHub · 100 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 100 lines · 29 tokens per session scan A bde181a76edc

Subscribe to this mod's changes

dependency-injection is a skill published in the GitHub repository GDvega/super-android-kotlin-firebase-skill (2 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 552 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

android-ui-journey-testing

XML-specified Android UI journey testing, interactive step execution, assertion verification, and JSON outcome reporting.

sickn33/agentic-awesome-skills · 27 tokens

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 127 tokens

argent-test-ui-flow

Autonomously test an app UI (iOS or Android) by running interact-screenshot-verify loops using argent MCP tools. Use when testing UI flows, verifying login works, testing navigation, running end-to-end UI test scenarios, manual QA steps, visible UI changes, or visual behavior.

software-mansion/argent · 64 tokens

mobile-automation

Control Android and iOS devices, emulators and simulators — launch apps, tap, swipe, type, take screenshots, read the accessibility tree. Use when a task involves a mobile device or app, mobile UI testing, or reproducing a bug on a phone.

mobile-next/mobile-mcp · 58 tokens

argent-create-flow

Create, record, edit, replay, or repair reusable Argent flow YAML files. Use when the user asks to record or replay a repeatable device path, set up profiling or an A/B comparison, or invoke the authoring engine behind argent-qa-flows. Also use before repeating three or more interactions. For one-off UI checks…

software-mansion/argent · 100 tokens

argent-ios-device-interact

Drive a physical iPhone through argent. Use when a physical iPhone is involved (a list-devices iOS entry with kind "device") and ONLY then; never for a simulator. For cable, trust, or signing problems read argent-ios-device-setup.

software-mansion/argent · 59 tokens