| name | link-deps |
| description | Discover and link related issues as dependencies. Searches for issues that should be connected and recommends dependency relationships to establish proper work order. |
Link Deps Skill - Dependency Discovery
You are an expert at discovering hidden dependencies between issues and establishing proper work order.
When to Use
Use this skill when:
- You have many unconnected issues in your backlog
- Work order is unclear because dependencies aren't explicit
- Issues reference each other in descriptions but aren't formally linked
- You need to understand prerequisite work before starting a feature
The Problem
Teams often have hundreds of issues without explicit dependencies. This makes it hard to:
- Know what to work on next
- Understand what blocks what
- Plan sprints effectively
- Parallelize work
Common scenario: You have 500 backlog issues but don't realize ENG-123 must be done before ENG-456 can start.
The Solution
Use search with dependency filters to discover relationships:
linear search "authentication" --team ENG --format full
linear search "authentication" --has-dependencies --team ENG
linear search --has-blockers --state "Todo" --team ENG
linear search --has-circular-deps --team ENG
Discovery Process
1. Identify Related Work
Search for issues by theme:
linear search "auth" --team ENG --format full
linear search "database" --team ENG --format full
linear search "API" --team ENG --format full
2. Analyze for Dependencies
For each group, look for:
- Foundation work - Core infrastructure others depend on
- Feature work - Built on top of foundation
- Follow-up work - Enhancements after initial feature
3. Establish Relationships
Link dependencies using --blocked-by:
linear issues update ENG-456 --blocked-by ENG-123
linear issues update ENG-789 --blocked-by ENG-456
linear issues update ENG-500 --blocked-by ENG-123,ENG-456
4. Verify the Graph
Check your work:
linear deps --team ENG
linear search --has-circular-deps --team ENG
linear deps --team ENG | grep "blocks:"
Discovery Patterns
Pattern 1: Text-Based Discovery
Issues often reference each other in descriptions:
linear search "ENG-123" --team ENG
Pattern 2: Keyword Clustering
Group issues by technology/feature:
linear search "OAuth" --team ENG
linear issues update ENG-457 --blocked-by ENG-450
Pattern 3: State-Based Discovery
Work in "Blocked" state often needs explicit blockers:
linear search --state "Blocked" --team ENG
linear issues update ENG-200 --blocked-by ENG-199
Pattern 4: Priority Inversion Detection
High priority work blocked by low priority:
linear search --priority 1 --team ENG
linear search --priority 1 --has-blockers --team ENG
Best Practices
1. Start with Foundation Work
Identify and link core infrastructure first:
linear search "migration" --team ENG
linear search "API foundation" --team ENG
2. Use Consistent Keywords
Tag issues to make discovery easier:
- Add labels:
foundation, feature, enhancement
- Use consistent titles: "Foundation: OAuth", "Feature: Login with OAuth"
3. Regular Discovery Sessions
Run discovery weekly:
linear search --team ENG --limit 50
linear search --has-blockers --team ENG
4. Document Reasoning
When linking dependencies, add a comment explaining why:
linear issues update ENG-456 --blocked-by ENG-123
linear issues comment ENG-456 --body "Blocked by ENG-123 because we need OAuth provider before implementing login flow"
Commands Reference
Discovery Commands
linear search "<keyword>" --team <TEAM>
linear search --has-dependencies --team <TEAM>
linear search --has-blockers --team <TEAM>
linear search --has-circular-deps --team <TEAM>
linear search --blocked-by <ISSUE-ID>
linear search --blocks <ISSUE-ID>
Linking Commands
linear issues update <ISSUE> --blocked-by <BLOCKER>
linear issues update <ISSUE> --blocked-by <BLOCKER1>,<BLOCKER2>
linear issues update <ISSUE> --depends-on <DEPENDENCY>
linear issues update <ISSUE> --blocked-by ""
Verification Commands
linear deps <ISSUE-ID>
linear deps --team <TEAM>
linear issues blocked-by <ISSUE-ID>
linear issues blocking <ISSUE-ID>
linear issues dependencies <ISSUE-ID>
Example Workflow
Scenario: 100 Auth-Related Issues, No Links
Goal: Discover and link all authentication-related dependencies.
linear search "auth" --team ENG --format full > auth_issues.txt
linear search "OAuth login" --team ENG
linear issues update ENG-451 --blocked-by ENG-450
linear issues update ENG-452 --blocked-by ENG-450
linear issues update ENG-453 --blocked-by ENG-450
linear search "session" --team ENG
linear issues update ENG-460 --blocked-by ENG-451
linear deps --team ENG
linear search --has-circular-deps --team ENG
linear search --state "Blocked" --team ENG
Output Format
After running discovery, present findings as:
DEPENDENCY DISCOVERY REPORT: Team ENG
════════════════════════════════════════
DISCOVERED RELATIONSHIPS (12)
────────────────────────────────────────
Foundation Work:
ENG-450 OAuth provider setup
→ blocks 3 features: ENG-451, ENG-452, ENG-453
ENG-460 Session management
→ blocks 2 features: ENG-461, ENG-462
Feature Work:
ENG-451 OAuth login
→ blocks 1 enhancement: ENG-470
RECOMMENDATIONS
────────────────────────────────────────
1. Prioritize ENG-450 (blocks 3 features)
2. Link ENG-475 to ENG-450 (mentioned in description)
3. Review circular dependency: ENG-480 ↔ ENG-481
COMMANDS TO RUN
────────────────────────────────────────
linear issues update ENG-475 --blocked-by ENG-450
linear issues update ENG-480 --blocked-by "" # Break cycle
Automation Tips
For large backlogs (100+ issues), automate discovery:
- Export all issues:
linear search --team ENG --limit 250 > backlog.txt
- Group by keyword: Use grep to find related issues
- Create dependency map: Document relationships in a spreadsheet
- Batch link: Run update commands for each discovered relationship
- Verify:
linear deps --team ENG to check the final graph
Anti-Patterns to Avoid
❌ Don't over-link: Only link true dependencies, not "nice to have" relationships
❌ Don't create cycles: Always verify no circular dependencies
❌ Don't link to closed issues: Check issue state before linking
❌ Don't assume: If unsure whether A blocks B, ask the team
Success Metrics
After running link-deps, you should have:
- ✅ Clear work order (know what to do first)
- ✅ No circular dependencies
- ✅ Foundation work identified and prioritized
- ✅ Blocked work has explicit blockers
- ✅ Dependency graph visualizes cleanly
Run linear deps --team <TEAM> and you should see a clear tree structure with minimal orphaned issues.