@feimacode/open-design-agent-kit 0.1.7 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +72 -20
  2. package/assets/claude-skills/card-twitter/SKILL.md +14 -0
  3. package/assets/claude-skills/open-design/SKILL.md +62 -1
  4. package/assets/claude-skills/open-design/references/remixable-examples.md +29 -1
  5. package/assets/claude-skills/open-design-campaign/SKILL.md +61 -0
  6. package/assets/claude-skills/open-design-deck-from-source/SKILL.md +39 -0
  7. package/assets/claude-skills/open-design-docs/SKILL.md +52 -0
  8. package/assets/claude-skills/open-design-explore/SKILL.md +46 -0
  9. package/assets/claude-skills/open-design-integrations/SKILL.md +40 -0
  10. package/assets/claude-skills/open-design-new/SKILL.md +31 -0
  11. package/assets/claude-skills/open-design-poster/SKILL.md +77 -0
  12. package/assets/claude-skills/open-design-publish/SKILL.md +37 -0
  13. package/assets/claude-skills/open-design-social-post/SKILL.md +54 -0
  14. package/assets/claude-skills/poster-hero/SKILL.md +14 -0
  15. package/assets/claude-skills/social-carousel/SKILL.md +14 -0
  16. package/assets/claude-skills/social-youtube-thumbnail/SKILL.md +14 -0
  17. package/assets/codex-skills/card-twitter/SKILL.md +12 -0
  18. package/assets/codex-skills/card-twitter/agents/openai.yaml +3 -0
  19. package/assets/codex-skills/open-design/SKILL.md +62 -1
  20. package/assets/codex-skills/open-design/references/remixable-examples.md +29 -1
  21. package/assets/codex-skills/open-design-campaign/SKILL.md +60 -0
  22. package/assets/codex-skills/open-design-deck-from-source/SKILL.md +38 -0
  23. package/assets/codex-skills/open-design-docs/SKILL.md +51 -0
  24. package/assets/codex-skills/open-design-explore/SKILL.md +45 -0
  25. package/assets/codex-skills/open-design-integrations/SKILL.md +39 -0
  26. package/assets/codex-skills/open-design-new/SKILL.md +30 -0
  27. package/assets/codex-skills/open-design-poster/SKILL.md +76 -0
  28. package/assets/codex-skills/open-design-publish/SKILL.md +36 -0
  29. package/assets/codex-skills/open-design-social-post/SKILL.md +53 -0
  30. package/assets/codex-skills/poster-hero/SKILL.md +12 -0
  31. package/assets/codex-skills/poster-hero/agents/openai.yaml +3 -0
  32. package/assets/codex-skills/social-carousel/SKILL.md +12 -0
  33. package/assets/codex-skills/social-carousel/agents/openai.yaml +3 -0
  34. package/assets/codex-skills/social-youtube-thumbnail/SKILL.md +12 -0
  35. package/assets/codex-skills/social-youtube-thumbnail/agents/openai.yaml +3 -0
  36. package/out/index.js +187954 -84
  37. package/package.json +8 -4
  38. package/out/claudeSetup.js +0 -91
  39. package/out/claudeSetup.js.map +0 -1
  40. package/out/codexSetup.js +0 -89
  41. package/out/codexSetup.js.map +0 -1
  42. package/out/env.js +0 -47
  43. package/out/env.js.map +0 -1
  44. package/out/index.js.map +0 -1
  45. package/out/skillWriter.js +0 -88
  46. package/out/skillWriter.js.map +0 -1
  47. package/out/toolSelection.js +0 -38
  48. package/out/toolSelection.js.map +0 -1
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: open-design-docs
3
+ description: Turn a folder of Markdown documents (ADRs, RFCs, runbooks, notes) into designed HTML pages, one per file, all in one style, and keep them in step when the Markdown changes — use whenever the user wants several Markdown files (a docs folder, ADRs, RFCs, runbooks, meeting notes) turned into HTML pages, or wants HTML versions of existing docs refreshed after edits
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Turn existing Markdown documents into designed HTML pages with Open Design, one page per file.
9
+
10
+ Request: the rest of the user's message (if there is none, ask the user: "Which Markdown files should become pages, and in what style?")
11
+
12
+ ## 1. Find the files
13
+
14
+ Resolve the folder or glob in the request with your own file tools (for example `docs/adr/*.md`). List what you found.
15
+
16
+ - More than 20 files: tell the user how many there are and ask whether to do all of them or a subset. Don't start until they answer.
17
+ - No files: say so and stop.
18
+
19
+ ## 2. Pick one template for the set
20
+
21
+ All pages in a set share one template, so they read as one collection. Choose by what the files are, or use the style the user named:
22
+
23
+ | Files | Skill |
24
+ |---|---|
25
+ | Architecture decisions | `od:prototype:adr` |
26
+ | Proposals, design docs | `od:prototype:rfc` |
27
+ | Incident write-ups | `od:prototype:postmortem` |
28
+ | Runbooks | `od:prototype:eng-runbook` |
29
+ | Release notes or changelogs | `od:prototype:changelog-page` |
30
+ | Long-form notes, essays, anything else | `od:prototype:doc-kami-parchment` |
31
+
32
+ Derive a `collectionId` from the folder name (for example `docs-adr`) and a readable `collectionName`.
33
+
34
+ ## 3. On a re-run, only redo what changed
35
+
36
+ If pages from an earlier run exist (look for artifacts in that collection, or call `get_open_design_artifact` on each), compare: a page whose `staleSources` lists its Markdown file is out of date and gets regenerated; a page that isn't stale is skipped; a file with no page yet gets one. Tell the user what you'll regenerate and what you'll skip.
37
+
38
+ ## 4. Build each page
39
+
40
+ For each file, in order:
41
+
42
+ 1. Call `read_open_design_source` with the file. Use only what it returns: never add facts the Markdown doesn't have.
43
+ 2. Call `prepare_open_design_brief` with the chosen skill, a brief naming the file, `collectionId`, `collectionName`, and `screenRole` set to the file's name.
44
+ 3. Write the page, keeping the document's own headings, structure and status (for ADRs and RFCs, its status goes in the `data-od-status` banner). Link to sibling pages in the set where the Markdown links to the sibling `.md` file.
45
+ 4. Call `register_open_design_artifact` with the same collection values and `sources: ["<the .md path>"]`, so a later run can tell when the Markdown changed.
46
+
47
+ Check the first page with `check_open_design_artifact` and fix its errors before doing the rest, so mistakes aren't copied into every page. Check the others at the end.
48
+
49
+ ## 5. Report
50
+
51
+ List each page with its source file, and anything skipped or still flagged. In VS Code, mention the Collections view, where the whole set opens with Prev/Next.
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: open-design-explore
3
+ description: Explore 2–4 deliberately different design directions for one brief, compare them side by side, then build out the one you pick — use whenever the user explicitly asks for several options, directions, alternatives or versions of a design to compare ("show me three directions for…", "a few different takes on…"), even if they don't mention Open Design; not for a single, ordinary design request
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Explore several deliberately different design directions with Open Design, compare them side by side, and take the chosen one forward.
9
+
10
+ Brief: the rest of the user's message (if there is none, ask the user: "What should we explore directions for?")
11
+
12
+ ## 1. Plan the directions
13
+
14
+ If the brief is empty, ask the user what to design before doing anything else.
15
+
16
+ Call `list_open_design_skills` to find the skill that fits what's being designed (a landing page, a deck, a dashboard…). Then call `prepare_open_design_exploration` with that `skillId` and the brief:
17
+
18
+ - `count`: the number of directions the user asked for (2–4). Default 3.
19
+ - If the user named what should vary ("three hero concepts", "different pricing layouts"), pass `axis: "custom"` and `customDirections`, one `{ label, brief }` per direction.
20
+ - Otherwise leave `axis` out. The tool picks visual styles when no design system is active, and layout or narrative structures when one is, so the brand is kept.
21
+ - Pass `directionIds` only when the brief's tone clearly calls for specific directions, e.g. `editorial-monocle` for a magazine or `brutalist-experimental` for an art or agency site.
22
+
23
+ If the result says the active design system was set aside, tell the user.
24
+
25
+ ## 2. Generate each direction
26
+
27
+ For each direction in the result, follow `sharedInstructions` followed by that direction's own `instructions`. Write its file at exactly its `suggestedEntryPath`, then call `register_open_design_artifact` with the `explorationId`, the direction's `directionId`, kind, title and `sourceSkillId`.
28
+
29
+ These are **sketches**: one screen, or a cover plus two slides for a deck. Divergence matters more than polish. If you can delegate to sub-agents, generate the directions in parallel and give each one `sharedInstructions` plus its own `instructions`.
30
+
31
+ ## 3. Compare
32
+
33
+ Call `compare_open_design_exploration` with `contactSheet: true`. If you can view images, open the contact sheet and check that the directions look clearly different (layout and hero pattern, not just colour). Regenerate any direction that resembles another, then compare again.
34
+
35
+ ## 4. Present
36
+
37
+ Give the user the comparison page path (it opens in any browser straight from the file system and shows every direction side by side), and the contact sheet path if one was made. In one line each, say how the directions differ. Ask which one to take forward, and whether to:
38
+
39
+ - **build it out** at full fidelity,
40
+ - **merge** in parts of another direction ("B, with A's hero"), or
41
+ - **save it as a design system** for later work.
42
+
43
+ ## 5. Take the choice forward
44
+
45
+ Call `choose_open_design_direction` with the `explorationId`, the chosen `directionId`, `next` (`build-out`, `merge` with `mergeFrom`, or `save-design-system`) and the user's own adjustments as `notes`. Follow the returned `instructions` and register the result as they say.
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: open-design-integrations
3
+ description: Show which services Open Design can use directly (Canva, Figma, Notion, Google Drive, Slack, social posting), whether each is connected, and how to set one up — use whenever the user asks which integrations, connectors or services Open Design can use, what's connected, or how to connect Canva, Figma, Notion, Google Drive, Slack or a social posting service
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Show the user Open Design's integrations and whether each one is connected here.
9
+
10
+ Request: the rest of the user's message (if there is none, ask the user: "Anything you'd like to connect? (or leave empty to just see the list)")
11
+
12
+ ## 1. Get the list
13
+
14
+ Call `list_open_design_integrations` with no arguments. It returns every integration grouped by purpose, each with what it does, the tool names that show it's connected on this agent, whether it can be set up here, and how to manage without it.
15
+
16
+ ## 2. Work out each status
17
+
18
+ Use exactly three statuses:
19
+ - 🟢 **Connected**: your own tools include one matching its "Connected if your tools include" hints. Check deferred or on-demand tools too (search for them) before deciding one is missing.
20
+ - 🟡 **Installed, not connected**: it's configured but its tools aren't available (it needs sign-in, failed to connect, or needs a restart). If you can run shell commands, run the read-only `claude mcp list` (Claude Code) or `codex mcp list` (Codex) and look for its server name or URL; a configured server without matching tools is 🟡. Run nothing else.
21
+ - ⚪ **Not installed**: neither of the above.
22
+
23
+ If you can't run those commands, use only 🟢 and ⚪, and say that an integration you've already added may need a restart to show up.
24
+
25
+ ## 3. Reply
26
+
27
+ Show one short table per group (Design, Docs & storage, Team, Social posting), in the order the list gives:
28
+
29
+ | | Integration | What it does in Open Design | Next step |
30
+ |---|---|---|---|
31
+
32
+ - The first column is the dot only.
33
+ - Next step: "Ready to use" for 🟢; "Sign in or restart (`/mcp` in Claude Code, `codex mcp login <name>` in Codex)" for 🟡; "Ask me to set it up" for ⚪ when it can be set up here, otherwise "Manual setup" plus one line from its manual path.
34
+
35
+ End with a one-line legend (🟢 connected · 🟡 installed, not connected · ⚪ not installed) and offer to set up any ⚪ integration the user names.
36
+
37
+ ## 4. Setting one up (only when asked)
38
+
39
+ Don't install anything from the list itself. If the request above, or the user's answer, names an integration to set up: call `list_open_design_integrations` with that `integration`, and follow its setup steps and rules. That means asking for and getting the user's yes before installing anything, and never asking for or writing an API key.
@@ -0,0 +1,30 @@
1
+ ---
2
+ name: open-design-new
3
+ description: Start a new design by picking what to make (prototype, mobile app, slides, document, wireframe, animation, résumé, research, data report, poster, social post, diagram), then build it with the right recipe
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Start a new design with Open Design.
9
+
10
+ Request: the rest of the user's message (if there is none, ask the user: "What do you want to make, and what is it for?")
11
+
12
+ ## 1. Pick the surface
13
+
14
+ Call `list_open_design_skills` with `surface: "list"` to get the kinds of thing Open Design can make (each with an id, label and description).
15
+
16
+ - If the request starts with or clearly names one of them (by id or label, e.g. "wireframe", "diagram", "a poster"), use that surface.
17
+ - If it names none, or is empty, show the user the surfaces as a short list (label and description) and ask which one. Stop until they answer.
18
+
19
+ ## 2. Ask what's missing
20
+
21
+ Call `list_open_design_skills` with `surface` set to the chosen id. The result has the surface's `questions` and its `entries`.
22
+
23
+ Ask only the questions the request doesn't already answer, all at once, in one short message. If the request answers them all, don't ask anything.
24
+
25
+ ## 3. Build it
26
+
27
+ - If the surface has a `prompt` (for example `open-design-poster` or `open-design-social-post`), follow that flow from its first step with the user's request as the brief. In Copilot Chat it's the `/` command of the same name; in Claude Code and Codex it's the skill of the same name.
28
+ - Otherwise pick the entry that best fits the request. Entries come in curated order: the recipe first, then its remixable example when there is one. To start from a rendered example (an entry with an `exampleArtifactPath`), call `remix_open_design_example`; otherwise call `prepare_open_design_brief` with its id and the brief, and follow the general Open Design flow: write the files, register the artifact, then check it with `check_open_design_artifact` before saying it's done.
29
+
30
+ Never pick an entry marked `stub: true`.
@@ -0,0 +1,76 @@
1
+ ---
2
+ name: open-design-poster
3
+ description: Design a poster or flyer for print or screen, check it, and export print-ready PDFs or upload-ready images, including other sizes and one version per row of a spreadsheet — use whenever the user wants a poster, flyer, event or gig poster, print piece, handout, certificate or name card set, or wants an existing design in other sizes or as a print-ready PDF, even if they don't mention Open Design
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Design a poster with Open Design, check it, and export files that are ready to print or post.
9
+
10
+ Brief: the rest of the user's message (if there is none, ask the user: "What is the poster for, and is it for print (which size) or screens?")
11
+
12
+ ## 1. Pick the medium and a default shape
13
+
14
+ Decide whether this is for **print** or **screens**. If the brief doesn't say, ask the user before doing anything else. Don't guess between print and screen: the units, bleed and type sizes are different.
15
+
16
+ You don't need the final size yet. The poster is built **fluid**: it reflows to any shape, so the user can pick or change the size later, when exporting. Use the size the user names as the default shape; otherwise use `a3` for print and `ig-portrait` for screens, and tell the user they can change it at any time.
17
+
18
+ | Use | Format id | Size |
19
+ |---|---|---|
20
+ | Print, small: flyer, handout | `a4` · `letter` | 210×297 mm · 8.5×11 in |
21
+ | Print, medium: notice-board poster | `a3` · `tabloid` | 297×420 mm · 11×17 in |
22
+ | Print, large: wall poster | `a2` · `a1` · `poster-18x24` · `poster-24x36` | 420×594 mm · 594×841 mm · 18×24 in · 24×36 in |
23
+ | Print, conference or research poster | `a0` | 841×1189 mm |
24
+ | Instagram portrait | `ig-portrait` | 1080×1350 px |
25
+ | Story / Reels / TikTok cover | `story` | 1080×1920 px |
26
+ | X single image | `x-image` | 1600×900 px |
27
+ | Square (Instagram / LinkedIn) | `ig-square` | 1080×1080 px |
28
+
29
+ A handout and a wall poster carry different amounts of text, so if the user says which it is, write the copy for that; the shape itself can still change.
30
+
31
+ ## 2. Generate
32
+
33
+ If the user asked for options ("show me a few directions"), run a design exploration first and build out the direction they pick, with the same `format` and `fluid: true`.
34
+
35
+ Otherwise call `prepare_open_design_brief` with:
36
+
37
+ - a `skillId`: `od:prototype:poster-hero` for a bold marketing poster, `od:prototype:magazine-poster` for an editorial or type-led one, or another skill whose style fits better (`list_open_design_skills` with query "poster");
38
+ - the brief, in the user's words;
39
+ - `format`: the default shape from step 1;
40
+ - `fluid: true`.
41
+
42
+ Call `list_open_design_design_systems` first only if the user names a brand or visual direction.
43
+
44
+ Author the file yourself, following the returned instructions. Their **Canvas** section is authoritative: one `data-od-card data-od-fluid` element sized by `--od-w`/`--od-h`, everything inside sized in container units, and layout rules for wide and tall shapes. Also:
45
+
46
+ - Use real copy from the brief, with no lorem ipsum. A poster is read from a distance: one dominant headline, then the what / when / where, then the call to action.
47
+ - If the user gives a list of names, sessions or locations to make one poster each, mark the changing text with `data-od-field="<column name>"` (and a per-person QR slot with `data-od-qr-field="<column>"`), and fill the design with the first row's values.
48
+ - No external image URLs unless the user supplied them. No emoji as key visuals; draw them as inline SVG.
49
+
50
+ ## 3. Add a QR code, if it needs one
51
+
52
+ Register the artifact first (step 4), then call `create_open_design_qr_code` with the entry path and the URL, and paste the returned inline SVG where the code goes. Never draw a fake or placeholder QR code.
53
+
54
+ ## 4. Register
55
+
56
+ Call `register_open_design_artifact` with the entry path, kind `html`, a title, `sourceSkillId`, and `format` set to the default shape.
57
+
58
+ ## 5. Check and fix
59
+
60
+ Call `check_open_design_artifact` with the entry path. It returns the poster as an image plus preflight findings. Fix every **error** in its findings (text cut off, overlapping or in the bleed, a QR code that doesn't decode), and fix warnings where you reasonably can (sizes that don't scale with the poster, small type, low contrast, low-resolution images). Look at the image too: the headline should dominate and nothing important should be cramped or cut. Check again until there are no errors (at most two fix rounds; tell the user about anything left).
61
+
62
+ ## 6. Other shapes
63
+
64
+ When the user wants other sizes, or before the final export of a print piece, call `export_open_design_artifact` with `shapeSheet: true` and `checkOnly: true` (add `presets` with just the shapes they care about, or leave it out for every shape). It writes one image of the poster at each shape, marking shapes with errors; show it to the user. If you can view images, look at it too: the headline should dominate every shape and nothing important should be cropped.
65
+
66
+ For a shape that has errors or looks wrong, call `adapt_open_design_artifact` with the entry path and those format ids. For a fluid poster it returns **tune** instructions: fix that shape inside the same file with its `@container` rule, then check every shape again with a shape sheet. Don't create new files for other sizes.
67
+
68
+ ## 7. Export
69
+
70
+ - **One shape:** call `export_open_design_artifact` with the entry path and `preset` set to the format id. A print format gives a PDF the size of the bleed box, with trim and bleed boxes set and the bleed added automatically; add `cropMarks: true` if the user's printer wants crop marks. A screen format gives a PNG within the platform's size limit.
71
+ - **Several shapes:** pass `presets` with the format ids instead: one file per shape, named `<name>-<format>`.
72
+ - **One per row of a list:** add `data` with the workspace path of the user's CSV, XLSX or JSON file, and `nameField` with the column to name files by. Images come out one per row; print PDFs come out as one multi-page PDF per shape (add `split: true` for one file per row).
73
+
74
+ ## 8. Report
75
+
76
+ List each exported file's path, size and any remaining warnings. For print files, also give the trim size and bleed, and tell the user the PDF is RGB: most print shops convert it, but they should ask if theirs needs CMYK. Mention that the poster can be exported at any other size later without regenerating it. Don't print, post, upload or order anything yourself.
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: open-design-publish
3
+ description: Share an Open Design artifact as a live link (a temporary no-account link, or your own Netlify, Vercel, Cloudflare Pages or GitHub Pages), or as one self-contained HTML file — use whenever the user wants to share, publish, deploy or host an Open Design artifact, or get a link to send to teammates or stakeholders; also when they want a single HTML file to attach or send
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Share an Open Design artifact with people who don't have this project open.
9
+
10
+ Request: the rest of the user's message (if there is none, ask the user: "Which design should we share, and how?")
11
+
12
+ ## 1. Find the artifact
13
+
14
+ If the request names a design, find its entry file (`get_open_design_artifact`, or the `.open-design/` folder). If several match or none is named, ask the user which one. It must be registered; if it isn't, register it first with `register_open_design_artifact`.
15
+
16
+ ## 2. A file, or a link?
17
+
18
+ - **A file to attach or send** (email, Slack, a ticket): call `export_open_design_artifact` with `format: "standalone"`. It writes one self-contained `.html` under the artifact's `exports/` folder, with its local CSS, scripts, images and fonts inlined. Give the user the path, and mention anything it still loads from the internet (such as web fonts). Nothing goes online. Stop here.
19
+ - **A link**: continue below.
20
+
21
+ ## 3. Prepare the link
22
+
23
+ Call `publish_open_design_artifact` with the `entryPath`. Pass `provider` only if the user already said where:
24
+
25
+ - `netlify-temporary` or `cloudflare-temporary`: no account, the link lasts about an hour unless claimed
26
+ - `netlify`, `vercel`, `cloudflare-pages` or `github-pages`: the user's own account, a link that lasts
27
+
28
+ Without a provider, the tool returns the choices: show them to the user and call it again with their pick.
29
+
30
+ ## 4. Follow the returned instructions exactly
31
+
32
+ They check the host's CLI, then **stop for the user's explicit yes** before anything goes online. That stop is mandatory: say what goes out, who can see it, how long it lasts, and that the small "Made with Open Design" footer badge is included unless they ask for `badge: false`. Deploy only the bundle folder the tool names.
33
+
34
+ ## 5. Finish
35
+
36
+ Give the user the link. For a temporary link, also give the claim URL and when it expires, for them only. Then record it by calling `publish_open_design_artifact` again with `published`, as the instructions show, so a later publish updates the same site.
@@ -0,0 +1,53 @@
1
+ ---
2
+ name: open-design-social-post
3
+ description: Design a social media post (X, Instagram, LinkedIn, Xiaohongshu, Stories/Reels, YouTube thumbnail or video) and export upload-ready files — use whenever the user wants something to post on social media (an X/Twitter image, Instagram or LinkedIn post or carousel, Xiaohongshu cards, a Story/Reels cover, a YouTube thumbnail or video), even if they don't mention Open Design
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Design a social media post with Open Design and export files that are ready to upload.
9
+
10
+ Brief: the rest of the user's message (if there is none, ask the user: "What should the post say, and for which platform?")
11
+
12
+ ## 1. Pick the platform and format
13
+
14
+ If the brief names a platform or format, use it. Otherwise ask the user to pick one of the rows below before doing anything else. Don't guess.
15
+
16
+ | Format | Canvas | skillId | Export |
17
+ |---|---|---|---|
18
+ | X single image | 1600×900 | `od:prototype:card-twitter` | `preset: "x-image"` |
19
+ | X post mock (for a video overlay or quote) | card element | `od:prototype:social-x-post-card` | `selector: "[data-od-card]"`, `maxBytes: 5000000` |
20
+ | Square carousel (Instagram / LinkedIn) | 1080×1080 per card | `od:prototype:social-carousel` | `preset: "ig-square"` |
21
+ | Instagram portrait | 1080×1350 | `od:prototype:poster-hero` | `preset: "ig-portrait"` |
22
+ | Story / Reels / TikTok cover | 1080×1920 | `od:prototype:poster-hero` | `preset: "story"` |
23
+ | Xiaohongshu cards | 1080×1440 per card | `od:prototype:card-xiaohongshu` | `preset: "xhs-card"` |
24
+ | YouTube thumbnail | 1280×720 | `od:prototype:social-youtube-thumbnail` | `preset: "yt-thumbnail"` |
25
+ | YouTube video | 1920×1080 MP4 | `od:video:hyperframes` | MP4 via the HyperFrames CLI (see step 4) |
26
+
27
+ A preset fills in the canvas size, `selector: "[data-od-card]"` and the platform's upload limit (X 5 MB, Instagram 8 MB, YouTube thumbnail 2 MB).
28
+
29
+ For several platforms at once, run steps 2–4 once per format and keep each one as its own artifact.
30
+
31
+ ## 2. Generate
32
+
33
+ Call `prepare_open_design_brief` with the row's `skillId`, the brief, and `format` set to the row's preset id (leave it out for the X post mock and YouTube video). Call `list_open_design_design_systems` first only if the user names a brand or visual direction. For the X post mock, say in the brief that it is one card element.
34
+
35
+ Author the files yourself with your own file-editing tools, following the returned instructions, and add these rules for social posts:
36
+
37
+ - Each card or canvas is a fixed-size element at exactly the table's size with `overflow: hidden`, and carries a `data-od-card` attribute. For multi-card formats, stack the cards vertically in one HTML file, one `data-od-card` element per card.
38
+ - Use real copy from the brief, with no lorem ipsum. Keep text inside a 48px safe margin, and make the hook readable at thumbnail size.
39
+ - No external image URLs unless the user supplied them.
40
+ - No emoji as key visuals. They render from the exporting machine's fonts and can come out as empty boxes. Draw icons and subjects as inline SVG.
41
+
42
+ ## 3. Register
43
+
44
+ Call `register_open_design_artifact` with the entry path, kind `html`, a title, `sourceSkillId` set to the row's `skillId`, and the same `format` you passed to the brief, so the export can find the right size.
45
+
46
+ ## 4. Export
47
+
48
+ - **Image formats**: call `export_open_design_artifact` with the entry path and the row's export arguments. If its preflight reports errors (text cut off, a card that isn't the canvas size) or it returns warnings (failed fonts or images, over budget), fix the artifact and export again. Before exporting, call `check_open_design_artifact` to see the post as an image with its preflight findings, without writing files; fix every error first.
49
+ - **YouTube video**: follow the brief's "Host override" section. Render with `npx hyperframes render … --output <artifact-dir>/exports/<name>.mp4`, and check `ffmpeg -version` first.
50
+
51
+ ## 5. Report
52
+
53
+ List each exported file's path, pixel size, and file size, and remind the user of the post's copy (caption and hashtags) if you wrote any. Don't post anything anywhere yourself.
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: poster-hero
3
+ description: Marketing Poster (Open Design) — use only when explicitly invoked, not for general design requests
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Use the Open Design skill `od:prototype:poster-hero` (Marketing Poster).
9
+
10
+ Treat the rest of the user's message as the brief. If nothing more specific was given, use: "Use the Marketing Poster template to turn my content into a vertical poster or Moments-style share image with strong visual impact. Preserve the template's visual signature, use real content and data, and avoid lorem ipsum or placeholder images."
11
+
12
+ Call `prepare_open_design_brief` (the open-design MCP server's tool) with skillId "od:prototype:poster-hero" and this brief — call `list_open_design_design_systems` first only if the user names a brand or visual direction. Author the files yourself with your own file-editing tools per the returned instructions, then call `register_open_design_artifact`.
@@ -0,0 +1,3 @@
1
+ # generated:open-design-agent-kit
2
+ policy:
3
+ allow_implicit_invocation: false
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: social-carousel
3
+ description: social-carousel (Open Design) — use only when explicitly invoked, not for general design requests
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Use the Open Design skill `od:prototype:social-carousel` (social-carousel).
9
+
10
+ Treat the rest of the user's message as the brief. If nothing more specific was given, use: "Design a 3-card cinematic social carousel — ‘onwards.’, ‘to the next one.’, ‘looking ahead.’. 1080×1080 squares, drop-into-Instagram ready."
11
+
12
+ Call `prepare_open_design_brief` (the open-design MCP server's tool) with skillId "od:prototype:social-carousel" and this brief — call `list_open_design_design_systems` first only if the user names a brand or visual direction. Author the files yourself with your own file-editing tools per the returned instructions, then call `register_open_design_artifact`.
@@ -0,0 +1,3 @@
1
+ # generated:open-design-agent-kit
2
+ policy:
3
+ allow_implicit_invocation: false
@@ -0,0 +1,12 @@
1
+ ---
2
+ name: social-youtube-thumbnail
3
+ description: YouTube Thumbnail (Open Design) — use only when explicitly invoked, not for general design requests
4
+ ---
5
+
6
+ <!-- generated:open-design-agent-kit -->
7
+
8
+ Use the Open Design skill `od:prototype:social-youtube-thumbnail` (YouTube Thumbnail).
9
+
10
+ Treat the rest of the user's message as the brief. If nothing more specific was given, use: "Use the YouTube Thumbnail template to design a thumbnail for my video. Make the promise of the video readable in under a second: one short hook line, one strong focal subject, high contrast. Use real content from my brief and avoid lorem ipsum or placeholder images."
11
+
12
+ Call `prepare_open_design_brief` (the open-design MCP server's tool) with skillId "od:prototype:social-youtube-thumbnail" and this brief — call `list_open_design_design_systems` first only if the user names a brand or visual direction. Author the files yourself with your own file-editing tools per the returned instructions, then call `register_open_design_artifact`.
@@ -0,0 +1,3 @@
1
+ # generated:open-design-agent-kit
2
+ policy:
3
+ allow_implicit_invocation: false