agentleFS
atomicinnovationatomicinnovation/accelerator/.claude/skills/draw-diagram/SKILL.md

draw-diagram

Skill36 starsChanged 11 days agoMITView on GitHub

Choose the kind of diagram that answers a question and draw it

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the guide and choose by it.

    line 30

“Common” is measured: kept by at least 6 in 10 of the 3 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

Draw a diagram

A diagram is worth drawing when it answers a question the reader has faster than prose would. This skill settles what that question is, chooses the kind of diagram that answers it, and hands over to the skill that draws that kind. It draws nothing itself.

Skill directory: ${CLAUDE_SKILL_DIR}

The guide to choosing is ${CLAUDE_SKILL_DIR}/reference/choosing.md. Read it before choosing. Each kind is drawn by the skill beside this one that the guide names, at ${CLAUDE_SKILL_DIR}/../draw-<kind>.

When another skill wants to know which figures to draw

Read the guide and choose by it. That skill says how the figures are written and where they go.

When the user asks for a diagram

1. Settle the question

Say, in one sentence, what the reader wants to know: "which module may depend on which", "what happens to a claim between start-up and prune", "where the token goes". The request usually gives it. Where it gives only a subject ("diagram the launcher"), look at the code first and pick the question most worth answering about it: what is new, what is hard to hold in the head, or what would be dangerous to get wrong. Ask only if the request names no part of the system.

2. Choose the kind

Find the question in the guide. Where two kinds seem to fit, the guide's "Telling neighbours apart" says which. Where the subject needs more than one view, choose one kind per question, and no more than three diagrams unless the user asks for more.

Tell the user the choice in a line, with the reason: "A sequence diagram: you asked about the order of calls in one scenario."

3. Hand over

Invoke the skill for the chosen kind and follow it to the end: it reads the code, writes the spec, draws the page, checks it and delivers it. For several diagrams, do each in turn.

4. Deliver

Give each page's absolute path, say in a sentence what each shows, and say which question you left undrawn and why.

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.