@businesskit/agent 1.0.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.claude/commands/crm.md +552 -43
  2. package/.claude-plugin/marketplace.json +36 -0
  3. package/.claude-plugin/plugin.json +7 -28
  4. package/ABOUT-ME.md +96 -0
  5. package/CLAUDE.md +37 -190
  6. package/HEARTBEAT.md +105 -0
  7. package/PLAN.md +225 -94
  8. package/PRD-Agent-Composition.md +149 -0
  9. package/README.md +120 -162
  10. package/REFERENCE.md +124 -0
  11. package/SOUL.md +148 -0
  12. package/SYSTEM.md +22 -0
  13. package/bin/businesskit.js +17 -11
  14. package/brand-voice.md +127 -0
  15. package/ingest.md +110 -0
  16. package/package.json +1 -1
  17. package/{.agents/skills/analytics.md → skills/analytics/SKILL.md} +6 -1
  18. package/{.agents/skills/brand.md → skills/brand/SKILL.md} +14 -1
  19. package/skills/ceo/SKILL.md +25 -0
  20. package/skills/cmo/SKILL.md +8 -0
  21. package/skills/humanizer/SKILL.md +270 -0
  22. package/working-style.md +87 -0
  23. package/.agents/skills/schema.md +0 -45
  24. package/.agents/skills/store.md +0 -46
  25. package/.claude/skills/agents.md +0 -56
  26. package/.claude/skills/analytics.md +0 -7
  27. package/.claude/skills/brand.md +0 -44
  28. package/.claude/skills/humanizer.md +0 -474
  29. /package/{.claude/skills → skills}/README.md +0 -0
  30. /package/{.agents/skills/agents.md → skills/agents/SKILL.md} +0 -0
  31. /package/{.claude/skills/blog-writing.md → skills/blog-writer/SKILL.md} +0 -0
  32. /package/{.claude/skills/store-copywriting.md → skills/copywriting/SKILL.md} +0 -0
  33. /package/{.claude/skills/schema.md → skills/schema/SKILL.md} +0 -0
  34. /package/{.claude/skills/social-content.md → skills/social/SKILL.md} +0 -0
  35. /package/{.claude/skills → skills/social}/content-seo.md +0 -0
  36. /package/{.claude/skills/store.md → skills/store/SKILL.md} +0 -0
package/PLAN.md CHANGED
@@ -57,99 +57,135 @@ These all live in the `products` table under different `type` values.
57
57
  ## Current Repository Structure
58
58
 
59
59
  ```
60
- businesskit-agent/ ← clone this repo
60
+ businesskit-agent/ ← repo root
61
61
  │
62
- ├── CLAUDE.md ← 🧠 project brain — auto-loaded by Claude Code
63
- ├── AGENTS.md ← Codex entry point — auto-loaded by Codex
64
- ├── GEMINI.md ← Gemini CLI entry point — auto-loaded
65
- ├── README.md ← user guide
66
- ├── memory.md ← 📝 preferences (gitignored, never committed)
67
- ├── .env ← your Turso credentials (gitignored, you create this)
68
- ├── .env.example ← template — committed, shows what to fill in
69
- ├── .gitignore
70
- ├── .cursorrules ← Cursor IDE rules — auto-loaded by Cursor
71
- ├── .mcp.json ← MCP server config (Turso)
72
- ├── package.json
73
- ├── tsconfig.json
74
- ├── cli.ts ← npx tsx cli.ts <agent>
75
- ├── setup.ts ← npm run setup — verifies Turso connection
76
- ├── provision-migrations.ts ← ⚠️ copy entries into main app's provision.ts
77
- ├── PLAN.md ← phased build plan
78
- ├── PRD-Agent-Harness.md ← harness architecture reference
62
+ ├── .agents/
63
+ │ └── skills/
64
+ │ ├── README.md
65
+ │ ├── agents.md
66
+ │ ├── analytics.md
67
+ │ ├── brand.md
68
+ │ ├── schema.md
69
+ │ └── store.md
70
+ │
71
+ ├── .claude-plugin/
72
+ │ ├── plugin.json
73
+ │ └── marketplace.json
79
74
  │
80
- ├── context/ ← 📖 brand docs — committed, fill in once
81
- │ ├── brand.md ← brand voice, audience, tone, products
82
- │ └── business.md ← goals, revenue model, publishing schedule
75
+ ├── .claude/
76
+ │ ├── commands/
77
+ │ │ ├── analytics.md
78
+ │ │ ├── blog-writer.md
79
+ │ │ ├── cbo.md
80
+ │ │ ├── ceo.md
81
+ │ │ ├── cmo.md
82
+ │ │ ├── compress.md
83
+ │ │ ├── coo.md
84
+ │ │ ├── copywriter.md
85
+ │ │ ├── course-creator.md
86
+ │ │ ├── crm.md
87
+ │ │ ├── deep.md
88
+ │ │ ├── docs-writer.md
89
+ │ │ ├── forms-builder.md
90
+ │ │ ├── ingest.md
91
+ │ │ ├── jobs-manager.md
92
+ │ │ ├── kb.md
93
+ │ │ ├── newsletter-writer.md
94
+ │ │ ├── preserve.md
95
+ │ │ ├── resume.md
96
+ │ │ ├── scheduler.md
97
+ │ │ ├── seo.md
98
+ │ │ ├── social.md
99
+ │ │ └── store-manager.md
100
+ │ └── skills/
101
+ │ ├── README.md
102
+ │ ├── agents.md
103
+ │ ├── analytics.md
104
+ │ ├── brand.md
105
+ │ ├── schema.md
106
+ │ └── store.md
83
107
  │
84
108
  ├── agents/
85
- │ ├── _base.ts ← BaseAgent class — all agents extend this
86
- │ ├── csuite/
87
- │ │ ├── ceo.ts ← CEO — briefing, orchestration
88
- │ │ ├── cmo.ts ← CMO — content calendar, growth
89
- │ │ ├── coo.ts ← COO — publish queue, pipeline
90
- │ │ └── cbo.ts ← CBO — revenue, pricing
109
+ │ ├── _base.ts
91
110
  │ ├── creators/
92
- │ │ ├── blog-writer.ts ← 8 content types, all content tables
93
- │ │ ├── newsletter-writer.ts ← newsletter + SES/Resend send
94
- │ │ ├── copywriter.ts ← pages, product descriptions, bio
95
- │ │ ├── course-creator.ts ← products (type=course) + lessons
96
- │ │ ├── store-manager.ts ← all other product types
97
- │ │ ├── jobs-manager.ts ← job_listings + applications
98
- │ │ ├── forms-builder.ts ← forms + questions
99
- │ │ ├── docs-writer.ts ← doc_collections + doc_articles
100
- │ │ └── crm-agent.ts ← contacts, deals, outreach pipeline
111
+ │ │ ├── blog-writer.ts
112
+ │ │ ├── copywriter.ts
113
+ │ │ ├── course-creator.ts
114
+ │ │ ├── crm-agent.ts
115
+ │ │ ├── docs-writer.ts
116
+ │ │ ├── forms-builder.ts
117
+ │ │ ├── jobs-manager.ts
118
+ │ │ ├── newsletter-writer.ts
119
+ │ │ └── store-manager.ts
120
+ │ ├── csuite/
121
+ │ │ ├── cbo.ts
122
+ │ │ ├── ceo.ts
123
+ │ │ ├── cmo.ts
124
+ │ │ └── coo.ts
101
125
  │ └── growth/
102
- │ ├── analytics-agent.ts ← read-only analytics snapshot
103
- │ ├── seo-agent.ts ← audit, fix, LLM visibility
104
- │ ├── social-agent.ts ← Zernio API → 13 platforms
105
- │ └── scheduler.ts ← publish queue, cron
126
+ │ ├── analytics-agent.ts
127
+ │ ├── scheduler.ts
128
+ │ ├── seo-agent.ts
129
+ │ └── social-agent.ts
106
130
  │
107
- ├── lib/
108
- │ ├── db.ts ← Turso client (reads TURSO_URL + TURSO_TOKEN)
109
- │ ├── db.adapter.ts ← Phase 2 bridge for CF Worker / sharedMap
110
- │ ├── memory.ts ← memory_log + agent_skills Turso helpers
111
- │ ├── profile.ts ← getBrandContext() — profile + credentials
112
- │ ├── analytics.ts ← read-only analytics helpers
113
- │ ├── id.ts ← ulid() + now() + iso()
114
- │ └── slug.ts ← toSlug() + uniqueSlug()
131
+ ├── bin/
132
+ │ └── businesskit.js
115
133
  │
116
- ├── .agents/skills/ ← 🌐 universal skills — all tools read this
117
- │ ├── agents.md ← roster, routing rules, dependency direction
118
- │ ├── schema.md ← all 30+ tables, columns, ID/timestamp rules
119
- │ ├── brand.md ← content quality bars, voice rules
120
- │ ├── analytics.md ← how to read JSON analytics columns
121
- │ └── store.md ← product types, required fields, pricing
134
+ ├── CC-Session-Logs/
135
+ │ └── .gitkeep
122
136
  │
123
- ├── .claude/
124
- │ ├── commands/ ← slash commands for Claude Code + Cowork
125
- │ │ ├── ceo.md ← /ceo
126
- │ │ ├── cmo.md ← /cmo
127
- │ │ ├── coo.md ← /coo
128
- │ │ ├── cbo.md ← /cbo
129
- │ │ ├── blog-writer.md ← /blog-writer
130
- │ │ ├── newsletter-writer.md ← /newsletter-writer
131
- │ │ ├── copywriter.md ← /copywriter
132
- │ │ ├── course-creator.md ← /course-creator
133
- │ │ ├── store-manager.md ← /store-manager
134
- │ │ ├── jobs-manager.md ← /jobs-manager
135
- │ │ ├── forms-builder.md ← /forms-builder
136
- │ │ ├── docs-writer.md ← /docs-writer
137
- │ │ ├── crm.md ← /crm
138
- │ │ ├── social.md ← /social
139
- │ │ ├── analytics.md ← /analytics
140
- │ │ ├── seo.md ← /seo
141
- │ │ ├── scheduler.md ← /scheduler
142
- │ │ └── deep.md ← /deep
143
- │ └── skills/ ← Claude Code specific (mirrors .agents/skills/)
144
- │ ├── README.md
145
- │ ├── agents.md
146
- │ ├── schema.md
147
- │ ├── brand.md
148
- │ ├── analytics.md
149
- │ └── store.md
137
+ ├── context/
138
+ │ ├── about-me.md
139
+ │ ├── brand-voice.md
140
+ │ ├── brand.md
141
+ │ ├── business.md
142
+ │ └── working-style.md
143
+ │
144
+ ├── lib/
145
+ │ ├── analytics.ts
146
+ │ ├── db.adapter.ts
147
+ │ ├── db.ts
148
+ │ ├── id.ts
149
+ │ ├── kb.ts
150
+ │ ├── memory.ts
151
+ │ ├── pattern-detector.ts
152
+ │ ├── profile.ts
153
+ │ ├── progress.ts
154
+ │ └── slug.ts
155
+ │
156
+ ├── skills/
157
+ │ ├── brand/SKILL.md ← load when writing content
158
+ │ ├── analytics/SKILL.md ← load when reading analytics
159
+ │ ├── store/SKILL.md ← load for products/pricing
160
+ │ ├── schema/SKILL.md ← load for DB queries
161
+ │ ├── agents/SKILL.md ← load for routing decisions
162
+ │ ├── ceo/SKILL.md ← plugin skill
163
+ │ ├── crm/SKILL.md ← plugin skill
164
+ │ ├── blog-writer/SKILL.md ← plugin skill
165
+ │ └── ingest/SKILL.md ← plugin skill
150
166
  │
151
- └── .claude-plugin/
152
- └── plugin.json ← Claude Cowork plugin manifest
167
+ ├── .cursorrules
168
+ ├── .env.example
169
+ ├── .gitignore
170
+ ├── .mcp.json
171
+ ├── AGENTS.md
172
+ ├── CLAUDE.md
173
+ ├── CURSOR-PLAN.md
174
+ ├── GEMINI.md
175
+ ├── HEARTBEAT.md
176
+ ├── PLAN.md
177
+ ├── PRD-Agent-Composition.md
178
+ ├── PRD-Agent-Harness.md
179
+ ├── README.md
180
+ ├── SOUL.md
181
+ ├── SYSTEM.md
182
+ ├── agents.ts
183
+ ├── cli.ts
184
+ ├── memory.md
185
+ ├── package.json
186
+ ├── provision-migrations.ts
187
+ ├── setup.ts
188
+ └── tsconfig.json
153
189
  ```
154
190
 
155
191
  ---
@@ -179,6 +215,7 @@ npm run setup # verify connection
179
215
  ```
180
216
 
181
217
  **CLI**:
218
+
182
219
  ```bash
183
220
  npx tsx cli.ts ceo # CEO weekly briefing
184
221
  npx tsx cli.ts blog-writer # list posts
@@ -186,22 +223,17 @@ npx tsx cli.ts scheduler hourly # run publish queue
186
223
  ```
187
224
 
188
225
  **Delivered**:
226
+
189
227
  - [x] `CLAUDE.md` — full schema, brand rules, agent roster
190
- - [x] `lib/` — db, db.adapter, **memory.ts** (memory_log + agent_skills), id, slug, profile, analytics
191
- - [x] `provision-migrations.ts` — copy `NEW_TABLES_SQL` / `MIGRATIONS_SQL` into main app `src/lib/provision.ts`
228
+ - [x] `lib/` — 6 files: db, db.adapter, id, slug, profile, analytics
192
229
  - [x] `agents/_base.ts` — BaseAgent with profile isolation
193
- - [x] Agents: 4 C-Suite + 9 Creators (incl. CRM) + 4 Growth
194
- - [x] Slash commands in `.claude/commands/` (incl. `/crm`, `/deep`)
195
- - [x] 5 skill files in `.claude/skills/` and `.agents/skills/`
196
- - [x] `context/brand.md` + `context/business.md` — committed brand docs
230
+ - [x] 16 agents: 4 C-Suite + 8 Creators + 4 Growth
231
+ - [x] 16 slash commands in `.claude/commands/`
232
+ - [x] 5 skill files in `.claude/skills/`
197
233
  - [x] `cli.ts` — universal terminal entry point
198
234
  - [x] `.claude-plugin/plugin.json`
199
235
  - [x] `README.md` + `.env.example` + `setup.ts`
200
236
 
201
- **Not in repo (live in Turso after provision)**:
202
- - `memory_log` — last 20 agent actions per profile (replaces `progress.md`)
203
- - `agent_skills` — dashboard-editable skills (brand-voice, seo, store, analytics)
204
-
205
237
  ---
206
238
 
207
239
  ## Phase 2 — In-App (Qwik + CF Worker)
@@ -220,6 +252,7 @@ const ceo = new CEO(createAgentDB(event))
220
252
  ```
221
253
 
222
254
  **Deliverables**:
255
+
223
256
  - [ ] Copy `agents/` + `lib/` into `src/lib/agents/` in the Qwik app
224
257
  - [ ] `/api/mcp` route in `src/routes/api/mcp/index.tsx`
225
258
  - [ ] One MCP tool definition per agent action
@@ -232,6 +265,7 @@ const ceo = new CEO(createAgentDB(event))
232
265
  **Goal**: Agents run on cron with no user present.
233
266
 
234
267
  **Deliverables**:
268
+
235
269
  - [ ] `scheduler.ts` as CF Durable Object (stub already in file — uncomment to activate)
236
270
  - [ ] Weekly CEO briefing → n8n → email/Slack (`0 8 * * 1`)
237
271
  - [ ] Hourly publish queue → flips `published=1` + triggers Social Agent (`0 * * * *`)
@@ -250,4 +284,101 @@ const ceo = new CEO(createAgentDB(event))
250
284
  - **Composable** — C-Suite calls Growth calls Creators. Never reverse.
251
285
  - **n8n = external integration layer** — social posting, email delivery
252
286
  - **CF Workflows = cron layer** — Scheduler designed for Durable Objects from day one
253
- - **Same codebase, two transports** — `db.adapter.ts` is the only diff between Phase 1 and 2
287
+ - **Same codebase, two transports** — `db.adapter.ts` is the only diff between Phase 1 and 2
288
+
289
+ ---
290
+
291
+ ## Phase 2 Additions — Agent Infrastructure (from Hermes + Karpathy patterns)
292
+
293
+ ### New tables (defined in agents.ts)
294
+
295
+ | Table | Purpose |
296
+ |---|---|
297
+ | `agents` | Registry — one row per agent type, tracks last_run, auto_approve, pending skill suggestions |
298
+ | `agent_skills` | Live instruction skills — editable from dashboard, version-tracked |
299
+ | `agent_memory` | Rolling 20-row session log — dual-write (Turso + memory.md) |
300
+ | `agent_notes` | Persistent knowledge artifacts — Karpathy wiki pattern (research, analysis, briefings) |
301
+ | `agent_files` | Files agent produces — SEO reports, blog exports, CRM data — visible in dashboard |
302
+ | `agent_tasks` | Tasks: manual + scheduled + auto-detected from patterns (Hermes pattern) |
303
+ | `agent_conversations` | Future agentic chat UI — table only, implementation deferred |
304
+
305
+ ### Hermes pattern: auto-skill generation
306
+
307
+ When an agent performs the same action 3+ times in 7 days:
308
+
309
+ 1. `detectAndSuggestSkill()` in `_base.ts` detects the pattern
310
+ 2. Creates a pending `agent_tasks` row (status='detected')
311
+ 3. Sets `pending_skill_suggestion` on the `agents` row
312
+ 4. Dashboard surfaces it: "CEO detected you want Monday briefings — add as task?"
313
+ 5. User approves → status='active', auto_run=1, skill is_active=1
314
+ 6. Rejects → status='cancelled'
315
+
316
+ ### Karpathy wiki pattern: agent_notes
317
+
318
+ Agents write persistent knowledge to `agent_notes`, not just ephemeral `agent_memory`.
319
+
320
+ - CEO briefing → saved as note (type='briefing')
321
+ - SEO audit findings → saved as note (type='analysis')
322
+ - CRM lead research → saved as note (type='research', source_id=contact_id)
323
+ - Notes link to each other via related_note_ids JSON
324
+ - Dashboard shows all notes, filterable by agent and type
325
+
326
+ ### Dashboard routes (main Qwik app)
327
+
328
+ - `/dashboard/agents` — agent roster grid
329
+ - `/dashboard/agents/[agentType]` — agent detail (memory, skills, tasks, files, notes tabs)
330
+ - `/dashboard/agents/files` — all files across all agents
331
+
332
+ ### Build order
333
+
334
+ See CURSOR-PLAN.md for step-by-step Cursor prompts.
335
+ Do Phase 0 → 1 → 2 in order. Phase 3–5 are optional enhancements.
336
+
337
+ ---
338
+
339
+ ## Architecture Principles (learned from production)
340
+
341
+ ### Backend-as-context (Nainsi principle)
342
+
343
+ Same app, same model, same prompt: 10.4M tokens vs 3.7M tokens.
344
+ The difference: treating the backend as part of the agent's context window.
345
+
346
+ **Applied to this repo:**
347
+
348
+ - `HEARTBEAT.md` is a structured snapshot — one read, no DB calls, full business state
349
+ - Skills load on demand, never all at once
350
+ - `agent_kb` index (slug+summary) loaded before content — never full content scan
351
+ - Every DB query returns only what's needed — no `SELECT *` on large tables
352
+
353
+ **The counterintuitive part:** better models make poor infrastructure MORE expensive.
354
+ A capable model explores more deeply when context is missing. Design for no exploration.
355
+
356
+ ### Skillify every failure (Garry Tan principle)
357
+
358
+ Every agent mistake → permanent structural fix, not a re-prompt.
359
+ Deterministic work (date math, row counts, routing) → `lib/` functions, not LLM reasoning.
360
+ Every skill in `agent_skills` must be registered in `CLAUDE.md` skills table or it's dark.
361
+
362
+ ---
363
+
364
+ ## Phase 2 — Dependencies to add when ready
365
+
366
+ ### Spectrum (photon.codes)
367
+
368
+ `npm install spectrum-ts` — connects agents to iMessage, Telegram, WhatsApp, Slack, Discord, Instagram.
369
+ Edge-first, <1s latency. Use when users want to talk to their agents via messaging instead of terminal.
370
+ Add to `lib/channels/` — wrap Spectrum adapters per platform, route inbound messages to correct agent.
371
+
372
+ **Phase 2 channel architecture:**
373
+
374
+ ```
375
+ User sends iMessage/WhatsApp/Telegram
376
+ → Spectrum adapter receives
377
+ → routes to correct agent based on message content
378
+ → agent reads HEARTBEAT.md + relevant skills
379
+ → writes response back via Spectrum
380
+ → logs to agent_memory
381
+ ```
382
+
383
+ Not needed for Phase 1 (Claude Code / Cowork covers it).
384
+ Add when users ask for "talk to my CEO agent on WhatsApp."
@@ -0,0 +1,149 @@
1
+ # Agent Composition Pattern
2
+
3
+ > "Build your marketing assets template, then use that to build skills
4
+ > to further automate your workflow." — Claude Design tutorial
5
+ >
6
+ > "Once I have this design system skills, I can continue to build all
7
+ > the skills on top." — same
8
+
9
+ ---
10
+
11
+ ## The pattern
12
+
13
+ Single agents are useful. Composed agents are a system.
14
+
15
+ ```
16
+ User: "Launch the April product campaign"
17
+ ↓
18
+ CEO agent (orchestrator)
19
+ ├─ delegates to CMO → campaign strategy + brief
20
+ ├─ delegates to Blog Writer → campaign blog post
21
+ ├─ delegates to Social Agent → 3 platform posts from brief
22
+ ├─ delegates to Newsletter Writer → launch email to subscribers
23
+ └─ delegates to Store Manager → product visibility + pricing check
24
+
25
+ Result: full campaign from one instruction
26
+ ```
27
+
28
+ ---
29
+
30
+ ## How it works technically
31
+
32
+ Each agent in `agents/` has a `runCommand()` method.
33
+ The CEO (orchestrator) calls those methods directly:
34
+
35
+ ```ts
36
+ // CEO orchestrating a campaign launch
37
+ async launchCampaign(productId: string) {
38
+ // 1. Get product context
39
+ const product = await this.db.getProduct(productId)
40
+
41
+ // 2. Delegate to CMO for strategy
42
+ const brief = await this.cmo.campaignBrief(product)
43
+
44
+ // 3. Parallel: content + social + email
45
+ const [post, socialPosts, email] = await Promise.all([
46
+ this.blogWriter.writePost(brief),
47
+ this.socialAgent.createCampaignPosts(brief),
48
+ this.newsletterWriter.draftLaunchEmail(brief),
49
+ ])
50
+
51
+ // 4. Push everything to agent_reports
52
+ await this.pushReport('campaign-launch', { brief, post, socialPosts, email })
53
+
54
+ // 5. Surface pending approvals
55
+ return { pending: [post.id, ...socialPosts.map(p => p.id), email.id] }
56
+ }
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Skill composition (from Claude Design tutorial)
62
+
63
+ Skills compose the same way:
64
+
65
+ ```
66
+ brand.md (foundation)
67
+ └─ campaign-planning skill (calls brand.md + analytics.md)
68
+ └─ carousel skill (calls brand.md + campaign brief)
69
+ └─ campaign manager agent (orchestrates all above)
70
+ ```
71
+
72
+ The campaign manager in the tutorial took one brief and produced:
73
+
74
+ - Campaign planning deck (slides)
75
+ - Performance tracker (Excel with formulas)
76
+ - Social carousel posts (3 on-brand variations)
77
+ - Animated video (HTML motion graphics)
78
+ - Landing page (with embedded video)
79
+
80
+ In 25 minutes, unattended.
81
+
82
+ Your equivalent: `/ceo launch-campaign` → brief → blog post + social posts
83
+ - newsletter + product settings checked + pending approvals surfaced.
84
+
85
+ ---
86
+
87
+ ## Three orchestration modes
88
+
89
+ ### 1. Sequential (default)
90
+
91
+ Agent A finishes → result passes to Agent B.
92
+ Use for: workflows where each step depends on the last.
93
+
94
+ ```
95
+ CMO brief → Blog Writer uses brief → Social Agent repurposes post
96
+ ```
97
+
98
+ ### 2. Parallel (faster, for independent tasks)
99
+
100
+ Agents run simultaneously. Use for: independent deliverables from same input.
101
+
102
+ ```
103
+ Campaign brief → [Blog Writer + Social Agent + Newsletter Writer] in parallel
104
+ ```
105
+
106
+ ### 3. Human-gated (approval required)
107
+
108
+ Agent completes step → surfaces to user → user approves → next step.
109
+ Use for: anything that goes public (posts, emails, price changes).
110
+
111
+ ```
112
+ Social Agent drafts → approval_status='pending' → user approves → publishes
113
+ ```
114
+
115
+ ---
116
+
117
+ ## What the Shopify video showed
118
+
119
+ The Shopify AI toolkit installs as a Claude Code plugin with slash commands.
120
+ Same pattern as your `.claude/commands/`:
121
+
122
+ ```
123
+ /shopify → SEO audit, conversion analysis, AOV report, bulk updates
124
+ /ceo → business briefing, campaign launch, pending approvals
125
+ /crm → contact management, deal pipeline, outreach
126
+ ```
127
+
128
+ The difference: Shopify connects to one external store.
129
+ Your repo connects to the user's entire business database.
130
+
131
+ Shopify's approach also validated: one tool (Claude Code) as the connective
132
+ tissue between all their tools (Klaviyo, Canva, Clarity). That's your model —
133
+ one `bk` command connecting all their business data.
134
+
135
+ ---
136
+
137
+ ## Skills vs agents — the distinction
138
+
139
+ | | Skills | Agents |
140
+ |---|---|---|
141
+ | What | Instructions + rules | Executable code |
142
+ | Where | `.agents/skills/*.md` + `agent_skills` table | `agents/**/*.ts` |
143
+ | Load time | On demand | On demand |
144
+ | Can call other | Skills only | Agents + skills |
145
+ | Has memory | No | Via `agent_memory` |
146
+ | Persists output | No | Via `agent_reports` |
147
+
148
+ Skills teach agents *how* to approach something.
149
+ Agents *do* the thing and remember it.