Skill v1.0.1
currentAutomated scan100/1003 files
version: "1.0.1" 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:
# 1. Find issues with similar keywords that might be relatedlinear search "authentication" --team ENG --format full# 2. Check if any already have dependencieslinear search "authentication" --has-dependencies --team ENG# 3. Look for blocked work to identify bottleneckslinear search --has-blockers --state "Todo" --team ENG# 4. Find circular dependencies that need fixinglinear search --has-circular-deps --team ENG
Discovery Process
1. Identify Related Work
Search for issues by theme:
# Find all auth-related worklinear search "auth" --team ENG --format full# Find all database-related worklinear search "database" --team ENG --format full# Find all API-related worklinear 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:
# Feature depends on foundationlinear issues update ENG-456 --blocked-by ENG-123# Follow-up depends on featurelinear issues update ENG-789 --blocked-by ENG-456# Multiple dependencieslinear issues update ENG-500 --blocked-by ENG-123,ENG-456
4. Verify the Graph
Check your work:
# Visualize the dependency treelinear deps --team ENG# Check for circular dependencieslinear search --has-circular-deps --team ENG# Find what's blocking the most worklinear deps --team ENG | grep "blocks:"
Discovery Patterns
Pattern 1: Text-Based Discovery
Issues often reference each other in descriptions:
# Search for issue IDs in descriptionslinear search "ENG-123" --team ENG# This finds issues mentioning ENG-123 but not formally linked# Link them: linear issues update <found-id> --blocked-by ENG-123
Pattern 2: Keyword Clustering
Group issues by technology/feature:
# Find OAuth-related issueslinear search "OAuth" --team ENG# Determine which is foundation (likely: "OAuth provider setup")# Link others to it:linear issues update ENG-457 --blocked-by ENG-450 # OAuth provider = ENG-450
Pattern 3: State-Based Discovery
Work in "Blocked" state often needs explicit blockers:
# Find blocked issues without formal dependencieslinear search --state "Blocked" --team ENG# For each, determine what blocks it and link:linear issues update ENG-200 --blocked-by ENG-199
Pattern 4: Priority Inversion Detection
High priority work blocked by low priority:
# Find high priority itemslinear search --priority 1 --team ENG# Check if any are blockedlinear search --priority 1 --has-blockers --team ENG# Verify blockers are appropriately prioritized
Best Practices
1. Start with Foundation Work
Identify and link core infrastructure first:
# Find database migration worklinear search "migration" --team ENG# Find API foundation worklinear search "API foundation" --team ENG# Link feature work to these foundations
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:
# 1. Find new issues added this weeklinear search --team ENG --limit 50# 2. Check for unlinked worklinear search --has-blockers --team ENG# 3. Update dependencies as you discover them
4. Document Reasoning
When linking dependencies, add a comment explaining why:
linear issues update ENG-456 --blocked-by ENG-123linear issues comment ENG-456 --body "Blocked by ENG-123 because we need OAuth provider before implementing login flow"
Commands Reference
Discovery Commands
# Find issues by keywordlinear search "<keyword>" --team <TEAM># Find issues with dependencieslinear search --has-dependencies --team <TEAM># Find blocked worklinear search --has-blockers --team <TEAM># Find circular dependencieslinear search --has-circular-deps --team <TEAM># Find issues blocked by specific issuelinear search --blocked-by <ISSUE-ID># Find issues blocking specific issuelinear search --blocks <ISSUE-ID>
Linking Commands
# Add single blockerlinear issues update <ISSUE> --blocked-by <BLOCKER># Add multiple blockerslinear issues update <ISSUE> --blocked-by <BLOCKER1>,<BLOCKER2># Add dependency (what this depends on)linear issues update <ISSUE> --depends-on <DEPENDENCY># Remove dependencies (update with empty string)linear issues update <ISSUE> --blocked-by ""
Verification Commands
# Visualize dependencieslinear deps <ISSUE-ID>linear deps --team <TEAM># Check specific issue's blockerslinear issues blocked-by <ISSUE-ID># Check what an issue blockslinear issues blocking <ISSUE-ID># List issue dependencieslinear issues dependencies <ISSUE-ID>
Example Workflow
Scenario: 100 Auth-Related Issues, No Links
Goal: Discover and link all authentication-related dependencies.
# Step 1: Find all auth issueslinear search "auth" --team ENG --format full > auth_issues.txt# Step 2: Identify foundation work (look for "OAuth provider", "JWT library", etc.)# Found: ENG-450 "Setup OAuth2 provider"# Step 3: Find all OAuth login featureslinear search "OAuth login" --team ENG# Found: ENG-451, ENG-452, ENG-453# Step 4: Link features to foundationlinear issues update ENG-451 --blocked-by ENG-450linear issues update ENG-452 --blocked-by ENG-450linear issues update ENG-453 --blocked-by ENG-450# Step 5: Find session management worklinear search "session" --team ENG# Found: ENG-460 "Session management"# Step 6: Link session work to OAuth (needs login first)linear issues update ENG-460 --blocked-by ENG-451# Step 7: Visualize the complete graphlinear deps --team ENG# Step 8: Check for circular dependencieslinear search --has-circular-deps --team ENG# Step 9: Find any remaining blocked work without explicit blockerslinear search --state "Blocked" --team ENG# For each, add proper blocker using --blocked-by
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-453ENG-460 Session management→ blocks 2 features: ENG-461, ENG-462Feature Work:ENG-451 OAuth login→ blocks 1 enhancement: ENG-470RECOMMENDATIONS────────────────────────────────────────1. Prioritize ENG-450 (blocks 3 features)2. Link ENG-475 to ENG-450 (mentioned in description)3. Review circular dependency: ENG-480 ↔ ENG-481COMMANDS TO RUN────────────────────────────────────────linear issues update ENG-475 --blocked-by ENG-450linear 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 ENGto 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.