agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/diagram/SKILL.md

diagram

Skill4 starsChanged 4 months agoMITView on GitHub

Turn an architecture, workflow, or system description into a source-backed diagram artifact for Codex users.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use worktree, team and 2 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.
  • MicrosoftSkill

    worktree

    Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.

    Also in 4 projects that use this

  • nicepkgSkill

    team

    根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。

    Also in 3 projects that use this

  • JetBrainsSkill

    slides

    Create and edit presentation slide decks (`.pptx`) with PptxGenJS and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding charts/diagrams/visuals, or diagnosing layout issues such as overflow, overlaps, and font substitution.

    Also in 3 projects that use this

  • an8079Skill

    autopilot

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 10

    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:

    Use this skill when the user asks to make, draw, visualize, or refine a diagram.

    line 8
  2. Distinctive:

    Keep the diagram source editable and include it in the answer or in a requested artifact file.

    line 24
  3. Distinctive:

    Verify syntax when a local renderer or parser is available.

    line 25
  4. Distinctive:

    Prefer inline Mermaid for quick diagrams because Codex can render it directly in chat.

    line 29
  5. Distinctive:

    Use local files only when the user asks for a saved artifact or the diagram is too large for chat.

    line 30
  6. Very specific:

    Do not rely on upstream Claude paths such as ~/.claude/skills/gstack or bundled Excalidraw helpers.

    line 31
  7. Distinctive:

    If image generation or conversion tools are unavailable, return the editable source and state the missing renderer plainly.

    line 32
  8. Distinctive:

    Do not invent system structure when repo evidence is available.

    line 36
  9. Distinctive:

    Do not produce a decorative diagram when the user needs an operational one.

    line 37
  10. Distinctive:

    Do not hide uncertainty; mark inferred edges or speculative components.

    line 38
  11. Distinctive:

    Keep labels short enough to render cleanly.

    line 39

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

Use this skill when the user asks to make, draw, visualize, or refine a diagram.

This port is adapted from garrytan/gstack at commit 11de390be1be6849eb9a15f91ff4922dd16c589a.

Workflow

  1. Clarify the diagram target only if the request is ambiguous:
    • audience
    • format
    • scope
    • level of detail
  2. Choose the simplest useful representation:
    • Mermaid for architecture, flowcharts, sequences, and dependency maps
    • Markdown tables for matrices and responsibility maps
    • generated or editable image artifacts only when the user asks for a visual deliverable
  3. Build from real repo or source evidence when the diagram describes an existing system.
  4. Keep the diagram source editable and include it in the answer or in a requested artifact file.
  5. Verify syntax when a local renderer or parser is available.

Codex Adaptation

  • Prefer inline Mermaid for quick diagrams because Codex can render it directly in chat.
  • Use local files only when the user asks for a saved artifact or the diagram is too large for chat.
  • Do not rely on upstream Claude paths such as ~/.claude/skills/gstack or bundled Excalidraw helpers.
  • If image generation or conversion tools are unavailable, return the editable source and state the missing renderer plainly.

Guardrails

  • Do not invent system structure when repo evidence is available.
  • Do not produce a decorative diagram when the user needs an operational one.
  • Do not hide uncertainty; mark inferred edges or speculative components.
  • Keep labels short enough to render cleanly.

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.