@businesskit/agent 1.0.4 → 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.
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +25 -0
- package/.cursorrules +10 -0
- package/.superconsole-plugin/plugin.json +32 -0
- package/AGENTS.md +94 -63
- package/CLAUDE.md +11 -84
- package/GEMINI.md +11 -34
- package/README.md +106 -153
- package/assets/logo.svg +3 -0
- package/bin/businesskit.js +11 -17
- package/commands/add-contact.md +47 -0
- package/commands/add-inventory-from-invoice.md +80 -0
- package/commands/adjust-stock.md +46 -0
- package/commands/capabilities.md +33 -0
- package/commands/check-stock.md +43 -0
- package/commands/create-component.md +109 -0
- package/commands/create-invoice.md +69 -0
- package/commands/create-new-bill.md +65 -0
- package/commands/create-page.md +96 -0
- package/commands/list-components.md +41 -0
- package/commands/list-content.md +46 -0
- package/commands/list-pages.md +45 -0
- package/commands/publish-page.md +64 -0
- package/commands/send-invoice.md +42 -0
- package/commands/seo-audit.md +36 -0
- package/commands/update-contact.md +46 -0
- package/commands/update-content.md +47 -0
- package/commands/update-page.md +55 -0
- package/commands/update-price.md +47 -0
- package/commands/write-blog.md +52 -0
- package/commands/write-docs.md +84 -0
- package/commands/write-guide.md +46 -0
- package/commands/write-newsletter.md +46 -0
- package/mcp_config.json +8 -0
- package/package.json +34 -23
- package/plugin.json +32 -0
- package/scripts/setup.sh +134 -0
- package/scripts/setup.ts +92 -0
- package/server.json +21 -0
- package/skills/README.md +19 -27
- package/skills/billing/SKILL.md +64 -0
- package/skills/brand/SKILL.md +30 -86
- package/skills/copywriting/SKILL.md +1 -1
- package/skills/crm/SKILL.md +38 -0
- package/skills/docs-cms/SKILL.md +53 -0
- package/skills/docs-cms/references/how-to.md +383 -0
- package/skills/inbox/SKILL.md +49 -0
- package/skills/inventory/SKILL.md +69 -0
- package/skills/pages/SKILL.md +169 -0
- package/skills/pages/references/sections-catalog.json +950 -0
- package/skills/social/SKILL.md +1 -1
- package/templates/antigravity.json +8 -0
- package/templates/claude-code.mcp.json +8 -0
- package/templates/cursor.mcp.json +8 -0
- package/templates/vscode.mcp.json +9 -0
- package/.claude/commands/analytics.md +0 -7
- package/.claude/commands/blog-writer.md +0 -9
- package/.claude/commands/cbo.md +0 -7
- package/.claude/commands/ceo.md +0 -10
- package/.claude/commands/cmo.md +0 -7
- package/.claude/commands/compress.md +0 -73
- package/.claude/commands/coo.md +0 -11
- package/.claude/commands/copywriter.md +0 -15
- package/.claude/commands/course-creator.md +0 -9
- package/.claude/commands/crm.md +0 -591
- package/.claude/commands/deep.md +0 -50
- package/.claude/commands/docs-writer.md +0 -8
- package/.claude/commands/forms-builder.md +0 -10
- package/.claude/commands/ingest.md +0 -110
- package/.claude/commands/jobs-manager.md +0 -8
- package/.claude/commands/kb.md +0 -107
- package/.claude/commands/newsletter-writer.md +0 -9
- package/.claude/commands/preserve.md +0 -64
- package/.claude/commands/resume.md +0 -67
- package/.claude/commands/scheduler.md +0 -8
- package/.claude/commands/seo.md +0 -60
- package/.claude/commands/social.md +0 -51
- package/.claude/commands/store-manager.md +0 -11
- package/.claude/settings.json +0 -16
- package/.claude/settings.local.json +0 -11
- package/.env.example +0 -12
- package/.mcp.json +0 -3
- package/HEARTBEAT.md +0 -105
- package/PLAN.md +0 -345
- package/PRD-Agent-Composition.md +0 -149
- package/PRD-Agent-Harness.md +0 -316
- package/REFERENCE.md +0 -160
- package/SOUL.md +0 -148
- package/SYSTEM.md +0 -71
- package/agents/_base.ts +0 -371
- package/agents/analytics/SOUL.md +0 -11
- package/agents/analytics/analytics.ts +0 -405
- package/agents/business/SOUL.md +0 -11
- package/agents/business/business.ts +0 -109
- package/agents/ceo/SOUL.md +0 -15
- package/agents/ceo/ceo.ts +0 -146
- package/agents/content/SOUL.md +0 -11
- package/agents/content/content.ts +0 -379
- package/agents/copywriting/SOUL.md +0 -11
- package/agents/copywriting/copywriting.ts +0 -89
- package/agents/courses/SOUL.md +0 -11
- package/agents/courses/courses.ts +0 -451
- package/agents/docs/SOUL.md +0 -11
- package/agents/docs/docs.ts +0 -77
- package/agents/forms/SOUL.md +0 -11
- package/agents/forms/forms.ts +0 -364
- package/agents/hiring/SOUL.md +0 -11
- package/agents/hiring/hiring.ts +0 -314
- package/agents/marketing/SOUL.md +0 -15
- package/agents/marketing/marketing.ts +0 -109
- package/agents/newsletter/SOUL.md +0 -11
- package/agents/newsletter/newsletter.ts +0 -91
- package/agents/operations/SOUL.md +0 -11
- package/agents/operations/operations.ts +0 -157
- package/agents/sales/SOUL.md +0 -44
- package/agents/sales/sales.ts +0 -883
- package/agents/scheduler/SOUL.md +0 -11
- package/agents/scheduler/scheduler.ts +0 -68
- package/agents/seo/SOUL.md +0 -11
- package/agents/seo/seo.ts +0 -288
- package/agents/social/SOUL.md +0 -11
- package/agents/social/social.ts +0 -744
- package/agents/store/SOUL.md +0 -11
- package/agents/store/store.ts +0 -514
- package/cli.ts +0 -144
- package/context/about-me.md +0 -96
- package/context/brand-voice.md +0 -127
- package/context/brand.md +0 -80
- package/context/business.md +0 -66
- package/context/working-style.md +0 -87
- package/lib/analytics.ts +0 -81
- package/lib/cms.ts +0 -88
- package/lib/db.adapter.ts +0 -30
- package/lib/db.ts +0 -63
- package/lib/enums.ts +0 -25
- package/lib/groups.ts +0 -122
- package/lib/id.ts +0 -43
- package/lib/kb.ts +0 -337
- package/lib/memory.ts +0 -219
- package/lib/pattern-detector.ts +0 -169
- package/lib/profile.ts +0 -155
- package/lib/schema.ts +0 -2015
- package/lib/slug.ts +0 -30
- package/lib/validate.ts +0 -33
- package/setup.ts +0 -141
- package/skills/agents/SKILL.md +0 -56
- package/skills/analytics/SKILL.md +0 -52
- package/skills/blog-writer/SKILL.md +0 -452
- package/skills/ceo/SKILL.md +0 -25
- package/skills/cmo/SKILL.md +0 -8
- package/skills/schema/SKILL.md +0 -86
- package/skills/store/SKILL.md +0 -62
- package/tsconfig.json +0 -14
|
@@ -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
|
-

|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
MDX with Next.js Image (if detected):
|
|
321
|
-
```mdx
|
|
322
|
-

|
|
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
|
-
```
|
package/skills/ceo/SKILL.md
DELETED
|
@@ -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.
|
package/skills/cmo/SKILL.md
DELETED
package/skills/schema/SKILL.md
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# Schema — Table Reference
|
|
2
|
-
|
|
3
|
-
## Content — ONE unified table
|
|
4
|
-
|
|
5
|
-
All user-facing content (blog, notes, guides, newsletter, compare, alternative, prompt, skills) lives in a single `content` table. The "type" is encoded via `cms_id` → `cms.category_id`:
|
|
6
|
-
|
|
7
|
-
| Kind | Route | cms.category_id |
|
|
8
|
-
|---|---|---|
|
|
9
|
-
| blog | /blog | cat_35 |
|
|
10
|
-
| notes | /notes | cat_37 |
|
|
11
|
-
| guides | /guides | cat_36 |
|
|
12
|
-
| newsletter | /n | cat_20 |
|
|
13
|
-
| compare | /compare | cat_40 |
|
|
14
|
-
| alternative | /alternative | cat_41 |
|
|
15
|
-
| prompt | /prompt | cat_39 |
|
|
16
|
-
| skills | /skills | cat_38 |
|
|
17
|
-
|
|
18
|
-
`content` shared cols: id, cms_id, category_id, profile_id, user_id, slug, title, content, excerpt, published, hidden, collection_id, seo_title (≤60), seo_description (≤160), seo_keywords, word_count, reading_time_mins, internal_links (int), sources JSON, created_at, updated_at.
|
|
19
|
-
|
|
20
|
-
Use `getCmsId(profileId, kind)` from `agents/content/content.ts` to resolve cms_id. Writes are unique per `(profile_id, category_id, slug)`.
|
|
21
|
-
|
|
22
|
-
## Docs — separate, AUTOINCREMENT ids
|
|
23
|
-
`doc_collections` + `doc_articles` — knowledge base. `id INTEGER PRIMARY KEY AUTOINCREMENT`, so omit id on INSERT.
|
|
24
|
-
|
|
25
|
-
## Products
|
|
26
|
-
type: download|course|meeting|webinar|event|listing|sponsorship|service
|
|
27
|
-
cols: price_cents, sale_price_cents, slug UNIQUE, published, hidden, lessons JSON, calendar_link, webinar_link, file_url
|
|
28
|
-
|
|
29
|
-
## CRM (crm.ts)
|
|
30
|
-
crm_contacts: status (lead|prospect|customer|churned|archived), 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
|
|
31
|
-
crm_activities: type, direction (inbound|outbound), sender (agent|you|contact), body, approval_status (pending_approval|approved|auto_sent|rejected) — APPEND-ONLY, never UPDATE
|
|
32
|
-
crm_deals: contact_id, title, value_cents, stage (new|contacted|proposal|negotiation|won|lost), probability 0-100
|
|
33
|
-
crm_analytics: DB triggers keep this in sync — never update manually
|
|
34
|
-
crm_groups: membership via crm_contact_groups junction — use lib/groups.ts, never LIKE '%grp_x%'
|
|
35
|
-
|
|
36
|
-
## Social (social.ts)
|
|
37
|
-
social_accounts: platform, connection_mode (zernio_byok|zernio_platform|direct|n8n), zernio_account_id
|
|
38
|
-
social_posts: content, status, scheduled_for, scheduled_via, zernio_post_id
|
|
39
|
-
social_post_platforms: one row per platform per post, platform_post_id indexed
|
|
40
|
-
social_inbox: type (dm|comment|review), status (unread|read|replied|archived), crm_contact_id FK
|
|
41
|
-
|
|
42
|
-
## Memory
|
|
43
|
-
memory_log: rolling 20 rows per profile — auto-trimmed
|
|
44
|
-
agent_skills: UNIQUE(profile_id,slug) — upsert safe
|
|
45
|
-
|
|
46
|
-
## Analytics — READ ONLY, never write
|
|
47
|
-
Maintained by DB triggers (scalar counters) + app-side lazy aggregation (JSON breakdowns). JSON rebuilt on dashboard page visit with `last_aggregated_at` throttle — agents MUST NOT rebuild. If stale, surface a note to the user.
|
|
48
|
-
|
|
49
|
-
- profile_analytics: total_clicks, total_views, bot_views, analytics_7d/30d/12m/lifetime JSON, revenue_* JSON
|
|
50
|
-
- content_analytics (1/row): bot_views, total_views, total_reactions, total_comments, views_7d/30d/12m/lifetime, *_breakdown JSON
|
|
51
|
-
- cms_analytics (1/cms-page): total_posts, total_draft, total_published, total_views, … (maintained by trg_content_insert/update/delete + trg_content_view_insert)
|
|
52
|
-
- doc_analytics (1/doc): views, sad/neutral/happy votes, *_breakdown
|
|
53
|
-
- product_analytics: total_sales, total_revenue_cents, sales_30d JSON
|
|
54
|
-
- crm_analytics (1/profile): scalar counters by 13 triggers; JSON breakdowns aggregated on CRM dashboard visit
|
|
55
|
-
|
|
56
|
-
## ID and timestamp rules
|
|
57
|
-
IDs: ulid() for most | omit id for doc_collections, doc_articles (AUTOINCREMENT)
|
|
58
|
-
INT cols: now() = Math.floor(Date.now()/1000)
|
|
59
|
-
TEXT cols (posts, jobs, forms, docs): iso() = new Date().toISOString().slice(0,19)+'Z'
|
|
60
|
-
|
|
61
|
-
## Status enums — source of truth: lib/enums.ts (never literal)
|
|
62
|
-
|
|
63
|
-
| Column | Values |
|
|
64
|
-
|---|---|
|
|
65
|
-
| crm_contacts.status | lead, prospect, customer, churned, archived |
|
|
66
|
-
| crm_activities.approval_status | pending_approval, approved, rejected, auto_sent |
|
|
67
|
-
| crm_deals.stage | new, contacted, proposal, negotiation, won, lost |
|
|
68
|
-
| social_posts.status | draft, scheduled, queued, publishing, published, failed, cancelled |
|
|
69
|
-
| agent_notes.status | inbox, processing, done, archived |
|
|
70
|
-
| agent_tasks.status | pending, active, running, done, paused, failed, cancelled |
|
|
71
|
-
| agent_kb.entry_type | entity, concept, source, synthesis, index |
|
|
72
|
-
| community_posts.status | published, removed, pending |
|
|
73
|
-
| email_tracking_events.type | delivered, opened, clicked, bounced, complained, failed |
|
|
74
|
-
| affiliate_commissions.status | pending, approved, paid, void |
|
|
75
|
-
|
|
76
|
-
## Numeric bounds — use lib/validate.ts helpers
|
|
77
|
-
lead_score, probability: 0-100 integer
|
|
78
|
-
*_cents: non-negative integer
|
|
79
|
-
hot_score: non-negative
|
|
80
|
-
|
|
81
|
-
## Append-only — never DELETE
|
|
82
|
-
crm_activities (DB blocks DELETE), agent_reports, email_events, clicks_analytics
|
|
83
|
-
crm_activities UPDATEs are allowed only on: approval_status (pending_approval→approved|rejected|auto_sent) and read_at. Never change body/type/direction — insert a correcting row instead.
|
|
84
|
-
|
|
85
|
-
## Soft-delete only — never hard DELETE
|
|
86
|
-
hidden=1 | archived=1 | status='archived'
|
package/skills/store/SKILL.md
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
# Store — Digital Commerce
|
|
2
|
-
|
|
3
|
-
All products live in the `products` table. `type` determines the product.
|
|
4
|
-
|
|
5
|
-
## Product Types
|
|
6
|
-
|
|
7
|
-
### `download` — Digital Files
|
|
8
|
-
Required: `title`, `price_cents`, `file_url`
|
|
9
|
-
Optional: `thumbnail_url`, `excerpt`, `description`
|
|
10
|
-
Use: PDF guides, video files, templates, software, ZIP bundles
|
|
11
|
-
|
|
12
|
-
### `course` — Online Courses (use SAGE agent)
|
|
13
|
-
Required: `title`, `price_cents`
|
|
14
|
-
Optional: `lessons` (JSON array), `thumbnail_url`, `duration_minutes`
|
|
15
|
-
Lesson shape: `{ id, title, content?, video_url?, duration_minutes?, position, free_preview? }`
|
|
16
|
-
Use SAGE for lesson management. LEO stores the product row.
|
|
17
|
-
|
|
18
|
-
### `meeting` — 1:1 Calls
|
|
19
|
-
Required: `title`, `price_cents`, `calendar_link`
|
|
20
|
-
Optional: `scheduling_provider` ('cal.com'|'calendly'|'tidycal'), `meeting_settings` (JSON)
|
|
21
|
-
Use: coaching sessions, consulting hours, office hours
|
|
22
|
-
|
|
23
|
-
### `webinar` — Webinars
|
|
24
|
-
Required: `title`, `price_cents`, `webinar_link`, `webinar_platform`
|
|
25
|
-
Optional: `webinar_schedule` (JSON: date, timezone, duration), `webinar_settings` (JSON)
|
|
26
|
-
Use: live workshops, recorded sessions with access control
|
|
27
|
-
|
|
28
|
-
### `event` — Events
|
|
29
|
-
Required: `title`, `price_cents`
|
|
30
|
-
Optional: `event_settings` (JSON: date, venue, capacity, ticket_types)
|
|
31
|
-
Use: conferences, workshops, meetups, virtual events
|
|
32
|
-
|
|
33
|
-
### `listing` — Platform Listings
|
|
34
|
-
Required: `title`, `price_cents`, `platform_name`
|
|
35
|
-
Optional: `platform_url`, `post_frequency` (e.g. '2x per week')
|
|
36
|
-
Use: newsletter sponsorships, podcast ads, community access
|
|
37
|
-
|
|
38
|
-
### `sponsorship` — Recurring Sponsorships
|
|
39
|
-
Required: `title`, `price_cents`, `billing_interval`
|
|
40
|
-
`billing_interval`: `'month'` | `'year'` | `'once'`
|
|
41
|
-
Optional: `features` (JSON array of what's included)
|
|
42
|
-
Use: recurring sponsor slots, brand partnerships
|
|
43
|
-
|
|
44
|
-
### `service` — Custom Services
|
|
45
|
-
Required: `title`, `price_cents`
|
|
46
|
-
Optional: `description`, `features`, `button_text`, `cta_button`
|
|
47
|
-
Use: design work, writing, strategy, development, audits
|
|
48
|
-
|
|
49
|
-
## Key Rules
|
|
50
|
-
|
|
51
|
-
- `price_cents`: always in smallest currency unit. $29 = `2900`, $9.99 = `999`
|
|
52
|
-
- `currency`: lowercase ISO code. Default `'usd'`
|
|
53
|
-
- `slug`: globally unique across all products (not just per-profile)
|
|
54
|
-
- `published=0`: draft. `published=1`: live. `hidden=1`: archived.
|
|
55
|
-
- `is_active=1`: always set on create. Set `0` only to temp disable without archiving.
|
|
56
|
-
- Seed `product_analytics` row on every create (INSERT OR IGNORE)
|
|
57
|
-
|
|
58
|
-
## Pricing Patterns
|
|
59
|
-
|
|
60
|
-
Free product: `price_cents=0`
|
|
61
|
-
Pay-what-you-want: set `price_cents` to minimum, note in description
|
|
62
|
-
Sale: set both `price_cents` (original) and `sale_price_cents` (discounted)
|
package/tsconfig.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "NodeNext",
|
|
5
|
-
"moduleResolution": "NodeNext",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"resolveJsonModule": true,
|
|
9
|
-
"allowImportingTsExtensions": true,
|
|
10
|
-
"noEmit": true
|
|
11
|
-
},
|
|
12
|
-
"include": ["**/*.ts"],
|
|
13
|
-
"exclude": ["node_modules", "dist"]
|
|
14
|
-
}
|