@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
@@ -0,0 +1,36 @@
1
+ ---
2
+ id: "cmd_seo_audit"
3
+ name: "SEO & Keyword Audit"
4
+ slash: "/seo-audit"
5
+ description: "Audit SEO titles, meta descriptions, keywords & headings on posts, docs, guides, or newsletters"
6
+ domain_tags: ["content"]
7
+ required_tools: ["content_list", "content_get", "content_update"]
8
+ ---
9
+
10
+ # SEO & Keyword Audit (`/seo-audit`)
11
+
12
+ Audit and optimize SEO titles, meta descriptions, search keywords, image alt tags, and heading hierarchy across published articles.
13
+
14
+ ## Available Tools
15
+ - `content_list(category_id?: string, content_type?: string)`: Scans articles for missing metadata.
16
+ - `content_get(id: string)`: Inspects full HTML and meta fields for a specific article.
17
+ - `content_update(id: string, seo_title?: string, seo_description?: string, seo_keywords?: string)`: Applies optimized SEO tags.
18
+
19
+ ## Accepted Arguments
20
+ - `/seo-audit` — Audits recent articles across all hubs.
21
+ - `/seo-audit docs` or `/seo-audit blog` — Audits a specific hub.
22
+ - `/seo-audit <article_id>` — In-depth audit of a single article.
23
+
24
+ ## SEO Audit Checklist
25
+ 1. **Title Length & Branding**: 50–60 characters, prefixed with brand or domain (e.g. `BusinessKit | ...`).
26
+ 2. **Meta Description**: 150–160 characters summarizing the article's core value proposition with a clear call to read.
27
+ 3. **Target Keywords**: 3–6 relevant comma-separated search phrases in `seo_keywords`.
28
+ 4. **Heading Hierarchy**: Ensure `body_html` starts with `<h2>`, followed by `<h3>` (no nested or extra `<h1>`).
29
+ 5. **Excerpt**: Concise 1–2 sentence summary for social cards and search snippets.
30
+
31
+ ## Execution Protocol
32
+ 1. Scan articles using `content_list`.
33
+ 2. Inspect individual article metadata via `content_get`.
34
+ 3. Report issues (e.g. "Missing meta description", "Title exceeds 60 chars", "Empty keywords").
35
+ 4. Propose recommended SEO metadata.
36
+ 5. Upon confirmation, execute `content_update` with the optimized fields.
@@ -0,0 +1,33 @@
1
+ ---
2
+ id: "cmd_update_agent"
3
+ name: "Update BusinessKit Agent"
4
+ slash: "/update-agent"
5
+ description: "Safely updates BusinessKit Agent to the latest upstream release while preserving user context, memory, and custom skills"
6
+ domain_tags: ["system", "maintenance"]
7
+ required_tools: []
8
+ ---
9
+
10
+ # Update BusinessKit Agent (`/update-agent`)
11
+
12
+ Fetches the latest skills, declarative slash commands, and rules from the canonical [businesskit-agent](https://github.com/businesskitai/businesskit-agent) repository, updating your workspace without removing your personalized business/brand context, memory logs, or custom skills.
13
+
14
+ ## Accepted Arguments
15
+ - `/update-agent`
16
+ - `/update`
17
+
18
+ ## How it works
19
+ 1. **Preserves Custom Context**: Snapshots `context/*.md` (`business.md`, `brand.md`, `brand-voice.md`) in memory before updating.
20
+ 2. **Pulls Latest Release**: Pulls the latest commits/tags from `https://github.com/businesskitai/businesskit-agent`.
21
+ 3. **Preserves Custom Skills**: Any untracked custom skills (e.g. `skills/my-skill/`) or custom commands (`commands/my-command.md`) are strictly untouched.
22
+ 4. **Restores User Context**: Restores your business details and tone settings.
23
+ 5. **Refreshes Config**: Regenerates `.mcp.json`, `.cursor/`, and `.gemini/` configurations.
24
+
25
+ ## Terminal Command
26
+ You can also run this command directly in your terminal at any time:
27
+ ```bash
28
+ npm run update
29
+ # or
30
+ npx @businesskit/agent update
31
+ # or
32
+ ./scripts/update.sh
33
+ ```
@@ -0,0 +1,46 @@
1
+ ---
2
+ id: "cmd_update_contact"
3
+ name: "Update Contact"
4
+ slash: "/update-contact"
5
+ description: "Update details, tags, or company info for a contact"
6
+ domain_tags: ["crm"]
7
+ required_tools: ["contact_update"]
8
+ ---
9
+
10
+ # Update Contact (`/update-contact`)
11
+
12
+ Modify profile details, contact information, phone, email, company, or tags for an existing CRM contact.
13
+
14
+ ## Available Tools
15
+ - `contact_update(contact_id: string, fields: object)`: Updates specific fields on a contact record.
16
+
17
+ ## Accepted Arguments
18
+ - `/update-contact <contact_id> email:new@example.com`
19
+ - `/update-contact ct_8a92b1f4 add tag "wholesale"`
20
+ - Natural language: `/update-contact Sarah Jenkins phone: +1-555-9999`
21
+
22
+ ## Execution Protocol
23
+
24
+ ### Step 1: Resolve Contact ID & Target Fields
25
+ 1. Identify `contact_id`. If user gives a name, search or match existing CRM contacts.
26
+ 2. Build `fields` object with only the keys that are changing:
27
+ - `email`
28
+ - `phone`
29
+ - `first_name` / `last_name`
30
+ - `tags` (JSON string or array)
31
+ - `company`
32
+
33
+ ### Step 2: Execute Update
34
+ Call `contact_update`:
35
+ ```json
36
+ {
37
+ "contact_id": "ct_8a92b1f4",
38
+ "fields": {
39
+ "phone": "+1-555-9999",
40
+ "tags": "[\"client\", \"wholesale\", \"vip\"]"
41
+ }
42
+ }
43
+ ```
44
+
45
+ ### Step 3: Confirmation
46
+ Display updated contact card showing previous vs new values.
@@ -0,0 +1,48 @@
1
+ ---
2
+ id: "cmd_update_content"
3
+ name: "Update Blog, Docs or Guide"
4
+ slash: "/update-content"
5
+ description: "Edit body, metadata, collection, or publish status on an existing post, doc, guide, or newsletter"
6
+ domain_tags: ["content"]
7
+ required_tools: ["content_get", "content_update", "content_list"]
8
+ ---
9
+
10
+ # Update Content (`/update-content`)
11
+
12
+ Fetch, revise, and update an existing post, documentation article, guide, or newsletter.
13
+
14
+ ## Available Tools
15
+ - `content_get(id: string)`: Retrieves current article body HTML, metadata, and status.
16
+ - `content_update(id: string, title?: string, body_html?: string, excerpt?: string, collection_id?: string, seo_title?: string, seo_description?: string, published?: boolean)`: Saves edits.
17
+ - `content_list(category_id?: string, content_type?: string)`: Discovers article IDs.
18
+
19
+ ## Accepted Arguments
20
+ - `/update-content <id>` e.g. `/update-content post_821`
21
+ - `/update-content <id> publish` to toggle an article live.
22
+ - Instructions: `/update-content post_821 add callout note about v2 migration`
23
+
24
+ ## Execution Protocol
25
+
26
+ ### Step 1: Fetch Existing Article
27
+ 1. Call `content_get(id: "<id>")` to load the current `body_html`, `title`, and collection metadata.
28
+ 2. If ID is unknown, call `content_list` to find matching articles by title.
29
+
30
+ ### Step 2: Apply Edits to HTML
31
+ - Preserve existing valid HTML elements and classes (`tech-callout`, `tech-steps`, `tech-accordion`).
32
+ - For supported HTML element syntax, consult [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md).
33
+ - Apply the user's specific requested changes (e.g. rewrite a paragraph, add a code block, fix typos).
34
+ - Keep pure semantic HTML — never insert raw Markdown syntax.
35
+
36
+ ### Step 3: Save Updates
37
+ Call `content_update`:
38
+ ```json
39
+ {
40
+ "id": "<article_id>",
41
+ "body_html": "<updated_html>",
42
+ "title": "<optional_title>",
43
+ "published": true
44
+ }
45
+ ```
46
+
47
+ ### Step 4: Confirmation
48
+ Output updated article title, slug, publish state, and preview link.
@@ -0,0 +1,56 @@
1
+ ---
2
+ id: "cmd_update_page"
3
+ name: "Update Website Page"
4
+ slash: "/update-page"
5
+ description: "Update sections, copy, or settings on an existing page"
6
+ domain_tags: ["pages"]
7
+ required_tools: ["page_get", "page_update", "page_list", "page_get_section_schema"]
8
+ ---
9
+
10
+ # Update Website Page (`/update-page`)
11
+
12
+ Fetch, revise, and update copy, visual sections, styling, or metadata on an existing website page.
13
+
14
+ ## Available Tools
15
+ - `page_get(page_id_or_slug: string)`: Retrieves the full current page structure, sections array, and metadata.
16
+ - `page_update(page_id_or_slug: string, title?: string, slug?: string, excerpt?: string, sections?: array, published?: boolean)`: Saves updates.
17
+ - `page_list(published_only?: boolean)`: Discovers page IDs/slugs if target is ambiguous.
18
+ - `page_get_section_schema(category?: string, section_type?: string)`: Inspects section schemas before adding new native sections.
19
+
20
+ ## Accepted Arguments
21
+ - `/update-page <slug>` e.g. `/update-page home` or `/update-page about`
22
+ - Instructions on what to update, e.g.:
23
+ - `/update-page home add FAQ section with 3 questions`
24
+ - `/update-page pricing change pro plan price to $49`
25
+ - `/update-page about change hero headline to "Building the Future of Retail"`
26
+
27
+ ## Execution Protocol
28
+
29
+ ### Step 1: Fetch Existing Page
30
+ 1. Identify the target page from user arguments. If ambiguous, call `page_list()` to find matching titles/slugs.
31
+ 2. Call `page_get` with `page_id_or_slug`:
32
+ ```json
33
+ { "page_id_or_slug": "<slug_or_id>" }
34
+ ```
35
+ 3. Inspect existing `sections` and metadata.
36
+
37
+ ### Step 2: Apply Targeted Modifications
38
+ 1. **Preserve Intact Sections**: Never wipe out existing sections that the user didn't ask to change.
39
+ 2. **Modify Requested Section**: Update specific fields within the matching section object (e.g. modify headline in `sc_hero`, or add an item to `faq`).
40
+ 3. **Add New Sections**: Append or insert new section objects in the appropriate layout order.
41
+ 4. **Remove Sections**: Only remove a section if the user explicitly requested its removal.
42
+
43
+ ### Step 3: Execute Update
44
+ Call `page_update` with:
45
+ ```json
46
+ {
47
+ "page_id_or_slug": "<slug_or_id>",
48
+ "sections": <updated_sections_array>,
49
+ "title": "<optional_updated_title>",
50
+ "excerpt": "<optional_updated_excerpt>"
51
+ }
52
+ ```
53
+
54
+ ### Step 4: Confirmation
55
+ 1. Detail the exact changes applied (e.g. "Updated hero headline", "Appended 3 FAQs").
56
+ 2. Provide page status (Draft or Live) and builder/preview link: `/dashboard/pages/<id>` (public route: `/pages/<slug>`).
@@ -0,0 +1,47 @@
1
+ ---
2
+ id: "cmd_update_pricing"
3
+ name: "Update Product Pricing"
4
+ slash: "/update-price"
5
+ description: "Directly update item cost, selling price or margins"
6
+ domain_tags: ["shop"]
7
+ required_tools: ["product_update_pricing"]
8
+ ---
9
+
10
+ # Update Product Pricing (`/update-price`)
11
+
12
+ Update item cost price, outward selling price (retail / MRP), or minimum floor price on catalog items.
13
+
14
+ ## Available Tools
15
+ - `product_update_pricing(sku: string, price?: number, cost_price?: number, min_price?: number)`: Updates item catalog pricing and recalculates profit margins.
16
+
17
+ ## Accepted Arguments
18
+ - Single price change: `/update-price sku:WDG-01 price:59.99`
19
+ - Cost & selling change: `/update-price item:"Tellzy 40" cost:1100 price:1450`
20
+ - Margin update: `/update-price sku:SHIRT-01 20% margin`
21
+
22
+ ## Execution Protocol
23
+
24
+ ### Step 1: Identify Product & Price Points
25
+ 1. Match item by SKU, ID, or product name.
26
+ 2. Identify which prices are being updated:
27
+ - `price`: Standard retail selling price (MRP).
28
+ - `cost_price`: Inward wholesale cost.
29
+ - `min_price`: Discount floor price.
30
+
31
+ ### Step 2: Execute Pricing Update
32
+ Call `product_update_pricing`:
33
+ ```json
34
+ {
35
+ "sku": "<sku_or_item_name>",
36
+ "price": 59.99,
37
+ "cost_price": 32.00
38
+ }
39
+ ```
40
+
41
+ ### Step 3: Confirmation & Margin Calculation
42
+ Report the updated pricing structure:
43
+ - **Product Name & SKU**
44
+ - **New Cost Price**: e.g. $32.00
45
+ - **New Selling Price**: e.g. $59.99
46
+ - **Gross Profit Margin**: `((59.99 - 32.00) / 59.99) * 100` = 46.66%
47
+ - **Status**: Live on catalog and POS billing.
@@ -0,0 +1,56 @@
1
+ ---
2
+ id: "cmd_draft_post"
3
+ name: "Write Blog Post"
4
+ slash: "/write-blog"
5
+ description: "Draft or publish a formatted blog article with clean HTML"
6
+ domain_tags: ["content"]
7
+ cms_id: "cc55cc55-0001-4000-8000-000000000035"
8
+ cms_slug: "blog"
9
+ required_tools: ["blog_post_create", "content_list"]
10
+ ---
11
+
12
+ # Write Blog Post (`/write-blog`)
13
+
14
+ Draft or publish an engaging, SEO-optimized blog article with clean semantic TipTap HTML, pull quotes, callouts, and comparisons.
15
+
16
+ ## Available Tools
17
+ - `blog_post_create(title: string, body_html: string, category_id?: string, content_type?: string, excerpt?: string, seo_title?: string, seo_description?: string, seo_keywords?: string, published?: boolean)`: Creates or publishes a post.
18
+ - `content_list(category_id?: string, content_type?: string)`: Checks existing posts for tone and topic overlap.
19
+
20
+ ## Accepted Arguments
21
+ - Topic or title: `/write-blog 5 Ways to Automate Retail Invoicing`
22
+ - Outlines, drafts, or marketing briefs.
23
+
24
+ ## Formatting Contract
25
+ 1. **Target Hub**: Blog (`content_type: "blog"`, `cms_id: "cc55cc55-0001-4000-8000-000000000035"`).
26
+ 2. **HTML Rules**:
27
+ - Write clean semantic HTML in `body_html` — NEVER Markdown syntax (`##`, `*`, ``` ```).
28
+ - NEVER emit `<h1>` in `body_html` (`title` automatically renders as `<h1>`).
29
+ - Use `<h2>`, `<h3>`, `<p>`, `<blockquote><p>...</p></blockquote>`, `<ul data-type="taskList">`, `<div data-type="info-card">`, and `<table>`.
30
+ 3. **SEO & Discovery**:
31
+ - Compelling 1–2 sentence `excerpt` and `ai_summary`.
32
+ - `seo_title` prefixed with store or brand name (e.g. `BusinessKit | 5 Ways to Automate Billing`).
33
+ - `seo_description` (150–160 chars) and relevant `seo_keywords`.
34
+ 4. **Draft Mode**: Save as draft (`published: false`) unless the user explicitly requests immediate publishing.
35
+
36
+ ## Reference Catalog
37
+ Before authoring `body_html`, read:
38
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for exact supported HTML snippets (steps, callout cards, task lists, code blocks, accordion FAQs, and video embeds).
39
+
40
+ ## Execution Protocol
41
+ 1. Formulate title, excerpt, and engaging opening paragraph.
42
+ 2. Structure sections using `<h2>`, `<h3>`, and relevant widgets.
43
+ 3. Call `blog_post_create`:
44
+ ```json
45
+ {
46
+ "category_id": "cat_35",
47
+ "content_type": "blog",
48
+ "title": "5 Ways to Automate Retail Invoicing",
49
+ "excerpt": "Discover how modern point-of-sale and automated invoices save hours each week.",
50
+ "seo_title": "5 Ways to Automate Invoicing | BusinessKit",
51
+ "seo_description": "Streamline your retail store billing with automated invoicing workflows.",
52
+ "body_html": "<p>Running a retail store...</p><h2>1. Digitize Inward Invoices</h2>...",
53
+ "published": false
54
+ }
55
+ ```
56
+ 4. Output draft confirmation, preview link, and publish command: `/update-content <id> publish`.
@@ -0,0 +1,90 @@
1
+ ---
2
+ id: "cmd_write_docs"
3
+ name: "Write Docs Article"
4
+ slash: "/write-docs"
5
+ description: "Write structured documentation (steps, file code blocks, kbd, info-cards, accordions)"
6
+ domain_tags: ["content"]
7
+ required_tools: ["blog_post_create", "content_list"]
8
+ cms_id: "cc55cc55-0001-4000-8000-000000000032"
9
+ cms_slug: "docs"
10
+ ---
11
+
12
+ # Write Docs Article (`/write-docs`)
13
+
14
+ Create or update structured technical reference and knowledge base documentation with interactive widgets, multi-step instructions, and syntax-highlighted code.
15
+
16
+ ## Available Tools
17
+ - `content_list(category_id?: string, content_type?: string)`: Checks existing collections and articles in the Docs hub.
18
+ - `blog_post_create(title: string, body_html: string, category_id?: string, collection_id?: string, content_type?: string, excerpt?: string, seo_title?: string, seo_description?: string, published?: boolean)`: Publishes the documentation article.
19
+
20
+ ## Accepted Arguments
21
+ - `/write-docs <title>` e.g. `/write-docs Setup MCP Server`
22
+ - With collection: `/write-docs collection:col_pg_start title:"Pages Architecture"`
23
+ - With full outline: Provide the technical guide requirements directly.
24
+
25
+ ## Core Rules & Constraints
26
+ 1. **Target Hub**: Knowledge Base / Docs (`category_id: "cat_32"`, `content_type: "docs"`).
27
+ 2. **Title Constraint**: Strictly **$\le$ 3 words** (e.g. `What Are Pages`, `Install BusinessKit`). The title automatically renders as the page `<h1>`.
28
+ 3. **Never Emit `<h1>` in HTML**: Top-level headings inside `body_html` must start with `<h2>`, followed by `<h3>`.
29
+ 4. **Pure Semantic HTML in `body_html`**: Never write Markdown syntax (`##`, `*`, ``` ```, `- `).
30
+ 5. **Collection Scoping**: Always associate with a child collection (e.g. `col_pg_start`, `col_crm`). Call `content_list(category_id: "cat_32")` first to discover active collections.
31
+ 6. **Collection Row Requirement**: When creating or inserting a new `collections` row, **ALWAYS** pass `category_id = "cat_32"`. Collections without `category_id` become orphaned.
32
+
33
+ ## Supported HTML Blocks
34
+ - **Section Headings**: `<h2>Section Title</h2>`, `<h3>Subtopic</h3>`
35
+ - **Prerequisites / Notes**:
36
+ ```html
37
+ <div data-type="info-card" class="tech-callout tech-callout--info" role="note">
38
+ <div class="tech-callout__content"><p>Important prerequisite...</p></div>
39
+ </div>
40
+ ```
41
+ - **Checklist**:
42
+ ```html
43
+ <ul data-type="taskList"><li data-type="taskItem" data-checked="false"><label><input type="checkbox" /></label><div><p>Prerequisite step</p></div></li></ul>
44
+ ```
45
+ - **Multi-step Walkthrough**:
46
+ ```html
47
+ <div data-type="steps" class="tech-steps">
48
+ <div data-type="step-item" class="tech-step">
49
+ <div data-type="step-title" class="tech-step__title">1. Connect Your Account</div>
50
+ <div data-type="step-content" class="tech-step__content"><p>Step instructions...</p></div>
51
+ </div>
52
+ </div>
53
+ ```
54
+ - **Code & Named Files**:
55
+ ```html
56
+ <pre data-filename="config.json"><code class="language-json">{ "profile": "default" }</code></pre>
57
+ ```
58
+ - **Keyboard Shortcuts**: `<kbd class="tech-kbd">⌘</kbd> + <kbd class="tech-kbd">K</kbd>`
59
+ - **Accordion FAQ (Collapsed by default)**:
60
+ ```html
61
+ <div data-type="accordion-group" class="tech-accordion">
62
+ <div data-type="accordion-item" class="tech-accordion__item" aria-expanded="false">
63
+ <div data-type="accordion-title" class="tech-accordion__summary">Frequently asked question?</div>
64
+ <div data-type="accordion-content" class="tech-accordion__content" hidden="hidden"><p>Answer details...</p></div>
65
+ </div>
66
+ </div>
67
+ ```
68
+
69
+ ## Reference Catalogs
70
+ Before authoring `body_html`, read:
71
+ - [`skills/docs/references/how-to.md`](../skills/docs/references/how-to.md) for documentation collection hierarchy and naming rules.
72
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for the universal HTML element catalog (steps, callouts, task lists, code blocks, accordion FAQs).
73
+
74
+ ## Execution Protocol
75
+ 1. Call `content_list(category_id: "cat_32")` to find matching child collections.
76
+ 2. Compose article with concise `excerpt` and prefixed SEO title (e.g. `Pages: Visual Site Architecture`).
77
+ 3. Call `blog_post_create`:
78
+ ```json
79
+ {
80
+ "category_id": "cat_32",
81
+ "collection_id": "col_pg_start",
82
+ "content_type": "docs",
83
+ "title": "Pages Architecture",
84
+ "excerpt": "Learn how BusinessKit visual pages and components work together.",
85
+ "seo_title": "Pages Architecture | BusinessKit Docs",
86
+ "body_html": "<h2>Overview</h2><p>...</p>",
87
+ "published": true
88
+ }
89
+ ```
90
+ 4. Output published URL and summary: `https://<domain>/docs/pages-architecture`.
@@ -0,0 +1,51 @@
1
+ ---
2
+ id: "cmd_write_guide"
3
+ name: "Write Step-by-Step Guide"
4
+ slash: "/write-guide"
5
+ description: "Create an actionable how-to guide with prerequisites, numbered steps, and FAQ"
6
+ domain_tags: ["content"]
7
+ cms_id: "cc55cc55-0001-4000-8000-000000000036"
8
+ cms_slug: "guides"
9
+ required_tools: ["blog_post_create", "content_list"]
10
+ ---
11
+
12
+ # Write Step-by-Step Guide (`/write-guide`)
13
+
14
+ Create an actionable how-to walkthrough with clear prerequisites, numbered step walkthroughs, code samples, and troubleshooting FAQs.
15
+
16
+ ## Available Tools
17
+ - `content_list(category_id?: string, content_type?: string)`: Checks existing guide collections.
18
+ - `blog_post_create(title: string, body_html: string, category_id?: string, collection_id?: string, content_type?: string, excerpt?: string, seo_title?: string, seo_description?: string, published?: boolean)`: Publishes the guide.
19
+
20
+ ## Accepted Arguments
21
+ - `/write-guide How to Connect Stripe Terminal`
22
+ - With collection: `/write-guide collection:col_payments title:"Configure Bank Feeds"`
23
+
24
+ ## Guide Structure Rules
25
+ 1. **Target Hub**: Guides (`content_type: "guides"`, `category_id: "cat_36"`).
26
+ 2. **Outcome Opener**: First paragraph `<p>` explains exactly what the user will accomplish.
27
+ 3. **Prerequisites**: Highlight required tools, permissions, or accounts inside `<div data-type="info-card">` or `<ul data-type="taskList">`.
28
+ 4. **Step Sequence**: Numbered tutorial inside `<div data-type="steps" class="tech-steps">` with code blocks `<pre data-filename="...">` and `<kbd class="tech-kbd">`.
29
+ 5. **Troubleshooting FAQ**: Closing FAQ accordion using `<div data-type="accordion-group" class="tech-accordion">`.
30
+ 6. **Metadata**: Set `additional_details` like `[{"key": "Difficulty", "value": "Beginner"}, {"key": "Time", "value": "10 mins"}]`.
31
+ 7. **Collection Row Requirement**: When creating or inserting a new `collections` row for guides, **ALWAYS** pass `category_id = "cat_36"`. Collections without `category_id` become orphaned.
32
+
33
+ ## Reference Catalog
34
+ Before authoring `body_html`, read:
35
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for exact supported HTML snippets (sequential `<div data-type="steps">`, callout cards, task lists, code blocks, and accordion FAQs).
36
+
37
+ ## Execution Protocol
38
+ 1. Call `content_list(category_id: "cat_36")` to discover existing guide categories.
39
+ 2. Draft semantic HTML following the step sequence structure.
40
+ 3. Call `blog_post_create`:
41
+ ```json
42
+ {
43
+ "category_id": "cat_36",
44
+ "content_type": "guides",
45
+ "title": "Configure Bank Feeds",
46
+ "excerpt": "Connect your business bank account for automated statement reconciliation.",
47
+ "body_html": "<p>In this guide, you will connect...</p><div data-type=\"info-card\">...</div>",
48
+ "published": true
49
+ }
50
+ ```
51
+ 4. Output live guide link: `https://<domain>/guides/<slug>`.
@@ -0,0 +1,50 @@
1
+ ---
2
+ id: "cmd_write_newsletter"
3
+ name: "Write Newsletter"
4
+ slash: "/write-newsletter"
5
+ description: "Draft or publish a newsletter issue with sections, highlights, and CTA"
6
+ domain_tags: ["content"]
7
+ cms_id: "cc55cc55-0001-4000-8000-000000000020"
8
+ cms_slug: "n"
9
+ required_tools: ["blog_post_create"]
10
+ ---
11
+
12
+ # Write Newsletter (`/write-newsletter`)
13
+
14
+ Draft or publish a conversational email newsletter issue with curated highlights, tips, and a prominent call-to-action button.
15
+
16
+ ## Available Tools
17
+ - `blog_post_create(title: string, body_html: string, category_id?: string, content_type?: string, excerpt?: string, cta_button_text?: string, cta_button_url?: string, published?: boolean)`: Creates or publishes a newsletter issue.
18
+
19
+ ## Accepted Arguments
20
+ - `/write-newsletter Issue #14: Holiday Inventory Planning`
21
+ - With theme/notes: `/write-newsletter Weekly digest with 3 top tips and product update`
22
+
23
+ ## Newsletter Format Rules
24
+ 1. **Target Hub**: Newsletter (`content_type: "n"`, `category_id: "cat_20"`).
25
+ 2. **Conversational Tone**: Warm 1–2 paragraph opener `<p>` addressed directly to the reader.
26
+ 3. **Sections**: 2–4 scannable sections (`<h2>Main Story</h2>`, `<h2>Quick Reads</h2>` with `<ul>`, `<h2>Tip of the Week</h2>`).
27
+ 4. **Callout Tip**: Use `<div data-type="info-card">` or checklist `<ul data-type="taskList">`.
28
+ 5. **Call-to-Action (CTA)**: Provide explicit button label and URL (`cta_button_text: "Read Full Release"`, `cta_button_url: "https://..."`).
29
+
30
+ ## Reference Catalog
31
+ Before authoring `body_html`, read:
32
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for exact supported HTML snippets (steps, callout cards, task lists, and CTA blocks).
33
+
34
+ ## Execution Protocol
35
+ 1. Compose issue title and lead copy.
36
+ 2. Structure sections using semantic HTML.
37
+ 3. Call `blog_post_create`:
38
+ ```json
39
+ {
40
+ "category_id": "cat_20",
41
+ "content_type": "n",
42
+ "title": "Holiday Inventory Planning",
43
+ "excerpt": "How to prepare your warehouse stock for Q4 holiday demand spikes.",
44
+ "body_html": "<p>Hey everyone,</p><h2>Main Story</h2>...",
45
+ "cta_button_text": "View Stock Checklist",
46
+ "cta_button_url": "https://example.com/checklist",
47
+ "published": false
48
+ }
49
+ ```
50
+ 4. Output draft confirmation, preview link, and send options.