microsoft/css-exchange/dependency-analysis

Claude Code and agent skill by microsoft/css-exchange

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Analyzes script dependencies and cascading impact using the build system XML files. Use this skill when modifying shared functions, reviewing changes to Shared/ code, writing tests for scripts with dependencies, or assessing the blast radius of any code change.

Install

npx vskill@latest install microsoft/css-exchange/dependency-analysis

SKILL.md

The same SKILL.md was published earlier as microsoft/css-exchange/dependency-analysis.

Dependency Analysis

CSS-Exchange scripts dot-source shared functions. Changes to a shared function cascade through multiple levels of dependents. The build system generates two XML files that are the authoritative source (when generated fresh by .build/Build.ps1):

  • dist/dependencyHashtable.xml — What each script imports (parent to child)
  • dist/dependentHashtable.xml — What depends on each script (child to parent)

Generate fresh XML by running .build/Build.ps1 first.

When to Use This

  • Before modifying any file in Shared/ — understand what breaks
  • During code review — verify callers handle changed shared function contracts
  • When writing tests — identify which scripts need test coverage for a change
  • When assessing risk — map the full blast radius of a proposed change

Analysis Process

  1. Identify the changed file(s)
  2. Query the dependency XML to find direct callers
  3. Walk the full cascade chain (all levels, not just direct callers)
  4. Identify root/released scripts (entry points with no dependents)
  5. Report the full impact scope

Querying Dependencies

Find direct callers of a script
powershell
$dependentHashtable = Import-Clixml -Path "dist\dependentHashtable.xml"
$targetPath = (Resolve-Path "Shared\FunctionName.ps1").Path
$directCallers = $dependentHashtable[$targetPath]
Find cascading dependents (all levels)

Use the Get-DependencyCascade.ps1 script in this skill's directory, or run the BFS traversal inline:

powershell
$allDependents = [System.Collections.Generic.HashSet[string]]::new()
$queue = [System.Collections.Generic.Queue[string]]::new()
$directCallers | ForEach-Object { $queue.Enqueue($_); $null = $allDependents.Add($_) }
while ($queue.Count -gt 0) {
$current = $queue.Dequeue()
if ($dependentHashtable.ContainsKey($current)) {
foreach ($dep in $dependentHashtable[$current]) {
if ($allDependents.Add($dep)) {
$queue.Enqueue($dep)
}
}
}
}
Find root/released scripts
powershell
$dependencyHashtable = Import-Clixml -Path "dist\dependencyHashtable.xml"
$rootCandidates = @($dependencyHashtable.Keys) | Where-Object {
-not $dependentHashtable.ContainsKey($_)
}

Report Format

## Dependency Impact Analysis
**Changed File**: path/to/changed/file.ps1
### Level 1: Direct Callers (N scripts)
- Script1.ps1
- Script2.ps1
### Level 2+: Cascading Dependents (N scripts)
- Script3.ps1 (imports Script1)
- Script4.ps1 (imports Script2)
### Root Scripts Affected (N released scripts)
- HealthChecker.ps1
- SetupAssist.ps1
### Total Impact
- Direct: N scripts
- Cascading: N scripts
- Root/Released: N scripts

Important Notes

  • NEVER rely on manual grep to find dependencies. It misses cascading chains.
  • Always run Build.ps1 first to ensure XML files are current.
  • Changes to Shared/ functions have the widest blast radius.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 2 Sep 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,284
Repository forks
393
7-day trend score
36

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/css-exchange/dependency-analysis/badge)](https://verified-skill.com/skills/microsoft/css-exchange/dependency-analysis)

Something wrong with this skill or its page? Tell us.