@businesskit/agent 1.0.4 → 1.0.7

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 (190) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.cursor-plugin/plugin.json +25 -0
  3. package/.cursorrules +10 -0
  4. package/.superconsole-plugin/plugin.json +62 -0
  5. package/AGENTS.md +105 -63
  6. package/CLAUDE.md +11 -84
  7. package/GEMINI.md +11 -34
  8. package/README.md +95 -154
  9. package/assets/logo.svg +3 -0
  10. package/bin/businesskit.js +45 -18
  11. package/commands/add-contact.md +47 -0
  12. package/commands/add-inventory-from-invoice.md +80 -0
  13. package/commands/adjust-stock.md +46 -0
  14. package/commands/brief.md +12 -0
  15. package/commands/capabilities.md +33 -0
  16. package/commands/chase.md +12 -0
  17. package/commands/check-stock.md +43 -0
  18. package/commands/create-component.md +109 -0
  19. package/commands/create-invoice.md +69 -0
  20. package/commands/create-new-bill.md +65 -0
  21. package/commands/create-page.md +124 -0
  22. package/commands/crm.md +13 -0
  23. package/commands/followups.md +13 -0
  24. package/commands/list-components.md +41 -0
  25. package/commands/list-content.md +46 -0
  26. package/commands/list-pages.md +45 -0
  27. package/commands/pipeline.md +13 -0
  28. package/commands/publish-page.md +64 -0
  29. package/commands/send-invoice.md +42 -0
  30. package/commands/seo-audit.md +36 -0
  31. package/commands/update-agent.md +33 -0
  32. package/commands/update-contact.md +46 -0
  33. package/commands/update-content.md +48 -0
  34. package/commands/update-page.md +56 -0
  35. package/commands/update-price.md +47 -0
  36. package/commands/write-blog.md +56 -0
  37. package/commands/write-docs.md +90 -0
  38. package/commands/write-guide.md +51 -0
  39. package/commands/write-newsletter.md +50 -0
  40. package/dist/server.js +4099 -0
  41. package/mcp_config.json +12 -0
  42. package/package.json +54 -25
  43. package/plugin.json +32 -0
  44. package/scripts/setup.sh +169 -0
  45. package/scripts/setup.ts +129 -0
  46. package/scripts/update.sh +56 -0
  47. package/server.json +21 -0
  48. package/skills/README.md +20 -27
  49. package/skills/billing/SKILL.md +64 -0
  50. package/skills/brand/SKILL.md +30 -86
  51. package/skills/cms/SKILL.md +111 -0
  52. package/skills/cms/references/cms-hubs.md +84 -0
  53. package/skills/cms/references/html-blocks.md +177 -0
  54. package/skills/copywriting/SKILL.md +1 -1
  55. package/skills/crm/SKILL.md +24 -0
  56. package/skills/docs/SKILL.md +65 -0
  57. package/skills/docs/references/how-to.md +155 -0
  58. package/skills/inbox/SKILL.md +49 -0
  59. package/skills/inventory/SKILL.md +69 -0
  60. package/skills/pages/SKILL.md +214 -0
  61. package/skills/pages/references/sections-catalog.json +1183 -0
  62. package/skills/social/SKILL.md +84 -211
  63. package/skills/social/evals/evals.json +66 -0
  64. package/skills/social/evals/rubric.md +26 -0
  65. package/skills/social/examples/repurposing-blog-to-social.md +93 -0
  66. package/skills/social/examples/weekly-content-calendar.md +30 -0
  67. package/skills/social/linkedin/SKILL.md +107 -0
  68. package/skills/social/linkedin/evals/evals.json +106 -0
  69. package/skills/social/linkedin/evals/rubric.md +28 -0
  70. package/skills/social/linkedin/examples/gasp-weekly-sprint.md +24 -0
  71. package/skills/social/linkedin/examples/growth-posts-by-format.md +140 -0
  72. package/skills/social/linkedin/references/gasp-funnel-and-calibration.md +90 -0
  73. package/skills/social/linkedin/references/six-growth-formats.md +114 -0
  74. package/skills/social/references/platforms.md +76 -0
  75. package/skills/social/references/post-templates.md +105 -0
  76. package/skills/social/references/reverse-engineering.md +62 -0
  77. package/src/data/sections-catalog.json +950 -0
  78. package/src/db.ts +170 -0
  79. package/src/server.ts +75 -0
  80. package/src/tools/content.ts +326 -0
  81. package/src/tools/crm.ts +1416 -0
  82. package/src/tools/domains.ts +89 -0
  83. package/src/tools/inbox.ts +270 -0
  84. package/src/tools/index.ts +116 -0
  85. package/src/tools/pages.ts +1217 -0
  86. package/src/tools/shop.ts +771 -0
  87. package/src/tools/system.ts +94 -0
  88. package/src/tools/types.ts +17 -0
  89. package/templates/antigravity.json +8 -0
  90. package/templates/claude-code.mcp.json +8 -0
  91. package/templates/cursor.mcp.json +8 -0
  92. package/templates/vscode.mcp.json +9 -0
  93. package/.claude/commands/analytics.md +0 -7
  94. package/.claude/commands/blog-writer.md +0 -9
  95. package/.claude/commands/cbo.md +0 -7
  96. package/.claude/commands/ceo.md +0 -10
  97. package/.claude/commands/cmo.md +0 -7
  98. package/.claude/commands/compress.md +0 -73
  99. package/.claude/commands/coo.md +0 -11
  100. package/.claude/commands/copywriter.md +0 -15
  101. package/.claude/commands/course-creator.md +0 -9
  102. package/.claude/commands/crm.md +0 -591
  103. package/.claude/commands/deep.md +0 -50
  104. package/.claude/commands/docs-writer.md +0 -8
  105. package/.claude/commands/forms-builder.md +0 -10
  106. package/.claude/commands/ingest.md +0 -110
  107. package/.claude/commands/jobs-manager.md +0 -8
  108. package/.claude/commands/kb.md +0 -107
  109. package/.claude/commands/newsletter-writer.md +0 -9
  110. package/.claude/commands/preserve.md +0 -64
  111. package/.claude/commands/resume.md +0 -67
  112. package/.claude/commands/scheduler.md +0 -8
  113. package/.claude/commands/seo.md +0 -60
  114. package/.claude/commands/social.md +0 -51
  115. package/.claude/commands/store-manager.md +0 -11
  116. package/.claude/settings.json +0 -16
  117. package/.claude/settings.local.json +0 -11
  118. package/.env.example +0 -12
  119. package/.mcp.json +0 -3
  120. package/HEARTBEAT.md +0 -105
  121. package/PLAN.md +0 -345
  122. package/PRD-Agent-Composition.md +0 -149
  123. package/PRD-Agent-Harness.md +0 -316
  124. package/REFERENCE.md +0 -160
  125. package/SOUL.md +0 -148
  126. package/SYSTEM.md +0 -71
  127. package/agents/_base.ts +0 -371
  128. package/agents/analytics/SOUL.md +0 -11
  129. package/agents/analytics/analytics.ts +0 -405
  130. package/agents/business/SOUL.md +0 -11
  131. package/agents/business/business.ts +0 -109
  132. package/agents/ceo/SOUL.md +0 -15
  133. package/agents/ceo/ceo.ts +0 -146
  134. package/agents/content/SOUL.md +0 -11
  135. package/agents/content/content.ts +0 -379
  136. package/agents/copywriting/SOUL.md +0 -11
  137. package/agents/copywriting/copywriting.ts +0 -89
  138. package/agents/courses/SOUL.md +0 -11
  139. package/agents/courses/courses.ts +0 -451
  140. package/agents/docs/SOUL.md +0 -11
  141. package/agents/docs/docs.ts +0 -77
  142. package/agents/forms/SOUL.md +0 -11
  143. package/agents/forms/forms.ts +0 -364
  144. package/agents/hiring/SOUL.md +0 -11
  145. package/agents/hiring/hiring.ts +0 -314
  146. package/agents/marketing/SOUL.md +0 -15
  147. package/agents/marketing/marketing.ts +0 -109
  148. package/agents/newsletter/SOUL.md +0 -11
  149. package/agents/newsletter/newsletter.ts +0 -91
  150. package/agents/operations/SOUL.md +0 -11
  151. package/agents/operations/operations.ts +0 -157
  152. package/agents/sales/SOUL.md +0 -44
  153. package/agents/sales/sales.ts +0 -883
  154. package/agents/scheduler/SOUL.md +0 -11
  155. package/agents/scheduler/scheduler.ts +0 -68
  156. package/agents/seo/SOUL.md +0 -11
  157. package/agents/seo/seo.ts +0 -288
  158. package/agents/social/SOUL.md +0 -11
  159. package/agents/social/social.ts +0 -744
  160. package/agents/store/SOUL.md +0 -11
  161. package/agents/store/store.ts +0 -514
  162. package/cli.ts +0 -144
  163. package/context/about-me.md +0 -96
  164. package/context/brand-voice.md +0 -127
  165. package/context/brand.md +0 -80
  166. package/context/business.md +0 -66
  167. package/context/working-style.md +0 -87
  168. package/lib/analytics.ts +0 -81
  169. package/lib/cms.ts +0 -88
  170. package/lib/db.adapter.ts +0 -30
  171. package/lib/db.ts +0 -63
  172. package/lib/enums.ts +0 -25
  173. package/lib/groups.ts +0 -122
  174. package/lib/id.ts +0 -43
  175. package/lib/kb.ts +0 -337
  176. package/lib/memory.ts +0 -219
  177. package/lib/pattern-detector.ts +0 -169
  178. package/lib/profile.ts +0 -155
  179. package/lib/schema.ts +0 -2015
  180. package/lib/slug.ts +0 -30
  181. package/lib/validate.ts +0 -33
  182. package/setup.ts +0 -141
  183. package/skills/agents/SKILL.md +0 -56
  184. package/skills/analytics/SKILL.md +0 -52
  185. package/skills/blog-writer/SKILL.md +0 -452
  186. package/skills/ceo/SKILL.md +0 -25
  187. package/skills/cmo/SKILL.md +0 -8
  188. package/skills/schema/SKILL.md +0 -86
  189. package/skills/store/SKILL.md +0 -62
  190. package/tsconfig.json +0 -14
@@ -1,110 +0,0 @@
1
- # /ingest — Process Inbox Into Knowledge Base
2
-
3
- Process everything in `agent_notes` with `status='inbox'` into the knowledge base.
4
- This is the magic moment: raw captures → structured, cross-linked wiki pages.
5
-
6
- Run this periodically — not every session. Daily or weekly depending on how much you capture.
7
-
8
- ---
9
-
10
- ## What it does
11
-
12
- 1. Fetch unprocessed notes from `agent_notes` (status='inbox')
13
- 2. For each note, decide: new KB entry OR update existing one
14
- 3. Cross-reference with existing KB index (slug + summary scan — no full content load)
15
- 4. Write or update KB entry with cross-links
16
- 5. If new note contradicts existing entry → mark existing stale first
17
- 6. File the note as processed
18
-
19
- ---
20
-
21
- ## Steps
22
-
23
- ```ts
24
- import { getInboxNotes, getIndex, searchKB, getEntry,
25
- upsertEntry, markStale, markNoteProcessed } from './lib/kb.ts'
26
-
27
- // 1. Load index — cheap, summaries only
28
- const index = await getIndex({ limit: 200 })
29
- console.log(`KB has ${index.length} entries`)
30
-
31
- // 2. Get inbox
32
- const notes = await getInboxNotes(20)
33
- if (!notes.length) {
34
- console.log('Inbox empty — nothing to process')
35
- return
36
- }
37
- console.log(`Processing ${notes.length} notes...`)
38
-
39
- // 3. For each note:
40
- for (const note of notes) {
41
- // a. Search for related existing entries
42
- const term = extractKeyTerm(note.content) // first meaningful phrase
43
- const hits = await searchKB(term, 5)
44
-
45
- // b. Decide: update existing or create new?
46
- if (hits.length && isSameConcept(note.content, hits[0])) {
47
- // Load the full entry only for the one we're updating
48
- const existing = await getEntry(hits[0].slug)
49
- // Check for contradiction
50
- if (contradicts(note.content, existing?.content)) {
51
- await markStale(hits[0].slug)
52
- }
53
- // Integrate new info into existing entry
54
- await upsertEntry({
55
- ...existing,
56
- content: integrate(existing.content, note.content),
57
- summary: refreshSummary(existing.content, note.content),
58
- source_note_ids: [...existing.source_note_ids, note.id],
59
- version: existing.version + 1,
60
- })
61
- await markNoteProcessed(note.id, `Integrated into: ${hits[0].slug}`)
62
- } else {
63
- // New entity or concept
64
- const slug = generateSlug(note.content)
65
- await upsertEntry({
66
- entry_type: classifyNote(note.content), // entity/concept/source/synthesis
67
- title: extractTitle(note.content),
68
- slug,
69
- content: compileWikiPage(note.content),
70
- summary: oneSentenceSummary(note.content),
71
- source_note_ids: [note.id],
72
- tags: extractTags(note.content),
73
- })
74
- await markNoteProcessed(note.id, `Compiled into new KB entry: ${slug}`)
75
- }
76
- }
77
- ```
78
-
79
- ## After each ingest
80
-
81
- - Log to `agent_memory`: how many notes processed, how many new entries, how many updated
82
- - Run stale check: show any entries marked stale that need updating
83
- - Push summary to `agent_reports` if batch was large (10+ notes)
84
-
85
- ## Stale handling
86
-
87
- After processing inbox, check for stale entries:
88
-
89
- ```ts
90
- const stale = await getStaleEntries()
91
- if (stale.length) {
92
- console.log(`${stale.length} entries need updating:`)
93
- stale.forEach(e => console.log(` - ${e.slug}: ${e.summary}`))
94
- // Offer to update them or leave for next /ingest run
95
- }
96
- ```
97
-
98
- ## When to run /ingest
99
-
100
- - After a batch of notes have been added to inbox
101
- - Before a deep research session (so KB is fresh)
102
- - Weekly at minimum if you capture regularly
103
- - Run by Scheduler agent on a weekly cron
104
-
105
- ## One new source can ripple through 10-15 pages
106
-
107
- That's the Karpathy insight. When you ingest a new article about email deliverability,
108
- the agent updates not just the deliverability entry — it checks every entry that
109
- references it (SES setup, ConvertKit comparison, newsletter strategy) and updates
110
- the cross-links. That's what makes the KB compound over time.
@@ -1,8 +0,0 @@
1
- # /jobs-manager — Post Job Listing
2
-
3
- 1. Ask: title, company, location, location_type (remote/onsite/hybrid), employment_type
4
- 2. Ask: description (required), requirements, salary range (optional), expires_at
5
- 3. `job.create({ title, company, location, location_type, employment_type, description, ... })`
6
- 4. Confirm: title, slug, company, status.
7
-
8
- Applicants: `job.applications(jobId)` | Archive: `job.archive(id)`
@@ -1,107 +0,0 @@
1
- # /kb — Knowledge Base (Karpathy LLM Wiki)
2
-
3
- Persistent, compounding knowledge base. Agents maintain it. Users only read it.
4
-
5
- ## How it works
6
-
7
- ```
8
- agent_notes (inbox) → agent reads → agent_kb (wiki)
9
- user drops anything integrates compiled knowledge
10
- ```
11
-
12
- One new note can update 10-15 existing KB pages.
13
- Your questions + answers get filed back as new entries — knowledge compounds.
14
-
15
- ## Session start
16
-
17
- ```ts
18
- import { kbContext } from './lib/kb.ts'
19
- const index = await kbContext(50)
20
- // Shows: [type] slug: summary — token-efficient, no full content loaded
21
- ```
22
-
23
- ## Process inbox notes (periodic — not every session)
24
-
25
- ```ts
26
- import { getInboxNotes, upsertEntry, markNoteProcessed } from './lib/kb.ts'
27
-
28
- const notes = await getInboxNotes(10)
29
- for (const note of notes) {
30
- // Read note.content
31
- // Decide: new KB entry OR update existing one
32
- // Check index first: does a related entry exist?
33
- const existing = await searchKB(extractKeyTerm(note.content))
34
-
35
- if (existing.length) {
36
- // Update existing entry — integrate new info
37
- // If new info contradicts: markStale(existing[0].slug) first
38
- await upsertEntry({ slug: existing[0].slug, ... })
39
- } else {
40
- // Create new entity/concept/source entry
41
- await upsertEntry({ entry_type: 'concept', slug, title, content, summary })
42
- }
43
-
44
- await markNoteProcessed(note.id, 'Integrated into KB as: [slug]')
45
- }
46
- ```
47
-
48
- ## Answer a question + file it back
49
-
50
- ```ts
51
- import { searchKB, getEntry, fileAnswer } from './lib/kb.ts'
52
-
53
- // 1. Read index — find relevant entries
54
- const index = await kbContext()
55
-
56
- // 2. Search for relevant pages
57
- const hits = await searchKB('email deliverability')
58
-
59
- // 3. Load content only for relevant ones
60
- const entry = await getEntry(hits[0].slug)
61
-
62
- // 4. Synthesize answer using entry.content
63
-
64
- // 5. File answer back as KB entry (Karpathy: explorations compound)
65
- await fileAnswer(
66
- 'What affects email deliverability?',
67
- answerText,
68
- ['email-deliverability', 'ses-setup']
69
- )
70
- ```
71
-
72
- ## Mark stale when info contradicts
73
-
74
- ```ts
75
- import { markStale } from './lib/kb.ts'
76
-
77
- // New note says ConvertKit raised prices → mark old pricing entry stale
78
- await markStale('convertkit-pricing')
79
- // Agent will update it next time it processes that entry
80
- ```
81
-
82
- ## Review stale entries
83
-
84
- ```ts
85
- import { getStaleEntries } from './lib/kb.ts'
86
- const stale = await getStaleEntries()
87
- // stale entries show ⚠️ in kbContext output
88
- // Process: load note → update entry → version increments, stale clears
89
- ```
90
-
91
- ## Entry types
92
-
93
- | type | What | Example slug |
94
- |---|---|---|
95
- | `entity` | Person, product, tool, company | `convertkit` `resend-api` `sarah-chen` |
96
- | `concept` | Strategy, pattern, framework | `email-deliverability` `icp-match` |
97
- | `source` | Processed note/article summary | `src-article-2026-04` |
98
- | `synthesis` | Agent cross-reference or analysis | `qa-best-email-tool` |
99
- | `index` | Auto-maintained index page | `index-email-marketing` |
100
-
101
- ## Rules
102
-
103
- - Agents maintain the KB — users never write directly
104
- - Load index first (cheap) → drill into content only when needed
105
- - summary ≤ 2 sentences — what the page is about in plain terms
106
- - related_ids = links to other KB entries (cross-references)
107
- - source_note_ids = which agent_notes this was compiled from
@@ -1,9 +0,0 @@
1
- # /newsletter-writer — Write Newsletter
2
-
3
- 1. `pearl.subscriberStats()` → show audience size first
4
- 2. Ask: subject line, preview text, content or topic to write about
5
- 3. Write in brand voice: 200+ words, greeting, main value, CTA, sign-off
6
- 4. Ask: send now or schedule? (ISO date/time if scheduling)
7
- 5. `pearl.send({ subject, preview_text, body_html, schedule_at })`
8
-
9
- n8n handles delivery via SES or Resend. Audience breakdown: `pearl.audienceBreakdown()`
@@ -1,64 +0,0 @@
1
- ---
2
- description: Save current session state to memory before context fills up
3
- ---
4
-
5
- # /preserve — Preserve Session
6
-
7
- Save session state to CC-Session-Logs/. Run before context gets full — not after.
8
- Uses the same structured format as /compress for consistency.
9
-
10
- ## Steps
11
-
12
- 1. Infer from conversation (don't ask unless genuinely ambiguous):
13
- - What was the goal?
14
- - What did we accomplish?
15
- - What decisions were made?
16
- - What's next?
17
-
18
- 2. Generate topic slug from the work done: `crm-outreach-2026-04` `blog-seo-audit` etc
19
-
20
- 3. Write to `CC-Session-Logs/YYYY-MM-DD-HH-MM-[topic].md`:
21
-
22
- ```markdown
23
- # [topic]
24
- Date: [ISO timestamp]
25
- Agent: [agent that was running]
26
-
27
- ## Goal
28
- [1-2 sentences — what were we doing]
29
-
30
- ## Constraints & Preferences
31
- - [any user preferences stated this session]
32
-
33
- ## Progress
34
- ### Done
35
- - [list every agent action: table written, post published, contact added]
36
- - Include IDs where possible: post_id: 01JXX, contact_id: 01JYY
37
-
38
- ### In Progress
39
- - [anything not finished]
40
-
41
- ## Next Steps
42
- 1. [specific next action]
43
- 2. [second]
44
-
45
- ## Files Changed
46
- - [file path]: [what changed]
47
- ```
48
-
49
- 1. Log to agent_memory AND update memory.md preferences section if user stated any:
50
-
51
- ```ts
52
- await logMemory('session', 'Preserved: [topic]', { file: 'CC-Session-Logs/...' })
53
- ```
54
-
55
- 2. Tell user: "Preserved to [filename]. Safe to run /compact now."
56
-
57
- ## When to run /preserve
58
-
59
- - Context bar approaching 70%
60
- - Before switching to a different task
61
- - After any significant batch of work
62
- - Before ending a session
63
-
64
- Run /compact AFTER /preserve, never before.
@@ -1,67 +0,0 @@
1
- ---
2
- description: Restore context from last session log and agent memory
3
- ---
4
-
5
- # /resume — Resume Last Session
6
-
7
- Reload context at the start of a new session. Run this first.
8
-
9
- ## Steps
10
-
11
- 1. Load agent memory from Turso:
12
-
13
- ```ts
14
- import { sessionContext } from './lib/memory.ts'
15
- const { memory, skills } = await sessionContext()
16
- ```
17
-
18
- 2. Find the most recent session log:
19
-
20
- ```
21
- CC-Session-Logs/
22
- ```
23
-
24
- Read the most recent file (by date in filename).
25
- Load ONLY the Summary section (everything above "---\nRaw Session Log").
26
- Never load the raw log — it wastes tokens.
27
-
28
- 3. If user specifies a topic:
29
-
30
- ```
31
- /resume api-auth-refactor
32
- ```
33
-
34
- Find the log file matching that topic slug.
35
-
36
- 4. Display the restored context:
37
-
38
- ```
39
- ══════════════════════════════════════════════
40
- RESUMING: [topic]
41
- ══════════════════════════════════════════════
42
- LAST SESSION: [date]
43
-
44
- [Summary content]
45
-
46
- RECENT MEMORY:
47
- [last 5 agent_memory entries]
48
-
49
- READY. What would you like to continue?
50
- ```
51
-
52
- 5. If no session logs exist, read memory.md preferences section and agent_memory.
53
-
54
- ## Folder structure
55
-
56
- ```
57
- businesskit-agent/
58
- ├── CC-Session-Logs/ ← session logs live here (gitignored)
59
- │ ├── 2026-04-07-09-00-crm-outreach.md
60
- │ ├── 2026-04-06-14-30-blog-seo-audit.md
61
- │ └── ...
62
- └── memory.md ← preferences (always loaded)
63
- ```
64
-
65
- ## Add CC-Session-Logs/ to .gitignore
66
-
67
- Session logs are local only — they contain session-specific context, not committed.
@@ -1,8 +0,0 @@
1
- # /scheduler — Scheduler Jobs
2
-
3
- 1. `scheduler.hourly()` -> run publish queue for content due now
4
- 2. Show list to user. Confirm before proceeding.
5
- 3. Use `scheduler.daily()` for pipeline health and `scheduler.weekly()` for CEO briefing delivery.
6
- 4. Show: what was published and job status.
7
-
8
- Direct COO methods (advanced): `coo.draftPipeline()`, `coo.schedule('posts', id, new Date('2026-04-01T09:00:00Z'))`
@@ -1,60 +0,0 @@
1
- # /seo — SEO Agent + LLM Visibility
2
-
3
- Audits content in Turso DB and tracks LLM visibility.
4
- For technical SEO (crawlability, Core Web Vitals, schema markup) → use claude-seo.md alongside this agent.
5
-
6
- ## Session start
7
- ```
8
- seoAgent.audit() // find SEO issues across posts, compare, alternative, guides
9
- seoAgent.contentGaps() // missing formats, thin posts, no compare/alternative pages
10
- seoAgent.checkLLMSTxt() // confirm llms.txt is live (app generates it, agent checks it)
11
- ```
12
-
13
- ## Fix content issues
14
- ```
15
- "Fix all missing excerpts"
16
- → for each issue: seoAgent.fixPost(id, { excerpt })
17
-
18
- "Fix titles that are too long"
19
- → seoAgent.fixPost(id, { seo_title: shortenedTitle })
20
-
21
- "Set SEO for the blog collection"
22
- → seoAgent.setCollectionSEO('blog', { seo_title, seo_description })
23
-
24
- "Suggest a slug"
25
- → seoAgent.suggestSlug(title, primaryKeyword)
26
- ```
27
-
28
- ## LLM Visibility (Arvow pattern)
29
- Track whether ChatGPT, Claude, Gemini, Perplexity cite your brand.
30
- ```
31
- "Check my LLM visibility"
32
- → seoAgent.checkLLMVisibility()
33
- → seoAgent.llmVisibilityAdvice(visibility)
34
-
35
- "Update scores after checking manually"
36
- → seoAgent.updateLLMVisibility({ chatgpt: 3, claude: 1, perplexity: 2 })
37
- ```
38
-
39
- Strategy to improve LLM citations:
40
- - Write ultimate guides (3000+ words) — LLMs prefer comprehensive sources
41
- - Add cited statistics with source URLs in posts.sources JSON
42
- - FAQ-format articles rank high for LLM citations
43
- - compare + alternative pages get cited heavily
44
- - Your app generates llms.txt — keep it current with latest products/posts
45
-
46
- ## Content gaps
47
- ```
48
- "What am I missing?"
49
- → seoAgent.contentGaps()
50
- // Returns: missing content types, thin posts, missing compare/alternative tables
51
- ```
52
-
53
- ## Technical SEO (server-side — not agent's job)
54
- These are handled by the live app or via claude-seo.md:
55
- - robots.txt ← app serves it
56
- - llms.txt ← app generates it (agent just checks it's live)
57
- - sitemap.xml ← app generates it
58
- - Core Web Vitals, schema markup, crawlability → install claude-seo.md for this:
59
- git clone https://github.com/AgriciDaniel/claude-seo.git && bash claude-seo/install.sh
60
- then: /seo audit https://yourslug.businesskit.io
@@ -1,51 +0,0 @@
1
- # /social — Agent-First SMM
2
-
3
- Posts, schedules, and analyzes social media via Zernio API.
4
- Reads `social_accounts`, `social_posts`, `connections` tables from user's Turso.
5
-
6
- ## Session start
7
- 1. `socialAgent.socialSummary()` — connected accounts, post counts, drafts
8
- 2. `socialAgent.listAccounts()` — platforms + connection mode per account
9
-
10
- ## Posting
11
- ```
12
- "Post my latest blog post to LinkedIn and X"
13
- → socialAgent.crossPostBlog(postId, title, slug, excerpt)
14
-
15
- "Announce my new course on all platforms"
16
- → socialAgent.announceProduct(productId, title, slug, priceCents)
17
-
18
- "Post this to Twitter: [content]"
19
- → socialAgent.post({ content, platforms: ['twitter'] })
20
-
21
- "Schedule this for Monday 9am"
22
- → socialAgent.post({ content, scheduledFor: '2026-04-07T09:00:00', timezone })
23
-
24
- "Add to queue"
25
- → socialAgent.post({ content, useQueue: true })
26
- ```
27
-
28
- ## Inbox + Analytics
29
- ```
30
- "Show my unread DMs" → socialAgent.getInbox({ status: 'unread' })
31
- "Show my scheduled posts" → socialAgent.getScheduled()
32
- "How are my accounts doing" → socialAgent.getAnalytics(accountId) per account
33
- ```
34
-
35
- ## Connection modes
36
- - `zernio_byok` → posts directly via user's own Zernio key
37
- - `zernio_platform` → free tier, must use dashboard POST /api/social/schedule
38
- - `n8n` → fires n8n webhook
39
-
40
- Platform key (ZERNIO_API_KEY) is never used locally — only through the Worker endpoint.
41
-
42
- ## Credentials needed per platform (optional if Zernio not used)
43
-
44
- | Platform | Credentials required |
45
- |---|---|
46
- | X / Twitter | twitter_api_key, twitter_api_secret, twitter_access_token, twitter_access_secret |
47
- | LinkedIn | linkedin_access_token, linkedin_person_urn |
48
- | Facebook | facebook_page_id, facebook_page_token |
49
- | Instagram | instagram_account_id, instagram_access_token |
50
-
51
- User adds these in: BusinessKit dashboard → Settings → Connections
@@ -1,11 +0,0 @@
1
- # /store-manager — Add Product to Store
2
-
3
- Types: download | meeting | webinar | event | listing | sponsorship | service
4
- (For courses, use `/course-creator`)
5
-
6
- 1. Ask: product type (show list)
7
- 2. Ask required fields per type (ref: .claude/skills/store.md)
8
- 3. Price in dollars → convert to cents ($29 → 2900)
9
- 4. `leo.create({ type, title, price_cents, ...type_fields })`
10
-
11
- After: COPY for description copy | SCOUT for SEO meta
@@ -1,16 +0,0 @@
1
- {
2
- "autocompact_percentage_override": 75,
3
- "env": {
4
- "BASH_MAX_OUTPUT_LENGTH": "150000"
5
- },
6
- "permissions": {
7
- "deny": [
8
- "Read(node_modules/**)",
9
- "Read(dist/**)",
10
- "Read(.next/**)",
11
- "Read(coverage/**)",
12
- "Read(*.lock)",
13
- "Read(.git/**)"
14
- ]
15
- }
16
- }
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npx tsc *)",
5
- "Bash(set -e)",
6
- "Bash(git add *)",
7
- "Bash(git commit -m ' *)",
8
- "Bash(node *)"
9
- ]
10
- }
11
- }
package/.env.example DELETED
@@ -1,12 +0,0 @@
1
- TURSO_URL=libsql://your-db.turso.io
2
- TURSO_TOKEN=your-token
3
-
4
- # Optional: pick one profile when your UserDB has more than one.
5
- # Agents auto-detect the single profile when this is unset (normal case).
6
- # Get the id from BusinessKit → Settings → Credentials, or via:
7
- # SELECT id, slug, title FROM profiles;
8
- # PROFILE_ID=
9
-
10
- # Optional: read replica URL for faster agent briefings (Turso embedded replica).
11
- # When set, db.execute (reads) hits the replica; writes always go to TURSO_URL.
12
- # TURSO_REPLICA_URL=libsql://your-db-replica.turso.io
package/.mcp.json DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "mcpServers": {}
3
- }
package/HEARTBEAT.md DELETED
@@ -1,105 +0,0 @@
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
- -->