gooseworks 0.4.1 → 0.4.2
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.
- package/README.md +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +2 -2
- package/dist/commands/doctor.js.map +1 -1
- package/dist/skills/master-skill.d.ts +22 -9
- package/dist/skills/master-skill.d.ts.map +1 -1
- package/dist/skills/master-skill.js +346 -19
- package/dist/skills/master-skill.js.map +1 -1
- package/dist/skills/routes.d.ts.map +1 -1
- package/dist/skills/routes.js +7 -1
- package/dist/skills/routes.js.map +1 -1
- package/package.json +1 -1
- package/skills/goose-video/SKILL.md +300 -433
- package/skills/goose-video-local/SKILL.md +440 -0
- package/skills/gooseworks/SKILL.md +2 -1
- package/skills/routes.json +8 -1
package/README.md
CHANGED
|
@@ -184,7 +184,8 @@ For focused creative work you can also use:
|
|
|
184
184
|
|
|
185
185
|
- `/goose-ads` for static ads, ad research, and ad performance.
|
|
186
186
|
- `/goose-product-photos` for studio, lifestyle, marketplace, social, and on-model product photography.
|
|
187
|
-
- `/goose-video`
|
|
187
|
+
- `/goose-video` to order a video ad in chat (renders on the GooseWorks server).
|
|
188
|
+
- `/goose-video-local` to render a video project you started in the app, on this machine.
|
|
188
189
|
- `goose-graphics` for social graphics, carousels, slides, and branded visual content.
|
|
189
190
|
- `animate-image` to turn an approved still into a short motion creative.
|
|
190
191
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
/**
|
|
3
3
|
* `gooseworks doctor` — verify the local prerequisites for making VIDEO ads
|
|
4
|
-
* (the goose-video skill renders locally: Playwright records the mockup, ffmpeg
|
|
4
|
+
* (the goose-video-local skill renders locally: Playwright records the mockup, ffmpeg
|
|
5
5
|
* stitches/mixes). Also checks auth + that the GooseWorks MCP server is wired,
|
|
6
6
|
* since the skill reads/writes the project over MCP. Exits non-zero if anything
|
|
7
7
|
* is missing so the agent's Phase-0 preflight can relay the fix and stop.
|
package/dist/commands/doctor.js
CHANGED
|
@@ -63,7 +63,7 @@ function hasPlaywright() {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* `gooseworks doctor` — verify the local prerequisites for making VIDEO ads
|
|
66
|
-
* (the goose-video skill renders locally: Playwright records the mockup, ffmpeg
|
|
66
|
+
* (the goose-video-local skill renders locally: Playwright records the mockup, ffmpeg
|
|
67
67
|
* stitches/mixes). Also checks auth + that the GooseWorks MCP server is wired,
|
|
68
68
|
* since the skill reads/writes the project over MCP. Exits non-zero if anything
|
|
69
69
|
* is missing so the agent's Phase-0 preflight can relay the fix and stop.
|
|
@@ -108,7 +108,7 @@ exports.doctorCommand = new commander_1.Command('doctor')
|
|
|
108
108
|
}
|
|
109
109
|
logger.info('');
|
|
110
110
|
if (allOk) {
|
|
111
|
-
logger.success('All set — you can
|
|
111
|
+
logger.success('All set — you can render video ads locally (goose-video-local).');
|
|
112
112
|
}
|
|
113
113
|
else {
|
|
114
114
|
logger.warn('Some prerequisites are missing. Fix the items above, then re-run: gooseworks doctor');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,iDAA0C;AAC1C,qDAAqD;AACrD,wDAA0C;AAE1C,uDAAuD;AACvD,SAAS,MAAM,CAAC,GAAW;IACzB,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC;IAC/D,IAAI,CAAC;QACH,OAAO,IAAA,yBAAS,EAAC,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACnE,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KA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,CAAC;IACD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChB,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,CAAC,OAAO,CAAC,iEAAiE,CAAC,CAAC;IACpF,CAAC;SAAM,CAAC;QACN,MAAM,CAAC,IAAI,CACT,qFAAqF,CACtF,CAAC;QACF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -44,18 +44,31 @@ export declare function getMasterSkillContent(): string;
|
|
|
44
44
|
*/
|
|
45
45
|
export declare function getGooseAdsSkillContent(): string;
|
|
46
46
|
/**
|
|
47
|
-
* Returns the goose-video entry SKILL.md content (
|
|
47
|
+
* Returns the goose-video entry SKILL.md content (GOOSE-3677).
|
|
48
48
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
49
|
+
* The server-rendered ORDERING flow: "make me a video ad for <brand>" → brand →
|
|
50
|
+
* what it's for → format table with demos → the format's questions → a free
|
|
51
|
+
* draft and a server quote → a script preview before the expensive work → the
|
|
52
|
+
* finished video in the chat. Works in hosted connectors (nothing runs locally).
|
|
53
|
+
* It routes existing app projects/batches to `goose-video-local` first.
|
|
54
|
+
*
|
|
55
|
+
* This is the ONLY full copy of the body. goose-lab's `order-video` is a stub
|
|
56
|
+
* that points here; edit the ordering flow in this function.
|
|
57
57
|
*/
|
|
58
58
|
export declare function getGooseVideoSkillContent(): string;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the goose-video-local entry SKILL.md content (GOOSE-3677).
|
|
61
|
+
*
|
|
62
|
+
* The local-render runtime. VIDEO projects made in the app (template remixes,
|
|
63
|
+
* concept batches, anything that is not a recipe order) still render on the
|
|
64
|
+
* user's own Claude Code: the app pre-creates the project and hands the user a
|
|
65
|
+
* paste prompt; this skill fetches the per-format recipe, renders on the user's
|
|
66
|
+
* machine (Playwright + ffmpeg + the GooseWorks media proxies), mirrors the
|
|
67
|
+
* script for a free in-app review, then saves the finished MP4 back over MCP.
|
|
68
|
+
* It cannot be retired until a server worker consumes those renders
|
|
69
|
+
* (`submit_render` alias: sunset "after-render-worker").
|
|
70
|
+
*/
|
|
71
|
+
export declare function getGooseVideoLocalSkillContent(): string;
|
|
59
72
|
/**
|
|
60
73
|
* Returns the goose-product-photos entry SKILL.md content.
|
|
61
74
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-skill.d.ts","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"master-skill.d.ts","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":"AA0BA,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAQ7C;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAwQ9C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CA8VhD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,CAsTlD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,8BAA8B,IAAI,MAAM,CA0bvD;AAGD;;;;;;;;;GASG;AACH,wBAAgB,iCAAiC,IAAI,MAAM,CAmI1D"}
|
|
@@ -5,6 +5,7 @@ exports.getEntrySkillNames = getEntrySkillNames;
|
|
|
5
5
|
exports.getMasterSkillContent = getMasterSkillContent;
|
|
6
6
|
exports.getGooseAdsSkillContent = getGooseAdsSkillContent;
|
|
7
7
|
exports.getGooseVideoSkillContent = getGooseVideoSkillContent;
|
|
8
|
+
exports.getGooseVideoLocalSkillContent = getGooseVideoLocalSkillContent;
|
|
8
9
|
exports.getGooseProductPhotosSkillContent = getGooseProductPhotosSkillContent;
|
|
9
10
|
/**
|
|
10
11
|
* The CLI installs two vendored ENTRY skills into ~/.agents/skills/:
|
|
@@ -19,9 +20,12 @@ exports.getGooseProductPhotosSkillContent = getGooseProductPhotosSkillContent;
|
|
|
19
20
|
* Sibling domain skills NOT vendored here (fetched live from goose-skills):
|
|
20
21
|
* - `goose-graphics` — charts/slides/infographics/branded visuals. Installed via
|
|
21
22
|
* `gooseworks install --with goose-graphics` or fetched on demand.
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
*
|
|
24
|
+
* Video (vendored here, GOOSE-3677):
|
|
25
|
+
* - `goose-video` — order a video ad in chat; renders on the GooseWorks
|
|
26
|
+
* server (getGooseVideoSkillContent). The only full copy of that body.
|
|
27
|
+
* - `goose-video-local` — render an existing app project/batch LOCALLY
|
|
28
|
+
* (Playwright + ffmpeg + media proxies) (getGooseVideoLocalSkillContent).
|
|
25
29
|
*
|
|
26
30
|
* Recipe skills (remix-graphic-ad-from-reference, brand-research, meta-ads-analyzer,
|
|
27
31
|
* …) are NOT vendored here — they live in goose-skills and are fetched live on
|
|
@@ -44,6 +48,7 @@ function getEntrySkills() {
|
|
|
44
48
|
{ name: 'gooseworks', content: getMasterSkillContent() },
|
|
45
49
|
{ name: 'goose-ads', content: getGooseAdsSkillContent() },
|
|
46
50
|
{ name: 'goose-video', content: getGooseVideoSkillContent() },
|
|
51
|
+
{ name: 'goose-video-local', content: getGooseVideoLocalSkillContent() },
|
|
47
52
|
{ name: 'goose-product-photos', content: getGooseProductPhotosSkillContent() },
|
|
48
53
|
];
|
|
49
54
|
}
|
|
@@ -692,29 +697,351 @@ run through the \`gooseworks\` CLI (\`gooseworks fetch\` / \`gooseworks call\`),
|
|
|
692
697
|
`;
|
|
693
698
|
}
|
|
694
699
|
/**
|
|
695
|
-
* Returns the goose-video entry SKILL.md content (
|
|
700
|
+
* Returns the goose-video entry SKILL.md content (GOOSE-3677).
|
|
701
|
+
*
|
|
702
|
+
* The server-rendered ORDERING flow: "make me a video ad for <brand>" → brand →
|
|
703
|
+
* what it's for → format table with demos → the format's questions → a free
|
|
704
|
+
* draft and a server quote → a script preview before the expensive work → the
|
|
705
|
+
* finished video in the chat. Works in hosted connectors (nothing runs locally).
|
|
706
|
+
* It routes existing app projects/batches to `goose-video-local` first.
|
|
696
707
|
*
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
* pre-creates the project and hands the user a paste prompt; this skill fetches
|
|
700
|
-
* the per-format recipe by slug from goose-skills, renders on the user's machine
|
|
701
|
-
* (Playwright + ffmpeg + the GooseWorks media proxies), mirrors the script for a
|
|
702
|
-
* free in-app review, then saves the finished MP4 back over MCP. The app is the
|
|
703
|
-
* viewer + review surface. The `gooseworks` parent router hands video here; Claude
|
|
704
|
-
* also loads it by description.
|
|
708
|
+
* This is the ONLY full copy of the body. goose-lab's `order-video` is a stub
|
|
709
|
+
* that points here; edit the ordering flow in this function.
|
|
705
710
|
*/
|
|
706
711
|
function getGooseVideoSkillContent() {
|
|
707
712
|
return `---
|
|
708
713
|
name: goose-video
|
|
709
714
|
slug: goose-video
|
|
710
715
|
description: >
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
716
|
+
Order a finished video ad without leaving the chat. Use it when the user says "make me a video
|
|
717
|
+
ad for <brand>", "I want a video ad", or asks for a UGC / iMessage / explainer video. One
|
|
718
|
+
sentence is enough: it picks the brand, asks what the ad is for, suggests formats in a table
|
|
719
|
+
with demo links, asks that format's questions, and shows the script for approval before any
|
|
720
|
+
real spend. It renders on the GooseWorks server, returns the video in the chat, and works in
|
|
721
|
+
hosted connectors too. For an existing app video project or batch, it hands off to
|
|
722
|
+
goose-video-local.
|
|
723
|
+
category: ads
|
|
724
|
+
version: 1.0.0
|
|
725
|
+
author: GooseWorks
|
|
726
|
+
tags: [gooseworks, ads, video, order, server-render]
|
|
727
|
+
---
|
|
728
|
+
|
|
729
|
+
# GooseWorks Video Ads — order a video in chat
|
|
730
|
+
|
|
731
|
+
## Purpose
|
|
732
|
+
|
|
733
|
+
Produces one finished vertical video ad, rendered on the GooseWorks server and billed in credits. Examples: an animated iMessage, ChatGPT or Notes thread that ends on the brand's product, or a kinetic-type explainer. The live catalogue decides what can be ordered.
|
|
734
|
+
|
|
735
|
+
**The customer starts with one sentence.** "Make me a video ad for Bioma" is the normal opening, not an edge case. They will not name a format, a tool or a step. Getting from that sentence to a good choice is this skill's job.
|
|
736
|
+
|
|
737
|
+
**The whole job happens in the chat.** The customer is in Claude Code, ChatGPT or a terminal. They will not open a browser to review a script, compare voices or watch a result. Choosing, previewing, approving and receiving all happen here, as text and links they can click. The app is for **payment and nothing else**.
|
|
738
|
+
|
|
739
|
+
**This is not the Video Ads Lab.** The lab is internal, admin-only and free. This spends a customer's money.
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
## Route first: is this a new order?
|
|
743
|
+
|
|
744
|
+
This skill **orders a new video**. Hand off to **\`goose-video-local\`** and stop following this skill when the customer brings any of these:
|
|
745
|
+
|
|
746
|
+
- a **video batch** id ("for video batch <id>");
|
|
747
|
+
- the app's copy-for-Claude command (it names \`goose-video-local\`);
|
|
748
|
+
- "remix this video ad template" for a specific app template.
|
|
749
|
+
|
|
750
|
+
Those render on the customer's own machine. Use \`goose-video-local\` if it is installed; otherwise load it with \`fetch_skill("goose-video-local")\` on the GooseWorks MCP.
|
|
751
|
+
|
|
752
|
+
A bare **project** id ("make the video for project <id>"): call \`video_project_read { brand_id, project_id }\` first. **Stay here** when it returns an \`order\`, or the project's \`script_drafts.recipe\` is set: that is an order made through this skill, so continue it on the same \`project_id\`. **Anything else** goes to \`goose-video-local\`.
|
|
753
|
+
|
|
754
|
+
Everything else, including "make me a video ad for <brand>", starts at step 1 below.
|
|
755
|
+
|
|
756
|
+
## Inputs
|
|
757
|
+
|
|
758
|
+
- A brand, usually named in the opening sentence. Resolved to \`brand_id\`; with one brand in the org it needs no input.
|
|
759
|
+
- What the ad is for, in the customer's words (optional; asked once, never forced). **It is sent with the order** as \`brief.prompt\` and reaches the script. It is not only for sorting the table.
|
|
760
|
+
- Anything else they volunteer about the ad: who it's for, names or terms it must say, things to stay away from. These are never asked for; they're kept when the customer offers them.
|
|
761
|
+
- The picked format's own answers (voice, music, angle…). The catalogue says which apply; some formats ask nothing.
|
|
762
|
+
|
|
763
|
+
Never an input: a reference video (these formats don't use one), or a promo code (it comes from the brand).
|
|
764
|
+
|
|
765
|
+
## Composed Atoms
|
|
766
|
+
|
|
767
|
+
MCP tools; the work happens in the app.
|
|
768
|
+
|
|
769
|
+
- \`brand_list\`: brand NAME → \`brand_id\`. Pass \`query\` when they named one.
|
|
770
|
+
- \`brand_create { name, website_url }\`: only when the customer asks to add a brand that isn't there. Free.
|
|
771
|
+
- \`video_catalog_list { kind: "formats", brand_id }\`: what can be ordered. Each format has \`card.description\`, \`card.best_for\`, \`card.needs\`, \`ask[]\`, \`brand_requirements[]\`, \`default_credits\` and \`examples[]\` (demo videos: a curated sample first, then real runs). The response also carries \`brief_fields\`: the intent fields every format's \`brief\` accepts on top of its \`ask[]\` (\`prompt\`, \`audience\`, \`must_mention\`, \`avoid\`, \`notes\`).
|
|
772
|
+
- \`video_catalog_list { kind: "voices" }\`: voices with playable \`preview_url\`s, for formats that speak.
|
|
773
|
+
- \`video_project_upsert\`: the free draft. Returns \`project_id\`, \`quote\`, \`ready\`, \`missing\` and \`questions\` (0–2 things worth asking before the script is written; usually none).
|
|
774
|
+
- \`video_project_upsert { project_id, patch: { brief } }\`: changes the brief, checked the same way as when it was created. A key replaces its value, \`null\` removes it. Free. Once ordered, only the brief fields change (never the format's own answers), and they reach the script on the next \`redraft\`. A brief change never moves the quote.
|
|
775
|
+
- \`video_render_run { dry_run: true }\`: re-reads the price. Free.
|
|
776
|
+
- \`video_render_run { kind: "partial" }\`: **writes the script and stops.** Reserves the quote and shows the script before the expensive work. Works for every orderable format, chat or voiceover.
|
|
777
|
+
- \`video_render_run { kind: "full" }\`: finishes an approved preview.
|
|
778
|
+
- \`video_render_run { kind: "edit", edit: { script } }\`: puts the customer's OWN words into the draft, verbatim, through the format's own guards. Free before approval, and the **only** route that keeps their copy. Offered where the format's \`edits.script\` is non-empty; refused as \`script_not_editable\` elsewhere.
|
|
779
|
+
- \`video_render_run { kind: "redraft", reason }\`: another draft, before approval, written from why they turned this one down, or with no \`reason\` after a brief change (the change is the reason). It **re-runs the writer** either way, so every word (and the picture on a character format) is replaced — it does not keep copy the customer supplied. Same order, **no new hold**, but **not free**: it adds a few credits of model spend inside the hold already placed. Up to 3, and refused if it would pass the hold. \`dry_run: true\` says what it would add.
|
|
780
|
+
- \`video_project_read { brand_id, project_id }\`: status, the drafted script while previewing, and the finished video. Returns an \`order\` object for recipe projects.
|
|
781
|
+
- \`job_cancel { job_id }\`: declines a preview. \`job_id\` is the order id (the project id also works). Releases the whole hold.
|
|
782
|
+
|
|
783
|
+
## Workflow
|
|
784
|
+
|
|
785
|
+
The opening is fixed: **brand → what it's for → suggested formats → first question.** Do each step without waiting for the customer to ask for it.
|
|
786
|
+
|
|
787
|
+
### 1. Resolve the brand, quietly when you can
|
|
788
|
+
|
|
789
|
+
Call \`brand_list\`, with \`query\` when they named a brand. \`query\` is a case-insensitive substring match, so "Kolkata Chai" also finds "Kolkata Chai Co". If it finds nothing, call \`brand_list\` once more with no query before deciding.
|
|
790
|
+
|
|
791
|
+
- **The org has exactly one brand** → use it. Say which in one line ("Making this for **Bioma**.") and move on. Don't ask.
|
|
792
|
+
- **The name they said matches exactly one brand** → use it. Say which.
|
|
793
|
+
- **Several match, or they named none and the org has several** → show a table (name, website) and ask. The wrong brand is a wasted order.
|
|
794
|
+
- **Nothing matches** → say so, list the brands they do have in a table, and offer to add the new one here: "Or send me its website and I'll add it." With a website, call \`brand_create { name, website_url }\` (free). It starts brand research, which fills in the logo and colours in a few minutes. Say so, then carry on from step 2 while it runs. Before step 5, check \`brand_get_context\` shows \`research_status: complete\`; until then drafts are blocked. Adding a brand is not a trip to the app. Never create a brand they didn't ask for, and never guess the website.
|
|
795
|
+
|
|
796
|
+
If the GooseWorks MCP's own instructions have you check onboarding first and it turns out unfinished, finish it, then come back here with the customer's original sentence.
|
|
797
|
+
|
|
798
|
+
### 2. Ask what the ad is for, in one open question
|
|
799
|
+
|
|
800
|
+
Unless the opening sentence already said it, ask **one** plain question and wait:
|
|
801
|
+
|
|
802
|
+
> What's this ad for? For example: launching something, a sale, explaining how it works, or showing real results. Anything you tell me helps me pick the right format.
|
|
803
|
+
|
|
804
|
+
This is a free-text question: **no menu, no table, no list of formats yet.** Take whatever they say, even "not sure" or "just something good". Never ask it twice, and never block on it: a vague answer is an answer.
|
|
805
|
+
|
|
806
|
+
**Keep the answer. It goes into the order in step 5**, not just into the table's order. Write it down as they said it; that becomes \`brief.prompt\`. If their words (here or in the opening) also say who the ad is for, a name or term the ad must say, or something to stay away from, note those too:
|
|
807
|
+
|
|
808
|
+
| They said | Goes in | Example |
|
|
809
|
+
|---|---|---|
|
|
810
|
+
| What the ad is for (the whole answer) | \`prompt\` | "creative is the bottleneck for small teams, make it a problem-solver" |
|
|
811
|
+
| Who it's for | \`audience\` | "heads of growth at seed-stage startups" |
|
|
812
|
+
| A name or term it must say | \`must_mention\` (a list) | \`["Claude", "ChatGPT"]\` |
|
|
813
|
+
| Something to keep out | \`avoid\` (a list) | \`["no villain", "don't talk down to marketers"]\` |
|
|
814
|
+
|
|
815
|
+
Never ask for the last three and never fill them with a guess. A \`must_mention\` term the customer didn't say is a claim we made for them.
|
|
816
|
+
|
|
817
|
+
Skip the question when the opening already names a goal ("…a video ad for our summer sale") or a format ("…an iMessage video ad"). With a format named, go to the table with that format first and marked, then step 4.
|
|
818
|
+
|
|
819
|
+
### 3. Suggest formats in a table, best fit first
|
|
820
|
+
|
|
821
|
+
\`video_catalog_list { kind: "formats", brand_id }\`, then **always a markdown table in your message**.
|
|
822
|
+
|
|
823
|
+
Order the rows by how well each format fits their answer. Judge fit from \`card.description\`, \`card.best_for\` **and the format's \`ask[]\` options** against what they said. An option can make a format fit: a cartoon explainer whose \`ask[]\` offers \`arc: hero-helper\` fits "a friendly hero mascot, no villain"; one without that option does not, because its card says the character is the problem and loses. **A format whose card contradicts what they asked for is never Suggested**, however well its keywords match. When nothing fits, say so before the table ("None of our formats does X; the closest is Y, which gives up Z") and still show the table. Mark **exactly one** row **Suggested** with a few words on why ("real results → before/after"); a close second can be **Also good**. One suggestion keeps "the suggested one" unambiguous. With no goal given, put the formats that have demos first.
|
|
824
|
+
|
|
825
|
+
| | Format | What it looks like | Price | Demo |
|
|
826
|
+
|---|---|---|---|---|
|
|
827
|
+
| **Suggested** | iMessage chat reveal | Two friends texting; ends on your product | ~60 credits | [watch](https://…) |
|
|
828
|
+
| **Also good** | Apple Notes reveal | A diary-style note typed out; ends on your product | ~15 credits | [watch](https://…) |
|
|
829
|
+
| | Kinetic type explainer | Bold on-brand text timed to a voiceover | ~80 credits | [watch](https://…) |
|
|
830
|
+
|
|
831
|
+
- **Demo** is \`examples[].output_url\`. When a format has none, write "no demo yet" in the cell; never leave it blank.
|
|
832
|
+
- **"What it looks like" is \`card.description\`, quoted.** Copy it word for word; you may cut it at a sentence boundary, never re-word it. A paraphrase once turned "narrates how it gets beaten" into "narrates the fix", which made a villain format look right for a no-villain brief. \`card.best_for\` often carries a dollar figure; never copy it into the table.
|
|
833
|
+
- **When the pick depends on an option, say which.** "Cartoon explainer (as a friendly helper)" in the Format cell, and pre-fill that answer in step 4.
|
|
834
|
+
- **Price** is \`default_credits\`, written approximately ("~60 credits"). It is a guide for choosing. The price they agree to is the server's quote in step 5.
|
|
835
|
+
- **Say which formats won't take their words.** A format whose \`edits.script\` is empty writes its own copy and accepts no hand edit; the only lever is a redraft, which rewrites everything. Put "writes its own words" in that row's "What it looks like" cell. A customer who arrives with a script already written needs to know this **before** they pick, not after they hand it over.
|
|
836
|
+
- **Formats the brand may not be able to run** go last, with \`card.needs\` in plain words, e.g. "needs real before/after photos". Don't hide them; don't suggest them. Judge logo and product photos from the \`brand_list\` row. For anything else (before/after photos, say) you can't see, treat it as missing rather than make extra calls. \`video_project_upsert\` returns \`ready\`/\`missing\`, which is the real check.
|
|
837
|
+
|
|
838
|
+
**Print the table in your message, THEN ask which one** ("Want the suggested one, or another?"). Never put the formats only inside a structured question control: it renders plain option labels, not links, so the customer would be picking a format they were never able to watch. That happened on the first real run: the picker appeared, the demos didn't, and the customer had to ask where they were. A question control may follow the table to capture the answer; it never replaces it.
|
|
839
|
+
|
|
840
|
+
### 4. Ask the picked format's questions (only these)
|
|
841
|
+
|
|
842
|
+
Its \`ask[]\` list is the whole question set. Anything with \`source: "recipe"\` is the recipe's call, never the customer's. **An empty \`ask[]\` means no questions**: say so ("This one needs nothing else from you") and go straight to step 5.
|
|
843
|
+
|
|
844
|
+
Ask them all in **one message**, the choice tables first. Put yes/no questions that have a default at the end as a statement they can override ("Music on and a selfie in the thread; say if you want either off"). Every question with an optional answer gets a "leave it to the writer" option.
|
|
845
|
+
|
|
846
|
+
**The rule most easily got wrong:** anything the customer should *see or hear before choosing* goes in a **markdown table in your message**. The structured question control only captures the answer afterwards; it cannot render a link, so a demo or a voice sample placed only in the widget is a choice nobody can actually evaluate. Table first, question second. Yes/no questions need no table, and a choice with no sample (an angle list) is still a table, just without that column.
|
|
847
|
+
|
|
848
|
+
| Angle | The thread | Demo |
|
|
849
|
+
|---|---|---|
|
|
850
|
+
| friend-asks-friend | A friend notices something and asks | [watch](…) |
|
|
851
|
+
| setup-flex | You send a photo, the friend reacts | [watch](…) |
|
|
852
|
+
| swap-moment | You quit something worse for this | [watch](…) |
|
|
853
|
+
| feature-as-punchline | The product's own mechanic is the reveal | [watch](…) |
|
|
854
|
+
|
|
855
|
+
Same for voices: \`video_catalog_list { kind: "voices" }\` gives name, gender, accent and a \`preview_url\`. Put the name in a link so it plays. This was the clearest moment of the first real run: a voice table with playable samples. Do the same for any avatar or style choice a format exposes.
|
|
856
|
+
|
|
857
|
+
A choice with an \`enum\` and no samples (the cartoon explainer's \`style\`, say) is still a table: one row per value, described in the words of the field's own \`description\`, with "no demo yet" in the sample column. Don't invent what a style looks like.
|
|
858
|
+
|
|
859
|
+
Never ask for a promo code.
|
|
860
|
+
|
|
861
|
+
### 5. Draft and price
|
|
862
|
+
|
|
863
|
+
\`video_project_upsert { brand_id, name, format, brief: { …answers, prompt, audience?, must_mention?, avoid? } }\` is free. \`brief\` holds the picked format's \`ask[]\` answers **plus** the step-2 intent. Leave out any intent field the customer never gave. If \`ready\` is false, **stop** and relay \`missing\` in plain words.
|
|
864
|
+
|
|
865
|
+
The server refuses any other key with \`invalid_brief\` and names every key it accepts. Fix the brief from that message; never drop the customer's intent to make the error go away.
|
|
866
|
+
|
|
867
|
+
**If \`questions\` is not empty, ask them now, in one message, before showing the price.** Each one says which brief field its answer fills (\`fills\`). Save the answers with \`video_project_upsert { project_id, patch: { brief: { <fills>: <their answer> } } }\`. The bounds:
|
|
868
|
+
- **One round.** Never ask a follow-up, and never ask the same thing twice.
|
|
869
|
+
- **Never required.** If they skip them or say "just make it", carry on with the draft as it is.
|
|
870
|
+
- **Empty \`questions\` means ask nothing.** The server skips it when the brief already says what the ad is for and who it's for, and never asks what the brand record already knows. "Make me a video ad for X" stays a complete request.
|
|
871
|
+
|
|
872
|
+
Show the price the draft returned (the \`quote\`), **never a number from this page or the catalogue**. If it differs from the table's "~N", the quote is right. Convert at **100 credits = $1**.
|
|
873
|
+
|
|
874
|
+
### 6. Write the script and show it, before the expensive work
|
|
875
|
+
|
|
876
|
+
\`video_render_run { brand_id, project_id, kind: "partial" }\`.
|
|
877
|
+
|
|
878
|
+
This reserves the credits and writes the script only: **no video is rendered.** It returns immediately with \`status: "previewing"\` and no script yet; the writing happens in the background. Poll \`video_project_read\` every 20 seconds (it lands in about 40) and read \`order.preview\`. Calling \`kind: "full"\` while it is still \`previewing\` is refused with \`preview_in_progress\`.
|
|
879
|
+
|
|
880
|
+
\`order.preview\` is shaped by the format, and **every** orderable format has one. A preview was chat-only until 2026-09-25, and a kinetic-type customer approved a price and first saw the copy in the finished video.
|
|
881
|
+
|
|
882
|
+
**A chat format** (iMessage / ChatGPT / Notes) fills \`thread\` (the message list), \`angle\`, \`cta_text\` and \`selfie_url\`. Show it as a readable transcript, not JSON:
|
|
883
|
+
|
|
884
|
+
> **them:** wait why do you look so into your phone rn 😭
|
|
885
|
+
> **me:** I literally just chose to betray the duke
|
|
886
|
+
> **them:** omg is this a game or a book
|
|
887
|
+
|
|
888
|
+
**\`selfie_url\` is a generated face — show it as a link.** These formats draw the selfie INSIDE the script step, so it never appears in \`anchor_images\` and \`stage\` stays \`"script"\`. It is still a face that will be in the ad, so it still needs their yes.
|
|
889
|
+
|
|
890
|
+
**Any preview with \`order.preview.stage: "image"\`** stopped after the **picture**, not just the words, so they judge the face before paying for the video. Go by that field, never by a list of format names — it follows what the recipe's steps produce, so a format joins this branch without a skill edit. Today: the animated character, the reaction selfie, the podcast hosts, the UGC creator, and the voiceless dance story (four to six stills, and no spoken script at all — its stills and \`detail\` ARE the draft, so say that rather than reporting an empty script).
|
|
891
|
+
|
|
892
|
+
Show every URL in \`order.preview.anchor_images\` as a link (the podcast format has two, one per host), alongside the script. Then say plainly, in this order: what they are looking at; that **nothing has been rendered yet and the pause is deliberate**, because the video is generated FROM this picture and changing the face now is cheap; that **approving starts the render and commits the credits already held**; and that cancelling instead releases the whole hold, so the picture costs them nothing. A pause with no reason given reads as a broken order.
|
|
893
|
+
|
|
894
|
+
**A voiceover format** (kinetic type) fills \`beats\` instead, and \`thread\` is null. Each beat has \`vo_lines\` (what is spoken) and a \`beat\` label. \`detail.hyperframe.plan.slates[].props\` holds the words that go **on screen**, which for this format is most of the ad. Show both columns, in order:
|
|
895
|
+
|
|
896
|
+
| # | On screen | Voiceover |
|
|
897
|
+
|---|---|---|
|
|
898
|
+
| 1 | Sunscreen that pills | Most sunscreens pill under makeup. |
|
|
899
|
+
| 2 | Myth: all SPF is greasy → Fact: not a fluid one | This one is a fluid. It sinks in. |
|
|
900
|
+
|
|
901
|
+
Read the spoken lines out as one paragraph underneath, so they can hear the pacing.
|
|
902
|
+
|
|
903
|
+
Whatever the format, **quote it back verbatim.** Do not paraphrase, tidy or shorten the copy; they are approving the exact words that will be rendered.
|
|
904
|
+
|
|
905
|
+
If \`order.preview.brief_check\` is present, read it before asking for approval:
|
|
906
|
+
- \`missing_mentions\`: terms they asked for that the script never says. Tell them which, plainly ("It doesn't mention ChatGPT yet").
|
|
907
|
+
- \`endorsement_flags\`: lines that make another brand sound like it endorses, partners with or ranks theirs. Show the line and say it has to change: a listed name may appear as "works with", never as "recommends" or "#1 for".
|
|
908
|
+
|
|
909
|
+
If \`order.brief_changed_since_draft\` is present, the brief was changed after this draft was written. **Approving renders the draft as shown**, so redraft first (no reason needed), or tell them the change won't be in this video.
|
|
910
|
+
|
|
911
|
+
Then ask: **use this, change it, or stop?**
|
|
912
|
+
|
|
913
|
+
**One question decides how to change it: did they give you the actual WORDS, or did they tell you what is wrong?** Only the first route below keeps their words. The other two write new ones — which is right when the customer wants something different, and is a silent rewrite when they wanted what they wrote.
|
|
914
|
+
|
|
915
|
+
- **They gave you the words** ("use these lines", "the end card must say Meet Goose", "keep this but change the second bubble") → \`video_render_run { kind: "edit", edit: { script: { … } } }\`. **This is the only route that keeps copy verbatim.** It puts their text through the format's own guards and costs nothing extra before approval. Send the shape the preview handed you: \`script.thread\` for a chat format, \`script.beats[i].vo_lines\` (one entry per beat, \`{}\` for a beat you are not changing) for a voiceover format, \`script.slates[{ beat_idx, props }]\` for on-screen words, \`script.cta_text\` for the end card, \`ingredient: "character"\` + \`script.character.description\` for the character itself.
|
|
916
|
+
- **An edit before approval IS the approval**: it applies the copy and starts the render at once (status → \`running\`). So show the exact words you are about to send, get a yes, and only then send it. An unapproved fix stays a proposal in the chat.
|
|
917
|
+
- Refused with \`script_not_editable\` → this format writes its own copy and takes no hand edit. **Say so, and do not paraphrase their lines into a redraft** — that hands them a video that is not what they wrote. Their real options are a redraft (new words, not theirs), a re-order with different answers, or cancel.
|
|
918
|
+
- Refused with \`script_rejected\` → a line makes a claim the brand's facts don't support. Relay the reason and offer a rewrite; never argue it through.
|
|
919
|
+
- **They changed the BRIEF, not the copy** — the problem it shows, who it's for, a name to say, something to avoid, a note like "keep it dry" → save it with \`video_project_upsert { project_id, patch: { brief } }\` (use \`notes\` for anything that isn't one of the other fields; keep their original \`prompt\`), then \`video_render_run { kind: "redraft" }\` with no \`reason\`. The new draft is written from the updated brief, so **the words will be new** — this changes the instructions, not the script. Same cost wording as below: no new order, no new hold, a few credits inside the hold.
|
|
920
|
+
- **They only said what's wrong** ("too salesy", "the character looks like a mug") → ask **why** in one line, then \`video_render_run { kind: "redraft", reason: <their words> }\`. **A redraft RE-RUNS the writer: every word, and the picture on a character format, is replaced.** Their reason steers the next draft; it is not copied into it. Never put exact lines in \`reason\` expecting them back. Say what it costs, precisely: "no new order and no new hold; it adds about N credits to what this video costs, inside the hold" (N from the response's \`redraft.credits_estimate\`). **Never call it free.** Poll \`video_project_read\` until \`preview\` again and show the new draft plus \`order.spend\` (what each draft added, how much of the hold is left). A \`redraft_exceeds_hold\` or \`redraft_limit\` refusal means: approve a draft or cancel.
|
|
921
|
+
- Different answers altogether (another format, another angle) → a fresh project, and cancel this one.
|
|
922
|
+
- Stop → \`job_cancel { job_id: <order id> }\`. The whole hold is released and they pay nothing. Cancel only works while the order is \`queued\`, \`previewing\` or \`preview\`; once they approve and it is \`running\`, it is being made and cannot be refunded.
|
|
923
|
+
|
|
924
|
+
This is the review. It happens here, not in the app.
|
|
925
|
+
|
|
926
|
+
**If the server answers \`preview_not_available\`,** that is a bug: every sold format has a script preview. Say plainly "I can't show you the script for this one before it's made", and stop. Do not quietly skip the step and charge as if the gate had passed.
|
|
927
|
+
|
|
928
|
+
### 7. Finish it
|
|
929
|
+
|
|
930
|
+
Only after they approve the script: \`video_render_run { brand_id, project_id, kind: "full" }\`.
|
|
931
|
+
|
|
932
|
+
Poll \`video_project_read { brand_id, project_id }\` **every 30 seconds.** Done means \`order.status\` is \`done\`; the same response then carries \`video_url\` (the project page) and \`mp4_url\` (the file).
|
|
933
|
+
|
|
934
|
+
**How long depends on the format.** One number is wrong by 2x across the catalogue, and a customer told "about 5 minutes" at minute 9 thinks it has failed:
|
|
935
|
+
|
|
936
|
+
| Format | Typical | Give up after | Why |
|
|
937
|
+
|---|---|---|---|
|
|
938
|
+
| iMessage / ChatGPT / Notes chat reveal | ~5 min | 10 min | No video is generated; a browser renders the phone UI, then ffmpeg cuts it |
|
|
939
|
+
| Kinetic type explainer | **~10 min** | 20 min | Two AI b-roll clips, a voiceover, a music bed, HTML slides and a stitch |
|
|
940
|
+
|
|
941
|
+
An unlisted or new format: assume the longer budget. Say the number you are working to up front ("this takes about ten minutes; I'll keep checking"), and say something at the halfway mark rather than going silent. Waiting is not failing; silence feels like it.
|
|
942
|
+
|
|
943
|
+
### 8. Deliver in the chat
|
|
944
|
+
|
|
945
|
+
**Lead with \`video_url\`** — the project page, where the video plays and they can come back to it. Give \`mp4_url\` second and name it as the file ("and the raw MP4, if you want to download or upload it"). Never hand over the CloudFront \`.mp4\` on its own: it is a file, not a place — nothing to return to, nothing to edit from, and it reads like a debug artifact rather than a delivery. If \`video_url\` is missing, poll once more; never substitute the mp4 for it silently.
|
|
946
|
+
|
|
947
|
+
Say what the video is: length, ratio, what's in it. This is delivery **in the chat** — the link is the video, not an instruction to go to the app. If they want a change, offer to make another with different answers. That is a new order and a new charge; say so.
|
|
948
|
+
|
|
949
|
+
The only reason to send someone to the app is **payment**: not enough credits, or a plan without video.
|
|
950
|
+
|
|
951
|
+
## Decision Rules
|
|
952
|
+
|
|
953
|
+
- **One sentence is a complete request.** Never answer "make me a video ad for X" by asking which format, which tool or what to do next. Run steps 1–3 and let the table do the asking.
|
|
954
|
+
- **One brand in the org → never ask which brand.** State the one you used.
|
|
955
|
+
- **Open question first, table second.** Don't lead with the whole catalogue. The goal question comes before any list, and the table comes ordered, with one suggestion.
|
|
956
|
+
- **No approval of the SCRIPT → do not call \`kind: "full"\`.** The price gate is not the script gate. They approve a number in step 5 and the actual ad in step 6.
|
|
957
|
+
- **More than two options → table in the message.** Every time. Options with a sample or demo the customer can't hear or see are not really choices. A question control may capture the answer after the table, never instead of it.
|
|
958
|
+
- **\`ready: false\` → stop.** Ordering anyway fails and wastes their time.
|
|
959
|
+
- **Unsure whether an order went through → read \`video_project_read\` first.** Never use the charging tool as a status probe. Only if the project shows nothing at all, re-call \`video_render_run\` on the SAME \`project_id\` (idempotent per project). Never create a second project; that is a second charge.
|
|
960
|
+
- **Quote cards, never paraphrase them.** The card is the server's promise about the format. A reworded card can promise something the format cannot do.
|
|
961
|
+
- **A contradiction with the card outranks every keyword match.** Check what they asked for against what the card and the \`ask[]\` options say the format does; a format that can't do the ask is never Suggested.
|
|
962
|
+
- **They asked for a format that isn't in the catalogue** → it isn't available yet. Say so, show the table, and don't improvise a lab recipe.
|
|
963
|
+
- **Run failed → say so plainly.** The credits are released automatically. Offer a retry; never retry unasked.
|
|
964
|
+
- **Their words go in an \`edit\`, never in a \`redraft\` reason.** A \`reason\` steers the next draft; it is not copied into it. The moment a customer gives you actual copy, the only honest routes are \`kind: "edit"\` or telling them this format will not take it.
|
|
965
|
+
- **Deliver the page, not the file.** \`video_url\` leads, \`mp4_url\` follows. A bare CloudFront link is not a delivery.
|
|
966
|
+
- **The brief is the customer's words, not yours.** \`prompt\` is their answer, verbatim or close to it. \`audience\`, \`must_mention\` and \`avoid\` hold only what they said. Another brand in \`must_mention\` means they asked for it; it can be named as "works with", never as an endorsement or ranking.
|
|
967
|
+
|
|
968
|
+
## Output
|
|
969
|
+
|
|
970
|
+
The finished video in the chat: \`video_url\` (the project page) first, \`mp4_url\` (the file) second, with its length and ratio.
|
|
971
|
+
|
|
972
|
+
The credits leave the balance when the order is placed (a hold). They are **captured** on success or **released** on failure or cancellation. A balance that dropped does not prove a charge, so don't describe it to the customer that way.
|
|
973
|
+
|
|
974
|
+
## Quality Checks
|
|
975
|
+
|
|
976
|
+
- A one-sentence opening got: the brand resolved (unasked when there is one), one open goal question, then a format table with demo links and one suggestion.
|
|
977
|
+
- The table was ordered by the customer's goal, not the catalogue's order.
|
|
978
|
+
- Every "What it looks like" cell is the card's own words. No Suggested format's card contradicts what the customer asked for; when nothing fit, you said so and named the closest with its trade-off.
|
|
979
|
+
- Every multi-option question was a table in the message, with a demo or sample column wherever one exists.
|
|
980
|
+
- Only the picked format's \`ask[]\` questions were asked.
|
|
981
|
+
- The step-2 answer went into the order as \`brief.prompt\`, and no intent field held anything the customer didn't say.
|
|
982
|
+
- They approved the **script**, not just the price, before the expensive work ran: the thread for a chat format, the on-screen words *and* the voiceover for a kinetic-type one.
|
|
983
|
+
- You told them how long the render would take **for the format they picked**, and said something at the halfway mark instead of going quiet.
|
|
984
|
+
- The quote you showed came from the server, never from memory or the catalogue.
|
|
985
|
+
- Every line of copy the customer wrote is in the finished video word for word — it went through \`kind: "edit"\`, or you told them plainly that this format would not take it. No supplied copy was ever paraphrased into a \`redraft\` reason.
|
|
986
|
+
- The video was delivered in the chat as \`video_url\` first and \`mp4_url\` second. You did not send them to the app for anything but payment.
|
|
987
|
+
- You asked for no promo code or reference video, and made no product claim the brand's own facts don't support.
|
|
988
|
+
|
|
989
|
+
## Failure Modes
|
|
990
|
+
|
|
991
|
+
| Symptom | Cause | Fix |
|
|
992
|
+
| --- | --- | --- |
|
|
993
|
+
| "Make me a video ad for X" got back "which format / what would you like?" | Treated the one-liner as incomplete | Run steps 1–3 unprompted: resolve the brand, ask the goal, show the table |
|
|
994
|
+
| Asked which brand in a one-brand org | Skipped the count check in step 1 | Use the only brand and say which |
|
|
995
|
+
| Opened with the full format list | Skipped the goal question | Ask what the ad is for first; order the table by the answer |
|
|
996
|
+
| Demo links invisible to the customer | The choices went only into the structured question control | Table in the message first; the control only takes the answer |
|
|
997
|
+
| \`format_not_available\` | Not an orderable format | Re-read the catalogue; offer what's in it |
|
|
998
|
+
| \`brand_not_ready\` | Brand has no product photos or logo | Relay \`missing\` in plain words; stop |
|
|
999
|
+
| \`invalid_brief\` | The brief carried a key this format doesn't accept (e.g. another format's question, or a made-up field like \`tone\`) | The message lists what is accepted. Move the customer's words into \`prompt\`/\`audience\`/\`must_mention\`/\`avoid\`; never drop them |
|
|
1000
|
+
| The script ignores what they asked for | The step-2 answer wasn't sent (it only sorted the table), or they added something later that never reached the brief | Send it as \`brief.prompt\` in step 5. Anything they add later goes in with \`patch.brief\` (\`notes\`) and then a redraft. The preview's \`brief_check\` shows missing must-mention terms |
|
|
1001
|
+
| Video not on this plan | Lite and trial have no video entitlement | Say so and point at the upgrade; this is the one app trip that's allowed |
|
|
1002
|
+
| Insufficient credits | Wallet short | Nothing was created or charged; report the shortfall |
|
|
1003
|
+
| Preview looks wrong | The script or the picture isn't what they wanted | They gave you the words → \`kind: "edit"\`. They changed the brief → \`patch.brief\` then a redraft with no reason. They only said what's wrong → \`kind: "redraft"\` with their reason. Same order, no new hold, a few credits inside it; never "free". Or \`job_cancel\` this one |
|
|
1004
|
+
| **The customer wrote the script and the finished video says something else** | Their lines went into a \`redraft\` \`reason\`. A redraft re-runs the writer: the reason steers the next draft, it is never copied into it. Seen on staging — "Keep this exact draft, use these lines: …" came back paraphrased, twice, and was paid for both times | Copy goes in \`kind: "edit"\`. If the format refuses it (\`script_not_editable\`), say so and let them choose a redraft, a re-order or cancel — knowing the words will be new |
|
|
1005
|
+
| Video started rendering before the customer approved | \`kind: "edit"\` on a preview applies the copy **and** starts the full render (status → \`running\`) | Show the exact words you're about to send, get a yes, then send the edit. An unapproved fix stays a proposal in the chat |
|
|
1006
|
+
| \`draft_is_your_copy\` on a redraft | The current draft is the customer's own edited copy; another draft would replace their words | Correct behaviour. Edit their copy again with \`kind: "edit"\`, approve it, or cancel |
|
|
1007
|
+
| \`script_rejected\` on an edit | A line makes a claim the brand's facts don't support | Relay the reason verbatim and offer a rewrite; nothing was charged |
|
|
1008
|
+
| The customer was sent a raw \`cloudfront.net/….mp4\` | Delivered \`mp4_url\` (or \`order.output_url\`) instead of \`video_url\` | \`video_url\` leads and \`mp4_url\` follows. Both come back from \`video_project_read\` once \`order.status\` is \`done\` |
|
|
1009
|
+
| \`recipe_brief_locked\` | You patched \`script_drafts\` raw on a format project, which would have skipped the brief's checks | Send the change as \`patch.brief\` instead |
|
|
1010
|
+
| \`format_answers_locked\` | After ordering, you tried to change the format's own answer (voice, angle, selfie) through the brief | Those change what the run costs. Use \`kind: "edit"\` where the format lists it, or start a new project |
|
|
1011
|
+
| Asked the customer three rounds of questions before anything was made | Treated \`questions\` as a form, or asked your own follow-ups | Ask what \`questions\` holds, once, in one message. Nothing else. Skipping is fine |
|
|
1012
|
+
| \`preview_in_progress\` | You called \`full\` while the script was still being written | Keep polling \`video_project_read\` until \`order.preview\` appears |
|
|
1013
|
+
| Cancel refused | The order is already \`running\`; they approved it | Say it's being made; a refund isn't possible now |
|
|
1014
|
+
| No render after the format's budget (10 min chat, 20 min kinetic) | The worker didn't pick the run up | Credits are held, not spent. Say it's queued and you'll follow up; don't re-order |
|
|
1015
|
+
| \`preview_not_available\` on an orderable format | A bug; every sold format has a script preview | Say so and stop. Do not order without showing the script |
|
|
1016
|
+
| An edited script is refused (\`script_not_editable\`) | This format's writer takes no hand edit (its \`edits.script\` is empty). Only some formats do | Should have been said at the table. Their words cannot be rendered verbatim here: offer a redraft (new words), a re-order with different answers, or cancel — and never quietly paraphrase their copy into the redraft reason |
|
|
1017
|
+
| A "hero, no villain" brief got the villain cartoon | The card was paraphrased ("narrates the fix") and the fit check never read what the format can't do | Quote \`card.description\`; check the ask against the card and \`ask[]\`; never Suggest a contradiction |
|
|
1018
|
+
| Two videos, two charges | A second project was created instead of continuing the first | Continue on the SAME \`project_id\` |
|
|
1019
|
+
|
|
1020
|
+
`;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Returns the goose-video-local entry SKILL.md content (GOOSE-3677).
|
|
1024
|
+
*
|
|
1025
|
+
* The local-render runtime. VIDEO projects made in the app (template remixes,
|
|
1026
|
+
* concept batches, anything that is not a recipe order) still render on the
|
|
1027
|
+
* user's own Claude Code: the app pre-creates the project and hands the user a
|
|
1028
|
+
* paste prompt; this skill fetches the per-format recipe, renders on the user's
|
|
1029
|
+
* machine (Playwright + ffmpeg + the GooseWorks media proxies), mirrors the
|
|
1030
|
+
* script for a free in-app review, then saves the finished MP4 back over MCP.
|
|
1031
|
+
* It cannot be retired until a server worker consumes those renders
|
|
1032
|
+
* (`submit_render` alias: sunset "after-render-worker").
|
|
1033
|
+
*/
|
|
1034
|
+
function getGooseVideoLocalSkillContent() {
|
|
1035
|
+
return `---
|
|
1036
|
+
name: goose-video-local
|
|
1037
|
+
slug: goose-video-local
|
|
1038
|
+
description: >
|
|
1039
|
+
Render an EXISTING GooseWorks video ad project or video batch on this machine (Playwright +
|
|
1040
|
+
ffmpeg + GooseWorks media proxies) and save the finished MP4 back to the project over MCP. Use
|
|
1041
|
+
when the app's "copy for Claude" command names goose-video-local, for "make the video for
|
|
1042
|
+
project <id>" / "for video batch <id>", or to remix a video ad template locally. Needs a machine
|
|
1043
|
+
with network egress and ffmpeg (local Claude Code or the desktop app), not a hosted connector.
|
|
1044
|
+
To order a NEW video ad in chat, use goose-video instead.
|
|
718
1045
|
category: ads
|
|
719
1046
|
version: 0.3.0
|
|
720
1047
|
author: GooseWorks
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"master-skill.js","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"master-skill.js","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":";;AA2CA,wCAQC;AAGD,gDAEC;AAWD,sDAwQC;AAiBD,0DA8VC;AAcD,8DAsTC;A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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwbR,CAAC;AACF,CAAC;AAGD;;;;;;;;;GASG;AACH,SAAgB,iCAAiC;IAC/C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIR,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/skills/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,4CAA4C;AAC5C,MAAM,MAAM,aAAa;AACvB,+DAA+D;AAC7D,OAAO;AACT,+EAA+E;GAC7E,OAAO,CAAC;AAEZ,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/skills/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,4CAA4C;AAC5C,MAAM,MAAM,aAAa;AACvB,+DAA+D;AAC7D,OAAO;AACT,+EAA+E;GAC7E,OAAO,CAAC;AAEZ,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,gBAAgB;IAC/B,0BAA0B;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,8CAA8C;IAC9C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,EAqCtC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAkBjD,CAAC;AAEF,+DAA+D;AAC/D,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAK9C;AAED,mFAAmF;AACnF,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAInD;AAED,wEAAwE;AACxE,wBAAgB,gBAAgB,IAAI;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,mBAAmB,EAAE,gBAAgB,EAAE,CAAC;IACxC,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CASA;AAED,gFAAgF;AAChF,wBAAgB,sBAAsB,IAAI,MAAM,CAI/C;AAED,oDAAoD;AACpD,wBAAgB,sBAAsB,IAAI,MAAM,CAI/C"}
|
package/dist/skills/routes.js
CHANGED
|
@@ -44,7 +44,13 @@ exports.DOMAIN_ROUTES = [
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
skill: 'goose-video',
|
|
47
|
-
when: '
|
|
47
|
+
when: 'Order a **video** ad in chat — "make me a video ad for <brand>", a UGC / iMessage / explainer video; renders on the GooseWorks server',
|
|
48
|
+
how: 'Installed locally as an entry skill. Just use it. If unavailable, run `gooseworks install --claude`.',
|
|
49
|
+
delivery: 'entry',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
skill: 'goose-video-local',
|
|
53
|
+
when: 'Render an EXISTING app video project or batch on this machine — the app\'s "copy for Claude" command names it',
|
|
48
54
|
how: 'Installed locally as an entry skill. Just use it. If unavailable, run `gooseworks install --claude`.',
|
|
49
55
|
delivery: 'entry',
|
|
50
56
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/skills/routes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../../src/skills/routes.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AA+FH,kDAKC;AAGD,4DAIC;AAGD,4CAeC;AAGD,wDAIC;AAGD,wDAIC;AAjHD;;;GAGG;AACU,QAAA,aAAa,GAAkB;IAC1C;QACE,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,8KAA8K;QACpL,GAAG,EAAE,sGAAsG;QAC3G,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,2FAA2F;QACjG,GAAG,EAAE,qIAAqI;QAC1I,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,uIAAuI;QAC7I,GAAG,EAAE,sGAAsG;QAC3G,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,+GAA+G;QACrH,GAAG,EAAE,sGAAsG;QAC3G,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,sBAAsB;QAC7B,IAAI,EAAE,mGAAmG;QACzG,GAAG,EAAE,sGAAsG;QAC3G,QAAQ,EAAE,OAAO;KAClB;IACD;QACE,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,gDAAg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