Logo Dependency Manager

Dependency Manager

Cộng đồng
jpicklyk
dependency-manager

Visualizes, creates, and diagnoses dependencies between MCP work items. Use when a user says: what blocks this, add a dependency, show dependency graph, why can't this start, link these items, unblock this, remove dependency, or show blockers.

Add to TypingMind

Tổng quan

Nhà phát hànhjpicklyk
Kho mãtask-orchestrator
Tên kỹ năngdependency-manager
Sao
204
Bản fork
22
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được jpicklyk công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Dependency Manager trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jpicklyk/task-orchestrator/tree/main/claude-plugins/task-orchestrator/skills/dependency-manager
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jpicklyk/task-orchestrator.git /tmp/task-orchestrator
mkdir -p .claude/skills
cp -r /tmp/task-orchestrator/claude-plugins/task-orchestrator/skills/dependency-manager .claude/skills/dependency-manager
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Dependency Manager trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Dependency Manager ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Dependency Manager với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

dependency-manager — Dependency Visualization, Creation, and Diagnosis

Manage BLOCKS, IS_BLOCKED_BY, and RELATES_TO edges between work items. Handles all four paths: view existing dependencies, create new edges, delete edges, and diagnose why items cannot start.


Step 1: Determine Intent

Classify the user request before making any tool calls.

Resolve $ARGUMENTS to a UUID via query_items search (operation="search", query=$ARGUMENTS, limit=5); if ambiguous, present matches via AskUserQuestion. If $ARGUMENTS is already a UUID, default intent to VIEW for that item.

If $ARGUMENTS is empty, infer intent from the surrounding conversation. If intent is still unclear, ask via AskUserQuestion: "What would you like to do with dependencies? Options: view, create, delete, diagnose."

Compound requests (e.g., "show what blocks this and remove the dependency"): handle the VIEW path first, then proceed to the second action using the results.

Intent signal words:

Signal wordsPath
"show", "view", "graph", "what blocks", "what depends on", "visualize"VIEW (Step 2)
"add", "create", "link", "connect", "chain", "depend on"CREATE (Step 3)
"remove", "delete", "unlink", "disconnect"DELETE (Step 4)
"why can't this start", "why is this blocked", "diagnose", "show blockers", "unblock"DIAGNOSE (Step 5)

Step 2: View Dependencies

Once you have an item ID and intent is VIEW, query its dependency edges:

query_dependencies(operation="get", itemId="<uuid>", direction="all", includeItemInfo=true)

Format the result as an ASCII tree:

◉ Design API schema (work)
  ↳ BLOCKS → ○ Implement data models (queue)
  ↳ BLOCKS → ○ Build REST endpoints (queue)
  ← BLOCKED BY → ◉ Finalize data contract (work)

Use the visual symbols to indicate role at a glance:

SymbolRole
✓terminal
◉work or review
○queue
⊘blocked

Direction parameter meanings:

ValueReturns
outgoingEdges where this item is the source (things this item blocks)
incomingEdges where this item is the target (things that block this item)
allBoth directions combined

For a full chain view (ancestors and descendants beyond immediate neighbors), add neighborsOnly=false:

query_dependencies(operation="get", itemId="<uuid>", direction="all", includeItemInfo=true, neighborsOnly=false)

This performs BFS traversal and returns the full dependency graph. Use it when the user asks to "show the full chain" or "trace all blockers."

After displaying the tree, note any items in ⊘ blocked state and offer to run DIAGNOSE (Step 5) on them.


Step 3: Create Dependencies

Identify the structure from what the user described, then select the right creation pattern.

Decision tree:

Two specific items to link → single edge (dependencies array)
Three or more items in a sequence (A then B then C) → linear pattern
One item that blocks many others → fan-out pattern
Many items that all block one item → fan-in pattern

Pattern reference:

PatternKey parameterWhen to use
Single edgedependencies=[{fromItemId, toItemId}]Link exactly two items
linearitemIds=[A, B, C, D]Sequential chain: A→B→C→D
fan-outfromItemId=A, toItemIds=[B, C, D]One item blocks many
fan-infromItemIds=[A, B, C], toItemId=DMany items block one

Confirm the derived edges with the user before creating. Show them what you're about to create in a readable way, for example:

About to create: A → B → C → D as a linear chain. Proceed?

Adjust the format to fit the actual pattern (single edge, fan-out, fan-in, etc.).

Then call manage_dependencies(operation="create") with the selected pattern:

manage_dependencies(
  operation="create",
  pattern="linear",
  itemIds=["<uuid-a>", "<uuid-b>", "<uuid-c>", "<uuid-d>"]
)

For a single edge or custom edges, use the dependencies array directly:

manage_dependencies(
  operation="create",
  dependencies=[
    { fromItemId: "<uuid-a>", toItemId: "<uuid-b>", type: "BLOCKS" }
  ]
)

After creation, show the edges created:

✓ Created 3 dependency edges:
  A → BLOCKS → B
  B → BLOCKS → C
  C → BLOCKS → D

To set a partial unblock threshold (so the blocked item unblocks before the blocker is terminal), include unblockAt in the dependency spec. See the unblockAt reference table below.


Step 4: Delete Dependencies

Query existing edges first so the user knows what can be deleted:

query_dependencies(operation="get", itemId="<uuid>", direction="all", includeItemInfo=true)

Present the edges to the user:

Existing edges for "Implement data models":
  [1] ◉ Design API schema → BLOCKS → this item  (dep-uuid-1)
  [2] this item → BLOCKS → ○ Build REST endpoints  (dep-uuid-2)

Which edge(s) would you like to remove?

Confirm before deleting. Then call manage_dependencies(operation="delete") using the appropriate mode:

manage_dependencies(operation="delete", dependencyId="<dep-uuid>")

Delete parameter modes:

ModeParametersWhen to use
By dependency IDid="<dep-uuid>"Delete one specific edge (most precise)
By relationshipfromItemId="<uuid>", toItemId="<uuid>"Delete the edge between two known items
By relationship + typefromItemId, toItemId, type="BLOCKS"When multiple edge types exist between same pair
All edges for itemfromItemId="<uuid>", deleteAll=trueRemove all outgoing edges from an item
All edges for itemtoItemId="<uuid>", deleteAll=trueRemove all incoming edges to an item

After deletion, confirm:

✓ Removed: Design API schema → BLOCKS → Implement data models

Step 5: Diagnose Blocked Items

For DIAGNOSE intent, identify why a specific item cannot start or is stuck in blocked state.

Path A — User provided an item ID:

query_dependencies(operation="get", itemId="<uuid>", direction="incoming", includeItemInfo=true)

Path B — User wants a broad view of all blocked work:

get_blocked_items(includeDetails=true)

For each blocker returned, show:

⊘ "Build REST endpoints" cannot start because:

  Blocker 1: ◉ Design API schema (work)
    Must reach: terminal (unblockAt: terminal)
    Action: advance Design API schema to terminal first

  Blocker 2: ○ Write OpenAPI spec (queue)
    Must reach: terminal (unblockAt: terminal)
    Action: start and complete Write OpenAPI spec first

For each blocker, determine what must happen:

Blocker's current roleunblockAt thresholdWhat needs to happen
queueterminalStart and complete the blocker
workterminalComplete the blocker (already started)
workreviewAdvance the blocker to review
reviewterminalAdvance the blocker to terminal
blockedanyThe blocker itself is stuck — recurse diagnosis

If any blocker is itself blocked, offer to recurse: "The blocker is also blocked. Would you like to diagnose that item too?"

Not every "why can't this start" is a dependency. This skill diagnoses BLOCKED-role items and unsatisfied BLOCKS edges only. A separate, unrelated cause can produce a similar symptom: advance_item rejecting a start/resume transition with errorCode: "resource_unavailable" (errorKind: "transient") — a shared resource the item declares via a resources: trait is currently held by another item. That item's role does not change to blocked; it stays in its current role (typically queue) and the transition simply fails transiently. If query_dependencies shows no incoming edges yet the item still won't advance, suspect resource contention instead — check the advance_item error for errorCode/contendedResources, or inspect get_context(itemId=...) → resourceLeases for the item's declared/held keys. Do not treat this as a dependency problem; retrying the dependency diagnosis will not help.

After the diagnosis, link to the resolution path:

  • To advance the blocking item: use /status-progression with its UUID
  • To fill missing notes on the blocker first: use manage_notes(operation="upsert") to fill required notes

Dependency Type Reference

TypeMeaningEffect
BLOCKSA must complete before B can proceedB appears as blocked until A reaches its unblockAt threshold
IS_BLOCKED_BYReverse of BLOCKS — same edge, opposite directionEquivalent to creating BLOCKS from B to A
RELATES_TOInformational link only — no blocking behaviorItem appears in dependency queries but does not affect role transitions

unblockAt Threshold Reference

ValueWhen the dependent item unblocksUse case
terminal (default)Blocker must finish entirelyStandard sequential dependency
reviewUnblocks when blocker enters review phaseStart next step while review is in progress
workUnblocks when blocker starts workParallel work that just needs the prior item started
queueUnblocks immediately (tracks ordering only)Soft ordering constraint with no actual blocking

Troubleshooting

Problem: Cycle detection error when creating a dependency

Cause: The proposed edge would create a circular dependency chain (A blocks B, B blocks C, C blocks A). The server detects this and rejects the entire batch atomically.

Solution: Review the dependency direction. One of the edges is backwards. Identify which item actually depends on the other, flip the fromItemId and toItemId on that edge, and retry.


Problem: "dependency not found" error on delete

Cause: The dependency UUID or relationship does not exist. The edge may have already been deleted, or the IDs are from a different environment.

Solution: Re-query to confirm current state:

query_dependencies(operation="get", itemId="<uuid>", direction="all", includeItemInfo=true)

Use a dependency UUID from the fresh query result for the delete call. If the edge is not present, it was already removed.


Problem: Item is still blocked after the blocker reached terminal

Cause: Either the unblockAt threshold is set to a role the blocker has not yet reached (e.g., unblockAt: "review" but the blocker went straight to terminal via complete), or there are additional incoming edges from other items that are not yet satisfied.

Solution: Query incoming edges to check all blockers:

query_dependencies(operation="get", itemId="<uuid>", direction="incoming", includeItemInfo=true)

Check each blocker's role. If all blockers are terminal and the item is still in blocked role, use advance_item(transitions=[{itemId: "<uuid>", trigger: "resume"}]) to manually return it to its previous role via /status-progression.


Problem: Pattern shortcut creates wrong edges

Cause: The wrong parameter name was used for the pattern. linear uses itemIds (an ordered array). fan-out uses fromItemId (single UUID) and toItemIds (array). fan-in uses fromItemIds (array) and toItemId (single UUID). Mixing these up creates edges in the wrong direction or fails silently.

Solution: Double-check the parameter names against the pattern table in Step 3. Re-query the item after creation to verify edge direction, and delete any incorrect edges using Step 4.


Examples

Example 1: View dependencies for an item

User: "Show me what blocks the REST endpoints task."

Search → one match uuid-rest. Query incoming deps:

query_dependencies(operation="get", itemId="uuid-rest", direction="incoming", includeItemInfo=true)

Display:

○ Build REST endpoints (queue)
  ← BLOCKED BY ◉ Design API schema (work)
  ← BLOCKED BY ○ Write OpenAPI spec (queue)

Both blockers must reach terminal. Use /status-progression on each.

Example 2: Create a linear chain

User: "Set up A → B → C → D as a chain." Resolve UUIDs, confirm, then:

manage_dependencies(operation="create", pattern="linear",
  itemIds=["uuid-a", "uuid-b", "uuid-c", "uuid-d"])

Result:

✓ Created 3 edges: A → B → C → D

Example 3: Diagnose why an item cannot start

User: "Why can't 'Write integration tests' start?" Search → uuid-tests. Query incoming:

query_dependencies(operation="get", itemId="uuid-tests", direction="incoming", includeItemInfo=true)

Display:

⊘ "Write integration tests" cannot start:
  Blocker 1: ○ Build REST endpoints (queue) — must reach terminal
  Blocker 2: ◉ Implement data models (work) — must reach terminal

Recommended: complete both blockers via /status-progression

Quick Decision Guide

SituationAction
User asks what blocks an itemStep 2 — query incoming with includeItemInfo=true
User asks what an item blocksStep 2 — query outgoing with includeItemInfo=true
User wants full chain visualizationStep 2 — add neighborsOnly=false
User wants to link two itemsStep 3 — single edge via dependencies array
User has a sequential list of itemsStep 3 — pattern="linear" with itemIds
One item must precede manyStep 3 — pattern="fan-out"
Many items must precede oneStep 3 — pattern="fan-in"
User wants to remove a linkStep 4 — query first, confirm, delete by dep ID
Item is stuck and user does not know whyStep 5 — diagnose incoming edges
Blocker analysis complete, need to advanceUse /status-progression on the blocker

Câu hỏi thường gặp

Kỹ năng AI Dependency Manager làm được gì?

Visualizes, creates, and diagnoses dependencies between MCP work items. Use when a user says: what blocks this, add a dependency, show dependency graph, why can't this start, link these items, unblock this, remove dependency, or show blockers.

Vì sao nên dùng Dependency Manager trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Dependency Manager là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Dependency Manager trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jpicklyk/task-orchestrator/tree/main/claude-plugins/task-orchestrator/skills/dependency-manager. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Dependency Manager?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Dependency Manager với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Dependency Manager với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Dependency Manager có miễn phí không?

Có. Kỹ năng này được jpicklyk phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇