agentleFS
varkartvarkart/visualcave/CLAUDE.md

visualcave

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

Screenshots are saved to tests/screenshots/ (gitignored) after each run.

  • Installs packages

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test your change renders: Run npm test — all Playwright tests must pass.

    line 5
  2. Very specific:

    Keep SKILL.md under 700 words: Every word loads on every invocation.

    line 7
  3. Very specific:

    New diagram type?: Add an example file in examples/ and a row in references/diagram-types.md.

    line 11

≈ “Common” is an estimate: at least 1 in 5 of the 28,633 CLAUDE.md 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
CLAUDE.md

Contributing to visualcave

Before You Open a PR

  1. Test your change renders. Run npm test — all Playwright tests must pass. Each test opens an HTML file in a real browser and asserts the Mermaid SVG renders without error.
  2. Keep SKILL.md under 700 words. Every word loads on every invocation. Move reference material to references/. skills/visualcave/SKILL.md is a byte-identical mirror required by the Antigravity CLI plugin loader — every SKILL.md edit must update both copies (enforced by tests/skill-md-guard.spec.js).
  3. One thing per PR. A fix, a new example, or a SKILL.md change — not all three.
  4. New diagram type? Add an example file in examples/ and a row in references/diagram-types.md. Add the example to the Playwright test list in tests/validate-examples.spec.js.
  5. New feature in capture.js / step-through.js / hover.js? Include a before/after test showing it works. These files run in the browser or via Node — prose alone isn't enough.

What Won't Be Accepted

  • Third-party npm dependencies in production code. capture.js uses puppeteer — that's already a debt. Don't add more.
  • Hardcoded SVG coordinates. Everything must use Mermaid — no <rect x="..." y="...">.
  • Breaking the template. The HTML template in SKILL.md is the core output format. Changes must keep: data-source snapshot before mermaid.initialize(), prefers-reduced-motion, dark mode CSS vars, and the copyMermaid / toggleTheme pattern.
  • Renaming classDef colors. Other files depend on :::yellow, :::blue, etc.

Running Tests

npm install
npx playwright install chromium
npm test              # headless
npm run test:ui       # Playwright UI mode
npm run test:headed   # visible browser

Screenshots are saved to tests/screenshots/ (gitignored) after each run.

File Map

SKILL.md                  ← core skill (loaded on every invocation)
references/               ← loaded on demand
  diagram-types.md        ← type → keyword → example lookup
  dark-mode.md            ← dark mode token reference
  theming.md              ← custom brand theming guide
  animated.md             ← SVG animation classes (non-Mermaid only)
  astro-component.md      ← varkart.dev Astro tokens, component template, React/TSX output
examples/                 ← live rendered output files
capture.js                ← PNG/SVG/PDF/GIF/OG export (Node + puppeteer)
step-through.js           ← sequential reveal UI
hover.js                  ← hover dim/highlight
tests/                    ← Playwright validation suite

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.