mcpbeat

Agent Hierarchy Diagram

majiayu000/claude-skill-registry-agent-agent-hierarchy-diagram

Generate visual hierarchy diagrams of agent system showing levels and delegation. Use for documentation or onboarding.

This is a copy. The original lives at majiayu000/agent-hierarchy-diagram.

726 tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
532
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/majiayu000/claude-skill-registry --skill agent-hierarchy-diagram

What comes with it

852 bytes besides the instruction
metadata.json

The instruction itself

8 sections, as written by the author

Agent Hierarchy Diagram

Generate visual diagrams showing agent system structure and relationships.

When to Use

  • Documenting agent system for team
  • Understanding delegation structure
  • Onboarding new contributors
  • Visualizing agent relationships for presentations

Quick Reference

# Generate ASCII tree diagram
./scripts/generate_hierarchy_diagram.sh

# Generate Mermaid diagram
./scripts/generate_mermaid_diagram.sh > hierarchy.mmd

# Save to documentation
./scripts/generate_hierarchy_diagram.sh > agents/hierarchy-visual.txt

ASCII Tree Format

Chief Architect (L0)
├── Foundation Orchestrator (L1)
│   ├── Repository Design (L2)
│   │   ├── Directory Specialist (L3)
│   │   │   └── Junior Engineer (L5)
│   │   └── Config Specialist (L3)
│   └── Config Design (L2)
├── Shared Library Orchestrator (L1)
│   └── Tensor Module Design (L2)
│       └── Tensor Specialist (L3)
└── Tooling Orchestrator (L1)

Mermaid Format

graph TD
    A[Chief Architect L0] --> B[Foundation Orchestrator L1]
    B --> C[Repository Design L2]
    C --> D[Directory Specialist L3]
    D --> E[Junior Engineer L5]

Use Cases

  • Add to /agents/hierarchy.md for reference
  • Include in onboarding documentation
  • Create presentation materials
  • Understand delegation chains
  • Communicate structure to stakeholders

Output Formats

ASCII: Human-readable in terminals, copy-pasteable in docs

Mermaid: Renders in GitHub markdown, editable in Mermaid editor

GraphML: Import into diagram tools (yEd, Graphviz)

References

  • /agents/hierarchy.md - Existing hierarchy documentation
  • agent-test-delegation - Validate diagram accuracy
  • .claude/agents/ - Agent configuration source

How to use it

Copy the folder

Take majiayu000/claude-skill-registry-agent-agent-hierarchy-diagram from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.