markdy-visual-capture
Skill96 starsChanged 3 months agoMITView on GitHub
Capture, scrub, and generate publication-ready, mascot-decorated landscape diagrams for Markdy documentation, marketing, social media, and blog posts using Chrome headless automation.
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- markdy-mcp-debugSkill
- markdy-visual-captureSkill
- markdy-diagram-authorSkill
- markdy-mcp-debugSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Zero Fake Mockup Policy: NEVER fabricate evidence using raw HTML <div> mocks, hardcoded emojis (🌐, ⚡, 🐘), or dummy SVG lines.
- Distinctive: line 16
Mandatory Live Server Execution: Always start the authentic local web application (e.g.
- Very specific: line 20
Landscape 16:9 Format: All documentation and showcase images must use 1600×900 px rendered at deviceScaleFactor: 2 (3200×1800 virtual …
- Distinctive: line 25
No Center Link Distractions: Do NOT draw heavy magical beams or lines crossing over the diagram content.
- Distinctive: line 75
When adding a new diagram scene to documentation:
- Very specific: line 77
Add the scene metadata entry in scripts/generate-all-decorated-images.mjs:
- Very specific: line 90
Verify the generated image at docs/images/scene-my-new-architecture.webp.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.
Files
Markdy Visual Capture & Mascot Decoration Skill
This skill teaches the agent how to capture crisp 2× Retina screenshots from the live Markdy studio / playground (https://markdy.com/playground/ or local dev server) and decorate them into landscape (16:9 widescreen, 1600×900) documentation assets matching the og-markdy.png aesthetic.
🎨 Visual Composition & Verification Rules
- Zero Fake Mockup Policy: NEVER fabricate evidence using raw HTML
<div>mocks, hardcoded emojis (🌐,⚡,🐘), or dummy SVG lines. All evidence must come from either 100% authentic compiler-rendered ASTs or live web app pages. - Mandatory Live Server Execution: Always start the authentic local web application (e.g.
pnpm --filter @markdy/website run preview --port 4321) and use Browser Automation MCP tools (puppeteer_navigate,puppeteer_screenshot) to capture real UI in action. - Dual Visual Evidence Deliverables:
- Live Production UI in Action: Monaco/CodeMirror split editor, live WAAPI motion canvas, token shelf, diagnostics panel (
/playground,/examples,/). - Authentic Compiler-Rendered Blueprints: 1600×900 high-DPI showcase cards compiled directly via
@markdy/core+@markdy/renderer-dom, seeked to active beats with native vector icons and glow shaders.
- Live Production UI in Action: Monaco/CodeMirror split editor, live WAAPI motion canvas, token shelf, diagnostics panel (
- Landscape 16:9 Format: All documentation and showcase images must use
1600×900px rendered atdeviceScaleFactor: 2(3200×1800 virtual resolution) and saved as optimized.webp. - Dominant Main Window: The main diagram window card takes up ~95% of the canvas width, framed with a clean macOS titlebar (🔴 🟡 🟢 traffic light dots and scene tags).
- Mascot Placement: The cute Markdy axolotl mascot (
docs/images/mascot/markdy.webp) sits at the bottom-right corner, naturally overlapping the frame without obscuring key diagram nodes. - Speech Bubble Explanations: Positioned directly above the mascot, providing concise, human-readable explanations of the architectural mechanics (e.g. how Redis caches slugs in under 2ms, how Kubernetes Ingress terminates TLS).
- 3D Icon Pinned Sticky Note: An enlarged yellow sticky note is positioned at the bottom-left corner, pinned at its top-left by the 3D glossy Markdy hexagon icon (
docs/images/mascot/3d-icon.webp). - No Center Link Distractions: Do NOT draw heavy magical beams or lines crossing over the diagram content. The diagram must remain clear, sharp, and dominant.
- Brand Top Bar: Sleek header with the 3D Markdy icon,
Markdy.comlogo, and 3D architectural pattern badges.
🛠️ Step-by-Step Execution Workflow
Step 1: Capture Raw Playground Scenes
To capture clean diagram scenes from https://markdy.com/playground/:
node .agents/skills/markdy-visual-capture/scripts/capture-playground-scenes.mjsThis script:
- Connects to Google Chrome headless.
- Switches the playground to canvas-only view (
#view-canvas-btn). - Iterates through the dropdown examples (
#quick-example-select). - Scrubs the timeline slider (
#timeline-range) to80%progress so flow edges, requests, and active cues are visible. - Triggers auto-zoom centering (
#canvas-zoom-fit-btn). - Saves raw
.webpcaptures intmp/raw-captures/.
Step 2: Decorate with Mascot & Annotations
To apply the mascot, 3D pin note, speech bubble, and landscape frame across all scenes:
node scripts/generate-all-decorated-images.mjsThis script reads raw captures from tmp/raw-captures/ and writes decorated landscape images to:
docs/images/*.webpwebsite/public/images/*.webp
📁 Key File Locations
- Mascot Artwork:
docs/images/mascot/markdy.png(Transparent high-res axolotl with wand) - 3D Pin Icon:
docs/images/mascot/3d-icon.png(Glossy 3D green hexagon 'M' icon) - Brand SVG:
docs/images/mascot/icon.svg - Output Directories:
docs/images/andwebsite/public/images/ - Raw Captures Cache:
tmp/raw-captures/
💡 Adding a New Diagram Scene
When adding a new diagram scene to documentation:
- Add the scene metadata entry in
scripts/generate-all-decorated-images.mjs:{ file: 'scene-my-new-architecture.webp', title: 'My New Architecture Title', sceneTag: 'scene theme=paper', stickyNote: '📌 <b>How it works:</b><br/>• Step 1...<br/>• Step 2...', explanation: '<b>Architecture Overview:</b><br/>Explaining how the components communicate in real time! 🚀', badge1: '⚡ High Performance', badge2: '🛡️ Zero Trust', } - Run
node scripts/generate-all-decorated-images.mjs. - Verify the generated image at
docs/images/scene-my-new-architecture.webp.
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
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.

