@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.
- package/.claude/commands/crm.md +552 -43
- package/.claude-plugin/marketplace.json +36 -0
- package/.claude-plugin/plugin.json +7 -28
- package/ABOUT-ME.md +96 -0
- package/CLAUDE.md +37 -190
- package/HEARTBEAT.md +105 -0
- package/PLAN.md +225 -94
- package/PRD-Agent-Composition.md +149 -0
- package/README.md +120 -162
- package/REFERENCE.md +124 -0
- package/SOUL.md +148 -0
- package/SYSTEM.md +22 -0
- package/bin/businesskit.js +17 -11
- package/brand-voice.md +127 -0
- package/ingest.md +110 -0
- package/package.json +1 -1
- package/{.agents/skills/analytics.md → skills/analytics/SKILL.md} +6 -1
- package/{.agents/skills/brand.md → skills/brand/SKILL.md} +14 -1
- package/skills/ceo/SKILL.md +25 -0
- package/skills/cmo/SKILL.md +8 -0
- package/skills/humanizer/SKILL.md +270 -0
- package/working-style.md +87 -0
- package/.agents/skills/schema.md +0 -45
- package/.agents/skills/store.md +0 -46
- package/.claude/skills/agents.md +0 -56
- package/.claude/skills/analytics.md +0 -7
- package/.claude/skills/brand.md +0 -44
- package/.claude/skills/humanizer.md +0 -474
- /package/{.claude/skills → skills}/README.md +0 -0
- /package/{.agents/skills/agents.md → skills/agents/SKILL.md} +0 -0
- /package/{.claude/skills/blog-writing.md → skills/blog-writer/SKILL.md} +0 -0
- /package/{.claude/skills/store-copywriting.md → skills/copywriting/SKILL.md} +0 -0
- /package/{.claude/skills/schema.md → skills/schema/SKILL.md} +0 -0
- /package/{.claude/skills/social-content.md → skills/social/SKILL.md} +0 -0
- /package/{.claude/skills → skills/social}/content-seo.md +0 -0
- /package/{.claude/skills/store.md → skills/store/SKILL.md} +0 -0
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"description": "Autonomous business agent team
|
|
2
|
+
"name": "businesskit",
|
|
3
|
+
"description": "Autonomous business agent team — CEO, CRM, Social, SEO, Blog Writer and more. Powered by your own Turso database. Works with Claude Code, Claude Cowork, Gemini CLI, and Codex.",
|
|
4
4
|
"version": "1.0.0",
|
|
5
|
-
"author":
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "BusinessKit",
|
|
7
|
+
"email": "hello@businesskit.io"
|
|
8
|
+
},
|
|
6
9
|
"homepage": "https://businesskit.io",
|
|
7
10
|
"repository": "https://github.com/businesskitai/businesskit-agent",
|
|
8
|
-
"
|
|
9
|
-
"commands": [
|
|
10
|
-
{ "name": "ceo", "description": "CEO — weekly briefing, cross-agent orchestration, priority setting" },
|
|
11
|
-
{ "name": "cmo", "description": "CMO — content calendar, campaign strategy, growth recommendations" },
|
|
12
|
-
{ "name": "coo", "description": "COO — content pipeline, publish queue, scheduling oversight" },
|
|
13
|
-
{ "name": "cbo", "description": "CBO — revenue analysis, product strategy, pricing recommendations" },
|
|
14
|
-
{ "name": "blog-writer", "description": "Blog Writer — create and publish blog posts" },
|
|
15
|
-
{ "name": "newsletter-writer", "description": "Newsletter Writer — write and send newsletters to subscribers" },
|
|
16
|
-
{ "name": "copywriter", "description": "Copywriter — landing pages, product descriptions, profile bio and tagline" },
|
|
17
|
-
{ "name": "course-creator", "description": "Course Creator — build courses with lessons and manage students" },
|
|
18
|
-
{ "name": "store-manager", "description": "Store Manager — add downloads, meetings, webinars, events, listings, sponsorships, services" },
|
|
19
|
-
{ "name": "jobs-manager", "description": "Jobs Manager — post job listings and view applications" },
|
|
20
|
-
{ "name": "forms-builder", "description": "Forms Builder — build forms with questions and view submissions" },
|
|
21
|
-
{ "name": "docs-writer", "description": "Docs Writer — write knowledge base articles and manage collections" },
|
|
22
|
-
{ "name": "crm", "description": "CRM Agent — contacts, deals, outreach pipeline, tasks, approval flow" },
|
|
23
|
-
{ "name": "social", "description": "Social Agent — schedule and publish to 13 platforms via Zernio" },
|
|
24
|
-
{ "name": "analytics", "description": "Analytics Agent — full snapshot of traffic, revenue, links and forms" },
|
|
25
|
-
{ "name": "seo", "description": "SEO Agent — audit slugs, meta descriptions and category SEO" },
|
|
26
|
-
{ "name": "scheduler", "description": "Scheduler — run publish queue and manage scheduled content" },
|
|
27
|
-
{ "name": "deep", "description": "Deep Mode — CEO takes over, plans and delegates to full team" }
|
|
28
|
-
],
|
|
29
|
-
"setup": {
|
|
30
|
-
"env_required": ["TURSO_URL", "TURSO_TOKEN"],
|
|
31
|
-
"instructions": "Copy .env.example to .env and paste your Turso credentials from BusinessKit → Settings → Credentials"
|
|
32
|
-
}
|
|
11
|
+
"license": "MIT"
|
|
33
12
|
}
|
package/ABOUT-ME.md
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# About Me
|
|
2
|
+
|
|
3
|
+
> Personal context agents need to represent you accurately.
|
|
4
|
+
> CRM agent uses this for outreach tone. Social agent uses this for positioning.
|
|
5
|
+
> SEO agent uses this for E-E-A-T signals. CEO uses this for strategy context.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## The one-paragraph version
|
|
10
|
+
|
|
11
|
+
<!--
|
|
12
|
+
How you'd introduce yourself to a stranger who matters.
|
|
13
|
+
Include: what you do, who you help, what makes your approach different.
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
[Write your one-paragraph intro here]
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Background that shapes my work
|
|
21
|
+
|
|
22
|
+
<!--
|
|
23
|
+
Relevant experience, turning points, things that give you credibility.
|
|
24
|
+
Not your full CV — just the 3-5 things that explain why you do what you do.
|
|
25
|
+
-->
|
|
26
|
+
|
|
27
|
+
- [Experience / turning point 1]
|
|
28
|
+
- [Experience / turning point 2]
|
|
29
|
+
- [Experience / turning point 3]
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## What I've built
|
|
34
|
+
|
|
35
|
+
<!--
|
|
36
|
+
Products, projects, communities, businesses. Include numbers if you have them.
|
|
37
|
+
-->
|
|
38
|
+
|
|
39
|
+
| What | Details | Status |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| [Product/project] | [1 line] | Live / Building / Paused |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## My typical week
|
|
46
|
+
|
|
47
|
+
<!--
|
|
48
|
+
How you actually spend your time. Agents use this for realistic scheduling.
|
|
49
|
+
-->
|
|
50
|
+
|
|
51
|
+
- **Making:** [What you create]
|
|
52
|
+
- **Selling:** [How you generate revenue]
|
|
53
|
+
- **Learning:** [What you're studying/following]
|
|
54
|
+
- **Community:** [Who you talk to regularly]
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Credibility signals
|
|
59
|
+
|
|
60
|
+
<!--
|
|
61
|
+
Things that establish authority. Used by SEO agent for bio, structured data.
|
|
62
|
+
Agents don't invent these — they use what you list here.
|
|
63
|
+
-->
|
|
64
|
+
|
|
65
|
+
- Featured in: [Publications, podcasts, newsletters]
|
|
66
|
+
- Trusted by: [Audience size, community size, notable clients]
|
|
67
|
+
- Proven results: [Specific outcomes you've helped people achieve]
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Social presence
|
|
72
|
+
|
|
73
|
+
<!--
|
|
74
|
+
Your handles. Agents use these for cross-posting and for voice consistency.
|
|
75
|
+
-->
|
|
76
|
+
|
|
77
|
+
| Platform | Handle | Active? | Primary use |
|
|
78
|
+
|---|---|---|---|
|
|
79
|
+
| Twitter/X | @ | Yes/No | [What you post] |
|
|
80
|
+
| LinkedIn | /in/ | Yes/No | [What you post] |
|
|
81
|
+
| Instagram | @ | Yes/No | [What you post] |
|
|
82
|
+
| YouTube | | Yes/No | [What you post] |
|
|
83
|
+
| Newsletter | | Yes/No | [Topic + frequency] |
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## What I'm working on right now
|
|
88
|
+
|
|
89
|
+
<!--
|
|
90
|
+
Current projects, goals for the next 90 days.
|
|
91
|
+
CEO agent uses this for weekly briefings and prioritisation.
|
|
92
|
+
-->
|
|
93
|
+
|
|
94
|
+
- [Current project 1]
|
|
95
|
+
- [Current project 2]
|
|
96
|
+
- 90-day goal: [What success looks like by then]
|
package/CLAUDE.md
CHANGED
|
@@ -1,221 +1,68 @@
|
|
|
1
|
-
# BusinessKit Agent
|
|
1
|
+
# BusinessKit Agent
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Read and write directly to their Turso database.
|
|
5
|
-
Credentials in `.env` — `TURSO_URL` + `TURSO_TOKEN`.
|
|
3
|
+
Run an entire business from your database. 17 agents — CEO, CRM, Social, SEO, Blog Writer and more.
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
Credentials in `.env`: `TURSO_URL` + `TURSO_TOKEN` (BusinessKit → Settings → Credentials)
|
|
8
6
|
|
|
9
7
|
---
|
|
10
8
|
|
|
11
|
-
##
|
|
9
|
+
## Start here — every session
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
| `SYSTEM.md` | System prompt — cost, efficiency, how to work | Every session start (auto) |
|
|
17
|
-
| `memory.md` | User preferences (never/always do X) | Every session start (auto) |
|
|
18
|
-
| `context/brand.md` | Brand voice, audience, tone | Only when writing content |
|
|
19
|
-
| `context/business.md` | Goals, revenue model, schedule | CEO briefings only |
|
|
20
|
-
|
|
21
|
-
From Turso (live, synced across all machines):
|
|
22
|
-
|
|
23
|
-
- `agent_memory` — last 20 agent actions
|
|
24
|
-
- `agent_skills` — live skill instructions, editable from dashboard
|
|
11
|
+
1. Read `HEARTBEAT.md` — live business state, one read, no DB calls needed
|
|
12
|
+
2. Check `memory.md` — user preferences from past sessions
|
|
13
|
+
3. Load skills only when the task needs them (see table below)
|
|
25
14
|
|
|
26
15
|
---
|
|
27
16
|
|
|
28
|
-
##
|
|
17
|
+
## What to do when asked
|
|
29
18
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
| Task | Load |
|
|
19
|
+
| User says | Run |
|
|
33
20
|
|---|---|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
41
|
-
|
|
21
|
+
| "brief me" / "what's happening" | CEO agent — revenue pulse, approvals, priorities |
|
|
22
|
+
| "write a post" / "blog" / "guide" | Blog Writer — load brand-voice.md first |
|
|
23
|
+
| "newsletter" / "email my subscribers" | Newsletter Writer |
|
|
24
|
+
| "post to Twitter/LinkedIn/Instagram" | Social Agent |
|
|
25
|
+
| "leads" / "contacts" / "outreach" | CRM Agent |
|
|
26
|
+
| "SEO" / "meta" / "LLM visibility" | SEO Agent |
|
|
27
|
+
| "analytics" / "revenue" / "traffic" | Analytics Agent |
|
|
28
|
+
| "add a product" / "launch" / "store" | Store Manager |
|
|
29
|
+
| "process my notes" / "update KB" | run `/ingest` |
|
|
30
|
+
| don't know → check | `.agents/skills/agents.md` |
|
|
42
31
|
|
|
43
32
|
---
|
|
44
33
|
|
|
45
|
-
##
|
|
46
|
-
|
|
47
|
-
```ts
|
|
48
|
-
import { sessionContext } from './lib/memory.ts'
|
|
49
|
-
import { getBrandContext } from './lib/profile.ts'
|
|
50
|
-
|
|
51
|
-
// 1. Load memory_log + agent_skills from Turso
|
|
52
|
-
const { memory, skills } = await sessionContext()
|
|
53
|
-
|
|
54
|
-
// 2. Load brand context from DB
|
|
55
|
-
const { profile, settings, credentials } = await getBrandContext()
|
|
56
|
-
|
|
57
|
-
// 3. Read memory.md for preferences
|
|
58
|
-
// (Claude Code reads this automatically as a project file)
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
After every significant action:
|
|
62
|
-
|
|
63
|
-
```ts
|
|
64
|
-
import { logMemory } from './lib/memory.ts'
|
|
65
|
-
await logMemory('blog-writer', 'Published "Email Tips" (listicle, 2100 words)', { id, slug })
|
|
66
|
-
await logMemory('crm', 'Drafted DMs for 5 hot leads', { count: 5 })
|
|
67
|
-
await logMemory('social', 'Scheduled post to LinkedIn + X', { post_id })
|
|
68
|
-
```
|
|
34
|
+
## Skills — load on demand only
|
|
69
35
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
User: "Stop signing newsletters with Cheers"
|
|
74
|
-
→ Add to memory.md: "Newsletter sign-off: use 'Best,' not 'Cheers'"
|
|
75
|
-
→ Apply immediately to current task
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## The One Rule
|
|
81
|
-
|
|
82
|
-
```
|
|
83
|
-
profile_id = one business = one isolated universe
|
|
84
|
-
Every INSERT needs profile_id. Every SELECT filters by profile_id. No exceptions.
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## Agent Routing Rules
|
|
90
|
-
|
|
91
|
-
Read the request → route to the right agent. Don't do the work in the wrong agent.
|
|
92
|
-
|
|
93
|
-
| Request | Agent |
|
|
94
|
-
|---|---|
|
|
95
|
-
| "brief me" / "weekly update" / "what's happening" | `/ceo` |
|
|
96
|
-
| "revenue" / "pricing" / "sales breakdown" | `/cbo` |
|
|
97
|
-
| "content calendar" / "what should I write next" | `/cmo` |
|
|
98
|
-
| "publish queue" / "what's scheduled" | `/coo` |
|
|
99
|
-
| "write a post" / "blog" / "listicle" / "guide" / "vs article" | `/blog-writer` |
|
|
100
|
-
| "newsletter" / "email subscribers" | `/newsletter-writer` |
|
|
101
|
-
| "product description" / "landing page" / "bio" | `/copywriter` |
|
|
102
|
-
| "course" / "lessons" / "module" | `/course-creator` |
|
|
103
|
-
| "add product" / "launch" / "store item" | `/store-manager` |
|
|
104
|
-
| "job listing" / "hiring" / "applications" | `/jobs-manager` |
|
|
105
|
-
| "form" / "intake" / "survey" | `/forms-builder` |
|
|
106
|
-
| "docs" / "knowledge base" / "help article" | `/docs-writer` |
|
|
107
|
-
| "lead" / "contact" / "deal" / "outreach" / "CRM" | `/crm` |
|
|
108
|
-
| "post to" / "social" / "tweet" / "LinkedIn" / "schedule post" | `/social` |
|
|
109
|
-
| "analytics" / "traffic" / "how many clicks" | `/analytics` |
|
|
110
|
-
| "SEO" / "meta" / "keyword" / "LLM visibility" / "content gaps" | `/seo` |
|
|
111
|
-
| "schedule" / "publish queue" / "cron" | `/scheduler` |
|
|
112
|
-
| complex multi-step / "do everything" / "take over" | `/deep` |
|
|
113
|
-
|
|
114
|
-
**Rule: agents → skills direction only.** C-Suite delegates to Creators. Creators never call C-Suite.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## Skills Directory — `.agents/skills/`
|
|
119
|
-
|
|
120
|
-
All tools read these. Universal. Not Claude-specific.
|
|
121
|
-
|
|
122
|
-
| File | Contents |
|
|
36
|
+
| Task | Load |
|
|
123
37
|
|---|---|
|
|
124
|
-
| `
|
|
125
|
-
| `
|
|
126
|
-
| `
|
|
127
|
-
| `
|
|
128
|
-
| `
|
|
129
|
-
|
|
130
|
-
---
|
|
38
|
+
| Writing anything | `context/brand-voice.md` + `skills/brand/SKILL.md` |
|
|
39
|
+
| Products / pricing | `skills/store/SKILL.md` |
|
|
40
|
+
| Analytics columns | `skills/analytics/SKILL.md` |
|
|
41
|
+
| DB table structure | `skills/schema/SKILL.md` |
|
|
42
|
+
| Agent routing | `skills/agents/SKILL.md` |
|
|
131
43
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
### C-Suite — `agents/csuite/`
|
|
135
|
-
|
|
136
|
-
CEO → CMO → COO → CBO
|
|
137
|
-
C-Suite reads data, makes decisions, delegates. Never writes content directly.
|
|
138
|
-
|
|
139
|
-
### Creators — `agents/creators/`
|
|
140
|
-
|
|
141
|
-
blog-writer, newsletter-writer, copywriter, course-creator, store-manager,
|
|
142
|
-
jobs-manager, forms-builder, docs-writer, crm-agent
|
|
143
|
-
|
|
144
|
-
### Growth — `agents/growth/`
|
|
145
|
-
|
|
146
|
-
analytics-agent, seo-agent, social-agent, scheduler
|
|
44
|
+
Never load all skills. Never load "just in case."
|
|
147
45
|
|
|
148
46
|
---
|
|
149
47
|
|
|
150
|
-
##
|
|
151
|
-
|
|
152
|
-
### Content tables (all: profile_id, slug, title, content, excerpt, published, hidden, collection_id)
|
|
48
|
+
## The one rule
|
|
153
49
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### Products
|
|
159
|
-
|
|
160
|
-
type: download|course|meeting|webinar|event|listing|sponsorship|service
|
|
161
|
-
price_cents INT | slug UNIQUE | published | hidden=1 to archive
|
|
162
|
-
|
|
163
|
-
### CRM
|
|
164
|
-
|
|
165
|
-
crm_contacts: lead_score, icp_match, outreach_status, agent_status, agent_context JSON, auto_approve
|
|
166
|
-
crm_activities: approval_status (pending→approved|auto_sent|rejected) — append-only
|
|
167
|
-
crm_deals: stage (new|contacted|proposal|negotiation|won|lost)
|
|
168
|
-
crm_analytics: DB triggers keep this in sync — NEVER update manually
|
|
169
|
-
|
|
170
|
-
### Social
|
|
171
|
-
|
|
172
|
-
social_accounts: connection_mode (zernio_byok|zernio_platform|direct|n8n)
|
|
173
|
-
social_posts: status, scheduled_for, scheduled_via, zernio_post_id
|
|
174
|
-
Platform key (ZERNIO_API_KEY) NEVER used by agents — only via Worker /api/social/schedule
|
|
175
|
-
|
|
176
|
-
### Memory (Turso)
|
|
177
|
-
|
|
178
|
-
memory_log: rolling 20 rows per profile
|
|
179
|
-
agent_skills: UNIQUE(profile_id,slug) — upsert safe
|
|
180
|
-
|
|
181
|
-
### Analytics — READ ONLY
|
|
182
|
-
|
|
183
|
-
Never write to profile_analytics, product_analytics, link_analytics, form_analytics
|
|
184
|
-
|
|
185
|
-
### Key IDs and timestamps
|
|
186
|
-
|
|
187
|
-
ulid() for most tables | omit id for doc_* (AUTOINCREMENT)
|
|
188
|
-
now() = Math.floor(Date.now()/1000) for INT cols
|
|
189
|
-
iso() = new Date().toISOString().slice(0,19)+'Z' for TEXT cols (posts, jobs, forms)
|
|
190
|
-
|
|
191
|
-
### categories (seeded — never insert)
|
|
192
|
-
|
|
193
|
-
cat_1=links | cat_15=startups | cat_18=courses | cat_19=downloads
|
|
194
|
-
Cat_31=jobs | Cat_32=docs | Cat_34=forms | Cat_35=blog
|
|
50
|
+
Every DB read and write filters by `profile_id`. No exceptions.
|
|
51
|
+
Never hard delete — always `hidden=1`.
|
|
52
|
+
Never write to analytics tables.
|
|
53
|
+
Never send or publish without user approval.
|
|
195
54
|
|
|
196
55
|
---
|
|
197
56
|
|
|
198
|
-
##
|
|
57
|
+
## After every action
|
|
199
58
|
|
|
200
59
|
```ts
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
const ceo = new CEO(createAgentDB(event)) // inject from sharedMap
|
|
60
|
+
import { logMemory } from './lib/memory.ts'
|
|
61
|
+
await logMemory('agent-name', 'what was done', { id, slug })
|
|
204
62
|
```
|
|
205
63
|
|
|
206
|
-
|
|
64
|
+
User states a preference → add to `memory.md` → apply immediately.
|
|
207
65
|
|
|
208
66
|
---
|
|
209
67
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
- Write a row without `profile_id`
|
|
213
|
-
- Hard delete anything — always `hidden=1`
|
|
214
|
-
- Log or print values from `credentials` table
|
|
215
|
-
- Hardcode `profile_id` — always load from `getProfile()`
|
|
216
|
-
- Insert rows into `categories` — use existing seeded IDs
|
|
217
|
-
- Modify `users` or `sessions` tables
|
|
218
|
-
- Write to analytics tables (except seeding a new analytics row on create)
|
|
219
|
-
- Call C-Suite from within a Creator or Growth agent
|
|
220
|
-
- Use `ZERNIO_API_KEY` directly — platform key only goes via Worker endpoint
|
|
221
|
-
- Assume `progress.md` exists — memory is now in `memory_log` Turso table
|
|
68
|
+
Full schema, agent roster, routing rules: `REFERENCE.md`
|
package/HEARTBEAT.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Heartbeat
|
|
2
|
+
|
|
3
|
+
> Written by CEO agent each session. Machine-readable — agents parse this in one read.
|
|
4
|
+
> No DB calls needed to know current business state. Surface it upfront, not on demand.
|
|
5
|
+
> (Nainsi principle: treat the backend as part of the agent's context window.)
|
|
6
|
+
|
|
7
|
+
Last updated: —
|
|
8
|
+
Updated by: CEO agent
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## Revenue snapshot
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
30d_revenue_cents: 0
|
|
16
|
+
7d_revenue_cents: 0
|
|
17
|
+
top_product: —
|
|
18
|
+
top_product_rev: 0
|
|
19
|
+
open_deals: 0
|
|
20
|
+
open_deal_value: 0
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Audience
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
total_subscribers: 0
|
|
27
|
+
new_7d: 0
|
|
28
|
+
unsubscribed_7d: 0
|
|
29
|
+
total_crm_contacts: 0
|
|
30
|
+
new_crm_7d: 0
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Content pipeline
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
posts_published_7d: 0
|
|
37
|
+
posts_draft: 0
|
|
38
|
+
newsletter_last_sent: —
|
|
39
|
+
social_posts_7d: 0
|
|
40
|
+
social_accounts_live: 0
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Pending approvals
|
|
44
|
+
|
|
45
|
+
```yaml
|
|
46
|
+
# Items waiting for owner decision — surface at session start
|
|
47
|
+
approvals: []
|
|
48
|
+
# - id: xxx
|
|
49
|
+
# type: social_post | crm_outreach | newsletter | product_update
|
|
50
|
+
# agent: blog-writer
|
|
51
|
+
# title: "Draft: 5 email tools compared"
|
|
52
|
+
# created: 2026-04-22
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Agent status
|
|
56
|
+
|
|
57
|
+
```yaml
|
|
58
|
+
agents:
|
|
59
|
+
- type: ceo status: idle last_run: — heartbeat: 3600s
|
|
60
|
+
- type: blog-writer status: idle last_run: —
|
|
61
|
+
- type: social status: idle last_run: —
|
|
62
|
+
- type: crm status: idle last_run: —
|
|
63
|
+
- type: newsletter status: idle last_run: —
|
|
64
|
+
- type: seo status: idle last_run: weekly
|
|
65
|
+
- type: scheduler status: idle last_run: daily
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Flags
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
# Issues requiring attention — cleared when resolved
|
|
72
|
+
flags: []
|
|
73
|
+
# - level: warn | critical
|
|
74
|
+
# message: "SES bounce rate above 5%"
|
|
75
|
+
# since: 2026-04-20
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## This week — CEO recommended priorities
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
1. —
|
|
82
|
+
2. —
|
|
83
|
+
3. —
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## CEO note
|
|
87
|
+
|
|
88
|
+
—
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
<!-- HOW TO UPDATE:
|
|
93
|
+
CEO agent runs this query on session start:
|
|
94
|
+
|
|
95
|
+
SELECT
|
|
96
|
+
(SELECT COALESCE(SUM(amount_cents),0) FROM purchases
|
|
97
|
+
WHERE created_at > strftime('%s','now')-2592000) AS rev_30d,
|
|
98
|
+
(SELECT COUNT(*) FROM subscribers WHERE is_blocked=0 AND is_unsubscribed=0) AS subscribers,
|
|
99
|
+
(SELECT COUNT(*) FROM posts WHERE hidden=0) AS total_posts,
|
|
100
|
+
(SELECT COUNT(*) FROM crm_contacts WHERE archived=0) AS contacts,
|
|
101
|
+
(SELECT COUNT(*) FROM social_accounts WHERE is_active=1 AND is_connected=1) AS social_live
|
|
102
|
+
|
|
103
|
+
Then writes the result back into the code blocks above.
|
|
104
|
+
One query. One write. No exploration needed.
|
|
105
|
+
-->
|