Back to skills
SkillHub ClubShip Full StackFull Stack

Packages Graph

Your approach to handling packages graph. Use this skill when working on files where packages graph comes into play.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
8
Hot score
84
Updated
March 20, 2026
Overall rating
C2.2
Composite score
2.2
Best-practice grade
C61.2

Install command

npx @skill-hub/cli install leaderiop-hex-di-packages-graph
TypeScriptdependency-grapharchitecturecompile-timevalidation

Repository

leaderiop/hex-di

Skill path: .claude/skills/packages-graph

Your approach to handling packages graph. Use this skill when working on files where packages graph comes into play.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: leaderiop.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install Packages Graph into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/leaderiop/hex-di before adding Packages Graph to shared team environments
  • Use Packages Graph for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: Packages Graph
description: Your approach to handling packages graph. Use this skill when working on files where packages graph comes into play.
---

# Packages Graph

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle packages graph.

## Instructions

For details, refer to the information provided in this file:
[packages graph](../../../agent-os/standards/packages/graph.md)


---

## Referenced Files

> The following files are referenced in this skill and included for context.

### ../../../agent-os/standards/packages/graph.md

```markdown
# @hex-di/graph Package Standards

## Purpose
Compile-time architectural validation. This package defines how adapters compose into a validated dependency graph.

## Core Responsibilities
- Define Adapter metadata structure
- Compose adapters into a Graph
- Validate dependency completeness at compile time
- Detect architectural errors before runtime

## Design Constraints

### No Runtime Execution
- Graph is a compile-time/build-time construct
- No instance creation
- No service resolution
- Purely structural and typed

### No React
- Framework-agnostic
- Can be used in any TypeScript environment

## Adapter Metadata

### Required Information
- Which Port this adapter provides
- Which Ports this adapter depends on
- Lifetime scope (singleton/scoped/request)
- Factory function signature

### Type-Level Tracking
- Adapters declare provided and required ports at type level
- Graph accumulates provided ports as adapters are added
- Missing dependencies surface as type errors

## Graph Composition

### Builder Pattern
- Incremental graph construction
- Each `.provide()` call validates against current state
- Final `.build()` ensures completeness

### Validation Rules
- All required ports must be provided
- No duplicate providers for same port
- Optional: detect circular dependencies

## Error Messaging
- Use template literal types for readable errors
- Include missing port names in error messages
- Point to the adapter causing the issue

## Success Criteria
- Missing adapter = compile-time error
- Graph represents complete system architecture
- Type errors are actionable and clear

```

Packages Graph | SkillHub