agentleFS
tykisgodtykisgod/quick-question/skills/deps/SKILL.md

deps

Skill11 starsChanged 2 months agoMITView on GitHub

Analyze .asmdef dependency relationships — Mermaid graph + dependency matrix + issue detection.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • OpenAISkill

    audit

    Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No arguments: analyze all .asmdef files in the project

    line 11
  2. Very specific:

    Use Glob to find Assets//*.asmdef, excluding Tests and Editor asmdefs (filenames containing .Tests., .Editor., or .PlayModeTests.).

    line 17
  3. Very specific:

    Read the .asmdef to get the name field

    line 22
  4. Very specific:

    Read the corresponding .asmdef.meta to get the guid field

    line 23
  5. Very specific:

    Read the GUIDs in the references array

    line 29
  6. Distinctive:

    Use a table to show module-to-module dependencies at a glance:

    line 65
  7. Distinctive:

    Run DFS on the dependency graph to detect cycles

    line 79
  8. Distinctive:

    If cycles exist, list the full circular path

    line 80
  9. Distinctive:

    After generating output, review the Mermaid diagram and matrix yourself:

    line 102
  10. Distinctive:

    Do the ✓ marks in the matrix match the dependency graph?

    line 104
  11. Distinctive:

    If issues are found, fix them before presenting to the user.

    line 108
  12. Distinctive:

    If the user specifies a module name (e.g.

    line 112

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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

Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).

Analyze the .asmdef dependency relationships of all modules in the project, outputting a Mermaid diagram + dependency matrix + issue detection.

Arguments: $ARGUMENTS

  • Optional: specific module names to focus on
  • No arguments: analyze all .asmdef files in the project

Execution Steps

1. Collect All .asmdef Files

Use Glob to find Assets/**/*.asmdef, excluding Tests and Editor asmdefs (filenames containing .Tests., .Editor., or .PlayModeTests.).

2. Build GUID → Name Mapping

For each .asmdef file:

  • Read the .asmdef to get the name field
  • Read the corresponding .asmdef.meta to get the guid field
  • Build a GUID → Name lookup table

3. Parse Dependency Relationships

For each .asmdef:

  • Read the GUIDs in the references array
  • Convert to human-readable names via the lookup table
  • Record: ModuleA → [depends on ModuleB, depends on ModuleC]

4. Output Mermaid Dependency Graph

Generate a Mermaid flowchart, arranged by layer from top to bottom:

```mermaid
graph TD
    subgraph "Layer 0"
        Core
    end
    subgraph "Layer 1"
        Player
        AI
    end
    subgraph "Layer 2"
        UI
        Networking
    end

    Player --> Core
    AI --> Core
    UI --> Player
    Networking --> Core
```
  • Normal dependencies: solid arrow -->
  • Circular dependencies: red dashed -.->|cycle|
  • Layer violations: orange bold ==>|violation|

5. Output Dependency Matrix

Use a table to show module-to-module dependencies at a glance:

| Module ↓ Depends on → | Core | Player | AI | UI | ... |
|------------------------|:----:|:------:|:--:|:--:|:---:|
| Core                   |  -   |        |    |    |     |
| Player                 |  ✓   |   -    |    |    |     |
| AI                     |  ✓   |        | -  |    |     |
| UI                     |      |   ✓    |    | -  |     |

6. Detect Issues

Circular dependency detection:

  • Run DFS on the dependency graph to detect cycles
  • If cycles exist, list the full circular path

Layer violation detection (try in priority order):

  1. Infer from .asmdef dependency graph (default) — modules with no dependencies are Layer 0, modules depending only on Layer 0 are Layer 1, etc. This is the most accurate, reflecting actual code state
  2. Analyze using statements — if no .asmdef files exist (pure directory-based project), scan using statements in .cs files, aggregate modules by namespace, and build a dependency graph from the using references
  3. Read from AGENTS.md — if neither of the above can determine layers, read the manually defined architecture layers in AGENTS.md as a reference

Detect any cases where a lower layer depends on a higher layer.

7. Output Health Summary

### Dependency Health
- Total modules: N
- Average dependencies: X
- Most dependencies: ModuleName (Y dependencies)
- Circular dependencies: None / Found (list them)
- Layer violations: None / Found (list them)

8. Self-Check (Required)

After generating output, review the Mermaid diagram and matrix yourself:

  • Is the Mermaid syntax valid (will it render)?
  • Do the ✓ marks in the matrix match the dependency graph?
  • Are the layer groupings reasonable?
  • Are any modules missing?

If issues are found, fix them before presenting to the user.

Optional Arguments

If the user specifies a module name (e.g. "Player"), only analyze the dependency chain for that module (both upstream and downstream) rather than a full analysis. The Mermaid diagram should only show related modules.

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.