agentleFS
MicrosoftKnown publishermicrosoft/CSS-Exchange/.github/skills/dependency-analysis/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/CSS-Exchange repository that our weekly crawl found: only 7 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about microsoft/CSS-Exchange

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

1 more on GitHub

On Hacker News · 1

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. gootf/software-agent-sop★ 2same name
    2. 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.

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
  1. Very specific:

    Before modifying any file in Shared/ — understand what breaks

    line 23
  2. Distinctive:

    When writing tests — identify which scripts need test coverage for a change

    line 25
  3. Distinctive:

    When assessing risk — map the full blast radius of a proposed change

    line 26
  4. Very specific:

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

    line 47
  5. Distinctive:

    NEVER rely on manual grep to find dependencies.

    line 101
  6. Distinctive:

    Always run Build.ps1 first to ensure XML files are current.

    line 102

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

$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 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.