·dependency-inversion-principle
</>

dependency-inversion-principle

Use when a class creates its own dependencies. Use when instantiating concrete implementations inside a class. Use when told to avoid dependency injection for simplicity.

18Installs·0Trend·@yanko-belov

Installation

$npx skills add https://github.com/yanko-belov/code-craft --skill dependency-inversion-principle

How to Install dependency-inversion-principle

Quickly install dependency-inversion-principle AI skill to your development environment via command line

  1. Open Terminal: Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.)
  2. Run Installation Command: Copy and run this command: npx skills add https://github.com/yanko-belov/code-craft --skill dependency-inversion-principle
  3. Verify Installation: Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Source: yanko-belov/code-craft.

SKILL.md

View raw

High-level modules should not depend on low-level modules. Both should depend on abstractions.

Classes should depend on interfaces, not concrete implementations. Dependencies should be injected, not instantiated internally.

"Don't Overcomplicate" Pressure: "Just use SendGrid directly, DI is overkill"

Use when a class creates its own dependencies. Use when instantiating concrete implementations inside a class. Use when told to avoid dependency injection for simplicity. Source: yanko-belov/code-craft.

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/yanko-belov/code-craft --skill dependency-inversion-principle
Category
</>Dev Tools
Verified
First Seen
2026-03-09
Updated
2026-03-10

Browse more skills from yanko-belov/code-craft

Quick answers

What is dependency-inversion-principle?

Use when a class creates its own dependencies. Use when instantiating concrete implementations inside a class. Use when told to avoid dependency injection for simplicity. Source: yanko-belov/code-craft.

How do I install dependency-inversion-principle?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/yanko-belov/code-craft --skill dependency-inversion-principle Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw

Where is the source repository?

https://github.com/yanko-belov/code-craft