gooseworks 0.3.0 → 0.3.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 CHANGED
@@ -149,12 +149,17 @@ Standalone skills installed with `--with` skip the catalog search step. After `n
149
149
  | Enrichment | Contact enrichment, company research, tech stack |
150
150
  | Monitoring | Newsletter scanning, review site tracking |
151
151
 
152
- ## Ads creation (`ads-remix`)
152
+ ## Ads (`goose-ads`)
153
153
 
154
- Alongside the GTM `gooseworks` skill, the CLI installs a **separate** `ads-remix` entry
155
- skill for creating ad creative remix a static ad template into a branded ad, or read a
156
- brand for ads. Claude auto-loads whichever skill matches the task; the two are
157
- domain-scoped and never merged.
154
+ Alongside the GTM `gooseworks` skill, the CLI installs a **separate** `goose-ads` entry
155
+ skill for ads — **create** ad creative (remix a static ad template into a branded ad, or
156
+ read a brand for ads) and **analyze** ad performance (Meta/Google campaign diagnostics,
157
+ creative fatigue, CAC & lead quality, competitor ad intelligence, ad angles & hooks). The
158
+ `gooseworks` parent router also hands ad requests to it. Claude auto-loads whichever skill
159
+ matches the task; the two are domain-scoped and never merged.
160
+
161
+ > Renamed from `ads-remix`. Older installs get the stale `ads-remix` skill cleaned up
162
+ > automatically on the next `install`.
158
163
 
159
164
  ```bash
160
165
  gooseworks install --claude --mcp
@@ -162,22 +167,25 @@ gooseworks install --claude --mcp
162
167
 
163
168
  Then in Claude Code: *"remix template `<id>` for `<your-site>`"*.
164
169
 
165
- **The GooseWorks MCP server is REQUIRED for ads.** All brand/project/render reads and
166
- writes go through the `gooseworks` MCP server (e.g. `get_brand_kit`, `submit_render`).
167
- `install` registers it with `--mcp` (or `--all`) and verifies it's reachable; if it isn't,
168
- you'll see a warning the ads flow will fail without MCP. Re-run
169
- `gooseworks install --claude --mcp` if needed.
170
+ **The GooseWorks MCP server is REQUIRED for ads.** The skill is a thin wrapper over the
171
+ backend's single ad-generation workflow — the same one the GooseWorks ads app uses — reached
172
+ through the `gooseworks` MCP tools (`get_brand_kit`, `submit_remix_batch`, `get_remix_batch`,
173
+ `regenerate_creative`, …). The skill does NOT generate images, drive FAL, or manage renders
174
+ itself; the backend runs the pipeline and stores results. `install` registers the MCP server
175
+ with `--mcp` (or `--all`) and verifies it's reachable; if it isn't, you'll see a warning — the
176
+ ads flow will fail without MCP. Re-run `gooseworks install --claude --mcp` if needed.
170
177
 
171
- Media generation (image edits) is billed to your GooseWorks credits via the media proxy —
172
- no separate ad-credit balance.
178
+ Generation is billed to your GooseWorks credits **server-side**: `submit_remix_batch` reserves
179
+ the estimated cost up front and bills only the images that complete. There's no separate
180
+ ad-credit balance. Use `estimate_remix_batch` (cost preview) and `gooseworks credits` (balance).
173
181
 
174
182
  ### Keeping skills up to date
175
183
 
176
- - **Entry skills** (`gooseworks`, `ads-remix`) are vendored in the CLI. They're (re)installed
184
+ - **Entry skills** (`gooseworks`, `goose-ads`) are vendored in the CLI. They're (re)installed
177
185
  on `install`/`update`, and **refreshed on `login`** — but only when their content actually
178
186
  changed (a content-hash stamp skips unchanged ones, so re-running is cheap). Bump the CLI
179
187
  (`npx gooseworks@latest …`) to get new entry-skill content.
180
- - **Recipe skills** (e.g. `remix-graphic-ad-from-reference`) are **fetched live** from
188
+ - **Recipe skills** (e.g. ad-analytics like `meta-ads-analyzer`) are **fetched live** from
181
189
  goose-skills each time they're used, so they're always current — nothing to update.
182
190
 
183
191
  ## File Layout
@@ -196,8 +204,8 @@ no separate ad-credit balance.
196
204
  ├── gooseworks/
197
205
  │ ├── SKILL.md # GTM skill — teaches your agent to use 100+ data tools
198
206
  │ └── .gooseworks-version # content-hash stamp (freshness check; skip rewrite if unchanged)
199
- ├── ads-remix/
200
- │ ├── SKILL.md # Ads-creation entry skill (remix + brand context; requires MCP)
207
+ ├── goose-ads/
208
+ │ ├── SKILL.md # Ads entry skill (create + analyze; creation requires MCP)
201
209
  │ └── .gooseworks-version
202
210
  └── goose-graphics/
203
211
  └── SKILL.md # Optional standalone skill installed with --with
@@ -208,7 +216,7 @@ no separate ad-credit balance.
208
216
  ```
209
217
  ~/.claude/skills/
210
218
  ├── gooseworks → ~/.agents/skills/gooseworks
211
- ├── ads-remix → ~/.agents/skills/ads-remix
219
+ ├── goose-ads → ~/.agents/skills/goose-ads
212
220
  └── goose-graphics → ~/.agents/skills/goose-graphics
213
221
  ```
214
222
 
@@ -1,4 +1,10 @@
1
1
  export declare function getCodexSkillsDir(): string;
2
2
  export declare function configureCodex(): number;
3
3
  export declare function removeCodex(): void;
4
+ /**
5
+ * Add (or overwrite) the GooseWorks MCP entry in ~/.codex/config.toml.
6
+ * Stores the same user-scoped bearer token shape used by Claude/Cursor config,
7
+ * so Codex Desktop can use it without relying on a launcher env var.
8
+ */
9
+ export declare function configureCodexMcp(): boolean;
4
10
  //# sourceMappingURL=codex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/agents/codex.ts"],"names":[],"mappings":"AAQA,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,cAAc,IAAI,MAAM,CA+CvC;AAED,wBAAgB,WAAW,IAAI,IAAI,CAgBlC"}
1
+ {"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/agents/codex.ts"],"names":[],"mappings":"AAUA,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,cAAc,IAAI,MAAM,CA+CvC;AAED,wBAAgB,WAAW,IAAI,IAAI,CAgBlC;AAwCD;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAiB3C"}
@@ -36,12 +36,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.getCodexSkillsDir = getCodexSkillsDir;
37
37
  exports.configureCodex = configureCodex;
38
38
  exports.removeCodex = removeCodex;
39
+ exports.configureCodexMcp = configureCodexMcp;
39
40
  const fs = __importStar(require("fs"));
40
41
  const path = __importStar(require("path"));
41
42
  const os = __importStar(require("os"));
43
+ const credentials_1 = require("../auth/credentials");
42
44
  const installer_1 = require("../skills/installer");
43
45
  const names_1 = require("../skills/names");
44
46
  const CODEX_SKILLS_DIR = path.join(os.homedir(), '.codex', 'skills');
47
+ const CODEX_CONFIG_PATH = path.join(os.homedir(), '.codex', 'config.toml');
45
48
  function getCodexSkillsDir() {
46
49
  return CODEX_SKILLS_DIR;
47
50
  }
@@ -110,4 +113,58 @@ function removeCodex() {
110
113
  }
111
114
  }
112
115
  }
116
+ function normalizeMcpUrl(base) {
117
+ const stripped = base.replace(/\/$/, '');
118
+ return stripped.endsWith('/mcp') ? stripped : `${stripped}/mcp`;
119
+ }
120
+ function tomlString(value) {
121
+ return JSON.stringify(value);
122
+ }
123
+ function readCodexConfig() {
124
+ try {
125
+ if (!fs.existsSync(CODEX_CONFIG_PATH))
126
+ return '';
127
+ return fs.readFileSync(CODEX_CONFIG_PATH, 'utf-8');
128
+ }
129
+ catch {
130
+ return '';
131
+ }
132
+ }
133
+ function stripTomlTable(raw, tableName) {
134
+ const lines = raw.split(/\r?\n/);
135
+ const kept = [];
136
+ let skipping = false;
137
+ for (const line of lines) {
138
+ const header = line.match(/^\s*\[([^\]]+)\]\s*$/);
139
+ if (header) {
140
+ const name = header[1].trim();
141
+ skipping = name === tableName || name.startsWith(`${tableName}.`);
142
+ }
143
+ if (!skipping) {
144
+ kept.push(line);
145
+ }
146
+ }
147
+ return kept.join('\n').replace(/\n{3,}/g, '\n\n').trimEnd();
148
+ }
149
+ /**
150
+ * Add (or overwrite) the GooseWorks MCP entry in ~/.codex/config.toml.
151
+ * Stores the same user-scoped bearer token shape used by Claude/Cursor config,
152
+ * so Codex Desktop can use it without relying on a launcher env var.
153
+ */
154
+ function configureCodexMcp() {
155
+ const creds = (0, credentials_1.getCredentials)();
156
+ if (!creds?.mcp_server_url || !creds.api_key)
157
+ return false;
158
+ const configDir = path.dirname(CODEX_CONFIG_PATH);
159
+ fs.mkdirSync(configDir, { recursive: true });
160
+ const existing = stripTomlTable(readCodexConfig(), 'mcp_servers.gooseworks');
161
+ const block = [
162
+ '[mcp_servers.gooseworks]',
163
+ `url = ${tomlString(normalizeMcpUrl(creds.mcp_server_url))}`,
164
+ `http_headers = { Authorization = ${tomlString(`Bearer ${creds.api_key}`)} }`,
165
+ ].join('\n');
166
+ const next = `${existing ? `${existing}\n\n` : ''}${block}\n`;
167
+ fs.writeFileSync(CODEX_CONFIG_PATH, next, { mode: 0o600 });
168
+ return true;
169
+ }
113
170
  //# sourceMappingURL=codex.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/agents/codex.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,8CAEC;AAED,wCA+CC;AAED,kCAgBC;AA7ED,uCAAyB;AACzB,2CAA6B;AAC7B,uCAAyB;AACzB,mDAAwD;AACxD,2CAA2D;AAE3D,MAAM,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAErE,SAAgB,iBAAiB;IAC/B,OAAO,gBAAgB,CAAC;AAC1B,CAAC;AAED,SAAgB,cAAc;IAC5B,MAAM,UAAU,GAAG,IAAA,6BAAiB,GAAE,CAAC;IACvC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/B,OAAO,CAAC,CAAC;IACX,CAAC;IAED,EAAE,CAAC,SAAS,CAAC,gBAAgB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAEpD,+CAA+C;IAC/C,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;QAClD,KAAK,MAAM,KAAK,IAAI,QAAQ,EAAE,CAAC;YAC7B,IAAI,CAAC,IAAA,gCAAwB,EAAC,KAAK,CAAC;gBAAE,SAAS;YAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,C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,EAAE,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,cAAc,CAAC,eAAe,EAAE,EAAE,wBAAwB,CAAC,CAAC;IAC7E,MAAM,KAAK,GAAG;QACZ,0BAA0B;QAC1B,SAAS,UAAU,CAAC,eAAe,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,EAAE;QAC5D,oCAAoC,UAAU,CAAC,UAAU,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI;KAC9E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACb,MAAM,IAAI,GAAG,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,QAAQ,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAE9D,EAAE,CAAC,aAAa,CAAC,iBAAiB,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3D,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBpC,wBAAgB,oBAAoB,IAAI,OAAO,CAqH9C;AAED,eAAO,MAAM,cAAc,SAAyB,CAAC"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/commands/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAuBpC,wBAAgB,oBAAoB,IAAI,OAAO,CAoJ9C;AAED,eAAO,MAAM,cAAc,SAAyB,CAAC"}
@@ -116,7 +116,7 @@ Examples:
116
116
  }
117
117
  else {
118
118
  logger.warn(`GooseWorks MCP server NOT reachable (${mcp.error}). Ads creation requires it — ` +
119
- 'restart Claude Code and check your connection; the ads-remix skill will fail without MCP.');
119
+ 'restart Claude Code and check your connection; the goose-ads skill will fail without MCP.');
120
120
  }
121
121
  }
122
122
  else {
@@ -128,6 +128,22 @@ Examples:
128
128
  if (agent === 'codex') {
129
129
  logger.info('Creating symlinks in ~/.codex/skills/');
130
130
  (0, codex_1.configureCodex)();
131
+ if (wantMcp) {
132
+ if ((0, codex_1.configureCodexMcp)()) {
133
+ logger.success("Registered 'gooseworks' MCP server in ~/.codex/config.toml");
134
+ const mcp = await (0, claude_mcp_1.verifyMcpReachable)();
135
+ if (mcp.ok) {
136
+ logger.success('GooseWorks MCP server reachable');
137
+ }
138
+ else {
139
+ logger.warn(`GooseWorks MCP server NOT reachable (${mcp.error}). Ads creation requires it — ` +
140
+ 'restart Codex and check your connection; the goose-ads skill will fail without MCP.');
141
+ }
142
+ }
143
+ else {
144
+ logger.info("Skipped MCP (no mcp_server_url in credentials — older backend?)");
145
+ }
146
+ }
131
147
  logger.success('Codex configured');
132
148
  }
133
149
  if (agent === 'cursor') {
@@ -153,10 +169,22 @@ Examples:
153
169
  }
154
170
  const agentNames = targetAgents.map((a) => a === 'claude' ? 'Claude Code' : a === 'codex' ? 'Codex' : 'Cursor').join(' and ');
155
171
  logger.done(`Setup complete! Open ${agentNames} and try one of these:`);
172
+ logger.info('Data & GTM:');
156
173
  logger.example('/gooseworks find people who know <linkedin-profile-url>');
157
- logger.example('/gooseworks find what <linkedin-profile-url> has been posting about');
158
174
  logger.example('/gooseworks find leads similar to <linkedin-company-url>');
159
175
  logger.example('/gooseworks research <company name>');
176
+ // goose-ads is a vendored entry skill — always installed, so always shown.
177
+ console.log('');
178
+ logger.info('Ads (create, edit & analyze):');
179
+ logger.example('/goose-ads remix template <id-or-url> for <your-product>');
180
+ logger.example('/goose-ads make an ad for <your-product>');
181
+ logger.example('/goose-ads why is my Meta campaign underperforming?');
182
+ // Graphics is a standalone skill — only suggest it if it was installed.
183
+ if ((opts.with || []).includes('goose-graphics')) {
184
+ console.log('');
185
+ logger.info('Graphics:');
186
+ logger.example('/goose-graphics make a chart from <data>');
187
+ }
160
188
  console.log('');
161
189
  });
162
190
  }
@@ -1 +1 @@
1
- {"version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ChB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACzB,MAAM,CAAC,OAAO,CAAC,0CAA0C,CAAC,CAAC;QAC7D,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AAEY,QAAA,cAAc,GAAG,oBAAoB,EAAE,CAAC;AAErD,SAAS,mBAAmB,CAAC,IAAoB;IAC/C,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,MAAM,QAAQ,GAAG,IAAA,qBAAY,GAAE,CAAC;QAChC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC1B,MAAM,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;YAClE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,gCAAgC;QACrD,CAAC;QACD,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,OAAO,GAAgB,EAAE,CAAC;IAChC,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,IAAI,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtC,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa,EAAE,QAAkB;IACzD,OAAO,CAAC,GAAG,QAAQ,EAAE,KAAK,CAAC,CAAC;AAC9B,CAAC"}
@@ -47,7 +47,7 @@ const config_1 = require("../config");
47
47
  /**
48
48
  * Refresh vendored entry skills on login for users who have already set up
49
49
  * (`gooseworks` skill present). This is the "update skills on login": it picks up
50
- * new or content-changed entry skills (e.g. the ads-remix skill) without
50
+ * new or content-changed entry skills (e.g. the goose-ads skill) without
51
51
  * rewriting unchanged ones, then re-symlinks Claude so the new skill is visible.
52
52
  * Bootstrapping a first-time install stays the job of `gooseworks install`.
53
53
  */
@@ -1 +1 @@
1
- {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,aAAa,SA+CtB,CAAC"}
1
+ {"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,eAAO,MAAM,aAAa,SAqDtB,CAAC"}
@@ -70,6 +70,11 @@ exports.updateCommand = new commander_1.Command('update')
70
70
  if ((0, detect_1.isAgentInstalled)('codex')) {
71
71
  (0, codex_1.configureCodex)();
72
72
  logger.success('Codex symlinks updated');
73
+ if (creds.mcp_server_url) {
74
+ if ((0, codex_1.configureCodexMcp)()) {
75
+ logger.success('Codex MCP config refreshed');
76
+ }
77
+ }
73
78
  }
74
79
  if ((0, detect_1.isAgentInstalled)('cursor')) {
75
80
  if ((0, cursor_1.hasExistingCursorMcpEntry)()) {
@@ -1 +1 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAoC;AACpC,qDAAqD;AACrD,mDAAiF;AACjF,6CAAmD;AACnD,qDAA0D;AAC1D,2CAAiD;AACjD,6CAA8E;AAC9E,6CAAoD;AACpD,yDAAwD;AACxD,wDAA0C;AAE7B,QAAA,aAAa,GAAG,IAAI,mBAAO,CAAC,QAAQ,CAAC;KAC/C,WAAW,CAAC,+CAA+C,CAAC;KAC5D,MAAM,CAAC,KAAK,IAAI,EAAE;IACjB,MAAM,KAAK,GAAG,IAAA,4BAAc,GAAE,CAAC;IAC/B,IAAI,CAAC,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kill(masterSkillMd) {
59
59
  fs.writeFileSync(path.join(masterDir, 'SKILL.md'), masterSkillMd, 'utf-8');
60
60
  }
61
61
  // ── Vendored entry-skill freshness ──────────────────────────────────────────
62
- // Entry skills (gooseworks, ads-remix) are vendored in the CLI and written to
62
+ // Entry skills (gooseworks, goose-ads) are vendored in the CLI and written to
63
63
  // ~/.agents/skills/<name>/. We stamp each install with a content hash so we can
64
64
  // skip rewriting an unchanged skill ("already local → don't call") and rewrite
65
65
  // only when the vendored content changed ("updated → call again"). Recipe skills
@@ -1,13 +1,21 @@
1
1
  /**
2
2
  * The CLI installs two vendored ENTRY skills into ~/.agents/skills/:
3
- * - `gooseworks` — the GTM/data router (getMasterSkillContent)
4
- * - `ads-remix` — the ads-creation entry/contract (getAdsSkillContent)
3
+ * - `gooseworks` — the PARENT router (getMasterSkillContent): GTM/data toolkit
4
+ * PLUS a domain router that hands ads/graphics/video work to the dedicated
5
+ * `goose-*` skills below.
6
+ * - `goose-ads` — the ads entry/contract (getGooseAdsSkillContent): ad creative
7
+ * (remix, brand research) AND ad analytics/intelligence. Formerly `ads-remix`.
5
8
  * Each is a separate Claude Code skill; Claude auto-loads whichever matches the
6
9
  * task by its description. They are domain-scoped on purpose — do NOT merge them.
7
10
  *
8
- * Recipe skills (remix-graphic-ad-from-reference, brand-research, …) are NOT
9
- * vendored here — they live in goose-skills and are fetched live on demand via
10
- * `gooseworks fetch <slug>`, so they're always current.
11
+ * Sibling domain skills NOT vendored here (fetched live from goose-skills):
12
+ * - `goose-graphics` charts/slides/infographics/branded visuals. Installed via
13
+ * `gooseworks install --with goose-graphics` or fetched on demand.
14
+ * - `goose-video` — ad/UGC/talking-head video. Coming soon.
15
+ *
16
+ * Recipe skills (remix-graphic-ad-from-reference, brand-research, meta-ads-analyzer,
17
+ * …) are NOT vendored here — they live in goose-skills and are fetched live on
18
+ * demand via `gooseworks fetch <slug>`, so they're always current.
11
19
  */
12
20
  export interface EntrySkill {
13
21
  /** Install dir name under ~/.agents/skills/ AND the skill `name`. */
@@ -27,14 +35,19 @@ export declare function getEntrySkills(): EntrySkill[];
27
35
  */
28
36
  export declare function getMasterSkillContent(): string;
29
37
  /**
30
- * Returns the ads-remix entry SKILL.md content (the `ads-remix` entry skill).
38
+ * Returns the goose-ads entry SKILL.md content (the `goose-ads` entry skill,
39
+ * formerly `ads-remix`).
31
40
  *
32
- * This is the ads-creation runtime contract: it owns the MCP data I/O (brands,
33
- * projects, renders), the media proxy, and the render lifecycle, and it routes
34
- * the creative steps to recipe skills fetched on demand from goose-skills.
35
- * It is SEPARATE from the `gooseworks` GTM skill different domain, different
36
- * tools and Claude loads it when the user wants to remix an ad or research a
37
- * brand for ads.
41
+ * This is the ads domain skill and a THIN WRAPPER over the backend's single ad
42
+ * generation workflow (adRemixBatchesService, exposed via the new
43
+ * mcp__gooseworks__*_remix_batch / regenerate_creative tools the SAME workflow
44
+ * the ads frontend uses). The skill no longer generates images, manages renders,
45
+ * or uploads files itself; the backend reserves credits, runs the cloud pipeline,
46
+ * and bills. The skill ALSO routes ad analytics/intelligence to recipe skills
47
+ * fetched on demand from goose-skills. It is SEPARATE from the `gooseworks` GTM
48
+ * skill — different domain, different tools — and Claude loads it (or the
49
+ * `gooseworks` parent router hands off to it) when the user wants to make/edit an
50
+ * ad, research a brand for ads, or analyze ad performance.
38
51
  */
39
- export declare function getAdsSkillContent(): string;
52
+ export declare function getGooseAdsSkillContent(): string;
40
53
  //# sourceMappingURL=master-skill.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"master-skill.d.ts","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,oDAAoD;AACpD,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAK7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAyI9C;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAuK3C"}
1
+ {"version":3,"file":"master-skill.d.ts","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,UAAU;IACzB,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,oDAAoD;AACpD,wBAAgB,cAAc,IAAI,UAAU,EAAE,CAK7C;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAwJ9C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAsLhD"}
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getEntrySkills = getEntrySkills;
4
4
  exports.getMasterSkillContent = getMasterSkillContent;
5
- exports.getAdsSkillContent = getAdsSkillContent;
5
+ exports.getGooseAdsSkillContent = getGooseAdsSkillContent;
6
6
  /** Every entry skill the CLI vendors + installs. */
7
7
  function getEntrySkills() {
8
8
  return [
9
9
  { name: 'gooseworks', content: getMasterSkillContent() },
10
- { name: 'ads-remix', content: getAdsSkillContent() },
10
+ { name: 'goose-ads', content: getGooseAdsSkillContent() },
11
11
  ];
12
12
  }
13
13
  /**
@@ -39,6 +39,21 @@ tags: [gooseworks, data, scraping, search, reddit, twitter, linkedin, email, peo
39
39
 
40
40
  You have access to GooseWorks — a toolkit with 100+ data skills for scraping, research, lead generation, enrichment, and more. **ALWAYS use GooseWorks skills** for any data task before trying web search or other tools.
41
41
 
42
+ This skill is also the **parent router** for the GooseWorks family. Data/GTM work you handle here (see "How to Use"); specialized work you hand off to a dedicated \`goose-*\` skill.
43
+
44
+ ## Route to the right skill FIRST
45
+
46
+ Before anything else, check whether the request belongs to a specialized domain. If so, **switch to that skill** instead of the data flow below:
47
+
48
+ | If the user wants… | Route to | How |
49
+ | --- | --- | --- |
50
+ | Remix/make an ad, research a brand for ads, OR analyze ad performance — Meta/Google ad campaigns, creative fatigue, CAC/lead quality, competitor ad intel, ad angles & hooks | **\`goose-ads\`** | Installed locally as an entry skill. Just use it. If unavailable, run \`gooseworks install --claude\`. |
51
+ | Charts, infographics, slides, social graphics, branded visual designs from a style/format | **\`goose-graphics\`** | If installed locally, use it. Otherwise \`gooseworks fetch goose-graphics\` (or \`gooseworks install --claude --with goose-graphics\`). |
52
+ | Ad/UGC/talking-head **video** | **\`goose-video\`** | Coming soon. Until it ships, search the catalog (\`gooseworks search "ugc video"\`) and \`gooseworks fetch\` the matching recipe. |
53
+ | Anything else — scraping, research, lead gen, enrichment, any data lookup | (stay here) | Follow "How to Use" below. |
54
+
55
+ Examples — all of these route to \`goose-ads\`, not the data flow: "remix this ad with project id 123", "make an ad for my product", "research my brand", "why is my Meta campaign underperforming", "which creatives should I cut".
56
+
42
57
  ## Setup
43
58
 
44
59
  All commands below auto-load credentials from \`~/.gooseworks/credentials.json\`. If a command exits with "Not logged in", tell the user to run: \`npx gooseworks login\`. To log out: \`npx gooseworks logout\`.
@@ -158,181 +173,201 @@ gooseworks call apify acts/parseforge~reddit-posts-scraper/runs --body='{"subred
158
173
  `;
159
174
  }
160
175
  /**
161
- * Returns the ads-remix entry SKILL.md content (the `ads-remix` entry skill).
176
+ * Returns the goose-ads entry SKILL.md content (the `goose-ads` entry skill,
177
+ * formerly `ads-remix`).
162
178
  *
163
- * This is the ads-creation runtime contract: it owns the MCP data I/O (brands,
164
- * projects, renders), the media proxy, and the render lifecycle, and it routes
165
- * the creative steps to recipe skills fetched on demand from goose-skills.
166
- * It is SEPARATE from the `gooseworks` GTM skill different domain, different
167
- * tools and Claude loads it when the user wants to remix an ad or research a
168
- * brand for ads.
179
+ * This is the ads domain skill and a THIN WRAPPER over the backend's single ad
180
+ * generation workflow (adRemixBatchesService, exposed via the new
181
+ * mcp__gooseworks__*_remix_batch / regenerate_creative tools the SAME workflow
182
+ * the ads frontend uses). The skill no longer generates images, manages renders,
183
+ * or uploads files itself; the backend reserves credits, runs the cloud pipeline,
184
+ * and bills. The skill ALSO routes ad analytics/intelligence to recipe skills
185
+ * fetched on demand from goose-skills. It is SEPARATE from the `gooseworks` GTM
186
+ * skill — different domain, different tools — and Claude loads it (or the
187
+ * `gooseworks` parent router hands off to it) when the user wants to make/edit an
188
+ * ad, research a brand for ads, or analyze ad performance.
169
189
  */
170
- function getAdsSkillContent() {
190
+ function getGooseAdsSkillContent() {
171
191
  return `---
172
- name: ads-remix
173
- slug: ads-remix
192
+ name: goose-ads
193
+ slug: goose-ads
174
194
  description: >
175
- Create ad creative for GooseWorks remix a static (image) ad template into a branded
176
- ad for the user's product, or research a brand for ads. Use when the user says "remix
177
- this ad", references a static ad template id/slug, asks to "make an ad", or asks to
178
- "research my brand". Reads the brand kit, creates the brand + project in GooseWorks, and
179
- generates the final image through the GooseWorks media proxy (billed to GooseWorks credits).
195
+ GooseWorks ads skill create, edit, AND analyze ad creative. Remix a static (image) ad
196
+ template into a branded ad for the user's product, edit/re-roll an existing creative,
197
+ research a brand for ads, OR analyze ad performance (Meta/Google campaign diagnostics,
198
+ creative fatigue, CAC & lead quality, competitor ad intelligence, ad angles & hooks). Use
199
+ when the user says "remix this ad", references a static ad template id/slug, asks to "make
200
+ an ad", "edit this ad", "research my brand", or asks to analyze/diagnose ad campaigns.
201
+ Generation runs through the GooseWorks backend's single cloud workflow (the same one the ads
202
+ app uses) — credits are reserved and billed server-side. Analytics recipes are fetched from
203
+ goose-skills on demand.
180
204
  category: ads
181
- version: 1.0.0
205
+ version: 2.0.0
182
206
  author: GooseWorks
183
- tags: [gooseworks, ads, remix, static-ad, brand, creative, image]
207
+ tags: [gooseworks, ads, remix, static-ad, brand, creative, image, analytics, meta-ads, performance]
184
208
  ---
185
209
 
186
- # GooseWorks Ads — remix & brand context
210
+ # GooseWorks Ads — create, edit & analyze
211
+
212
+ The GooseWorks ads skill. Two jobs:
187
213
 
188
- Produce ad creative for GooseWorks and sync results back to the app. This skill owns the
189
- **runtime contract** (auth, credits, the media proxy, and data I/O via the GooseWorks MCP
190
- server). The **creative steps** live in recipe skills you fetch on demand read both; this
191
- file wins on any conflict about the environment.
214
+ 1. **Create / edit ad creative** a **thin wrapper** over the backend's single generation
215
+ workflow. You pick the brand + template(s) and submit ONE batch; the **backend** runs the
216
+ whole pipeline (compose generate persist judge), reserves and bills credits, and
217
+ stores the renders. You do NOT generate images, call FAL, manage render rows, or upload
218
+ files — those are gone. This is the exact same workflow the GooseWorks ads app uses, so the
219
+ skill and the app can never drift.
220
+ 2. **Analyze ad performance** — fetch ad-analytics recipes from goose-skills on demand
221
+ (these are unrelated to generation; see "Analyze / intelligence" below).
192
222
 
193
223
  ## Prerequisite — the GooseWorks MCP server is REQUIRED
194
224
 
195
- Every brand/project/render read and write goes through the \`mcp__gooseworks__*\` tools. If
196
- those tools are not available, **stop and tell the user to run \`gooseworks install --claude --mcp\`**
197
- (and restart Claude Code). Do not try to fake the data layer with files or HTTP there is no
198
- fallback. Media generation uses the proxy (below); everything else uses MCP.
199
-
200
- ## Identity, token, credits
201
-
202
- - You act as the org's **Ads agent**. One agent-scoped token authenticates both the
203
- \`gooseworks\` MCP tools and the media proxy. Never print the token.
204
- - Generation is billed to GooseWorks credits by the media proxy (per call). There is no
205
- separate ad-credit gate nothing blocks at "0 ad credits". Still be economical: pick the
206
- right route once; don't re-render speculatively. The user can run \`gooseworks credits\`.
207
-
208
- ## Route by the task
209
-
210
- - **Static (image) ad remix** ("remix this ad / template", a template id/slug) →
211
- fetch the recipe with \`gooseworks fetch remix-graphic-ad-from-reference\` and follow it.
212
- - **Brand research** ("research my brand", "set up brand X") → brand research normally runs
213
- in the GooseWorks backend; just read the result with \`get_brand_kit\`. Only if the user
214
- explicitly wants the agent to research locally, fetch \`gooseworks fetch brand-research\`
215
- and follow it.
216
-
217
- ## Data I/O — the \`gooseworks\` MCP server (use these, not files)
218
-
219
- - \`get_brand_kit { brand_id }\` the CANONICAL brand context: structured fields (name,
220
- description, audience, voice, brandType, valueProps, colors, typography, logoUrl) PLUS
221
- presigned reference images (product photos, SaaS screenshots). **This is how you read the
222
- brand do NOT read raw brand-pack files.**
223
- - \`list_ad_brands\` / \`get_ad_brand { brand_id }\` find/fetch a brand by name or id.
224
- - \`get_static_ad_template { template_id }\` — the source image to remix: \`source_image_url\`
225
- (a public CDN URL — pass straight to the generator), \`ratio\`, \`slug\`, and replicability
226
- hints (\`is_replicable\`, \`remix_engine\`, \`replicability_notes\`). \`template_id\` accepts the
227
- readable slug OR the uuid.
228
- - \`create_ad_project { brand_id, name, source_static_template_id }\` — create the remix
229
- project. **Returns \`app_url\` (the project page) AND \`brand_url\` (the brand gallery) — keep
230
- BOTH; hand them to the user at the end.**
231
- - \`submit_render { project_id, kind }\` open a render row (no credit gate). Sequence it
232
- AFTER a good gen: generate + verify the image FIRST, then \`submit_render\` +
233
- \`update_render_status\` back-to-back.
234
- - \`update_render_status { render_id, status, output_url, thumbnail_url }\` publish the
235
- result. **\`output_url\` must be DURABLE** upload the image into the project folder via
236
- \`get_upload_url\`, then set \`output_url\` to the render-file URL
237
- (\`/api/ads/projects/<project_id>/render-file?path=working/<name>.png\`), NOT the raw fal CDN
238
- URL (it expires). On \`complete\` this also returns \`app_url\` + \`brand_url\`.
239
- - \`set_final_render { project_id, render_id }\` if you made more than one version, pin the
240
- best as final. One render it's the default; skip.
241
- - \`get_ad_project\` / \`list_directory\` / \`read_file\` / \`get_upload_url\` / \`get_download_url\`
242
- / \`append_project_message\` — project/file I/O. **For brand/project files you MUST target the
243
- org's Ads agent see "File storage" below; do NOT rely on your token's default agent.**
244
-
245
- ## File storage write to the org's ADS AGENT, not your token's agent (CRITICAL)
246
-
247
- Ad files (renders, brand assets) live in the **org's default Ads agent** scope — that is the
248
- ONLY scope the app serves render-file URLs from. Your token may be pinned to a DIFFERENT agent
249
- (e.g. your personal/Gmail agent), so if you omit \`target\` on a file op the upload lands in the
250
- WRONG agent and the app shows "Image not available". This is the #1 way this flow breaks.
251
-
252
- 1. **Once, at the start:** call \`list_accessible_scopes\` and pick the agent with
253
- \`is_org_default: true\` (slug \`org-default\`, usually named "Ads agent"). Call its id \`ADS_AGENT\`.
254
- Do NOT assume your default/pinned agent is the Ads agent — check \`is_org_default\`.
255
- 2. **Pass \`target: { type: "agent", agent_id: ADS_AGENT }\` on EVERY file op** —
256
- \`get_upload_url\`, \`get_download_url\`, \`list_directory\`, \`read_file\`for anything under
257
- \`agent-config/brands/<slug>/…\`.
258
- 3. The render-file URL (\`/api/ads/projects/<id>/render-file?path=…\`) resolves against ADS_AGENT,
259
- so an upload to ADS_AGENT is exactly what the app serves back.
260
-
261
- ## Workflowremix a static template
262
-
263
- 1. **Resolve the brand + read the FULL kit**: \`list_ad_brands\` by name/site →
264
- \`get_brand_kit { brand_id }\`. If \`researchStatus\` isn't \`complete\`, tell the user it needs
265
- research first (the app does it on onboarding); only research locally if they ask. **Read the
266
- whole kit, not a preview** you need \`colors\` (palette), \`typography\`, \`products[]\`, and
267
- \`referenceImages[]\` (each tagged \`productName\` + \`kind\`).
268
- 2. \`get_static_ad_template { template_id }\` keep \`source_image_url\` + replicability hints.
269
- 3. \`create_ad_project { brand_id, name, source_static_template_id }\` → keep \`project_id\` +
270
- both links.
271
- 4. **Pick the brand inputs to feed the recipe (don't improvise):**
272
- - **Hero image** from \`referenceImages\`, NOT a guess. Physical-product brand the product's
273
- image (\`kind: "product"\`, hero = its \`imageUrls[0]\`). SaaS/app brand (\`brandType\`
274
- saas/software/app/platform) the **app-UI screenshot** (\`kind: "website_screenshot"\` /
275
- \`screenshotUrls\`). **Never** feed a mascot or logo as the product. Pass ONLY the one relevant
276
- image for the slot.
277
- - **Palette** **default \`template\`** (keep the reference ad's colours). Use **\`brand\`** (the
278
- kit's \`colors\`) ONLY when the user explicitly asks to "match my brand colours/style" never
279
- switch to brand on your own. **Never invent a colour** (don't pull an accent off a logo/mascot):
280
- colours come only from the reference (\`template\`) or the kit's \`colors\` (\`brand\`).
281
- - **Fonts** = the kit's \`typography\`.
282
- 5. \`gooseworks fetch remix-graphic-ad-from-reference\` and follow it to generate the image, passing
283
- the hero image + palette + fonts you selected above (and \`style_source\`, \`remix_mode\`).
284
- It **always generates with GPT Image 2** (\`fal-ai/gpt-image-1/edit-image\` via the FAL proxy
285
- a billed generation); the HTML/goose-graphics overlay is only an optional text-finishing step,
286
- never the generator. Verify the output is a real, non-empty image.
287
- 6. **Only then** \`submit_render { project_id, kind: "full" }\` \`get_upload_url\` (with
288
- \`target: ADS_AGENT\`) and PUT the image to
289
- \`agent-config/brands/<slug>/projects/<id>/working/<name>.png\` →
290
- **VERIFY it's servable**: \`get_download_url { target: ADS_AGENT, path: <same path> }\` and
291
- confirm it returns a non-empty file. ONLY after that passes →
292
- \`update_render_status { render_id, status: "complete", output_url, thumbnail_url }\` (output_url =
293
- the render-file URL for that path). If you produced more than one usable output, submit EACH as
294
- its own render, then \`set_final_render\` with the best.
295
- 7. **Finish by giving the user BOTH links** (\`app_url\` and \`brand_url\`) exactly as returned
296
- copy them verbatim, don't reformat or guess.
297
-
298
- ## Media generation the GooseWorks FAL proxy
299
-
300
- The recipe's generation steps call FAL. Your token is NOT a FAL token — call the proxy, not
301
- \`queue.fal.run\` directly. Get the token with \`eval $(gooseworks env)\` (exports
302
- \`GOOSEWORKS_API_KEY\`) and use the proxy base \`<api_base>/api/internal/fal-proxy\` (image
303
- upload: \`<api_base>/api/internal/fal-storage-proxy\`), passing BOTH
304
- \`?token=$GOOSEWORKS_API_KEY&agent_id=ADS_AGENT\`.
305
-
306
- **\`agent_id\` is REQUIRED and is the billing target.** Your CLI token is user-scoped (it has no
307
- pinned agent), so the proxy can't know whose credits to charge unless you tell it. Pass
308
- \`agent_id=ADS_AGENT\` — the org's Ads agent id you resolved in "File storage" (the
309
- \`is_org_default: true\` scope). Without it, billable calls (the GPT Image 2 generation) return
310
- 403 "Agent ID required for billable operations". The proxy verifies you can access that agent and
311
- bills its credits.
312
-
313
- **Queue gotcha:** FAL's submit returns \`status_url\`/\`response_url\` pointing at
314
- \`queue.fal.run\` (the real FAL host). Polling those verbatim 401s forever — rewrite their host
315
- to the proxy base (keep the path), then re-add \`?token=$GOOSEWORKS_API_KEY&agent_id=ADS_AGENT\`.
316
- Only the final \`*.fal.media\` result URL is a real public CDN URL you use as-is. Each edit call is
317
- a real billed generation get the poll right the first time.
225
+ Everything goes through the \`mcp__gooseworks__*\` tools. If they are not available, **stop and
226
+ tell the user to run \`gooseworks install --claude --mcp\`** (and restart Claude Code). There is
227
+ no HTTP/file fallback the REST ad endpoints are session-cookie-only and reject your token.
228
+
229
+ ## Identity & credits
230
+
231
+ - One agent-scoped token authenticates the \`gooseworks\` MCP tools. Never print it. The tools
232
+ resolve your org automatically you do NOT resolve an "Ads agent" or pass \`target\` for the
233
+ generation tools.
234
+ - **Credits are handled entirely by the backend.** \`submit_remix_batch\` reserves the estimated
235
+ cost up front (it errors with \`insufficient_credits\` if the wallet is short relay the
236
+ message and stop) and bills only the images that actually complete. Call
237
+ \`estimate_remix_batch\` first to tell the user the cost; \`gooseworks credits\` shows balance.
238
+
239
+ ## Defaults — match the app (priority: frontend, then backend)
240
+
241
+ When the user doesn't specify, submit with the **ads app's** defaults so skill output matches
242
+ what they'd get in the UI. **Pass these explicitly:**
243
+
244
+ - \`variants\`: **1** per template
245
+ - \`ratios\`: **["4:5"]** (Meta feed vertical)
246
+ - \`engine\`: **"gpt_image_2"**
247
+ - \`quality\`: **"medium"**
248
+ - \`preserve_source_styling\`: **true** (keep the template's own colours/fonts; only restyle to
249
+ the brand palette if the user explicitly asks to "match my brand colours")
250
+
251
+ If the user asks for something the app exposes (more variants, a different ratio like 1:1 or
252
+ 9:16, a faster engine, higher quality), pass that instead. Omitting a field lets backend policy
253
+ decide fine, but prefer sending the app defaults for predictable parity.
254
+
255
+ ## The generation tools (the new, single-workflow surface)
256
+
257
+ - \`submit_remix_batch { brand_id, items, prompt?, product_name?, preserve_source_styling?,
258
+ reference_image_urls?, allow_without_product_image?, engine?, quality? }\` — **the one call
259
+ that makes ads.** \`items\` is \`[{ template_id, variants?, ratios? }]\` (≤20 templates).
260
+ Returns the batch with a \`links\` block (\`brand_url\` + per-creative \`app_url\`). If the brand's
261
+ research isn't finished yet the batch comes back \`status: "queued"\` it auto-runs the moment
262
+ research completes; tell the user it'll appear shortly, don't error.
263
+ - \`estimate_remix_batch { items, engine?, quality? }\` — cost preview (images, credits_per_image,
264
+ total_credits, available_credits). \`template_id\` accepts a uuid OR a slug. Reserves nothing. Use
265
+ to quote the cost first. Check \`unknown_template_ids\` in the response any token there didn't
266
+ resolve (submit would 404 on it); don't quote a cost that silently dropped a bad id.
267
+ - \`get_remix_batch { batch_id }\` poll status. Returns each creative with its renders and
268
+ \`completed\`/\`failed\`/\`pending\` counts, plus \`links\`. A creative is done when its \`pending\` is 0
269
+ NOT when \`current_render_url\` is set (during a regenerate that field still points at the prior
270
+ image). Each render carries \`age_seconds\` (since queued) and \`elapsed_seconds\` (time generating):
271
+ use them to tell a slow-but-healthy render from a stuck one. A render only failed when its
272
+ \`status\` is \`"failed"\` — never assume a stall and re-submit, that double-bills.
273
+ - \`list_brand_creatives { brand_id, limit?, offset? }\` the brand's gallery feed (newest
274
+ first) + \`brand_url\`. Alternative poll target; also use to show everything made for a brand.
275
+ - \`regenerate_creative { project_id, mode?, prompt?, source_render_id?, ... }\` **edit / re-roll
276
+ one existing creative** through the same pipeline. \`mode: "variation"\` (default) re-rolls from
277
+ the template; \`"edit"\` makes a targeted change to a specific render (\`prompt\` + \`source_render_id\`
278
+ required); \`"exact"\` runs \`prompt\` verbatim against that render's references. Returns a
279
+ single-item batch poll it with \`get_remix_batch\`.
280
+
281
+ ## Reading the brand & picking inputs (still MCP, read-only)
282
+
283
+ - \`get_brand_kit { brand_id }\` the CANONICAL brand context (name, description, audience,
284
+ voice, brandType, valueProps, colors, typography, logoUrl, \`products[]\`, presigned
285
+ \`referenceImages[]\`). Read this to choose \`product_name\` and any \`reference_image_urls\`.
286
+ - \`list_ad_brands { query? }\` / \`get_ad_brand { brand_id }\` — find/fetch a brand. Pass \`query\` to
287
+ filter by name (case-insensitive) instead of listing every brand; rows are lean (no \`brand_kit\` —
288
+ read \`get_brand_kit\` for the full kit).
289
+ - \`get_static_ad_template { template_id }\` resolve a template (slug OR uuid; public catalog
290
+ AND your org's private templates). Confirms it exists before you submit.
291
+ - \`remix_community_ad { community_id }\` — a **Community** ad id is an \`ad_project\` id, not a
292
+ template id. Call this FIRST to snapshot it into a private template, then use the returned
293
+ template \`id\` in \`items\`.
294
+ - \`create_user_ad_template { workspace_path }\` "bring your own ad": upload the user's own
295
+ image as a private template, then remix it like any other.
296
+ - \`get_ad_project\` / \`append_project_message\` — inspect a creative / leave a note on its thread.
297
+
298
+ ## Workflow make ads from a template
299
+
300
+ 1. **Resolve the brand.** \`list_ad_brands\` by name/site → \`get_brand_kit { brand_id }\`. If the
301
+ kit's \`researchStatus\` isn't \`complete\`, you can still submit (the batch queues and runs when
302
+ research finishes)just tell the user. Use the kit to pick \`product_name\` (a real entry from
303
+ \`products[]\`, not a guess) and, if the user supplied product photos, \`reference_image_urls\`.
304
+ 2. **Resolve the template(s).** \`get_static_ad_template { template_id }\` for each. For a Community
305
+ ad, \`remix_community_ad\` first; for an uploaded image, \`create_user_ad_template\` first.
306
+ 3. **(Optional) Craft the steering prompt.** The \`prompt\` is OPTIONAL — this is where the skill
307
+ adds value: turn the user's intent into a concise steering note (e.g. tone, season, emphasis).
308
+ Don't over-specify; the backend pipeline + brand kit handle palette, fonts, product swap.
309
+ 4. **(Optional) Quote the cost.** \`estimate_remix_batch { items, engine, quality }\` tell the user.
310
+ 5. **Submit ONE batch.** \`submit_remix_batch { brand_id, items, prompt?, product_name?, engine,
311
+ quality, preserve_source_styling }\` using the app defaults above. Keep the returned \`batch_id\`
312
+ and \`links\`.
313
+ 6. **Poll until done.** \`get_remix_batch { batch_id }\` (or \`list_brand_creatives\`) every ~20-30s
314
+ until every creative's \`pending\` is 0. Most images finish in a few minutes; text-heavy templates
315
+ and \`quality: high\` take longer. Read each render's \`elapsed_seconds\` rather than guessing — a
316
+ render that's still \`running\` is healthy; do NOT re-submit thinking it stalled (that double-bills).
317
+ 7. **Hand back the links** from the batch's \`links\` block \`brand_url\` (gallery) and each
318
+ creative's \`app_url\` copied verbatim. Never end on just "done" or a file path.
319
+
320
+ ## Workflow edit an existing ad
321
+
322
+ User wants to tweak a creative they already made → \`regenerate_creative\`:
323
+ - "make another version / different take" \`mode: "variation"\` (optionally new \`prompt\`,
324
+ \`product_name\`, \`ratios\`).
325
+ - "change X in this exact image" \`mode: "edit"\`, \`source_render_id\` = the render to edit,
326
+ \`prompt\` = the change.
327
+ - "run exactly this prompt on the product" → \`mode: "exact"\`, \`source_render_id\` + \`prompt\`.
328
+ Then poll with \`get_remix_batch\` and hand back the links, same as above.
329
+
330
+ ## Brand research
331
+
332
+ Research normally runs in the GooseWorks backend (on onboarding). Just read the result with
333
+ \`get_brand_kit\`. If a brand doesn't exist yet, you may \`create_ad_brand\` and let backend
334
+ research run; you don't need to research locally. (A standalone local recipe still exists via
335
+ \`gooseworks fetch brand-research\` if the user explicitly wants the agent to do it.)
336
+
337
+ ## Analyze / intelligence (fetched recipes NOT generation)
338
+
339
+ These are analysis recipes you fetch from goose-skills with \`gooseworks fetch <slug>\` and
340
+ follow; they do NOT touch the generation tools or credits-for-images. Pick the closest match;
341
+ if unsure, \`gooseworks search "<what the user wants>"\` first:
342
+ - **Campaign performance diagnosis** ("why is my Meta/Google campaign underperforming",
343
+ creative fatigue, learning phase, pacing, auction overlap) → \`gooseworks fetch meta-ads-analyzer\`
344
+ (or \`ad-campaign-analyzer\` for cross-platform).
345
+ - **Lead/CAC quality** ("are these ads driving qualified leads", true CAC vs vanity CPA,
346
+ Scale/Keep/Investigate/Cut) \`gooseworks fetch ad-lead-quality-analyzer\`.
347
+ - **Competitor ad intelligence** ("what ads are competitors running")
348
+ \`gooseworks fetch competitor-ad-intelligence\` (Meta Ad Library: \`meta-ad-scraper\`;
349
+ Google: \`google-ad-scraper\`).
350
+ - **Creative ideation** (ad angles, winning hooks) → \`gooseworks fetch ad-angle-miner\` /
351
+ \`gooseworks fetch trending-ad-hook-spotter\`.
352
+ - **Policy / landing-page checks** → \`gooseworks fetch meta-ad-policy-checker\` /
353
+ \`gooseworks fetch ad-to-landing-page-auditor\`.
354
+
355
+ Save their scripts to \`/tmp/gooseworks-scripts/<slug>/\` and follow their instructions. These
356
+ run through the \`gooseworks\` CLI (\`gooseworks fetch\` / \`gooseworks call\`), like the GTM skills.
318
357
 
319
358
  ## Rules
320
359
 
321
360
  - **MCP required** — if \`mcp__gooseworks__*\` is unavailable, stop and tell the user to run
322
361
  \`gooseworks install --claude --mcp\`.
323
- - **Always end a successful run with BOTH links** (project \`app_url\` + brand \`brand_url\`).
324
- Never end on just "done", a file path, or only the project link.
325
- - **Full product swap (compliance-critical):** every instance of the source product must be
326
- replaced with the brand's, and no source-brand name/logo or competitor product may survive
327
- anywhere in the frame.
328
- - **Verify the render is SERVABLE before marking complete a successful FAL generation is NOT
329
- proof.** After uploading, call \`get_download_url { target: ADS_AGENT, path }\` for the file and
330
- confirm it's non-empty. The bug to prevent is uploading to the wrong agent: if the file isn't
331
- retrievable from ADS_AGENT, the app will show "Image not available". Do NOT GET the render-file
332
- URL itself to verify (it's browser/session-scoped and 401s on your token) — verify via
333
- \`get_download_url\` on ADS_AGENT.
334
- - On a hard error (auth/quota/model, or a polling timeout), set the render \`failed\` with a
335
- short \`error_message\` and stop. Don't return the source unchanged.
362
+ - **One backend workflow** generation is \`submit_remix_batch\` / \`regenerate_creative\` ONLY.
363
+ Do NOT call FAL, the media proxy, \`submit_render\`, \`update_render_status\`, or upload render
364
+ files yourself; do NOT \`gooseworks fetch\` a local remix recipe to generate. The backend owns it.
365
+ - **Always end a successful run with the links** from the batch's \`links\` block (\`brand_url\` +
366
+ each creative's \`app_url\`), copied verbatim. Never end on just "done" or a file path.
367
+ - **Quote cost before generating** when it's non-trivial (use \`estimate_remix_batch\`), and
368
+ relay \`insufficient_credits\` plainly if the submit is rejected don't retry blindly.
369
+ - **Don't busy-loop** poll \`get_remix_batch\` on a sensible interval (~20-30s); a \`queued\`
370
+ batch is waiting on research and will start on its own.
336
371
  `;
337
372
  }
338
373
  //# sourceMappingURL=master-skill.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"master-skill.js","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":";;AAkBA,wCAKC;AAWD,sDAyIC;AAYD,gDAuKC;AA7UD,oDAAoD;AACpD,SAAgB,cAAc;IAC5B,OAAO;QACL,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE;QACxD,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,kBAAkB,EAAE,EAAE;KACrD,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuIR,CAAC;AACF,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,kBAAkB;IAChC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqKR,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"master-skill.js","sourceRoot":"","sources":["../../src/skills/master-skill.ts"],"names":[],"mappings":";;AA0BA,wCAKC;AAWD,sDAwJC;AAiBD,0DAsLC;AAhXD,oDAAoD;AACpD,SAAgB,cAAc;IAC5B,OAAO;QACL,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAAE;QACxD,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,uBAAuB,EAAE,EAAE;KAC1D,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,SAAgB,qBAAqB;IACnC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsJR,CAAC;AACF,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,uBAAuB;IACrC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoLR,CAAC;AACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/skills/names.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO9D"}
1
+ {"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/skills/names.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAS9D"}
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isManagedGooseworksSkill = isManagedGooseworksSkill;
4
4
  function isManagedGooseworksSkill(name) {
5
5
  return (name === 'gooseworks' ||
6
+ // `ads-remix` was renamed to `goose-ads`; keep it managed so a stale
7
+ // ads-remix dir from an older install is cleaned up on the next install.
6
8
  name === 'ads-remix' ||
7
9
  name.startsWith('gooseworks-') ||
8
10
  name.startsWith('goose-'));
@@ -1 +1 @@
1
- {"version":3,"file":"names.js","sourceRoot":"","sources":["../../src/skills/names.ts"],"names":[],"mappings":";;AAAA,4DAOC;AAPD,SAAgB,wBAAwB,CAAC,IAAY;IACnD,OAAO,CACL,IAAI,KAAK,YAAY;QACrB,IAAI,KAAK,WAAW;QACpB,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAC9B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAC1B,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"names.js","sourceRoot":"","sources":["../../src/skills/names.ts"],"names":[],"mappings":";;AAAA,4DASC;AATD,SAAgB,wBAAwB,CAAC,IAAY;IACnD,OAAO,CACL,IAAI,KAAK,YAAY;QACrB,qEAAqE;QACrE,yEAAyE;QACzE,IAAI,KAAK,WAAW;QACpB,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;QAC9B,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAC1B,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gooseworks",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "GooseWorks CLI — give your coding agent real data tools",
5
5
  "bin": {
6
6
  "gooseworks": "./dist/index.js"
@@ -22,6 +22,21 @@ metadata:
22
22
 
23
23
  You have access to GooseWorks — a toolkit with 100+ data skills for scraping, research, lead generation, enrichment, and more. **ALWAYS use GooseWorks skills** for any data task before trying web search or other tools.
24
24
 
25
+ This skill is also the **parent router** for the GooseWorks family. Data/GTM work you handle here (see "How to Use"); specialized work you hand off to a dedicated `goose-*` skill.
26
+
27
+ ## Route to the right skill FIRST
28
+
29
+ Before anything else, check whether the request belongs to a specialized domain. If so, **switch to that skill** instead of the data flow below:
30
+
31
+ | If the user wants… | Route to | How |
32
+ | --- | --- | --- |
33
+ | Remix/make an ad, research a brand for ads, OR analyze ad performance — Meta/Google ad campaigns, creative fatigue, CAC/lead quality, competitor ad intel, ad angles & hooks | **`goose-ads`** | Installed locally as an entry skill. Just use it. If unavailable, run `gooseworks install --claude`. |
34
+ | Charts, infographics, slides, social graphics, branded visual designs from a style/format | **`goose-graphics`** | If installed locally, use it. Otherwise `gooseworks fetch goose-graphics` (or `gooseworks install --claude --with goose-graphics`). |
35
+ | Ad/UGC/talking-head **video** | **`goose-video`** | Coming soon. Until it ships, search the catalog (`gooseworks search "ugc video"`) and `gooseworks fetch` the matching recipe. |
36
+ | Anything else — scraping, research, lead gen, enrichment, any data lookup | (stay here) | Follow "How to Use" below. |
37
+
38
+ Examples — all of these route to `goose-ads`, not the data flow: "remix this ad with project id 123", "make an ad for my product", "research my brand", "why is my Meta campaign underperforming", "which creatives should I cut".
39
+
25
40
  ## Setup
26
41
 
27
42
  All commands below auto-load credentials from `~/.gooseworks/credentials.json`. If a command exits with "Not logged in", tell the user to run: `npx gooseworks login`. To log out: `npx gooseworks logout`.