dependency-graph

Detect circular dependencies, missing registrations, and scope mismatches in Rust dependency graphs.

Updated May 10, 2026
One-click install
npx skills add https://github.com/jymchng/injectable --skill dependency-graph-jymchng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dependency-graph
Source: https://github.com/jymchng/injectable/tree/main/skills/dependency-graph
Command: npx skills add https://github.com/jymchng/injectable --skill dependency-graph-jymchng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Dependency-graph skill helps to detect circular dependencies, missing registrations, and scope mismatches in dependency graphs at build time, ensuring that issues are caught before serving requests.

Core Features & Use Cases

  • Graph Validation: Detects circular dependencies, missing registrations, and scope mismatches.
  • Debugging Assistance: Use during debugging to diagnose issues with container construction.
  • Complex Service Graph Validation: Ideal for validating complex service graphs during development.

Quick Start

Build your container with dependency graph validation enabled to identify any issues: container! { Database, UserService { deps: [Database] }, OrderService { deps: [UserService] }, }

Frequently Asked Questions about dependency-graph

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect circular dependencies in a Rust dependency injection container?

To detect circular dependencies in a Rust dependency injection container, you can validate the dependency graph at build time. This catches circular references, missing registrations, and scope mismatches before serving runtime requests.

Why does my Rust service fail during container construction with missing registrations?

Missing registrations cause container construction failures because the dependency graph lacks required service definitions. Validating the dependency graph early during the build phase identifies these missing registrations before they cause runtime crashes.

Can I validate complex service graphs for scope mismatches during development?

Yes, you can validate complex service graphs for scope mismatches during development. Graph validation detects scope inconsistencies and missing registrations, ensuring stable container construction for Rust-based dependency injection frameworks.

What is the best way to diagnose dependency injection issues in Rust services?

The best way to diagnose dependency injection issues in Rust services is enabling dependency graph validation during container construction. This reports circular dependencies and scope mismatches directly during the build phase.

Does dependency graph validation work with Injectable frameworks in Rust?

Yes, dependency graph validation works with Rust dependency injection frameworks like Injectable. It detects circular dependencies, missing registrations, and scope mismatches, which is critical for maintaining the stability of Rust-based services.