agentleFS
lingengyuanlingengyuan/my-skills/.claude/skills/pele/SKILL.md

pele

Skill9 starsChanged 3 days agoMITView on GitHub

Render Mermaid diagrams as SVG with Pele. Use its JavaScript API for custom rendering, theming and browser integration.

3 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. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    Use the official JavaScript API from the current local Pele installation.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “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

Pele

Use the official JavaScript API from the current local Pele installation. Do not pin a release.

Save the Mermaid source beside its SVG. Read, render and write in one Node invocation. For standalone use on this machine, the package is installed in ~/.local/share/pele; run inline Node there with absolute input and output paths:

cd ~/.local/share/pele && node --input-type=module - /absolute/input.mmd /absolute/output.svg <<'JS'
import { readFileSync, writeFileSync } from 'node:fs';
import { render } from 'pele';

const [input, output] = process.argv.slice(2);
writeFileSync(output, render(readFileSync(input, 'utf8')).svg);
JS

Pass RenderOptions when the task needs custom layout, fonts, padding, diagram configuration, icons or math. Use CSS variables for theming. For browser integration, use mount() for container sizing, zoom and updates. Consult the installed types or official API and theming docs only when needed.

Return links to the source and SVG after success. Do not query versions, fetch documentation, parse XML separately or create browser previews by default. Preview only when requested or when a layout problem needs inspection.

Preserve diagram content. Report errors or limitations without silently changing renderers. State diagrams use flowchart.curve for transitions.

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.