agentleFS
enstwenstw/thesisbug2/.agents/skills/diagram/SKILL.md

diagram

Skill0 starsChanged 7 days agoMITView on GitHub

Creates or updates a diagram or figure (flowchart, sequence, class, component, state, ER, use-case, mindmap, gantt, activity) for a paper, document, or slide. Use whenever a figure is needed in the corpus. Output is SVG, from PlantUML rendered by ./fw plantuml2svg (Kroki, no rate limits) when automatic layout suits the diagram, or written directly as SVG when the layout must be set, such as left-to-right flows for 16:9 slides; commits the text source.

51 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-sync, benchmark-models and 10 more.

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.
  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 4 projects that use this

  • ShreyRaviSkill

    benchmark-models

    Cross-model benchmark for gstack skills. Runs the same prompt through Claude, GPT (via Codex CLI), and Gemini side-by-side — compares latency, tokens, cost, and optionally quality via LLM judge. Answers "which model is actually best for this skill?" with data instead of vibes. Separate from /benchmark, which measures web page performance. Use when: "benchmark models", "compare models", "which model is best for X", "cross-model comparison", "model shootout". (gstack) Voice triggers (speech-to-text aliases): "compare models", "model shootout", "which model is best".

    Also in 5 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 5 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 4 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 3 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 4 projects that use this

  • +2 more from ShreyRavi
  • +1 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 43 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When a diagram is needed, the output is SVG, and its source is one of two kinds:

    line 14
  2. Very specific:

    Commit both the .plantuml source and the rendered .svg (or .png).

    line 39

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

diagram — SVG-first figures, from PlantUML or SVG

When a diagram is needed, the output is SVG, and its source is one of two kinds:

  • PlantUML, rendered to SVG with ./fw plantuml2svg (Kroki POST, sidestepping plantuml.com's 509 rate limits), when automatic layout suits the diagram: sequence, class, component, state, ER, use-case, mindmap, gantt, and activity diagrams that may run top to bottom.
  • SVG written directly, by hand or by a script, when the layout has to be set: a left-to-right or multi-row flow for a 16:9 slide, a figure that must fit a given aspect, or deck art that follows the theme colours. PlantUML's current activity syntax only runs top to bottom, and its colours and type sizes are fixed, so a slide would shrink its text below the deck's 34px floor.

Either way, run — and extend — ./fw plantuml2svg rather than curling plantuml.com / Kroki by hand or running a raw plantuml.jar, and do not drop a Mermaid block into a manuscript or deck: neither the deck nor this policy renders Mermaid at view time. (The framework's own Markdown documentation uses Mermaid; see .framework/AGENTS.md.)

Why SVG, and why a text source

  • SVG-first: vector, resolution-independent. Quarto PDF builds convert SVG via rsvg-convert; deck-stage HTML decks embed SVG inline (the required art form for decks — never emoji). Use PNG only when the SVG toolchain is unavailable, and then pass --format png explicitly.
  • A text source in git: diffable, re-renderable, and reviewable. A .plantuml file is that source for its SVG; a directly written SVG is its own source, which is why it must stay plain text (no embedded base64 raster) and why a script that generates one is committed with it.

Workflow: PlantUML

  1. Author/maintain the source as <unit>/<name>.plantuml.
  2. Render to SVG:
    ./fw plantuml2svg <unit>/<name>.plantuml <unit>/<name>.svg
    # PNG fallback only:
    ./fw plantuml2svg <unit>/<name>.plantuml <unit>/<name>.png --format png
  3. Reference it in the qmd:
    ![Caption text](<name>.svg){#fig-label}
  4. Commit both the .plantuml source and the rendered .svg (or .png).
  5. To update a diagram: edit the .plantuml, then re-run the render.

Workflow: SVG written directly

  1. Write <unit>/<name>.svg (a figure in the manuscript) or <talk>/<name>.svg (a slide). If a script draws it, commit the script beside it (<name>.py) and regenerate instead of editing the output, because a hand edit to generated output is lost at the next run and leaves the script and the figure saying different things.
  2. For a slide, put it in an L-CANVAS row as svg: <name>.svg. Set viewBox to width 1728 (the slide's content width) and give the root class="art dg", so 34px text stays 34px; draw with currentColor and var(--chapter) in style attributes, so the art follows the theme. ./fw deck-compile adds width from the viewBox when the root lacks one, because the canvas would otherwise collapse it.
  3. For a manuscript figure, reference it with ![Caption](<name>.svg){#fig-label} and use literal colours and font sizes: rsvg-convert has no deck stylesheet, so var(--chapter) would not resolve in the PDF.
  4. Note the source tool in an adjacent <name>.README.md when the SVG was exported from another program, so the next editor knows where to change it.

Raster imagery

For AI-generated raster imagery (painterly art, not diagrams), use Codex's native image tool or the discovered genimage-img2 Codex wrapper: generation is the provider exception because Codex is the maintainer's currently stable backend. If unavailable, report the asset as pending instead of switching providers. SVG-first still governs diagrams and icons.

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.