Skip to content
GamebreackPublic

About

Agent skill that maps how a codebase, several repos, a folder or documents (Word, PDF) flow — three small Mermaid diagrams, checked against the sources and kept current.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

flow-map

Latest release License: MIT

An agent skill that draws a visual map of how your repo, system or process flows from A to B, so you can find your way around a project that has grown too big to hold in your head.

%%{init: {"theme":"base","themeVariables":{"fontFamily":"system-ui, -apple-system, Segoe UI, sans-serif","fontSize":"15px","primaryTextColor":"#1b221e","lineColor":"#8a968f","clusterBkg":"transparent","clusterBorder":"#b7c0ba","titleColor":"#5d6962","edgeLabelBackground":"#ffffff"},"flowchart":{"curve":"basis","nodeSpacing":22,"rankSpacing":30,"padding":14,"htmlLabels":true,"subGraphTitleMargin":{"top":6,"bottom":14}}}}%%
flowchart TD
    A["<b>member-app</b><br/>member asks for a book"]
    L["<b>catalog-svc</b><br/>says when a book is free"]

    subgraph F1["Phase 1 · Request"]
        B["<b>Request received</b><br/>one per member and book"]
        C["<b>Availability check</b><br/>is a copy free?"]
    end

    subgraph F2["Phase 2 · Reserve"]
        D["<b>Hold placed</b><br/>one copy set aside"]
        E["<b>Member notified</b><br/>ready for pick-up notice"]
    end

    subgraph F3["Phase 3 · Return"]
        H["<b>Book returned</b><br/>copy is back on the shelf"]
        Z["<b>Loan closed</b><br/>end of the path"]
    end

    A -->|"request"| B
    B --> C
    L -->|"book available"| C
    C --> D
    D --> E
    E -->|"pick-up"| H
    H --> Z
    %% 7: missing
    H -->|"book is back"| L

    classDef ext fill:#e7eae8,stroke:#8a968f,color:#1b221e
    classDef p1 fill:#dbe8f6,stroke:#4a7fb5,color:#1b221e
    classDef p2 fill:#fbefd2,stroke:#c3962c,color:#1b221e
    classDef p3 fill:#d8eee2,stroke:#3f8f68,color:#1b221e
    class A,L ext
    class B,C p1
    class D,E p2
    class H,Z p3
    linkStyle 7 stroke:#c0392b,stroke-width:2.5px,stroke-dasharray:6 4
Loading

Part of an example map. Full example: map-template.md.

Quick start

mkdir -p ~/.claude/skills && git clone https://github.com/Gamebreack/flow-map.git ~/flow-map-src && ln -s ~/flow-map-src/.agents/skills/flow-map ~/.claude/skills/flow-map

Then ask: map the flow of this repo

  • Other agents: copy .agents/skills/flow-map into the agent's skills folder (often ~/.agents/skills/).
  • Windows: copy the folder instead of linking it.

What you get

One Markdown file, in English unless you ask for another language:

  • What happens: the stages from start to finish, one box each.
  • Who talks to whom: the systems or people involved.
  • The life of one item: the steps one order, request or file goes through.
  • A status line (what exists, what is missing) and a legend.
  • A "Where it lives" table that points each stage to its file or folder.
  • A stamp with the date and the git commit it was drawn from.

Why it's different

  • Every box and arrow is checked against the sources, then reviewed by a fresh agent (or clearly marked as a draft when that isn't possible).
  • Missing pieces are drawn in red, never invented.
  • Small on purpose: each diagram has a box limit, so it stays readable.
  • It maps several repos or documents (Markdown, Word, PDF), not just one repo.
  • It is kept current from what changed in git.
  • Nothing to install, and read-only: it writes only the map file.

What it can map

Target Where the map is saved (flow-map.md)
One repo, a monorepo or a plain folder The root of the target
Several repos forming one system The folder that holds them
Documents Next to them
Unclear The agent asks

Example prompts

  • "map the flow of this repo"
  • "map how these services talk: ~/code/shop-api ~/code/shop-web"
  • "map the order process from the docs in ~/handbook/ops"
  • "map the process in this PDF"
  • "update the flow map"

Viewing the map

  • GitHub and claude.ai: the diagrams render automatically.
  • VS Code: install a Mermaid extension to preview them.

Layout

.claude/skills/flow-map       # link to .agents/skills/flow-map
.agents/skills/flow-map/
├── SKILL.md                  # the instructions the agent follows
├── references/
│   └── style.md              # diagram blocks, colors, pitfalls
└── assets/
    └── map-template.md       # a filled example with placeholders

License

MIT

About

Agent skill that maps how a codebase, several repos, a folder or documents (Word, PDF) flow — three small Mermaid diagrams, checked against the sources and kept current.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors