with one click
deps
Analyze dependency usage for library/framework/SDK upgrades
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Analyze dependency usage for library/framework/SDK upgrades
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Smart temporal analysis using git history - Hotspots, Coupling, and Recent Contributors
Analyze the impact scope of code changes using static dependency analysis
Get project overview - scan <5% of files to achieve 70-80% understanding
Learn design patterns from the current codebase
List saved SourceAtlas analysis results
Clear saved SourceAtlas analysis results
| name | deps |
| description | Analyze dependency usage for library/framework/SDK upgrades |
Constitution: ANALYSIS_CONSTITUTION.md v1.1
Target: $ARGUMENTS (library name, version upgrade, or iOS minimum version) Goal: Analyze dependency usage and provide upgrade guidance Time Limit: 5-15 minutes
--force flag present).sourceatlas/deps/You are analyzing dependency usage to help users understand:
| Input Pattern | Type | Focus |
|---|---|---|
iOS 17, iOS 16 → 17 | iOS Minimum Version Upgrade | Removable #available, deprecated APIs, new opportunities |
iOS SDK 26, Xcode 16 | SDK/Compiler Upgrade | Compilation warnings, Swift version, new syntax |
react 17 → 18, pandas 1.x → 2.x | Major Version Upgrade | Breaking changes, deprecated APIs, new patterns |
react, pandas (no version) | Usage Inventory | List usage points only |
Execute these phases in order. See workflow.md for complete details.
Purpose: Identify upgrade type and confirm analysis rules with user before proceeding.
Steps:
$ARGUMENTSAskUserQuestion to confirm rules→ See workflow.md#phase-0
Purpose: Find current dependency version from manifest files.
Manifest files by ecosystem:
package.json, package-lock.jsonPodfile, Package.swiftbuild.gradle, build.gradle.kts→ See workflow.md#phase-1
Purpose: Find official migration guide using WebSearch.
Search for:
→ See workflow.md#phase-2
Purpose: Locate every place the dependency is used.
Search patterns:
import statements, API callsimport statements, #available checksimport statements, API level checks→ See workflow.md#phase-3
Purpose: Group usage by category and match against upgrade rules.
Categories:
→ See workflow.md#phase-4
Purpose: Output complete YAML analysis following template.
→ See output-template.md for complete format
Your analysis should follow this YAML structure:
dependency_analysis:
target: "${ARGUMENTS}"
type: "[library|sdk|framework|runtime]"
analysis_time: "[ISO 8601 timestamp]"
constitution_version: "1.1"
version_info:
current: "[detected version]"
source: "[manifest file]"
target: "[target version if upgrade]"
rules_applied:
source: "[built-in|web_search|user_provided]"
rule_count: [number]
# Required changes for upgrade
required_changes:
removable_availability_checks: [...]
deprecated_api_usages: [...]
breaking_change_impacts: [...]
# Optional modernization opportunities
modernization_opportunities:
items: [...]
# Complete usage inventory
usage_inventory:
total_files: [number]
total_usage_points: [number]
by_category: [...]
# Step-by-step migration guide
migration_checklist:
estimated_effort: "[low|medium|high]"
recommended_approach: "[description]"
steps: [...]
# Risk evaluation
risk_assessment:
overall_risk: "[🟢 low|🟡 medium|🔴 high]"
factors: [...]
recommendations: [...]
→ See output-template.md for complete specification and examples
AskUserQuestion in Phase 0 to confirm rules before full analysisfile:line referencerules_applied:
source: "web_search" # Or "built-in" if no guide found
rule_count: 12
Follow ANALYSIS_CONSTITUTION.md:
After generating your analysis, execute verification steps:
Parse output for all quantifiable claims (counts, versions, file paths)
verification_summary:
checks_performed: [...]
confidence_level: "high" # high|medium|low
notes: [...]
→ See verification-guide.md for complete checklist
--force.sourceatlas/deps/${SANITIZED_TARGET}.md→ See reference.md#cache-behavior
Complete YAML report auto-saves after verification:
💾 Saved to .sourceatlas/deps/react-17-18.md
→ See reference.md#auto-save-behavior
After analysis, suggest appropriate next steps based on risk level.
→ See reference.md#handoffs
#available patterns→ See reference.md#language-specific-best-practices
Detailed documentation available in:
Start your output with:
🗺️ SourceAtlas: Dependencies
───────────────────────────────
📦 [target] │ [N] APIs found
Then output complete YAML following output-template.md.