SkillsGrove
SkillsGrove/Design & Bilder/OICWS/Coscribe/Design

Design

Installation

$npx skills add https://github.com/OICWS/Coscribe --skill Design
$git clone --depth 1 https://github.com/OICWS/Coscribe.git /tmp/Coscribe && mkdir -p ~/.claude/skills && cp -r /tmp/Coscribe/office-agent/src/coscribe/builtin_skills/design ~/.claude/skills/Design
Bitte installiere diesen Agent Skill für mich: https://github.com/OICWS/Coscribe/tree/cf9a00cd7333f2318db917713fbe12c3f6a96079/office-agent/src/coscribe/builtin_skills/design – lies zuerst seine SKILL.md und seine Skripte und installiere ihn erst dann in meinen Skills-Ordner, wenn du bestätigt hast, dass er sicher ist.

Zusammenfassung

Originalbeschreibung · MITMake a visual design the app opens on its Design canvas -- screens, a landing page, a poster, a social image, a logo or icon sheet, several options side by side -- as artboards on one canvas; load before making or changing one. A deck is Slides, a page of real data is a Dashboard, a document is a Doc.
Die folgende SKILL.md ist aus OICWS/Coscribe (Commit cf9a00c) unter der Lizenz MIT wiedergegeben. Der Text ist unverändert; lediglich die Metadaten im Dateikopf sind weggelassen, Bilder werden als Links angezeigt und sehr lange Dateien werden gekürzt. Copyright 2026 OICWS. Lizenz: LICENSE. Es wird nur die Anleitungsdatei angezeigt; etwaige Skripte finden Sie im Original-Repository.

A design is a canvas of artboards. The canvas is a small JSON file; each artboard is a page of its own in the folder beside it, drawn at its real size in a sandboxed frame with no network: no CDN, no web fonts, no remote images, no fetch. The person pans and zooms the canvas, moves the artboards, leaves notes on it, and plays an artboard (on the canvas or full screen) to use its page. Present shows the artboards one at a time, full screen, in the order boards lists them: list them in the order they should be shown.

The files

For a design named launch:

launch.design.json           the canvas
launch.design                a folder beside it, holding
  home.html                  one page per artboard
  home-phone.html

launch.design.json:

{
  "boards": [
    {"id": "home", "title": "Home · desktop", "file": "home.html", "width": 1440, "height": 900},
    {"id": "home-phone", "title": "Home · phone", "file": "home-phone.html", "width": 390, "height": 844}
  ],
  "variables": [
    {"name": "--brand", "value": "#2557d6", "label": "Brand"},
    {"name": "--ink", "value": "#14161a", "label": "Text"},
    {"name": "--font", "value": "'Segoe UI', system-ui, sans-serif", "label": "Font"},
    {"name": "--radius", "value": "12px", "label": "Corner radius"}
  ]
}
  • Write the pages first, then the canvas, each with write_file.
  • Leave out x and y: the app puts each board to the right of the one before it. Give them only to lay boards out in rows (the same y for a row, about 80 apart).
  • Ids are letters, digits, - and _; a file is a plain .html name in the folder.

Artboards

  • Size each board for what it is: desktop 1440×900, laptop 1280×800, tablet 834×1194, phone 390×844, A4 poster 794×1123, social square 1080×1080, story 1080×1920, link preview 1200×630. A long web page is 1440 wide and as tall as its content.
  • Options are artboards: when the person wants to choose, make two to four, titled with a number and a short name (1 · Calm, 2 · Bold), so they can answer "number 2". Make them really different (layout, type, colour), not one design in three colours.
  • The same screen at several sizes is several artboards, one per size, side by side.
  • The page fills its board exactly: html, body { margin: 0; width: 100%; height: 100%; } and a layout made for that width. No scroll bars unless the board is a long page.
  • A board of a fixed size (a poster, a social image, a phone screen) also gets overflow: hidden on html, body, so a glow or shape that bleeds past the edge is cut off rather than scrolled. Lay it out as a column that fills the height (display: flex; flex-direction: column, the footer pushed down with margin-top: auto) rather than boxes placed by hand, so the last block cannot run into the footer.
  • Write real content (the person's product, words and numbers where they gave them), not lorem ipsum. Where they gave none, write plausible text and say so. A date they did not give is a placeholder: give no weekday with it.

Variables: the design system

The canvas's variables are the design system every artboard shares: brand colours, the text colour, the fonts, corner radius, a spacing unit. The app puts them into every page's :root after the page's own styles, and the person can change them on the canvas, so:

  • In the pages, use var(--brand) and the others for everything they cover; never write the same colour or font as a literal. A page may define them too in its own :root (so it reads well as a file), but the canvas's value wins.
  • Name what a variable is for (--brand, --surface, --ink), give it a label, and keep the list short, about four to ten.
  • A value is a colour (#2557d6), a length (12px), a font stack or a number; no ;, {, }, < or >.
  • When the conversation names a design system, its colours, fonts, sizes and radius become the variables.

Inside a page

  • Self-contained: styles in <style>, scripts inline. Fonts are local stacks ('Segoe UI', system-ui, sans-serif; Georgia, serif). Draw illustrations, icons and charts as inline SVG.
  • A picture file (a logo, a photo the person gave) is copied into the canvas folder with copy_file and named by its file name, <img src="logo.svg" alt="Acme">; the app puts it in. Nothing loads from outside the canvas folder.
  • When the first message lists a design system's pictures (brand/...), use its logo on the artboards where a brand belongs (a header, a cover, a footer), the variant its note asks for; never redraw, recolour or stretch it. look_at_page says when no artboard places it.
  • A script may make the page work when the person presses Play: tabs, a menu that opens, a form that checks its fields. It reaches nothing outside the page.
  • Text a person might change is real text in the page, not drawn into an SVG.
  • The canvas shows the artboards light or dark as the person switches. Give a page its dark look in @media (prefers-color-scheme: dark) or under :root[data-theme="dark"], with the surface and text colours there; a design that is only light or only dark needs neither.

Parts several artboards share

What appears on several artboards the same way (a tab bar, a header, a cart bar, a footer) is a part: write it once, so a change to it shows on every artboard.

  • Write the part as name.part.html in the canvas folder: the elements only, no <html>, <head> or <body>, with its own <style> if it needs one (prefix its classes, tabbar-, since they share the page with the artboard's).
  • Place it in a page with <coscribe-part name="name"></coscribe-part>, empty, where it goes. The app fills it in, laid out as if its elements were written there.
  • A part does not place parts. What differs per artboard (the active tab) is styled by the page, for example body[data-tab="cart"] .tabbar-cart { color: var(--brand) }.
  • To change a part, write its file again. The person's edits to a part's elements in the panel are written into the part's file, and you are told which file, as for a page.

Clickable prototypes

When the person presses Play, the artboards work. Three ways to make a flow of screens, mixed as it fits:

  • Links between artboards (a flow the person sees whole on the canvas): one artboard per screen, and a button is a link to the next screen's file, <a href="checkout.html">Checkout</a>; the back arrow is a link too. On a played board a click shows that artboard, played too. Style the link as the button (display: inline-flex, padding, background, radius); never put a <button> inside the link, which swallows the click.
  • One artboard with states (screens that share data, such as a cart or a form across steps): keep the state in a script and show one screen at a time; the artboards cannot share data.
  • Anchors (a long page): <a href="#pricing"> scrolls within the artboard.

Logos and icons

A logo or icon sheet is an artboard (about 1200 wide) with each option at 16, 32, 48, 64 and 128 px on a light and a dark background: an icon that works large often fails at 16 px, so drop fine detail at small sizes instead of shrinking it.

  • Define each drawing once as a <symbol id="..."> with a viewBox in a hidden <svg width="0" height="0" style="position:absolute">, then draw it at each size with <svg width="48" height="48"><use href="#id"/></svg>. Draw icons on a 0 0 128 128 grid with a margin of about 8.
  • Ids are shared by the whole page: prefix them per drawing (a-grad, b-grad).
  • Prefer a few bold shapes with 2 to 4 colours over many fine lines; a soft drop shadow (feDropShadow, dy about 6% of the height, low opacity) gives depth without an outline.
  • Convert a logo's text to paths. Also write each finished drawing as its own .svg beside the canvas, so the person can use it elsewhere.
  • The person can export any artboard as a PNG (from the canvas's Export or the button above the board), and a square one as a Windows icon from the canvas's Export. For an app icon, give each option its own square artboard (128 or 256).

Changing a design

  • To change an artboard, write its page again: the canvas redraws it.
  • The person moves boards and leaves notes, which the app saves into the canvas file. Read the file before you write it, and keep every board's x, y, width and height, the variables' values and the notes as they are, unless you are asked to change them. A note is the person's comment on the design: do what it asks, then leave it unless they say to remove it.
  • The person can also change an element's text or any of its style properties in the canvas's properties panel, which writes it into the page as the element's own style attribute; you are told which page at your next turn. Read that page before you write it, and keep those changes unless you are asked to undo them.
  • To add an option, add a page and a board; to drop one, remove its board (and say so).

Before you say it is done

Look at the canvas with look_at_page (find it with search_tools): it draws every artboard as the app does and reports script errors, blocked loads, a page wider than its board, text over text and text past a board's edge. Fix what it reports and what you see in the pictures (text that runs into other text, a block crowding the footer, a colour that hides text), then look again; two rounds are usually enough. If it says there is no browser to draw with, say you could not look.

Also check that every board's file exists, that every part a page places has its .part.html, that every var(--...) a page uses is a variable of the canvas or defined in the page, that every SVG id you refer to exists, and that nothing loads from the network. Say the canvas's file name and one line per artboard; do not describe the shapes.

Vollständigen Lizenztext ansehen (MIT)
MIT License

Copyright (c) 2026 OICWS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.