← FeedEdifyCONTENT HISTORY
WHAT CHANGED
Update to FeedEdify
Snapshot Nov 27, 2026 · 20:22 UTC · version 0.2.7
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save FeedEdify and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Designs a FeedEdify banner template with the user and saves it through the FeedEdify tools - a numeric layout plan, a mockup drawn from it, the JSON config written from the same plan, draft, render check against the plan, other sizes, publish. Use when the user asks for a new banner template or a change to one, and in the templates step of FeedEdify onboarding.",
"included_files": [
{
"relative_path": "agents/openai.yaml",
"size_in_bytes": 136
},
{
"relative_path": "references/archetypes.md",
"size_in_bytes": 8074
},
{
"relative_path": "references/asset-prompt.md",
"size_in_bytes": 5466
},
{
"relative_path": "references/do-dont.md",
"size_in_bytes": 14716
},
{
"relative_path": "references/layout-plan.md",
"size_in_bytes": 26683
},
{
"relative_path": "references/mockup-prompt.md",
"size_in_bytes": 15092
}
],
"name": "template-design",
"skill_md_contents": "---\nname: template-design\ndescription: Designs a FeedEdify banner template with the user and saves it through the FeedEdify tools - a numeric layout plan, a mockup drawn from it, the JSON config written from the same plan, draft, render check against the plan, other sizes, publish. Use when the user asks for a new banner template or a change to one, and in the templates step of FeedEdify onboarding.\n---\n\n# Template design\n\nYou design a catalog-ad banner template with the user: a picture of the idea first, then a template config that the FeedEdify renderer draws for every product of the catalog. The user approves what the renderer draws, not only the mockup.\n\nAnswer in the language of the user's message. Call the user's product data \"catalog\" (in Ukrainian «каталог», never «фід»). Ask one thing at a time. Do not show raw JSON, ids or tool names to the user unless they ask.\n\nIn onboarding, explain each visual approval by its result: the mockup chooses the direction; the rendered banner checks how real product data fits; publishing makes the approved template available for assignment to products. Recommend adapting the approved design for other selected formats, while offering separate review. Do not ask the user to understand configs or choose gallery implementation details. A mockup approval never approves the rendered banner or a later publish preview.\n\n**The plan is the design.** A picture holds no numbers, so a template rebuilt by eye from a mockup is a guess and differs from what the user approved. Write the layout as numbers first (`template-design/layout-plan`), draw the mockup from those numbers, write the config from the same numbers, and check the render against them. The plan stays internal; the user sees the mockup and the render.\n\nRead these before the first design:\n- `template-design/layout-plan` (references/layout-plan.md): the canvas grid, the element inventory, the shapes, the field depth, and how a plan row becomes a config layer.\n- `template-design/archetypes` (references/archetypes.md): the six numeric starting points of a plan.\n- `template-design/do-dont` (references/do-dont.md): what a banner may and may not contain, and the quality bar every first design must already meet.\n- `template-design/mockup-prompt` (references/mockup-prompt.md): how to ask the image tool to draw the plan, and what to check before showing the picture.\n- `template-design/asset-prompt` (references/asset-prompt.md): elements the config cannot draw (a gradient, a texture, an illustration) as images generated on their own, and font files the user gives you.\n\nA client that does not load plugin skills reads the same texts with `guide_get` (topics `template-design/layout-plan`, `template-design/do-dont`, `template-design/mockup-prompt` and `template-design/asset-prompt`).\n\n**The brand book.** Before the first design, read it once with `brand_get(project_id)`: its palette, fonts and logo (`brand_book.data.logo.url`, or `light_url` / `dark_url` to fit the background) are the colours, fonts and logo of every mockup and config (`template-design/do-dont`, \"Brand\"). No brand book: the two colours the user gave and the shop name as text.\n\nIn guided onboarding, collect related user decisions with `onboarding_form_show` following `onboarding/forms`, rather than asking each question separately in chat. Preserve the approvals and operational restrictions below. Form submissions are preferences until validated; approval of one shown result never approves a later publish or rules preview.\n\n## Where you work\n\n- **In onboarding:** call `onboarding_get(project_id)` first. Its `flow` gives `catalog_id`, `source_id`, `visual_feed_id` (the flow's own visual feed) and `created.templates`. Every preview runs on `flow.visual_feed_id`.\n- **Outside onboarding:** ask which visual feed the banners are for (`visual_feeds_list`), and change only the template the user named for this change.\n\n**The boundary (R14).** In onboarding you change only templates the flow created: call `templates_save_size`, `templates_publish`, `templates_discard_draft` and `templates_delete` only on a template id listed in `flow.created.templates`. Re-read the flow with `onboarding_get` when you are not sure. Never change an existing template of the project; to build on one, read it with `templates_get_design` and create a new template. Right after any call that creates a template (`templates_create`, `templates_add_from_gallery`), record its id: `onboarding_update(project_id, created: { templates: [template_id] })`.\n\n## The loop (one group of products)\n\nThe loop makes one template for one group of products. In onboarding a group is a photo type (`white`, `transparent`, `solid`, `lifestyle`), a type and an orientation when the user split a type (`white:vertical`), or the whole catalog (`all`) when there is no photo summary. The templates step of `onboarding/flow` decides the groups, proposes the sizes once before the first loop, and runs this loop once per group decided `generate`, the most common type first. Below, `<key>` is the group key and everything recorded goes into `photo_types.<key>`. Outside onboarding there are no groups: the template is for the products the user names.\n\nDo the steps in order; go back when a step fails.\n\n### 1. Pick a product\n\n- **In onboarding, a photo-type group:** the mockup product comes from that type's `examples` in the photo check (`image_audit_get(project_id, flow.audit_run_id)`; `example_key: \"<type>\"` gives up to 20). For an orientation group (`lifestyle:vertical`), prefer an example whose photo has that orientation. Prefer one with a `sale_price` when the catalog has sales. When the type has no examples, use any product with an `ok` photo from another type's examples.\n- **Otherwise** (the group `all`, or outside onboarding): `products_list(project_id, catalog_id, source_id)` lists products that have an image (up to 50 per page). Pick a typical product for the mockup; prefer one with a `sale_price` when the catalog has sales. For `all` with a photo summary, an example of the most common type is the typical product.\n- Note for step 8: the product with the longest title, one with a sale price, and one without a brand. `products_list` returns no brand, so take the brandless one from `catalogs_issue_products(project_id, catalog_id, source_id, code: \"no_brand\", limit: 1)`; when it returns nothing, every product has a brand: skip it. For the longest title, `catalogs_issue_products(project_id, catalog_id, source_id, code: \"title_too_long\", limit: 1)` gives one when the catalog has titles over the limit; otherwise take the longest title on the `products_list` page.\n- `products_get(project_id, catalog_id, source_id, product_id)` gives the exact `title`, `price`, `sale_price`, `currency` and `image_link` of the chosen product.\n\n### 2. Write the layout plan\n\nBefore any picture and any config, write the design as numbers, following `template-design/layout-plan`: the table of rows with `x y w h`, stacking, fills, borders, radii, shadows, type and conditions, on the real 1080×1080 canvas.\n\n- Pick the archetype that fits the brand and the product type (`template-design/archetypes`), then change its numbers; do not start from an empty canvas.\n- Take the colours, fonts, radius and logo from the brand book (`brand_get`), and the texts from the product of step 1 as tokens.\n- Meet the quality bar of `template-design/do-dont` here, not after the user complains: the nine elements of the inventory, a band or column that holds the type, the product at 55–70 % of the canvas, the price at the size the band allows, the discount shape under its condition, and at most one extra device.\n- A reference the user gave becomes plan numbers: which shape carries the composition, the photo-to-panel proportion, where the price sits, the type sizes.\n- The plan is internal. Do not show the table; the user judges the picture.\n\n### 3. Mockup (drawn from the plan, before any template)\n\nThe user sees a picture of the planned design and approves it before a template exists. Never replace the mockup with a description in words, and do not call `templates_create` before the approval.\n\n- **ChatGPT and Codex have an image tool:** built-in image generation (`image_gen__imagegen`). Call it yourself. It may be missing from a listing of tools such as `ALL_TOOLS`: that does not mean it is unavailable, so try the call. Never ask the user to type `$imagegen`, to give a key or to make the image elsewhere.\n- Make one mockup with `template-design/mockup-prompt`: the plan's numbers row by row, the real product photo, its real title and price, the logo by the three tiers of \"The logo: one picture, the real mark\", the brand book's colours and fonts, and the do/don't list.\n- **Check the picture against the plan before showing it** (`template-design/mockup-prompt`, \"Check the mockup before showing it\"): the logo present and untouched, every planned element there, nothing invented, the product unchanged. A failed mockup is remade, not shown.\n- Show it with two short lines in words, never numbers: what carries the layout and why it fits this shop and these photos (\"ліва панель у вашому синьому, фото праворуч на світлій підкладці, ціна в акцентній пілюлі\"). Then one sentence naming how the logo reached the picture — pasted in with the file, redrawn by the tool (so approximate), or shown beside it — and that the font on the picture is approximate while the banner uses the planned family (`template-design/mockup-prompt`, \"The logo: one picture, the real mark\"). That gives the user the words to ask for a change with. Never show the plan table, a pixel value or a layer name unless the user asks for one.\n- Then ask: approve it, or what should change? Each change goes into the plan first, then into a new mockup from the changed plan. One mockup per request.\n- **No image tool** (a client without image generation, such as Claude, or the call was refused): say in one line that a mockup cannot be made here and that you will show the real banner instead, and go to step 4. The render of step 6 is what the user approves. Such a plan has no asset rows.\n\n### 3a. Assets (only for a plan with asset rows)\n\nAn `asset` row is an element the config cannot draw: a gradient, a texture, an illustration, a glow (`template-design/asset-prompt`). At most 3 per design; everything the config can draw stays a layer.\n\n- After the mockup is approved, for each asset row: generate **only that element** with the image tool, the approved mockup as the style reference, no product, no product text and no logo, transparent for `decor`. Never cut it out of the mockup.\n- Store it with `assets_upload(project_id, kind: \"image\", file, name)`, passing the generated image itself as `file`. Keep the returned `url` for the row.\n- Check the returned image against the mockup's element, and `has_alpha` for `decor`. Generate again when it does not match; after 2 retries, draw the nearest thing the config can and tell the user in one line.\n- A font file the user gave you goes the same way with `kind: \"font\"`, after one question whether they may use it in ads (`template-design/asset-prompt`, \"A font file from the user\").\n\n### 4. Write the config from the plan\n\n- **The plan is the specification, not the picture.** Translate it row by row with the mapping table of `template-design/layout-plan`: `x y w h` to `x`, `y`, `width`, `height`, `z` to `zIndex`, fills, borders, radii, shadows, type and conditions. Never measure anything off the mockup image, and never drop a row because it looks small.\n- Keep each row's `id` as the layer `name`, so a later check can name what is wrong.\n- An `asset` row is an image layer with `src` = its `url` from step 3a, `objectFit: contain` for `decor` and `cover` for `background`. A font file from the user goes into `customFonts`.\n- **Once per conversation:** `templates_schema`. Keep from it the schema, the `limits`, `asset_hosts` (the only image hosts), `font_hosts` (the only font hosts) and `tokens` (feed data in texts and images: `{{title}}`, `{{current_price}}`, price functions such as `{{spaceDecimal(price)}}`, other catalog attributes). Do not call it again in the same conversation.\n- A gallery design is optional and only a source of valid property shapes: `templates_gallery(project_id)` and `templates_get_design(project_id, template_id: <gallery template id>, size: \"1080x1080\")`. If you copy one, delete every layer the plan does not have and replace every default the plan sets; a gallery layout never overrides the plan. To change a template of the flow, start from `templates_get_design(project_id, template_id, size, version: \"draft\")`.\n- Product texts stay tokens, parts only some products have get `showIf` / `hideIf`, titles get `maxLines`. A longer title must not change the planned hierarchy.\n- **Validate before every save:** `templates_validate(project_id, sizes: [{ size: \"1080x1080\", config }])`. When the config is not valid, the result lists `config_errors`, each with a path into your `sizes` argument (`sizes[0].config.objects[2].color`) and the reason. Fix every listed place and validate again until the result is `valid: true`. Do not show these errors to the user.\n\n### 5. Save the draft\n\n- **The group already has a template** (an earlier chat stopped here): `photo_types.<key>.template_id` is the template of this design (for a flow with only `all` and no `template_id`, a template in `flow.created.templates`). Do not call `templates_create`: `templates_get` shows its sizes, `templates_get_design(project_id, template_id, size, version: \"draft\")` reads its draft, and every round saves with `templates_save_size`. A template that `templates_get` no longer finds (it was deleted) is not continued: start a first round. Reconstruct the plan from that draft before changing it, so the numbers stay the specification.\n- **First round** (no template yet, and the mockup of step 3 is approved or could not be made): `templates_create(project_id, name: \"<shop name> · <group label>\", sizes: [{ size: \"1080x1080\", config }])` (name up to 100 characters). The group label is the group in the user's words, for example \"white background\", \"lifestyle, vertical\", or \"all products\" for `all`. Nothing is published. Right after it: `onboarding_update(project_id, created: { templates: [template_id] }, photo_types: { \"<key>\": { decision: \"generate\", template_id } })`.\n- **Later rounds:** `templates_save_size(project_id, template_id, size, config)`, only when `template_id` is in `flow.created.templates`.\n- Both wait for the build (up to 30 seconds) and return `html_status` per size:\n - `ready`: go on.\n - `building` or `unknown`: go on to step 6; the preview waits for the build.\n - `failed`: read `html_error`, fix the config, validate, save again. Exception: when `html_error` starts with `build_unavailable:` (the result text says the build is temporarily unavailable and retried automatically), the builder is busy, not your config: do not change or save it again; wait a minute and check the size with `templates_get`.\n\n### 6. Render check against the plan\n\nThe plan is the reference, so most of this check is arithmetic, not taste. Run the three passes of `template-design/layout-plan`, \"The numeric check\":\n\n1. **Config against the plan, row by row.** Every row exists with the same `x`, `y`, `width`, `height`, `zIndex`, fill, border, radius, shadow, font family, size, weight, case, letter spacing, line height, `maxLines`, `objectFit` and condition. Name each row by its layer `name` and mark it matching or not. A missing row or a different number is a defect; fix every one of them in the same round, never one per user complaint.\n2. **`templates_preview`** `(project_id, visual_feed_id: flow.visual_feed_id, template_id, size: \"1080x1080\", version: \"draft\", product_id)` with the product of step 1. One product is the form that carries the banner image itself, which is what you are about to look at; it also returns `image_url`. Compare the image with the plan: each element where the plan puts it, at its size, in its colour, with its radius and shadow, and the text at its planned size and line count. A successful validation or build does not prove any of this.\n3. **Image against the approved mockup**, last, and only for what the plan cannot express: the overall impression and the quality bar. A difference here means the plan was incomplete — add the missing rows to the plan, then fix the config. The logo and the type are the exception: the render carries the real file and the real font, the mockup carried the image tool's versions of them, and that difference is never corrected in the config. An asset that reads differently from the mockup is generated again (step 3a), never patched over with extra layers.\n\nA property that is in the config but absent from the rendered image is a renderer discrepancy: say so, and do not call the design matched. When something differs, go back to step 4 without asking the user. After 4 rounds that do not converge, show the render and list exactly what still differs, by layer name.\n\n- Show the user the final render with `previews_show` (the same arguments as the preview above), which draws it as a card in the chat; not as a description and not as a bare link. Ask whether they approve this design for the products of this group (R8): for a photo type, every product whose main photo has that type gets it; for `all`, every product. A change request updates the plan, then goes back to step 3 (a new mockup) or step 4 (a small fix).\n- When the user approves: `onboarding_update(project_id, photo_types: { \"<key>\": { approved: true } })`.\n\n### 7. Other sizes (R9)\n\n- `visual_feeds_get(project_id, visual_feed_id)` lists the feed's sizes. The flow's feed starts with 1080×1080.\n- **The sizes of the feed.** The sizes ad placements use are 1080×1080, 1080×1350 (portrait, for feeds) and 1080×1920 (stories and reels). In onboarding they are proposed once, before the first group (`onboarding/flow`, templates step), not again per group. Each one the user accepts and the feed lacks is added with `visual_sizes_add(project_id, visual_feed_id: flow.visual_feed_id, width: 1080, height: 1350)` (or `height: 1920`), only when `flow.visual_feed_id` is in `flow.created.visual_feeds`; otherwise do not add sizes (an existing feed must not be edited) and work with the sizes it has. Every size of the feed needs the same size in the template, otherwise the banners of that size stay empty.\n- Then ask once per group, after its first size is approved: approve each size separately, or adapt the approved design to the other sizes? Record the answer: `onboarding_update(project_id, photo_types: { \"<key>\": { size_decision: \"approve_each\" } })`, or `\"adapt\"`.\n - **Adapt:** re-place the plan on each new aspect — the same rows and the same assets, new numbers, the new safe area (`template-design/layout-plan`, \"The canvas\"); a `background` asset whose `cover` crop cuts its strongest part gets a new one for that aspect — then write each `config` from the re-placed plan, validate them together in one `templates_validate` call (up to 8 sizes), save each with `templates_save_size`, and preview each once with `templates_preview(version: \"draft\", product_id)`. Run pass 1 of the numeric check on every size. Show the renders with `previews_show`; no approval question.\n - **Approve each:** steps 2-6 for each size.\n\n### 8. Show products\n\n- The products noted in step 1 (longest title, a sale price, no brand when the catalog has one), plus 1-2 other examples of the group's type for a photo-type group. Do it at 1080×1080 and at the tallest size of the feed.\n- **To look at them yourself:** one `templates_preview(project_id, visual_feed_id, template_id, size, version: \"draft\", product_id)` call per product. Only the one-product form carries the image; a list of ids returns links, which you cannot read.\n- Look at every image: a title that overflows or is cut badly, a price that is missing or wrong, an empty badge or an empty brand line sends you back to step 4.\n- **To show the user:** one `previews_show(…, product_ids: [3-4 ids])` call per size, which draws them all as cards.\n\n### 9. Publish\n\n- `templates_publish(project_id, template_id)` without `confirm_token` returns a preview: the sizes, where the template is used (\"nothing live changes\" for a new template), the `draft_revision` and a `confirm_token`. Show the preview to the user in their language and ask for a yes.\n- Only after the user's yes, call `templates_publish(project_id, template_id, draft_revision, confirm_token)`: the same arguments plus the `draft_revision` and the `confirm_token` the preview returned. The publish is bound to the draft the user saw.\n- Without a yes, publish nothing. A token works once and expires in 5 minutes; when it has expired, ask for a new preview.\n- `template_draft_changed`: the draft changed after the preview. Preview the draft again (step 6), show it, and start the publish again.\n- A preview that is blocked because a size is still building: wait a minute and try again. Blocked because a size failed: fix that size (step 4) and save it again.\n- Once published, the template can be used in rules. In onboarding the next group follows (the templates step of `onboarding/flow`); after the last group comes the rules step.\n\n## The editor lock\n\n`templates_save_size`, `templates_publish` and `templates_discard_draft` refuse with `template_being_edited` while someone has the template open in the FeedEdify editor; nothing is written.\n- `same_user` is true: ask the user to close that editor tab (or press Back in the editor), wait about 90 seconds, then make the same call again.\n- Someone else (`holder_name`): tell the user who is editing it and try again when they are done.\n- Never take the template over and never work around the lock.\n\n## When the user stops\n\nWhen the user abandons the design of a group, or wants no generated template for it:\n- For each template in `flow.created.templates` that was never published (`templates_get` shows `published: false`), offer to delete it. `templates_delete(project_id, template_id)` returns a preview; delete only after the user's yes, with the returned `confirm_token`.\n- For a published template of the flow with unpublished changes, offer `templates_discard_draft` (also a preview, then the user's yes).\n- Never delete or discard a template that is not in `flow.created.templates`.\n- Instead of a generated template the user may take a template made earlier in this chat (another group's template), an existing project template (`templates_list`), a gallery template (`templates_gallery`, then `templates_add_from_gallery`, and record the new id in `created.templates`), or no banner for this group. Record the choice with the template id in both fields: `onboarding_update(project_id, photo_types: { \"<key>\": { decision: \"existing:<template id>\", template_id: \"<template id>\" } })`, or `decision: \"none\"`. Then go on with the next group.\n\n## Rules for every round\n\n- One product per banner, shown with its own photo from the catalog.\n- No claims, discounts or badges the catalog does not carry.\n- The logo only from the brand book (`brand_get`), as an image layer; never drawn, traced or invented. No logo in the book: the shop name as text.\n- Nothing in a mockup that the schema cannot draw, except asset rows of the plan (`template-design/asset-prompt`).\n- The details are in `template-design/do-dont`.\n"
}SHA-256 of public snapshot: 6d6667aebc34b7b2cee168671caa9bba87515a1eb23edfe17395c2f2a1ae7d43