All plugins

mosaic

A design reference engine for Hermes Agent. Mosaic turns a studied reference or a product brief into an original interface direction: a base field, one accent, a type pairing, two signature moves, a composition order, motion rules and an audit checklist. It ships 23 skills and 13 local tools: mosaic_index, mosaic_study, mosaic_design, mosaic_components, mosaic_stacks, mosaic_forge, mosaic_invent, mosaic_recipe, mosaic_audit, mosaic_critique, mosaic_score, mosaic_taste and mosaic_visual. mosaic_forge emits an original component starter for HTML, React, Next, Svelte, Vue or Astro, with CSS or GSAP motion. mosaic_taste reports deterministic taste proxies with confidence and an explicit pairwise calibration contract. mosaic_visual renders a local file or loopback dev-server page in local Chromium and returns measured hard gates, screenshots and an evidence id. It does not clone a reference, copy paid code or call a network. Disclosure: no outbound network, telemetry or credentials; mosaic_audit and mosaic_score read caller-selected local text; the visual gate launches a local browser, allows only local/loopback targets, blocks remote subresources and writes screenshots under the active Hermes home; the recipe and component index are bundled data; no hooks or middleware.

LangerSwordToolsv0.9.1Updated 1 hour ago

About

A design reference engine for Hermes Agent. Mosaic turns a studied reference or a product brief into an original interface direction: a base field, one accent, a type pairing, two signature moves, a composition order, motion rules and an audit checklist. It ships 23 skills and 13 local tools: mosaic_index, mosaic_study, mosaic_design, mosaic_components, mosaic_stacks, mosaic_forge, mosaic_invent, mosaic_recipe, mosaic_audit, mosaic_critique, mosaic_score, mosaic_taste and mosaic_visual. mosaic_forge emits an original component starter for HTML, React, Next, Svelte, Vue or Astro, with CSS or GSAP motion. mosaic_taste reports deterministic taste proxies with confidence and an explicit pairwise calibration contract. mosaic_visual renders a local file or loopback dev-server page in local Chromium and returns measured hard gates, screenshots and an evidence id. It does not clone a reference, copy paid code or call a network. Disclosure: no outbound network, telemetry or credentials; mosaic_audit and mosaic_score read caller-selected local text; the visual gate launches a local browser, allows only local/loopback targets, blocks remote subresources and writes screenshots under the active Hermes home; the recipe and component index are bundled data; no hooks or middleware.

Mosaic

Reference in. Original out. A Hermes plugin and skill pack for turning a studied design reference or a product brief into an original web direction: a base field, one accent, a type pairing, two signature moves, motion rules and an audit.

It is not a template library, a cloner, or a moodboard generator. It gives the agent a design process and a small set of concrete directions, then asks it to study the actual reference and build its own work.

What is in the box

  • 23 Hermes skills: one master method, twelve interaction families (including cast, ASCII and glass), a component grammar, study, design, critique, score, taste, visual and product-film methods, a forge and an inventor.
  • 13 local tools:
    • mosaic_index: the reference families, skills and base tokens.
    • mosaic_study: reference observations → principles, transfer candidates and a do-not-copy contract (a URL alone returns a checklist, not invented facts).
    • mosaic_design: the design director: three concepts, transparent selection, tokens, type, composition and an optional complete page starter.
    • mosaic_components: the public component observations, filterable by family or text.
    • mosaic_stacks: the HTML, React, Next, Svelte, Vue and Astro matrix with paired Hermes skills.
    • mosaic_forge: an original component starter for a stack, with CSS or GSAP motion.
    • mosaic_invent: interaction candidates with a state machine and a transparent taste score.
    • mosaic_recipe: a deterministic direction for a brief.
    • mosaic_audit: a local text scan for generic gradients, transition: all, missing reduced-motion and similar slop.
    • mosaic_critique: design-specific source critique for prompt leakage, copy, focus, slots, radius/font noise.
    • mosaic_score: a transparent pre-awards text score with blockers and next moves.
    • mosaic_taste: deterministic taste proxies with confidence, evidence and a calibration contract; never a universal verdict.
    • mosaic_visual: render a URL or local page in Chromium; return two screenshots, hard-gate results, contrast/overlap/focus/reduced-motion evidence and a bounded visual_guarantee.
  • A CLI over the same handlers, for a demo or CI without Hermes.

No outbound network calls, no API keys, no telemetry, no copied assets. The visual gate is the only renderer: it renders a page the caller already built, either from a local file or a loopback dev server, and needs Playwright Chromium in a browser-capable Python. Remote pages, LAN hosts and cloud-metadata endpoints are refused at the target and at every subresource.

Install

cp -a mosaic ~/.hermes/plugins/mosaic
hermes plugins enable mosaic
python scripts/install_skills.py

Start a new Hermes session so the tools and skills enter the index. The skills can also be copied by hand from skills/ to ~/.hermes/skills/web-design/.

Use

python mosaic_cli.py index
python mosaic_cli.py study --reference "DIA" --observations '{"layout":"index and specimen split","what_works":"the index is the navigation"}'
python mosaic_cli.py design --brief "A quiet portfolio for a type designer" --mode page
python mosaic_cli.py recipe --brief "A collectible racing deck for a design conference" --mood tactile
python mosaic_cli.py components --family press
python mosaic_cli.py stacks
python mosaic_cli.py forge --kind swipe-confirm --stack react --motion gsap
python mosaic_cli.py invent --brief "A quiet onboarding for a design tool" --count 3
python mosaic_cli.py critique --path src/app.css
python mosaic_cli.py audit --path src/app.css
python mosaic_cli.py taste --path src/index.html --brief "A quiet portfolio for a type designer"
python mosaic_cli.py visual --target http://127.0.0.1:4322/

In a Hermes session:

mosaic_study(reference={name: "DIA", observations: {layout: "index and specimen split"}})
mosaic_design(brief="A quiet portfolio for a type designer", mode="page")
mosaic_critique(path="src/components/Hero.tsx")

mosaic_design is the design-director pass. It returns three structural concepts, the selected concept with transparent scores, a reference map, the design system, a content contract and — in page mode — a complete static starter. A reference URL alone is not a study; mosaic_study returns a capture checklist until observations are supplied.

The recipe is a starting direction, not an answer. It deliberately returns a thesis, a token table, two moves, a build order and acceptance checks; the agent still has to study the reference, write original code and verify in a browser.

Visual gate

mosaic_score is a text score. It is not a visual guarantee. mosaic_visual is the browser-backed half:

python mosaic_cli.py visual --target http://127.0.0.1:4322/

One Chromium launch, two viewports (1440x900, 390x844), two screenshots and a hard pass/fail. It measures console errors, overflow, first-screen h1, text overlaps, WCAG contrast, focus visibility, reduced motion, control size and a non-blank screenshot. visual_guarantee is true only when every hard gate passes; strict_visual_guarantee also requires the soft 44px mobile target rule and is reported honestly when it fails.

The tool returns paths to the screenshots instead of base64, so a normal call stays small. It needs Playwright Chromium in a browser-capable Python; on a machine without one it returns status: "needs_browser" and refuses to claim a pass.

A bounded guarantee: rendered layout, contrast, interaction affordance and interaction state. It does not judge taste.

Skills

SkillUse
mosaicMaster method: reference map, system choice, composition, motion, audit
mosaic-cardsCard objects, stacks, fans, arcs, pockets
mosaic-pressPress, hold-to-confirm, destructive actions
mosaic-dragDirect manipulation, reorder, drop targets
mosaic-hoverHover reveals, cursor previews, magnetic actions
mosaic-castRandom character peeks behind section rules
mosaic-studyReference observations → transferable principles
mosaic-designBrief → three concepts → system and page starter
mosaic-critiqueSource review for specificity and honesty
mosaic-asciiMonospace character fields and ASCII atmosphere
mosaic-glassOne glass material with a real fallback
mosaic-scorePre-awards design, usability and originality gate
mosaic-tasteTaste proxies, confidence and pairwise calibration
mosaic-product-videoKinetic 3D plugin demo + working-component reel
mosaic-visualRender a page and pass or fail measured visual gates
mosaic-selectSegmented controls, tabs, small pickers
mosaic-shaderAtmospheric shaders with static fallbacks
mosaic-typeEditorial type, wordmarks, labels, numerals
mosaic-scrollScroll-driven narrative and pinned scenes
mosaic-loadingAgent thinking states and honest progress
mosaic-componentsComponent state matrices and the public component grammar
mosaic-forgeStack-aware component starters with CSS or GSAP
mosaic-inventInteraction candidates with a typed taste rubric

Each skill has a trigger, a procedure, pitfalls and a verification pass. The master skill carries the reference method and the public Construct teardown.

Design stance

  1. A specimen is one idea. Name it before you style it.
  2. The shell is quiet; the object is loud. Spend colour, type and motion on one thing.
  3. State is physical. Press, hold, drag and select should show contact, commitment and release.
  4. Type carries hierarchy. Display, body and utility are different jobs.
  5. Data is an instrument. Use ticks, counters and rails, not generic dashboards.
  6. Motion has a cause. Remove decoration that does not answer a state change.
  7. Texture is a material, not a default. Pick paper, glass, metal or pixel; not all four.
  8. The document works without the show: keyboard, reduced motion and slow network are part of the design.

Example site

site/index.html is a static, dependency-free product page for the plugin: a reference table, a live component lab, a recipe panel and the install path. Serve it locally with:

python3 -m http.server 4173 --directory site

The page is verified at 1440 and 390, with no horizontal overflow and no console errors. Screenshots are in docs/site-1440.png and docs/site-390.png.

60 second film

Read the 0.9.1 release: taste profiles, strict visual gates, all six layout gates, new specimens and the catalog pin. The current cut is the 30-second kinetic 3D plugin film, rendered frame by frame through Klieg's motion renderer with no Blender. It is the only demo video linked from this repo.

Reference study and independence

The reference notes in skills/mosaic/references/construct-teardown.md are an original study of the public Construct Design catalog and four free specimen pages at https://www.tobiadonadon.com/projects/construct/design. The study records layout, type, tokens and interaction behavior. It does not copy code, assets or the paid library. Mosaic is unaffiliated with Construct or Tobia Donadon.

Construct is a useful reference precisely because it is plural: a quiet gallery around many independent specimens. Mosaic turns that observation into a method, not a skin.

Evidence

  • 42 unit tests pass with stdlib only.
  • smoke_load.py loads the real entry point against a recording context, asserts 13 tools and dispatches them.
  • hermes plugins validate and hermes plugins doctor are the admission gates.
  • CLI outputs are deterministic and JSON.
  • 20 public component observations are included; six second-row components were account-gated, and the rest of the catalog requires an account. None were bypassed.

Limits

  • The audit is a text heuristic, not a browser, contrast or performance test.
  • Recipes are directions, not generated pages. The agent must still build and verify.
  • The reference study is public-page observation, not a licence to reuse the reference.
  • No code is generated or executed by the plugin.

License

MIT. See LICENSE.

README from the reviewed commit 89e73ef; it updates when the author re-pins.

More by LangerSword

5 plugins by LangerSword in the catalog.

LangerSwordkliegMotion design for Hermes. klieg_motion lets the agent author a scene - kinetic type, transitions, lower-thirds, logo stings, loops, explainers - as a declarative spec, a template, or raw HTML+GSAP, and render it to MP4/GIF locally with no API keys; rendering is deterministic (seek + screenshot per frame) so motion is smooth, and each render is a detached job verified by its artefact. The same job engine drives Blender and other DCC hosts (Houdini, Nuke, Cinema 4D, After Effects, Resolve) behind one adapter interface: probe what is installed, run scripts inside the host, render frame ranges as resumable jobs that survive the agent's shell. A job is only "done" when its artefact is newer than the job started - klieg_jobs verify compares mtime and the promised frame count, so a render that dies at frame 3 of 288, or emits frames from a blend that failed to rebuild, cannot report success. klieg_plan resolves a pass without running or writing anything. One GPU, one render: a second request queues behind the holder, queue=false refuses, and killing the holder dispatches the next job. klieg_publish encodes with explicit BT.709 conversion and colour tags, including mid-sequence and gapped frame sets. Built-in gates (flash, loop, stats, safe_band) measure any frame set with numpy/Pillow, no DCC required. klieg_ledger seals a finished job's provenance - scene, script, every frame, colour manifest, encode - into sha256 commitments and checks it for drift later. Children get a 13-variable environment allow-list, never os.environ, and key/token/secret names are dropped and recorded. Disclosure - klieg_run, klieg_track and klieg_gate script=... execute model-authored Python inside the host application with the user's privileges; klieg_motion render/preview executes model-authored HTML+JavaScript in a headless browser (playwright/chromium) and spawns ffmpeg. All are approval-gated per action (read-only actions of mixed tools pass free); unattended runs fail closed. Klieg is not a sandbox: an approved script or scene is arbitrary code, and a malicious scene file executes when the host opens it. Outputs are refused under system and credential paths. The flash gate is a screening approximation, not a certified Harding test; the ledger detects drift but is not a signature. A live session bridge into a running Blender is available through klieg_session; other hosts remain batch-only. After Effects and Resolve are reported present-but-unsupported rather than faked. Motion rendering requires playwright + a chromium headless shell (reported as data when absent). Built with AI assistance (Hermes Agent); author-reviewed and tested. Disclosure — klieg_run, klieg_track, klieg_gate with a script and klieg_session eval run model-written Python inside Blender or another installed DCC app with your user privileges, and klieg_motion runs model-written HTML and JavaScript in a headless Chromium (playwright, sandbox off) and spawns ffmpeg; each of these, plus renders, encodes and job kills, asks for approval first and fails closed in unattended runs. Opening a scene file in the host app can run code stored in it. Detached render jobs keep running after the agent's shell exits. Job logs, scenes, the taste model and ledger live in the plugin's data folder.Communitytools9LangerSwordigniTwo complete card games inside Hermes Agent: a Gwent-style row war and an Arena mana duel, with 21 pixel-art cards, a hidden-hand rule-based opponent, a TUI scoreboard and a playable desktop page. Disclosure: no network calls, no telemetry, no credentials; reads and writes one active table plus a hand-free scoreboard snapshot under the profile's plugin data and $HERMES_HOME/igni/board.json; installs its optional TUI widget into $HERMES_HOME/tui-widgets; the desktop half is enabled by default and can be disabled in Capabilities.Communitytools7LangerSwordpilotGive Hermes a real interactive terminal. Pilot runs commands inside a private tmux server, so the agent can drive programs that need a TTY: ssh logins, vim/nano, htop/btop, fzf, less, package installers, ncurses menus and REPLs. It types literal text and named keys, reads the pane back as plain text, and keeps sessions alive across tool calls; a human can attach to the same pane and take over. The suite exposes 24 tools for session control, scripted expect flows, scrollback search, snapshots/diffs, logging, signals, resize, health and base64 file transfer. Disclosure — Pilot starts a private, profile-scoped tmux server as your user and runs model-requested commands and keystrokes in it (each one asks for your approval); terminal text, including output from remote hosts, enters the model's context; snapshots, pane logs and downloaded files can hold sensitive output and are kept under plugin-data/pilot; pilot_upload can type a local file into a remote session after approval.Communitytools7LangerSworddeny-recordAfter you deny an agent's cronjob_manage create proposal, this plugin remembers the normalized job and adds a 'you denied a similar job on <date>' note if the agent proposes it again under a new name or phrasing. Only create proposals are annotated; direct hermes cron add and unrelated approvals are untouched. Disclosure — while enabled, every agent cronjob_manage create proposal goes through the normal Hermes approval prompt (unattended runs follow approvals.cron_mode or fail closed); writes one hash-only JSON line per explicit user denial to <HERMES_HOME>/deny-record/denied-jobs.jsonl (0700 dir, 0600 file, profile-scoped) and reads it on later create proposals; makes no network calls.Communitytools4

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section