visualcave
CLAUDE.md2 starsChanged 5 months agoMITView on GitHub
Screenshots are saved to tests/screenshots/ (gitignored) after each run.
- Installs packages
In this repository2 other files it gives its agents.
- .cursor/rules/visualcave.mdcCursor rule
- visualcaveSkill
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
- Very specific: line 5
Test your change renders: Run npm test — all Playwright tests must pass.
- Very specific: line 7
Keep SKILL.md under 700 words: Every word loads on every invocation.
- Very specific: line 11
New diagram type?: Add an example file in examples/ and a row in references/diagram-types.md.
≈ “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.
Files
Contributing to visualcave
Before You Open a PR
- 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. - Keep SKILL.md under 700 words. Every word loads on every invocation. Move reference material to
references/.skills/visualcave/SKILL.mdis a byte-identical mirror required by the Antigravity CLI plugin loader — every SKILL.md edit must update both copies (enforced bytests/skill-md-guard.spec.js). - One thing per PR. A fix, a new example, or a SKILL.md change — not all three.
- New diagram type? Add an example file in
examples/and a row inreferences/diagram-types.md. Add the example to the Playwright test list intests/validate-examples.spec.js. - 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.jsuses 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-sourcesnapshot beforemermaid.initialize(),prefers-reduced-motion, dark mode CSS vars, and thecopyMermaid/toggleThemepattern. - 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 browserScreenshots 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 suiteDoes 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
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.

