composegears/leviathan/leviathan-di
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Learn and apply Leviathan, a service-locator style DI library for Kotlin Multiplatform. Includes practical recipes for scopes, factories, mutable providers, Compose, ViewModel, testing, and modularization.
Install
npx vskill@latest install composegears/leviathan/leviathan-diSKILL.md
Getting started
- [Getting started](references/leviathan/getting-started.md): Install Leviathan and define your first dependencies.
- [Core concepts](references/leviathan/core-concepts.md): Understand
DIScope,Dependency,MutableDependency, and lifecycle behavior.
Recipes
Base declarations
- [Basic module](references/leviathan/recipes/basic-module.md): Declare singleton, instance, factory, and mutable dependencies.
- [Constructor injection pattern](references/leviathan/recipes/constructor-injection-pattern.md): Keep constructors testable while resolving dependencies at boundaries.
- [Top-level dependencies](references/leviathan/recipes/top-level-dependencies.md): Use app-wide dependencies and explicit scope control.
Lifetime and caching
- [Scoped lifecycle](references/leviathan/recipes/scoped-lifecycle.md): Model short-lived object graphs and release instances with scope closure.
- [Factories and caching](references/leviathan/recipes/factories-and-caching.md): Choose per-scope cached factories vs always-new instances.
- [Singleton: holder-lifetime dependency](references/leviathan/recipes/singleton-lifetime.md): Keep an instance alive for the life of the declaring module, regardless of scope closures.
Dependency graphs
- [Dependency graphs with inject](references/leviathan/recipes/dependency-graphs.md): Build complex wired dependencies using
inject(...)inside factory blocks. - [Interface binding](references/leviathan/recipes/interface-binding.md): Bind implementations to interfaces for polymorphic injection.
- [Circular dependencies](references/leviathan/recipes/circular-dependencies.md): Resolve cycles by deferring injection with lambdas.
Runtime reconfiguration
- [Mutable overrides](references/leviathan/recipes/mutable-overrides.md): Swap implementations at runtime for flags, environments, and previews.
- [Testing overrides](references/leviathan/recipes/testing-overrides.md): Override providers safely in tests and restore defaults.
Integrations
- [Compose integration](references/leviathan/recipes/compose-integration.md): Inject dependencies in Composables with
injectandinjectAndRetain. - [ViewModel integration](references/leviathan/recipes/viewmodel-integration.md): Scope dependencies to
ViewModellifecycle.
Architecture
- [Feature modules](references/leviathan/recipes/feature-modules.md): Organize declarations by feature without centralized containers.
- [Global scope usage](references/leviathan/recipes/global-scope.md): Use
DIScope.GLOBALfor app-wide singletons. - [Anti-patterns](references/leviathan/recipes/anti-patterns.md): Avoid common service-locator pitfalls and hidden coupling.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/leviathan-di/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/composegears/leviathan/leviathan-di)