agentleFS
HoangYellHoangYell/markdy-com/skills/markdy-visual-capture/SKILL.md

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.

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
  1. Very specific:

    Zero Fake Mockup Policy: NEVER fabricate evidence using raw HTML <div> mocks, hardcoded emojis (🌐, ⚡, 🐘), or dummy SVG lines.

    line 15
  2. Distinctive:

    Mandatory Live Server Execution: Always start the authentic local web application (e.g.

    line 16
  3. Very specific:

    Landscape 16:9 Format: All documentation and showcase images must use 1600×900 px rendered at deviceScaleFactor: 2 (3200×1800 virtual …

    line 20
  4. Distinctive:

    No Center Link Distractions: Do NOT draw heavy magical beams or lines crossing over the diagram content.

    line 25
  5. Distinctive:

    When adding a new diagram scene to documentation:

    line 75
  6. Very specific:

    Add the scene metadata entry in scripts/generate-all-decorated-images.mjs:

    line 77
  7. Very specific:

    Verify the generated image at docs/images/scene-my-new-architecture.webp.

    line 90

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. 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.
  3. 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.
  4. Landscape 16:9 Format: All documentation and showcase images must use 1600×900 px rendered at deviceScaleFactor: 2 (3200×1800 virtual resolution) and saved as optimized .webp.
  5. 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).
  6. 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.
  7. 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).
  8. 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).
  9. 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.
  10. Brand Top Bar: Sleek header with the 3D Markdy icon, Markdy.com logo, 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.mjs

This 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) to 80% progress so flow edges, requests, and active cues are visible.
  • Triggers auto-zoom centering (#canvas-zoom-fit-btn).
  • Saves raw .webp captures in tmp/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.mjs

This script reads raw captures from tmp/raw-captures/ and writes decorated landscape images to:

  • docs/images/*.webp
  • website/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/ and website/public/images/
  • Raw Captures Cache: tmp/raw-captures/

💡 Adding a New Diagram Scene

When adding a new diagram scene to documentation:

  1. 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',
    }
  2. Run node scripts/generate-all-decorated-images.mjs.
  3. Verify the generated image at docs/images/scene-my-new-architecture.webp.

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.