dependency-analysis
Skill1.3k starsChanged 6 months agoMITView on GitHub
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.
2 other projects use a version of this.
Trending
Quiet this year.thin dataabout the whole repository
Most recently taken up by
- gootf/software-agent-soptheir own version, first seen Aug 30, 2026
- Noorkhalel/saas-ai-skillstheir own version, first seen Jul 12, 2026
Who's talking about microsoft/CSS-Exchange
- PowerShell/PSScriptAnalyzer“UseCorrectCasing gets NullReferenceException from CommandInfo.get_Parameters”GitHub · Aug 23, 2021 · 3 reactions
- A Hacker News story“Microsoft IOC Detection Tool for Exchange Server Vulnerabilities”Hacker News · Mar 6, 2021 · 2 points
- microsoft/ContributorLicenseAgreement“Bot not recognizing MSFT employees”GitHub · Jul 23, 2024
- wazuh/wazuh“Adding rules for Hafnium related MS Exchange vulnerabilities”GitHub · Apr 20, 2021
- wazuh/wazuh“Add new rules for Hafnium MS Exchange vulnerabilities ”GitHub · Apr 9, 2021
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub and Hacker News (7 times).
On GitHub · 6
- Aug 23, 2021UseCorrectCasing gets NullReferenceException from CommandInfo.get_Parameters — PowerShell/PSScriptAnalyzer3 reactions · 2 comments
- Jul 23, 2024Bot not recognizing MSFT employees — microsoft/ContributorLicenseAgreement0 reactions · 2 comments
- Apr 20, 2021Adding rules for Hafnium related MS Exchange vulnerabilities — wazuh/wazuh0 reactions
- Apr 9, 2021Add new rules for Hafnium MS Exchange vulnerabilities — wazuh/wazuh0 reactions
- Mar 15, 2021We need a module for MS Exchange CVE-2021-26855 — OWASP/Nettacker0 reactions · 2 comments
1 more on GitHub
- Mar 8, 2021Is this script working? — GossiTheDog/scanning0 reactions · 4 comments
On Hacker News · 1
- Mar 6, 2021Microsoft IOC Detection Tool for Exchange Server Vulnerabilities2 points · 1 comment
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- gootf/software-agent-sop★ 2same name
- Noorkhalel/saas-ai-skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Before modifying any file in Shared/ — understand what breaks
- Distinctive: line 25
When writing tests — identify which scripts need test coverage for a change
- Distinctive: line 26
When assessing risk — map the full blast radius of a proposed change
- Very specific: line 47
Use the Get-DependencyCascade.ps1 script in this skill's directory, or run the BFS traversal inline:
- Distinctive: line 101
NEVER rely on manual grep to find dependencies.
- Distinctive: line 102
Always run Build.ps1 first to ensure XML files are current.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Identify the changed file(s)
- Query the dependency XML to find direct callers
- Walk the full cascade chain (all levels, not just direct callers)
- Identify root/released scripts (entry points with no dependents)
- Report the full impact scope
Querying Dependencies
Find direct callers of a script
$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:
$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
$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 scriptsImportant 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

