@businesskit/agent 1.0.3 → 1.0.5

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 (130) 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 +32 -0
  5. package/AGENTS.md +94 -63
  6. package/CLAUDE.md +11 -65
  7. package/GEMINI.md +11 -34
  8. package/README.md +106 -153
  9. package/assets/logo.svg +3 -0
  10. package/bin/businesskit.js +11 -17
  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/capabilities.md +33 -0
  15. package/commands/check-stock.md +43 -0
  16. package/commands/create-component.md +109 -0
  17. package/commands/create-invoice.md +69 -0
  18. package/commands/create-new-bill.md +65 -0
  19. package/commands/create-page.md +96 -0
  20. package/commands/list-components.md +41 -0
  21. package/commands/list-content.md +46 -0
  22. package/commands/list-pages.md +45 -0
  23. package/commands/publish-page.md +64 -0
  24. package/commands/send-invoice.md +42 -0
  25. package/commands/seo-audit.md +36 -0
  26. package/commands/update-contact.md +46 -0
  27. package/commands/update-content.md +47 -0
  28. package/commands/update-page.md +55 -0
  29. package/commands/update-price.md +47 -0
  30. package/commands/write-blog.md +52 -0
  31. package/commands/write-docs.md +84 -0
  32. package/commands/write-guide.md +46 -0
  33. package/commands/write-newsletter.md +46 -0
  34. package/mcp_config.json +8 -0
  35. package/package.json +34 -23
  36. package/plugin.json +32 -0
  37. package/scripts/generate-schema.ts +244 -0
  38. package/scripts/setup.sh +134 -0
  39. package/scripts/setup.ts +92 -0
  40. package/server.json +21 -0
  41. package/skills/README.md +19 -27
  42. package/skills/billing/SKILL.md +64 -0
  43. package/skills/brand/SKILL.md +30 -86
  44. package/skills/copywriting/SKILL.md +1 -1
  45. package/skills/crm/SKILL.md +38 -0
  46. package/skills/docs-cms/SKILL.md +53 -0
  47. package/skills/docs-cms/references/how-to.md +383 -0
  48. package/skills/inbox/SKILL.md +49 -0
  49. package/skills/inventory/SKILL.md +69 -0
  50. package/skills/pages/SKILL.md +169 -0
  51. package/skills/pages/references/sections-catalog.json +950 -0
  52. package/skills/social/SKILL.md +1 -1
  53. package/templates/antigravity.json +8 -0
  54. package/templates/claude-code.mcp.json +8 -0
  55. package/templates/cursor.mcp.json +8 -0
  56. package/templates/vscode.mcp.json +9 -0
  57. package/.claude/commands/analytics.md +0 -7
  58. package/.claude/commands/blog-writer.md +0 -9
  59. package/.claude/commands/cbo.md +0 -7
  60. package/.claude/commands/ceo.md +0 -10
  61. package/.claude/commands/cmo.md +0 -7
  62. package/.claude/commands/compress.md +0 -73
  63. package/.claude/commands/coo.md +0 -11
  64. package/.claude/commands/copywriter.md +0 -15
  65. package/.claude/commands/course-creator.md +0 -9
  66. package/.claude/commands/crm.md +0 -591
  67. package/.claude/commands/deep.md +0 -50
  68. package/.claude/commands/docs-writer.md +0 -8
  69. package/.claude/commands/forms-builder.md +0 -10
  70. package/.claude/commands/jobs-manager.md +0 -8
  71. package/.claude/commands/kb.md +0 -107
  72. package/.claude/commands/newsletter-writer.md +0 -9
  73. package/.claude/commands/preserve.md +0 -64
  74. package/.claude/commands/resume.md +0 -67
  75. package/.claude/commands/scheduler.md +0 -8
  76. package/.claude/commands/seo.md +0 -60
  77. package/.claude/commands/social.md +0 -51
  78. package/.claude/commands/store-manager.md +0 -11
  79. package/.env.example +0 -2
  80. package/.mcp.json +0 -3
  81. package/ABOUT-ME.md +0 -96
  82. package/HEARTBEAT.md +0 -105
  83. package/PLAN.md +0 -384
  84. package/PRD-Agent-Composition.md +0 -149
  85. package/PRD-Agent-Harness.md +0 -316
  86. package/REFERENCE.md +0 -124
  87. package/SOUL.md +0 -148
  88. package/SYSTEM.md +0 -71
  89. package/agents/_base.ts +0 -63
  90. package/agents/creators/blog-writer.ts +0 -347
  91. package/agents/creators/copywriter.ts +0 -89
  92. package/agents/creators/course-creator.ts +0 -106
  93. package/agents/creators/crm-agent.ts +0 -479
  94. package/agents/creators/docs-writer.ts +0 -77
  95. package/agents/creators/forms-builder.ts +0 -90
  96. package/agents/creators/jobs-manager.ts +0 -82
  97. package/agents/creators/newsletter-writer.ts +0 -91
  98. package/agents/creators/store-manager.ts +0 -138
  99. package/agents/csuite/cbo.ts +0 -109
  100. package/agents/csuite/ceo.ts +0 -121
  101. package/agents/csuite/cmo.ts +0 -109
  102. package/agents/csuite/coo.ts +0 -115
  103. package/agents/growth/analytics-agent.ts +0 -52
  104. package/agents/growth/scheduler.ts +0 -68
  105. package/agents/growth/seo-agent.ts +0 -282
  106. package/agents/growth/social-agent.ts +0 -346
  107. package/brand-voice.md +0 -127
  108. package/cli.ts +0 -125
  109. package/context/brand.md +0 -80
  110. package/context/business.md +0 -66
  111. package/ingest.md +0 -110
  112. package/lib/analytics.ts +0 -81
  113. package/lib/db.adapter.ts +0 -30
  114. package/lib/db.ts +0 -16
  115. package/lib/id.ts +0 -15
  116. package/lib/kb.ts +0 -337
  117. package/lib/memory.ts +0 -219
  118. package/lib/pattern-detector.ts +0 -169
  119. package/lib/profile.ts +0 -119
  120. package/lib/slug.ts +0 -30
  121. package/setup.ts +0 -127
  122. package/skills/agents/SKILL.md +0 -56
  123. package/skills/analytics/SKILL.md +0 -52
  124. package/skills/blog-writer/SKILL.md +0 -452
  125. package/skills/ceo/SKILL.md +0 -25
  126. package/skills/cmo/SKILL.md +0 -8
  127. package/skills/schema/SKILL.md +0 -45
  128. package/skills/store/SKILL.md +0 -62
  129. package/tsconfig.json +0 -13
  130. package/working-style.md +0 -87
@@ -1,56 +0,0 @@
1
- # Agent Roster
2
-
3
- Every agent has a name, title, and clear domain. C-Suite orchestrates. Creators write. Growth distributes.
4
-
5
- ## C-Suite — Strategy & Intelligence
6
-
7
- | Name | Title | Call when... |
8
- |---|---|---|
9
- | **ARIA** | CEO | Weekly briefing, cross-agent priorities, `aria.weeklyBriefing()` |
10
- | **NOVA** | CMO | Content calendar, growth gaps, `nova.contentCalendar()` |
11
- | **OTTO** | COO | Publish queue, draft pipeline, scheduling, `otto.draftPipeline()` |
12
- | **REX** | CBO | Revenue report, pricing audit, upsell strategy, `rex.revenueReport()` |
13
-
14
- ## Creators — Content Production
15
-
16
- | Name | Title | Table | Key method |
17
- |---|---|---|---|
18
- | **BLAKE** | Blog Writer | `posts` | `blake.create({ title, content })` |
19
- | **PEARL** | Newsletter Writer | `subscribers` | `pearl.send({ subject, body_html })` |
20
- | **COPY** | Copywriter | `pages`, `products.description` | `copy.createPage()`, `copy.updateProductCopy()` |
21
- | **SAGE** | Course Creator | `products` (type=course) | `sage.create()`, `sage.addLesson()` |
22
- | **LEO** | Store Manager | `products` (all other types) | `leo.create({ type, ... })` |
23
- | **JOB** | Jobs Manager | `job_listings` | `job.create()` |
24
- | **FELIX** | Forms Builder | `forms`, `questions` | `felix.create({ title, questions })` |
25
- | **DOC** | Docs Writer | `doc_collections`, `doc_articles` | `doc.createArticle()` |
26
-
27
- ## Growth — Distribution & Intelligence
28
-
29
- | Name | Title | Role |
30
- |---|---|---|
31
- | **SCOUT** | SEO Agent | Audits slugs/meta, sets collection SEO |
32
- | **ATLAS** | Analytics Agent | Read-only analytics across all tables |
33
- | **HERMES** | Social Agent | Posts to n8n → social platforms |
34
- | **CRON** | Scheduler | Runs hourly/daily/weekly jobs (Phase 3: CF Workflows) |
35
-
36
- ## Store — Product Types via LEO
37
-
38
- LEO handles all digital commerce. Pass `type` to select:
39
-
40
- | Type | What it is |
41
- |---|---|
42
- | `download` | Digital file (PDF, ZIP, video) |
43
- | `course` | Multi-lesson course — use SAGE instead for lesson management |
44
- | `meeting` | 1:1 call (calendar_link required) |
45
- | `webinar` | Live or recorded webinar |
46
- | `event` | Ticketed event |
47
- | `listing` | Platform listing (newsletter, community, etc.) |
48
- | `sponsorship` | Sponsor slot with billing_interval |
49
- | `service` | Custom or on-demand service |
50
-
51
- ## Composition Pattern
52
-
53
- Agents call each other. Example: `/ceo` calls `analyticsAgent.snapshot()` + `blogWriter.summary()` + `storeManager.storeOverview()`.
54
- NOVA calls BLAKE to draft posts. OTTO calls HERMES after publishing.
55
-
56
- Never call C-Suite methods inside Creator agents. Dependency direction: C-Suite → Growth → Creators.
@@ -1,52 +0,0 @@
1
- # Analytics Skill — Reading the Data
2
-
3
- ## How analytics columns work
4
-
5
- All analytics are stored as JSON in TEXT columns. Parse with JSON.parse().
6
-
7
- ### Time series arrays
8
-
9
- ```
10
- analytics_7d = [n, n, n, n, n, n, n] → last 7 days, oldest first
11
- analytics_30d = [n, n, ..., n] → last 30 days
12
- analytics_12m = [n, n, ..., n] → last 12 months
13
- analytics_24h = [n, n, ..., n] → last 24 hours (hourly)
14
- ```
15
-
16
- ### Lifetime object
17
-
18
- ```
19
- analytics_lifetime = { "2026-03": 142, "2026-04": 89, ... }
20
- revenue_lifetime = { "2026-03": 42000, "2026-04": 15000, ... }
21
- // values are counts (clicks) or cents (revenue)
22
- ```
23
-
24
- ### Breakdown objects (country, device, referrer)
25
-
26
- ```
27
- country_clicks = { "US": 420, "GB": 88, "IN": 45, ... }
28
- device_clicks = { "mobile": 312, "desktop": 201 }
29
- referrer_clicks = { "twitter.com": 88, "direct": 204, ... }
30
- ```
31
-
32
- ## Key metrics to surface in briefings
33
-
34
- **Traffic**: total_clicks, top country, top referrer, 30d trend (compare last 30d vs prior 30d)
35
- **Revenue**: total_earnings (cents → divide by 100), total_sales count, top product by revenue
36
- **Content**: posts published this month, drafts waiting, newsletter subscribers
37
- **Social**: posts published, scheduled, accounts connected
38
-
39
- ## Revenue trend calculation
40
-
41
- ```ts
42
- const months = Object.entries(revenue_lifetime).sort()
43
- const last = months.slice(-1)[0]?.[1] ?? 0
44
- const prior = months.slice(-2,-1)[0]?.[1] ?? 0
45
- const trend = prior > 0 ? ((last - prior) / prior * 100).toFixed(1) + '%' : 'N/A'
46
- ```
47
-
48
- ## Never write to analytics tables
49
-
50
- Analytics are updated by the app on user actions (clicks, purchases).
51
- Agents read analytics. The app writes analytics. Never reverse this.
52
- Exception: seed a product_analytics or link_analytics row when creating a new product/link.
@@ -1,452 +0,0 @@
1
- ---
2
- name: blog-write
3
- description: >
4
- Write new blog articles from scratch optimized for Google rankings and AI
5
- citations. Generates full articles with template selection, answer-first
6
- formatting, TL;DR box, information gain markers, citation capsules, sourced
7
- statistics, Pixabay/Unsplash images, built-in SVG chart generation, FAQ schema,
8
- internal linking zones, and proper heading hierarchy. Supports MDX, markdown,
9
- and HTML output.
10
- Use when user says "write blog", "new blog post", "create article",
11
- "write about", "draft blog", "generate blog post".
12
- allowed-tools:
13
- - Read
14
- - Write
15
- - Edit
16
- - Bash
17
- - Grep
18
- - Glob
19
- - WebFetch
20
- - WebSearch
21
- - Task
22
- ---
23
-
24
- # Blog Writer -- New Article Generation
25
-
26
- Writes complete blog articles from a topic, brief, or outline. Every article
27
- follows the 6 pillars of dual optimization (Google rankings + AI citations).
28
-
29
- **Key references:**
30
- - `references/content-templates.md` — Template selection guide and usage
31
- - `references/quality-scoring.md` — 5-category scoring (Content 30, SEO 25, E-E-A-T 15, Technical 15, AI Citation 15)
32
- - `references/eeat-signals.md` — Experience, expertise, authority, trust markers
33
- - `references/internal-linking.md` — Linking strategy and anchor text rules
34
- - `references/visual-media.md` — Image sourcing and chart styling
35
-
36
- ## Workflow
37
-
38
- ### Phase 1: Topic Understanding
39
-
40
- 1. **Clarify the topic** — If the user provides just a topic, ask:
41
- - Target audience (who is this for?)
42
- - Primary keyword / search intent
43
- - Desired word count (default: 2,000-2,500 words)
44
- - Platform/format (MDX, markdown, HTML — auto-detect if in a project)
45
- 2. **If a brief exists** — Load it and skip to Phase 1.5
46
-
47
- ### Phase 1.5: Template Selection
48
-
49
- Select the appropriate content template from the 12 templates in `blog/templates/`.
50
-
51
- 1. **Auto-detect content type** from the topic and search intent:
52
- | Signal | Template |
53
- |--------|----------|
54
- | "How to...", process, steps | `how-to-guide` |
55
- | "Best X", "Top N", list format | `listicle` |
56
- | Client result, before/after, metrics | `case-study` |
57
- | "X vs Y", comparison, alternatives | `comparison` |
58
- | Broad topic, comprehensive guide | `pillar-page` |
59
- | "Is X worth it", product evaluation | `product-review` |
60
- | Opinion, prediction, industry take | `thought-leadership` |
61
- | Expert quotes, multi-source collection | `roundup` |
62
- | Code walkthrough, tool demo, technical | `tutorial` |
63
- | Breaking news, algorithm update, event | `news-analysis` |
64
- | Survey results, experiment, original data | `data-research` |
65
- | Q&A, knowledge base, "What is X" | `faq-knowledge` |
66
-
67
- 2. **Load the matching template** — Read from `blog/templates/<type>.md`
68
- 3. **Adapt the outline** — Use the template's section structure, heading patterns,
69
- and word count guidance to shape Phase 3's outline
70
- 4. **Fallback** — If no template clearly fits, use the generic outline structure
71
- in Phase 3 below. Inform the user which template was selected (or that none matched).
72
-
73
- See `references/content-templates.md` for detailed selection criteria and intent mapping.
74
-
75
- ### Phase 2: Research
76
-
77
- Spawn a `blog-researcher` agent (or do inline research with WebSearch):
78
-
79
- 1. **Find 8-12 current statistics** (2025-2026 data preferred)
80
- - Search: `[topic] study 2025 2026 data statistics`
81
- - Prioritize tier 1-3 sources (see `references/quality-scoring.md`)
82
- - Record: statistic, source name, URL, date, methodology
83
- 2. **Find a cover image** (wide, high-quality, topic-relevant):
84
- - Search: `site:pixabay.com [topic] wide banner` (preferred)
85
- - Alternative: `site:unsplash.com [topic] wide`
86
- - Fallback: `site:pexels.com [topic] wide banner`
87
- - Target dimensions: 1200x630 (OG-compatible) or 1920x1080
88
- - Or generate a custom SVG cover via `blog-chart` (text-on-gradient with key stat)
89
- - See `references/visual-media.md` for cover image sizing details
90
- 3. **Find 3-5 inline images** from open-source platforms:
91
- - **Pixabay** (preferred): Search `site:pixabay.com [topic keywords]`
92
- - Extract image URL from page
93
- - Direct URLs: `https://cdn.pixabay.com/photo/YYYY/MM/DD/HH/MM/filename.jpg`
94
- - Verify with `curl -sI "<url>" | head -1` returns HTTP 200
95
- - **Unsplash** (alternative): Search `site:unsplash.com [topic keywords]`
96
- - Build URL: `https://images.unsplash.com/photo-<id>?w=1200&h=630&fit=crop&q=80`
97
- - **Pexels** (fallback): Search `site:pexels.com [topic keywords]`
98
- 4. **Plan 2-4 data visualizations** from researched statistics
99
- - Select diverse chart types (see `references/visual-media.md`)
100
- - Map data points to chart formats
101
-
102
- ### Phase 3: Outline Generation
103
-
104
- Create a structured outline before writing. If a template was loaded in Phase 1.5,
105
- adapt this skeleton to match the template's section structure:
106
-
107
- ```
108
- # [Title as Question — Include Primary Keyword]
109
-
110
- ## Introduction (100-150 words)
111
- - Hook with surprising statistic
112
- - Problem/opportunity statement
113
- - What the reader will learn
114
-
115
- > **TL;DR:** [40-60 word standalone summary — placeholder]
116
-
117
- ## H2: [Question Format] (300-400 words)
118
- - Answer-first paragraph (40-60 words with stat + source)
119
- - Supporting evidence
120
- - [Image placement]
121
- - Practical advice
122
- - [CITATION CAPSULE placeholder]
123
- - [INTERNAL-LINK: anchor text → target description]
124
-
125
- ## H2: [Question Format] (300-400 words)
126
- - Answer-first paragraph
127
- - [Chart: type + data description]
128
- - Analysis and implications
129
- - [CITATION CAPSULE placeholder]
130
- - [INTERNAL-LINK: anchor text → target description]
131
-
132
- ## H2: [Statement for Variety] (300-400 words)
133
- - Answer-first paragraph
134
- - Real-world example or case study
135
- - [Image placement]
136
- - [CITATION CAPSULE placeholder]
137
-
138
- ## H2: [Question Format] (300-400 words)
139
- - Answer-first paragraph
140
- - [Chart: type + data description]
141
- - Step-by-step guidance
142
- - [CITATION CAPSULE placeholder]
143
- - [INTERNAL-LINK: anchor text → target description]
144
-
145
- ## H2: [Question Format] (200-300 words)
146
- - Answer-first paragraph
147
- - Forward-looking analysis
148
-
149
- ## FAQ Section (3-5 questions, 40-60 words each answer)
150
- - [INTERNAL-LINK: anchor text → detailed content]
151
-
152
- ## Conclusion (100-150 words)
153
- - Key takeaways (bulleted)
154
- - Call to action
155
- - [INTERNAL-LINK: anchor text → next logical content]
156
- ```
157
-
158
- Present the outline to the user for approval before writing.
159
-
160
- ### Phase 4: Chart Generation (Built-In)
161
-
162
- When the researcher identifies chart-worthy data (3+ comparable metrics, trend data,
163
- before/after comparisons):
164
-
165
- 1. Select chart type using the diversity rule (no repeated types per post)
166
- 2. Invoke `blog-chart` sub-skill with: chart type, title, data values, source, platform format
167
- 3. Embed the returned SVG directly in the post within a `<figure>` wrapper
168
- 4. Target 2-4 charts per 2,000-word post
169
- 5. Distribute charts evenly — never cluster them
170
-
171
- See `references/visual-media.md` for chart type selection and styling rules.
172
-
173
- ### Phase 5: Content Writing
174
-
175
- Write the full article following these rules:
176
-
177
- #### 5a. Frontmatter
178
- ```yaml
179
- ---
180
- title: "[Question-format title with primary keyword]"
181
- description: "[Fact-dense, 150-160 chars, includes 1 statistic]"
182
- coverImage: "[URL from Pixabay/Unsplash/Pexels or generated SVG path]"
183
- coverImageAlt: "[Descriptive sentence about the cover image]"
184
- ogImage: "[Same as coverImage, or custom OG image URL]"
185
- date: "YYYY-MM-DD"
186
- lastUpdated: "YYYY-MM-DD"
187
- author: "[Author name]"
188
- tags: ["keyword1", "keyword2", "keyword3"]
189
- ---
190
- ```
191
-
192
- If the platform uses a different field name (e.g., `image`, `hero`, `thumbnail`),
193
- adapt to match the project's existing frontmatter convention.
194
-
195
- #### 5b. TL;DR Box
196
-
197
- Immediately after the introduction (before the first H2 body section), add a TL;DR box:
198
-
199
- ```markdown
200
- > **TL;DR:** [40-60 word standalone summary that makes sense without reading the
201
- > full article. Contains the key finding or recommendation plus 1 statistic with
202
- > source attribution. Reader should get the core value from this alone.]
203
- ```
204
-
205
- Requirements:
206
- - 40-60 words, no more
207
- - Must be self-contained — understandable without reading the article
208
- - Include 1 specific statistic with source name
209
- - State the key finding, recommendation, or answer
210
- - Place as a blockquote directly after the introduction paragraph
211
-
212
- #### 5c. Answer-First Formatting (Critical)
213
- Every H2 section MUST open with a 40-60 word paragraph containing:
214
- - At least one specific statistic with source attribution
215
- - A direct answer to the heading's implicit question
216
-
217
- Pattern:
218
- ```markdown
219
- ## How Does X Impact Y in 2026?
220
-
221
- [Stat from source] ([Source Name](url), year). [Direct answer to the heading
222
- question in 1-2 more sentences, explaining the implication and what this means
223
- for the reader.]
224
- ```
225
-
226
- #### 5d. Information Gain Markers
227
-
228
- Distribute at least 2-3 information gain markers throughout the article. These
229
- signal to search engines and AI systems that the content contains original value
230
- not available elsewhere.
231
-
232
- Tag each with a comment or visible marker:
233
-
234
- - `[ORIGINAL DATA]` — Proprietary surveys, experiments, A/B test results, case
235
- study metrics the author collected first-hand
236
- - `[PERSONAL EXPERIENCE]` — First-hand observations, lessons learned from direct
237
- involvement, "when we tried X, Y happened" narratives
238
- - `[UNIQUE INSIGHT]` — Analysis others haven't made, contrarian perspectives
239
- backed by data, novel connections between existing research
240
-
241
- Placement:
242
- - Weave into the body text naturally
243
- - Use as inline comments: `<!-- [ORIGINAL DATA] -->` before the relevant paragraph
244
- - Or as visible callouts if the format supports it:
245
- ```markdown
246
- > **Our finding:** [original observation backed by specific data]
247
- ```
248
- - Minimum 2 per post, target 3 for comprehensive articles
249
-
250
- These markers map directly to the "Originality/unique value markers" criterion
251
- in the Content Quality scoring category (see `references/quality-scoring.md`).
252
-
253
- #### 5e. Citation Capsules
254
-
255
- For each major H2 section, generate a citation capsule — a 40-60 word self-contained
256
- passage designed so AI systems can extract and quote it directly.
257
-
258
- Requirements per capsule:
259
- - 40-60 words, self-contained (makes sense in isolation)
260
- - Contains: one specific claim + one data point + source attribution
261
- - Written in a declarative, quotable style
262
- - Placed within the H2 section body (not as a separate block)
263
-
264
- Example:
265
- ```markdown
266
- According to a 2026 Gartner study, 58% of enterprise buyers now consult AI
267
- assistants before contacting a vendor ([Gartner](https://www.gartner.com), 2026).
268
- This shift means B2B content must answer specific questions concisely enough
269
- for AI systems to extract and cite in their responses.
270
- ```
271
-
272
- Capsules map to the "AI Citation Readiness" scoring category (15 points) in
273
- `references/quality-scoring.md`.
274
-
275
- #### 5f. Internal Linking Zones
276
-
277
- Mark internal linking opportunities throughout the article using placeholder
278
- notation. The user (or a follow-up pass) will resolve these to actual URLs.
279
-
280
- Zone placement:
281
- - **Introduction** — Link to related pillar content or topic hub
282
- - **Each H2 section** — Link to supporting articles, deeper dives, related tools
283
- - **FAQ section** — Link answers to detailed content that expands on the answer
284
- - **Conclusion** — Link to the next logical piece of content the reader should consume
285
-
286
- Format:
287
- ```markdown
288
- [INTERNAL-LINK: anchor text → target description]
289
- ```
290
-
291
- Example:
292
- ```markdown
293
- For a deeper dive into keyword clustering, see our
294
- [INTERNAL-LINK: complete guide to keyword clustering → pillar page on keyword research methodology].
295
- ```
296
-
297
- Target 5-10 internal link zones per 2,000-word post. Use descriptive anchor text
298
- (never "click here" or "read more"). See `references/internal-linking.md` for
299
- anchor text rules and linking strategy.
300
-
301
- #### 5g. Paragraph Rules
302
- - Every paragraph: 40-80 words (never exceed 150)
303
- - Every sentence: max 15-20 words
304
- - Start each paragraph with the most important information
305
- - Target Flesch Reading Ease: 60-70
306
-
307
- #### 5h. Heading Rules
308
- - One H1 (title only)
309
- - H2s for main sections (60-70% as questions)
310
- - H3s for subsections only — never skip levels
311
- - Include primary keyword naturally in 2-3 headings
312
-
313
- #### 5i. Image Embedding
314
-
315
- Standard markdown:
316
- ```markdown
317
- ![Descriptive alt text — topic keywords naturally](https://cdn.pixabay.com/photo/...)
318
- ```
319
-
320
- MDX with Next.js Image (if detected):
321
- ```mdx
322
- ![Descriptive alt text — topic keywords naturally](https://cdn.pixabay.com/photo/...)
323
- ```
324
-
325
- - Place images after H2 headings, before body text
326
- - Space evenly throughout the post (not clustered)
327
- - Alt text should be a full descriptive sentence
328
-
329
- #### 5j. Chart Embedding
330
-
331
- Standard markdown/HTML:
332
- ```html
333
- <figure>
334
- <svg viewBox="0 0 560 380" ...>...</svg>
335
- <figcaption>Source: [Source Name], [Year]</figcaption>
336
- </figure>
337
- ```
338
-
339
- MDX format:
340
- ```mdx
341
- <figure className="chart-container" style={{margin: '2.5rem 0', textAlign: 'center', padding: '1.5rem', borderRadius: '12px'}}>
342
- <svg viewBox="0 0 560 380" ...>...</svg>
343
- </figure>
344
- ```
345
-
346
- #### 5k. Citation Format
347
- Inline attribution (always):
348
- ```markdown
349
- Organic CTR declined 61% with AI Overviews ([Seer Interactive](https://www.seerinteractive.com/), 2025).
350
- ```
351
-
352
- #### 5l. FAQ Section
353
- Add 3-5 FAQ items with 40-60 word answers. Each answer must contain a statistic.
354
-
355
- For MDX with FAQSchema component:
356
- ```mdx
357
- <FAQSchema faqs={[
358
- { question: "Question?", answer: "40-60 word answer with statistic and source." },
359
- ]} />
360
- ```
361
-
362
- For standard markdown:
363
- ```markdown
364
- ## Frequently Asked Questions
365
-
366
- ### Question text here?
367
-
368
- Answer with statistic and source attribution (40-60 words).
369
- ```
370
-
371
- #### 5m. Internal Linking
372
- - 5-10 internal links per 2,000-word post
373
- - Link to relevant existing content naturally
374
- - Use descriptive anchor text (not "click here")
375
-
376
- ### Phase 6: Quality Check
377
-
378
- Before delivering, verify:
379
-
380
- #### Structure and Content
381
- 1. Every H2 opens with a statistic + source
382
- 2. No paragraph exceeds 150 words
383
- 3. All statistics have named tier 1-3 sources
384
- 4. 2-4 charts with type diversity
385
- 5. 3-5 inline images with descriptive alt text
386
- 6. Cover image present in frontmatter (coverImage + ogImage)
387
- 7. FAQ section present with 3-5 items
388
- 8. Heading hierarchy is clean (H1 -> H2 -> H3)
389
- 9. Meta description is 150-160 chars with a stat
390
-
391
- #### New Element Verification
392
- 10. TL;DR box present after introduction (40-60 words, contains statistic + source)
393
- 11. At least 2-3 information gain markers (`[ORIGINAL DATA]`, `[PERSONAL EXPERIENCE]`, or `[UNIQUE INSIGHT]`)
394
- 12. Citation capsules present in major H2 sections (40-60 words, self-contained, quotable)
395
- 13. Internal linking zones marked in introduction, H2 sections, FAQ, and conclusion
396
- 14. No AI-detectable phrases from banned list (see `agents/blog-writer.md`)
397
-
398
- #### Burstiness and Naturalness Check
399
- 15. **Sentence length variance** — Verify a mix of short (8-word) and long (25-word) sentences. Uniform sentence length signals AI authorship.
400
- 16. **Banned AI phrase scan** — Check for and remove:
401
- - "in today's digital landscape", "it's important to note", "dive into"
402
- - "game-changer", "navigate the landscape", "revolutionize", "seamlessly"
403
- - "cutting-edge", "harness the power of", "leverage" (as verb)
404
- - "delve", "crucial", "elevate", "foster", "landscape" (overused)
405
- - "multifaceted", "robust", "tapestry", "embark"
406
- - Full list in `agents/blog-writer.md`
407
- 17. **Contractions** — Verify natural use of contractions ("it's", "we've", "don't", "isn't"). Formal AI prose avoids contractions; natural writing uses them.
408
- 18. **Rhetorical questions** — Verify at least one rhetorical question every 200-300 words to break up declarative patterns.
409
-
410
- ### Phase 7: Delivery
411
-
412
- Present the completed article with a summary:
413
-
414
- ```
415
- ## Blog Post Complete: [Title]
416
-
417
- ### Template Used
418
- - [Template name] (or "generic outline — no template matched")
419
-
420
- ### Statistics
421
- - [N] sourced statistics from tier 1-3 sources
422
- - [N] unique sources cited
423
-
424
- ### Visual Elements
425
- - Cover image: [source — Pixabay/Unsplash/Pexels or generated SVG]
426
- - [N] inline images (Pixabay/Unsplash/Pexels)
427
- - [N] SVG charts (types: bar, lollipop, donut, line)
428
-
429
- ### Dual-Optimization Elements
430
- - TL;DR box: present (N words)
431
- - Information gain markers: [N] ([types used])
432
- - Citation capsules: [N] across H2 sections
433
- - Internal linking zones: [N] marked
434
-
435
- ### Structure
436
- - [N] H2 sections with answer-first formatting
437
- - [N] FAQ items with schema
438
- - Word count: ~[N] words
439
- - Estimated reading time: [N] min
440
-
441
- ### Naturalness
442
- - Sentence length variance: [pass/fail]
443
- - AI phrase scan: [pass/fail]
444
- - Contractions used: [yes/no]
445
- - Rhetorical questions: [N] (target: 1 per 200-300 words)
446
-
447
- ### Next Steps
448
- - Review and customize for your brand voice
449
- - Resolve [INTERNAL-LINK] placeholders with actual URLs
450
- - Add internal links to your existing content
451
- - Run `/blog analyze <file>` to verify quality score
452
- ```
@@ -1,25 +0,0 @@
1
- ---
2
- name: ceo
3
- version: 1.0.0
4
- type: specialty
5
- load_when: weekly briefing, business overview, pending approvals, revenue pulse, priorities
6
- description: Run the CEO agent — weekly business briefing, pending approvals, revenue pulse, priorities.
7
- ---
8
-
9
- Run the CEO agent for this BusinessKit business.
10
-
11
- Load HEARTBEAT.md for current business state (one read, no extra DB calls).
12
- Check agent_memory for last session context.
13
- Load context/business.md only if doing strategic planning.
14
-
15
- Deliver:
16
-
17
- 1. Revenue and subscriber pulse (from HEARTBEAT snapshot)
18
- 2. Pending approvals that need owner decision
19
- 3. Top 3 priorities for this week
20
- 4. Any flags or issues
21
-
22
- Push a briefing to agent_reports when done.
23
- Log to agent_memory.
24
-
25
- See: agents/csuite/ceo.ts for full implementation.
@@ -1,8 +0,0 @@
1
- ---
2
- name: cmo
3
- version: 1.0.0
4
- type: function
5
- load_when: CMO — marketing strategy, content calendar, growth planning
6
- ---
7
-
8
- See .claude/commands/cmo.md for full implementation.
@@ -1,45 +0,0 @@
1
- # Schema — Table Reference
2
-
3
- ## Content tables (all share: id, profile_id, user_id, slug, title, content, excerpt, published, hidden, collection_id, created_at, updated_at)
4
-
5
- | Table | Route | Use |
6
- |---|---|---|
7
- | `posts` | /blog | Blog: listicle, how-to, checklist, qa, versus, roundup, news, ultimate-guide |
8
- | `newsletter` | /newsletter | Email newsletter issues |
9
- | `notes` | /notes | Short-form notes |
10
- | `guides` | /guides | Long-form step-by-step guides |
11
- | `compare` | /compare | "X vs Y" programmatic SEO |
12
- | `alternative` | /alternative | "Best alternatives to X" |
13
- | `prompt` | /prompt | Prompt library articles |
14
- | `skills` | /skills | Published skill articles |
15
-
16
- posts extras: seo_title (≤60), seo_description (≤160), seo_keywords, content_type, word_count, reading_time_mins, internal_links JSON, sources JSON
17
-
18
- ## Products
19
- type: download|course|meeting|webinar|event|listing|sponsorship|service
20
- cols: price_cents, sale_price_cents, slug UNIQUE, published, hidden, lessons JSON, calendar_link, webinar_link, file_url
21
-
22
- ## CRM (crm.ts)
23
- crm_contacts: lead_score 0-100, icp_match (strong|moderate|weak|unknown), outreach_status, agent_status (pending→researching→enriched→outreach_ready→closed), agent_context JSON, auto_approve INT, suggested_dm, email_draft
24
- crm_activities: type, direction (inbound|outbound), sender (agent|you|contact), body, approval_status (pending|approved|auto_sent|rejected)
25
- crm_deals: contact_id, title, value_cents, stage (new|contacted|proposal|negotiation|won|lost)
26
- crm_analytics: DB triggers keep this in sync — never update manually
27
-
28
- ## Social (social.ts)
29
- social_accounts: platform, connection_mode (zernio_byok|zernio_platform|direct|n8n), zernio_account_id
30
- social_posts: content, status, scheduled_for, scheduled_via, zernio_post_id
31
- social_post_platforms: one row per platform per post, platform_post_id indexed
32
- social_inbox: type (dm|comment|review), status (unread|read|replied|archived), crm_contact_id FK
33
-
34
- ## Memory
35
- memory_log: rolling 20 rows per profile — auto-trimmed
36
- agent_skills: UNIQUE(profile_id,slug) — upsert safe
37
-
38
- ## Analytics — READ ONLY, never write
39
- profile_analytics: total_clicks, analytics_7d/30d/12m/lifetime JSON, revenue_30d/12m/lifetime JSON
40
- product_analytics: total_sales, total_revenue_cents, sales_30d JSON
41
-
42
- ## ID and timestamp rules
43
- IDs: ulid() for most | omit id for doc_collections, doc_articles (AUTOINCREMENT)
44
- INT cols: now() = Math.floor(Date.now()/1000)
45
- TEXT cols (posts, jobs, forms, docs): iso() = new Date().toISOString().slice(0,19)+'Z'