Command Palette

Search for a command to run...

Назад к скиллам
скилл № 97181

dep-map

Maps dependencies between stories, code modules, tickets, or specs. Computes optimal implementation order with parallel batches, cycle detection, and critical…

БесплатноБез исполняемых скриптов
skillmdsот 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:

  1. Title / ID (e.g., "BE-Auth: User Registration", "FE-Profile: User Dashboard", "#42")
  2. Type: Backend (BE), Frontend (FE), Infrastructure (INFRA), or Full-Stack (FS) — infer from content
  3. Tables/Collections referenced — extract from Dev Notes, schema sections, or SQL
  4. Endpoints produced — API routes this item creates (for BE items)
  5. Endpoints consumed — API routes this item needs (for FE items)
  6. Explicit dependencies — "Depends on X", "Blocked by #Y", "Requires Z to exist"
  7. Models/Types shared — data models used across items
  8. 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:

  1. Module path — file path or package name
  2. Imports — what this module imports (direct dependencies)
  3. Exports — what this module exposes (public API surface)
  4. Package dependencies — external packages from manifest files
  5. Shared types — types/interfaces imported by multiple modules

Scan these files for dependency information:

  • JS/TS: import/require statements, package.json
  • Python: import/from statements, requirements.txt, pyproject.toml
  • Go: import blocks, go.mod
  • Rust: use statements, Cargo.toml
  • Dart/Flutter: import statements, pubspec.yaml
  • Java/Kotlin: import statements, build.gradle, pom.xml

============================================================ PHASE 2: BUILD DEPENDENCY GRAPH

For Stories / Specs

For each item pair (A, B), check for dependencies:

  1. Table dependency: B uses a table/collection that A creates. -> B depends on A.
  2. API dependency: B (FE) consumes an endpoint that A (BE) creates. -> B depends on A.
  3. Data dependency: B uses a model/type that A defines. -> B depends on A.
  4. Explicit dependency: B references A by name or ID. -> B depends on A.
  5. Schema dependency: B alters a table that A creates. -> B depends on A.

For Code Modules

  1. Import dependency: Module B imports from Module A. -> B depends on A.
  2. Package dependency: Package B lists Package A as a dependency.
  3. Type dependency: Module B uses a type/interface defined in Module A.
  4. Re-export dependency: Module B re-exports from Module A.

Build an adjacency list: { itemId: [depends_on_ids] }

============================================================ PHASE 3: DETECT ISSUES

  1. 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
  2. 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.

  3. Orphan items: Items with no dependencies and nothing depends on them. INFO — these can be implemented at any t

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

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), без исполняемых скриптов.

Похожие скиллы

Сравнить dep-map с