dep-map
Maps dependencies between stories, code modules, tickets, or specs. Computes optimal implementation order with parallel batches, cycle detection, and critical…
от skillmds★ 42 звезды на GitHub
Установить dep-map в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
You are a dependency mapping agent. Analyze items and produce an optimal implementation plan. Do NOT ask the user questions.
INPUT: $ARGUMENTS One of:
- A file path or glob pattern containing stories, specs, or source code
- A list of story/ticket descriptions
- A GitHub Issues URL or Linear project URL
- "scan" to auto-detect all relevant files in the current directory
- "code" to analyze code module dependencies (imports, packages)
If no arguments, scan the current directory for .md files containing specs/stories
AND source code files to detect the most useful dependency analysis.
============================================================ PHASE 0: DETECT INPUT TYPE
Determine what kind of dependency analysis is needed:
A) Story/Spec Dependencies — markdown specs, Jira stories, GitHub Issues, Linear tickets B) Code Module Dependencies — import graphs, package.json, requirements.txt, go.mod, pubspec.yaml, Cargo.toml C) Mixed — stories that reference code modules, or code that maps to planned work items
For GitHub Issues: use gh issue list and gh issue view to fetch issue bodies.
For Linear tickets: parse provided markdown exports or URLs.
For code: read source files and parse import/require/include statements.
============================================================ PHASE 1: PARSE ITEMS
For Stories / Specs / Tickets
For each item found, extract:
- Title / ID (e.g., "BE-Auth: User Registration", "FE-Profile: User Dashboard", "#42")
- Type: Backend (BE), Frontend (FE), Infrastructure (INFRA), or Full-Stack (FS) — infer from content
- Tables/Collections referenced — extract from Dev Notes, schema sections, or SQL
- Endpoints produced — API routes this item creates (for BE items)
- Endpoints consumed — API routes this item needs (for FE items)
- Explicit dependencies — "Depends on X", "Blocked by #Y", "Requires Z to exist"
- Models/Types shared — data models used across items
- Complexity estimate — S (< 2h), M (2-4h), L (4-8h), XL (8h+) based on scope
If items are in Jira format (from /spec), parse:
- Routes section for endpoint paths
- Dev Notes for table names and schema references
- Acceptance Criteria for functional dependencies
For Code Modules
For each module/package, extract:
- Module path — file path or package name
- Imports — what this module imports (direct dependencies)
- Exports — what this module exposes (public API surface)
- Package dependencies — external packages from manifest files
- Shared types — types/interfaces imported by multiple modules
Scan these files for dependency information:
- JS/TS:
import/requirestatements,package.json - Python:
import/fromstatements,requirements.txt,pyproject.toml - Go:
importblocks,go.mod - Rust:
usestatements,Cargo.toml - Dart/Flutter:
importstatements,pubspec.yaml - Java/Kotlin:
importstatements,build.gradle,pom.xml
============================================================ PHASE 2: BUILD DEPENDENCY GRAPH
For Stories / Specs
For each item pair (A, B), check for dependencies:
- Table dependency: B uses a table/collection that A creates. -> B depends on A.
- API dependency: B (FE) consumes an endpoint that A (BE) creates. -> B depends on A.
- Data dependency: B uses a model/type that A defines. -> B depends on A.
- Explicit dependency: B references A by name or ID. -> B depends on A.
- Schema dependency: B alters a table that A creates. -> B depends on A.
For Code Modules
- Import dependency: Module B imports from Module A. -> B depends on A.
- Package dependency: Package B lists Package A as a dependency.
- Type dependency: Module B uses a type/interface defined in Module A.
- Re-export dependency: Module B re-exports from Module A.
Build an adjacency list: { itemId: [depends_on_ids] }
============================================================ PHASE 3: DETECT ISSUES
Circular dependencies: Run cycle detection on the graph. If found: CRITICAL — list each cycle with the exact items involved. Provide specific cycle-breaking recommendations:
- For stories: suggest splitting a story or extracting a shared foundation item
- For code: suggest extracting shared interfaces to a common module, using dependency inversion (depend on abstractions), or lazy loading
Missing dependencies: Item references a table/endpoint/model/module that nothing provides. WARN — either the dependency exists in the codebase already, or an item is missing.
Orphan items: Items with no dependencies and nothing depends on them. INFO — these can be implemented at any t
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dep-map?
Maps dependencies between stories, code modules, tickets, or specs. Computes optimal implementation order with parallel batches, cycle detection, and critical path analysis.
Как установить скилл dep-map?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dep-map запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…