Dependency Architecture
Coverage
Design and audit the dependency graph of a codebase. Covers direct vs transitive dependencies, runtime vs dev/build dependencies, package boundaries, import direction, adapter layers, duplicate-purpose libraries, lock-in, upgrade policy, supply-chain risk, and dependency drift.
Philosophy
Dependencies are architecture. Every package adds API surface, operational risk, update cost, and implicit design direction. A dependency that solves one task can still be wrong if it creates long-term coupling or duplicates an existing standard.
Prefer fewer, clearer dependencies with explicit ownership. Wrap volatile external SDKs at boundaries. Let application code depend on local contracts, not vendor shapes, when the vendor is likely to change or be replaced.
Method
- Inventory dependencies by purpose, owner, and import surface.
- Classify each as runtime, dev, build, test, or optional.
- Identify duplicate-purpose libraries and unauthorized standards.
- Check import direction and package boundary rules.
- Decide where adapters are needed for external SDKs or volatile APIs.
- Assess security, maintenance, license, and ecosystem health.
- Define upgrade, pinning, and removal policy.
Evals
This skill ships a comprehension-eval artifact at examples/evals/dependency-architecture.json. The checklist below is the authoring gate for dependency-boundary decisions; the eval file is the grader surface.
Verification
Do NOT Use When
| Use instead |
When |
framework-fit-analysis |
You are selecting a major framework, platform, runtime, or database. |
owasp-security |
The task is vulnerability-focused security review. |
refactor |
You are restructuring code without changing dependency architecture. |
architecture-decision-records |
The dependency decision is already made and needs a record. |
1---
2name: dependency-architecture
3description: "Use when designing or auditing dependency structure: package boundaries, runtime vs build dependencies, adapter layers, duplicate-purpose libraries, supply-chain risk, upgrade policy, lock-in, and dependency graph health. Do NOT use for choosing a major framework (use `framework-fit-analysis`), vulnerability-only review (use `owasp-security`), or routine refactoring without dependency boundary changes (use `refactor`)."
4license: MIT
5compatibility: "Portable dependency architecture guidance for monorepos, package.json ecosystems, service boundaries, SDKs, and internal libraries."
6allowed-tools: Read Grep
7metadata:
8 source: https://skillmd.com/skills/aibot88/dependency-architecture
9 schema_version: "4"
10 version: "1.0.0"
11 type: capability
12 category: engineering
13 domain: architecture/dependencies
14 scope: portable
15 owner: skill-graph-maintainer
16 freshness: "2026-05-11"
17 drift_check: "{\"last_verified\":\"2026-05-11\"}"
18 eval_artifacts: present
19 eval_state: unverified
20 routing_eval: absent
21 stability: experimental
22 keywords: "[\"dependency architecture\",\"dependency graph\",\"package boundaries\",\"runtime dependency\",\"build dependency\",\"duplicate libraries\",\"supply chain risk\",\"adapter layer\",\"lock-in\",\"upgrade policy\"]"
23 examples: "[\"audit whether this repo has duplicate-purpose dependencies and unsafe package boundaries\",\"should this SDK be wrapped behind an adapter or imported everywhere?\",\"design dependency rules for packages in this monorepo\",\"evaluate dependency lock-in and upgrade risk before adding this library\"]"
24 anti_examples: "[\"choose between Next.js, Remix, and Astro for a new app\",\"scan dependencies only for known vulnerabilities\",\"refactor this module without changing dependency boundaries\",\"write an ADR after the dependency decision is accepted\"]"
25 relations: "{\"boundary\":[{\"skill\":\"framework-fit-analysis\",\"reason\":\"framework-fit-analysis evaluates major technology choices; dependency-architecture governs dependency graph structure and package boundaries\"},{\"skill\":\"owasp-security\",\"reason\":\"owasp-security owns vulnerability and security review; dependency-architecture includes supply-chain risk as one design dimension\"},{\"skill\":\"refactor\",\"reason\":\"refactor preserves behavior in code structure; dependency-architecture changes or audits dependency boundaries\"},{\"skill\":\"architecture-decision-records\",\"reason\":\"architecture-decision-records records accepted dependency decisions; dependency-architecture analyzes the dependency design\"}],\"related\":[\"framework-fit-analysis\",\"system-interface-contracts\",\"version-control\",\"owasp-security\"],\"verify_with\":[\"owasp-security\",\"code-review\"]}"
26 portability: "{\"readiness\":\"scripted\",\"targets\":[\"skill-md\"]}"
27 lifecycle: "{\"stale_after_days\":180,\"review_cadence\":\"quarterly\"}"
28 skill_graph_source_repo: "https://github.com/jacob-balslev/skill-graph"
29 skill_graph_protocol: Skill Metadata Protocol v3
30 skill_graph_project: Skill Graph
31 skill_graph_canonical_skill: skills/dependency-architecture/SKILL.md
32---
33
34# Dependency Architecture
35
36## Coverage
37
38Design and audit the dependency graph of a codebase. Covers direct vs transitive dependencies, runtime vs dev/build dependencies, package boundaries, import direction, adapter layers, duplicate-purpose libraries, lock-in, upgrade policy, supply-chain risk, and dependency drift.
39
40## Philosophy
41
42Dependencies are architecture. Every package adds API surface, operational risk, update cost, and implicit design direction. A dependency that solves one task can still be wrong if it creates long-term coupling or duplicates an existing standard.
43
44Prefer fewer, clearer dependencies with explicit ownership. Wrap volatile external SDKs at boundaries. Let application code depend on local contracts, not vendor shapes, when the vendor is likely to change or be replaced.
45
46## Method
47
481. Inventory dependencies by purpose, owner, and import surface.
492. Classify each as runtime, dev, build, test, or optional.
503. Identify duplicate-purpose libraries and unauthorized standards.
514. Check import direction and package boundary rules.
525. Decide where adapters are needed for external SDKs or volatile APIs.
536. Assess security, maintenance, license, and ecosystem health.
547. Define upgrade, pinning, and removal policy.
55
56## Evals
57
58This skill ships a comprehension-eval artifact at [`examples/evals/dependency-architecture.json`](https://github.com/jacob-balslev/skill-graph/blob/main/examples/evals/dependency-architecture.json). The checklist below is the authoring gate for dependency-boundary decisions; the eval file is the grader surface.
59
60## Verification
61
62- [ ] Each dependency has a purpose and owner
63- [ ] Runtime dependencies are not hidden as dev/build dependencies
64- [ ] Duplicate-purpose packages are justified or removed
65- [ ] External SDKs do not leak vendor types across core boundaries without intent
66- [ ] Package import direction is enforceable
67- [ ] Upgrade policy and lockfile discipline are clear
68- [ ] Security and license risks have been checked for high-impact dependencies
69
70## Do NOT Use When
71
72| Use instead | When |
73|---|---|
74| `framework-fit-analysis` | You are selecting a major framework, platform, runtime, or database. |
75| `owasp-security` | The task is vulnerability-focused security review. |
76| `refactor` | You are restructuring code without changing dependency architecture. |
77| `architecture-decision-records` | The dependency decision is already made and needs a record. |