PTENES
TRACK 4

🔎 Diagrams, browser & research

The supporting skills that power it all. Visualize flows with Mermaid, draw freeform diagrams with Excalidraw, automate the browser with Playwright, and extract competitive intelligence from any site — all within Claude Code.

4
Modules
24
Topics
~1.5h
Duration
Practical
Level
Your Page final result 📊 beautiful-mermaid ✏️ excalidraw 🕹️ agent-browser 🔭 website-intelligence Supporting skills that expand what you already know how to build

Track 4 ecosystem — supporting skills in action

Learning path map

Detailed content

4.1~25 min

📊 beautiful-mermaid

Renders Mermaid code as high-resolution SVG and PNG using the Beautiful Mermaid library — ideal for documenting flows, architectures, and sequences without leaving Claude Code.

What it is:

beautiful-mermaid is a skill that takes Mermaid code (flowchart, sequence, class, ER…) and renders it as SVG or PNG using the mermaid.js library in an intermediate HTML file.

Why learn:

Text-generated diagrams are versionable and editable — no dragging boxes around in visual tools. You describe it, Claude draws it.

Key concepts:

Mermaid DSL, programmatic rendering, vector SVG, raster PNG.

What it is:

The skill supports all Mermaid types: flowchart (LR/TD), sequence, class, ER, Gantt, gitGraph, mindmap, and quadrantChart.

Why learn:

Each type solves a different problem — choosing the right one communicates better and saves revisions.

Key concepts:

flowchart LR/TD, sequenceDiagram, classDiagram, erDiagram, gantt, mindmap.

What it is:

Mermaid offers ready-made themes (default, dark, forest, neutral, base), and beautiful-mermaid selects the best one for the context or accepts direct instructions.

Why learn:

A diagram with the correct theme can be published directly in the documentation or a slide — no post-production needed.

Key concepts:

%%{init: {"theme": "dark"}}%%, themeVariables, contrast, presentation vs. development.

What it is:

The skill follows 5 steps: (1) generate/validate Mermaid code, (2) render SVG via CLI, (3) create an HTML wrapper, (4) capture a high-resolution PNG with agent-browser, (5) clean up intermediate files.

Why learn:

Understanding the pipeline lets you debug failures and know which step to customize.

Key concepts:

mmdc CLI, HTML wrapper, viewport, screenshot, cleanup.

What it is:

SVG is vector-based (scales without loss, editable) and ideal for the web; PNG is rasterized at high resolution (2×–3×) and ready for documents and slides.

Why learn:

Choosing the wrong format results in blurry diagrams in PDFs or files that are too large for the repository.

Key concepts:

Vector SVG, raster PNG, DPI, 2×/3× resolution, compatibility.

What it is:

The most common errors: theme not applied (init block misplaced), diagram cut off (viewport too small), and empty SVG (invalid Mermaid syntax).

Why learn:

Recognizing the symptom saves debugging time — every error has a predictable cause and solution.

Key concepts:

init block, viewport, Mermaid syntax, pre-validation.

View Full
4.2~25 min

✏️ excalidraw

Generates Excalidraw diagrams from text descriptions — flowcharts, architecture, mind maps, relationship diagrams — with output in .excalidraw ready to open and edit.

What it is:

The excalidraw skill converts text descriptions (e.g., "login flow with 3 steps") into valid Excalidraw JSON, ready to open in the visual editor and continue editing by hand.

Why learn:

Starting from a generated draft is much faster than building from scratch — you refine it instead of creating from nothing.

Key concepts:

Excalidraw JSON, natural language → structure, .excalidraw file, collaborative editing.

What it is:

The skill recognizes 9 types: flowchart, relationship diagram, mind map, architecture, DFD, swimlane (business flow), class diagram, sequence diagram, and ER diagram.

Why learn:

Each type has its own layout and semantics — describing the right context produces a much more useful diagram.

Key concepts:

User intent → diagram type; swimlane, ER, sequence, mind map.

What it is:

The skill positions elements with horizontal spacing of 200–300px and vertical spacing of 100–150px, centering important elements and avoiding overlaps.

Why learn:

Well-calculated coordinates produce readable diagrams without having to rearrange everything in the visual editor.

Key concepts:

x/y coordinates, horizontal/vertical gap, radial layout (mind map), grid layout (relationship).

What it is:

All elements use fontFamily: 5 (Excalifont) and a consistent palette: light blue for primary, light green for secondary, yellow for central, light red for alerts.

Why learn:

Visual consistency makes the diagram look intentional — not like a random collage of shapes.

Key concepts:

fontFamily: 5, strokeColor, backgroundColor, fontSize 16–24px, 4-color palette.

What it is:

The output is a file .excalidraw (JSON with type, version, elements, and appState) saved in the current directory and directly openable in the Excalidraw app or VS Code.

Why learn:

Understanding the format lets you inspect and manually fix anything that came out wrong.

Key concepts:

elements array, appState, unique IDs, type: "excalidraw".

What it is:

The skill supports icons from external libraries (AWS, Azure, GCP, Kubernetes) installed in Excalidraw—when available, they enrich architecture diagrams with official icons.

Why learn:

Architecture diagrams with official icons communicate technology instantly and unambiguously.

Key concepts:

Excalidraw libraries, .excalidrawlib, imageElement, fallback without an icon.

View Full
4.3~25 min

🕹️ agent-browser (Playwright)

Automates browser interactions: navigating, filling out forms, taking screenshots, testing web apps, and extracting data—the perfect validator for confirming that the page you built actually works.

What it is:

agent-browser is a skill that controls a real browser (via Playwright) with text commands — opening URLs, interacting with elements, taking screenshots, and extracting page data.

Why learn:

Browser automation is essential for validating built pages, testing forms, and confirming visual behavior before delivery.

Key concepts:

Playwright, headless browser, automation, visual validation.

What it is:

The basic cycle is always: (1) agent-browser open URL, (2) agent-browser snapshot -i to get refs for interactive elements, (3) interact using the returned refs.

Why learn:

The snapshot returns refs (@e1, @e2…) that are stable identifiers for interaction—without them, commands don't know where to click.

Key concepts:

open, snapshot -i, refs @eN, click, type, fill.

What it is:

The skill captures screenshots (agent-browser screenshot arquivo.png) and can record a full video of the session to document workflows or report bugs visually.

Why learn:

Screenshots are definitive proof that a page is correct — more reliable than inspecting HTML.

Key concepts:

PNG screenshot, video recording, viewport 1920×1080, fullPage.

What it is:

The skill fills in fields (fill @ref "valor"), selects options, clicks buttons, and checks the result — perfect for testing signup, login, and checkout flows.

Why learn:

Manually testing each form after every change is impractical — automation ensures fast regression testing.

Key concepts:

fill, select, check, submit, assert-text, assert-visible.

What it is:

The skill extracts text (get-text), attributes (get-attr), cookies, localStorage, and even intercepts network requests to inspect APIs in real time.

Why learn:

Extracting data from the DOM or network is a shortcut to validate that the page displays what the backend sent.

Key concepts:

get-text, get-attr, cookies, localStorage, network intercept.

What it is:

The skill supports multiple browser sessions in parallel, headed mode (visible) for debugging, and saving authentication state to reuse logged-in sessions.

Why learn:

Parallel sessions let you test multi-user flows; headed mode lets you see exactly what the browser sees.

Key concepts:

session, headed mode, storage state, parallel browsers, auth reuse.

View Full
4.4~25 min

🔭 website-intelligence

Scrapes the client's site, analyzes the top 5 competitors, and generates a competitive analysis report in HTML — then builds a premium, scroll-animated website based on real data via Firecrawl MCP.

What it is:

website-intelligence is a 6-phase skill: client brand extraction → niche analysis → competitive report → build brief → site build → quality audit.

Why learn:

Instead of guessing what the client needs, you start with real market data — the resulting website is grounded in evidence, not opinion.

Key concepts:

Firecrawl MCP, web scraping, competitive analysis, data-driven design.

What it is:

Phase 1 uses Firecrawl to extract the client's visual identity, tone of voice, and site structure. Phase 2 finds the 10 biggest competitors and deeply scrapes the 5 best.

Why learn:

Without understanding the market, the site feels generic. With real data, every design decision has a rationale.

Key concepts:

mcp__firecrawl__scrape, mcp__firecrawl__search, visual identity, top 10%, market patterns.

What it is:

The skill generates a polished HTML report (with @media print) that includes profiles of the 5 competitors, a comparison table, an SEO landscape, and recommended design direction.

Why learn:

A visual report delivered to the client justifies creative decisions and builds trust before the build.

Key concepts:

competitive-analysis.html, @media print, Instrument Serif, DM Sans, swatches, comparison table.

What it is:

Before building, the skill stops and presents a brief with design direction, site architecture, content framework, and conversion playbook—requiring explicit approval.

Why learn:

The hard stop prevents building in the wrong direction — reworking a complete site is 10× more expensive than reviewing a brief.

Key concepts:

Hard stop, approval, build brief, design direction, site architecture.

What it is:

With the brief approved, the skill builds the complete site: scroll-triggered animations for every transition, parallax, premium micro-interactions, and a dark/light visual rhythm — Apple/Stripe quality.

Why learn:

Seeing the complete "research → website" process demystifies how premium websites are built using real data.

Key concepts:

Scroll-triggered, parallax, micro-interactions, dark/light, 3D placeholder, cinematic feel.

What it is:

The final phase audits SEO (H1, meta, schema), accessibility (alt text, contrast, ARIA), performance (cache, lazy loading), and checks the client-ready checklist before declaring the build complete.

Why learn:

A beautiful site that doesn't pass the audit isn't deliverable — phase 6 ensures form and function are aligned.

Key concepts:

SEO audit, WCAG accessibility, performance, checklist, preview deploy.

View Full
← All tracks Back to the beginning →