@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.
Files changed (153) 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 -84
  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/setup.sh +134 -0
  38. package/scripts/setup.ts +92 -0
  39. package/server.json +21 -0
  40. package/skills/README.md +19 -27
  41. package/skills/billing/SKILL.md +64 -0
  42. package/skills/brand/SKILL.md +30 -86
  43. package/skills/copywriting/SKILL.md +1 -1
  44. package/skills/crm/SKILL.md +38 -0
  45. package/skills/docs-cms/SKILL.md +53 -0
  46. package/skills/docs-cms/references/how-to.md +383 -0
  47. package/skills/inbox/SKILL.md +49 -0
  48. package/skills/inventory/SKILL.md +69 -0
  49. package/skills/pages/SKILL.md +169 -0
  50. package/skills/pages/references/sections-catalog.json +950 -0
  51. package/skills/social/SKILL.md +1 -1
  52. package/templates/antigravity.json +8 -0
  53. package/templates/claude-code.mcp.json +8 -0
  54. package/templates/cursor.mcp.json +8 -0
  55. package/templates/vscode.mcp.json +9 -0
  56. package/.claude/commands/analytics.md +0 -7
  57. package/.claude/commands/blog-writer.md +0 -9
  58. package/.claude/commands/cbo.md +0 -7
  59. package/.claude/commands/ceo.md +0 -10
  60. package/.claude/commands/cmo.md +0 -7
  61. package/.claude/commands/compress.md +0 -73
  62. package/.claude/commands/coo.md +0 -11
  63. package/.claude/commands/copywriter.md +0 -15
  64. package/.claude/commands/course-creator.md +0 -9
  65. package/.claude/commands/crm.md +0 -591
  66. package/.claude/commands/deep.md +0 -50
  67. package/.claude/commands/docs-writer.md +0 -8
  68. package/.claude/commands/forms-builder.md +0 -10
  69. package/.claude/commands/ingest.md +0 -110
  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/.claude/settings.json +0 -16
  80. package/.claude/settings.local.json +0 -11
  81. package/.env.example +0 -12
  82. package/.mcp.json +0 -3
  83. package/HEARTBEAT.md +0 -105
  84. package/PLAN.md +0 -345
  85. package/PRD-Agent-Composition.md +0 -149
  86. package/PRD-Agent-Harness.md +0 -316
  87. package/REFERENCE.md +0 -160
  88. package/SOUL.md +0 -148
  89. package/SYSTEM.md +0 -71
  90. package/agents/_base.ts +0 -371
  91. package/agents/analytics/SOUL.md +0 -11
  92. package/agents/analytics/analytics.ts +0 -405
  93. package/agents/business/SOUL.md +0 -11
  94. package/agents/business/business.ts +0 -109
  95. package/agents/ceo/SOUL.md +0 -15
  96. package/agents/ceo/ceo.ts +0 -146
  97. package/agents/content/SOUL.md +0 -11
  98. package/agents/content/content.ts +0 -379
  99. package/agents/copywriting/SOUL.md +0 -11
  100. package/agents/copywriting/copywriting.ts +0 -89
  101. package/agents/courses/SOUL.md +0 -11
  102. package/agents/courses/courses.ts +0 -451
  103. package/agents/docs/SOUL.md +0 -11
  104. package/agents/docs/docs.ts +0 -77
  105. package/agents/forms/SOUL.md +0 -11
  106. package/agents/forms/forms.ts +0 -364
  107. package/agents/hiring/SOUL.md +0 -11
  108. package/agents/hiring/hiring.ts +0 -314
  109. package/agents/marketing/SOUL.md +0 -15
  110. package/agents/marketing/marketing.ts +0 -109
  111. package/agents/newsletter/SOUL.md +0 -11
  112. package/agents/newsletter/newsletter.ts +0 -91
  113. package/agents/operations/SOUL.md +0 -11
  114. package/agents/operations/operations.ts +0 -157
  115. package/agents/sales/SOUL.md +0 -44
  116. package/agents/sales/sales.ts +0 -883
  117. package/agents/scheduler/SOUL.md +0 -11
  118. package/agents/scheduler/scheduler.ts +0 -68
  119. package/agents/seo/SOUL.md +0 -11
  120. package/agents/seo/seo.ts +0 -288
  121. package/agents/social/SOUL.md +0 -11
  122. package/agents/social/social.ts +0 -744
  123. package/agents/store/SOUL.md +0 -11
  124. package/agents/store/store.ts +0 -514
  125. package/cli.ts +0 -144
  126. package/context/about-me.md +0 -96
  127. package/context/brand-voice.md +0 -127
  128. package/context/brand.md +0 -80
  129. package/context/business.md +0 -66
  130. package/context/working-style.md +0 -87
  131. package/lib/analytics.ts +0 -81
  132. package/lib/cms.ts +0 -88
  133. package/lib/db.adapter.ts +0 -30
  134. package/lib/db.ts +0 -63
  135. package/lib/enums.ts +0 -25
  136. package/lib/groups.ts +0 -122
  137. package/lib/id.ts +0 -43
  138. package/lib/kb.ts +0 -337
  139. package/lib/memory.ts +0 -219
  140. package/lib/pattern-detector.ts +0 -169
  141. package/lib/profile.ts +0 -155
  142. package/lib/schema.ts +0 -2015
  143. package/lib/slug.ts +0 -30
  144. package/lib/validate.ts +0 -33
  145. package/setup.ts +0 -141
  146. package/skills/agents/SKILL.md +0 -56
  147. package/skills/analytics/SKILL.md +0 -52
  148. package/skills/blog-writer/SKILL.md +0 -452
  149. package/skills/ceo/SKILL.md +0 -25
  150. package/skills/cmo/SKILL.md +0 -8
  151. package/skills/schema/SKILL.md +0 -86
  152. package/skills/store/SKILL.md +0 -62
  153. package/tsconfig.json +0 -14
@@ -0,0 +1,109 @@
1
+ ---
2
+ id: "cmd_create_component"
3
+ name: "Create Custom Component"
4
+ slash: "/create-component"
5
+ description: "Generate a custom HTML/CSS/JS component saved in user_components"
6
+ domain_tags: ["pages"]
7
+ required_tools: ["component_create", "page_get_section_schema"]
8
+ ---
9
+
10
+ # Create Custom Component (`/create-component`)
11
+
12
+ Create a bespoke custom HTML/CSS component block saved in `user_components` for the Visual Page Builder.
13
+
14
+ ## Available Tools
15
+ - `page_get_section_schema(category?: string)`: Inspects native section blueprints in a specific category.
16
+ - `component_create(name: string, collection: string, html: string, css: string, schema?: array)`: Stores a new custom component in `user_components`.
17
+
18
+ ## Accepted Arguments
19
+ - `/create-component <name>` e.g. `/create-component Dark Pricing Table`
20
+ - With category hint: `/create-component category:Conversion name:Annual Billing Toggle`
21
+ - With full design brief: `/create-component ROI Calculator with slider and monthly savings`
22
+
23
+ ## Mandatory Workflow
24
+
25
+ ### Step 1: Identify Functional Category
26
+ Every component MUST belong to one of the Visual Page Builder modal categories:
27
+ - `Hero` — Intro banners, headlines, top CTA
28
+ - `Features` — Feature lists, benefit grids, tabbed cards
29
+ - `Conversion` — Pricing tables, purchase cards, email capture, CTA banners
30
+ - `Showcase` — Product demos, split terminal views, screenshot galleries
31
+ - `Social Proof` — Customer testimonials, logo bars, reviews, rating badges
32
+ - `Content` — Accordion FAQs, text blocks, team bios
33
+ - `Navigation` — Header bars, floating menus
34
+ - `Footer` — Site footers, legal disclaimer blocks
35
+
36
+ ### Step 2: Mandatory Blueprint Inspection
37
+ Before writing bespoke code, you **MUST inspect the matching category blueprints**:
38
+ ```json
39
+ {
40
+ "category": "<matching_category>"
41
+ }
42
+ ```
43
+ Examine how native components structure their responsive layout, CSS variables, and interactive elements.
44
+
45
+ ### Step 3: Write Production-Grade HTML
46
+ - **Editable Fields**: Add `contenteditable="true"` and `data-field="<fieldName>"` to all customizable text:
47
+ ```html
48
+ <h2 contenteditable="true" data-field="headline">Custom Section Headline</h2>
49
+ <p contenteditable="true" data-field="description">Detailed description text...</p>
50
+ ```
51
+ - **Action Buttons & Links**:
52
+ ```html
53
+ <a href="#" data-field="primaryBtnUrl" data-element-type="link">
54
+ <button data-field="primaryBtnText" data-element-type="button">Get Started</button>
55
+ </a>
56
+ ```
57
+
58
+ ### Step 4: Write Scoped CSS
59
+ - Prefix ALL selectors with a unique root class (e.g. `.comp-roi-custom`):
60
+ ```css
61
+ .comp-roi-custom {
62
+ padding: 80px 24px;
63
+ background: var(--surface-1, #09090b);
64
+ color: var(--text-primary, #ffffff);
65
+ }
66
+ .comp-roi-custom .comp-title {
67
+ font-size: 2rem;
68
+ font-weight: 700;
69
+ }
70
+ ```
71
+ - Use design system CSS tokens:
72
+ - Backgrounds: `var(--surface-1)`, `var(--surface-2)`
73
+ - Brand Accent: `var(--accent)`
74
+ - Text Colors: `var(--text-primary)`, `var(--text-secondary)`
75
+ - Borders: `var(--border-subtle)`
76
+
77
+ ### Step 5: Define Component Schema
78
+ Provide field metadata so users can edit values in the Visual Builder inspector:
79
+ ```json
80
+ [
81
+ { "name": "headline", "label": "Main Headline", "type": "text" },
82
+ { "name": "description", "label": "Body Description", "type": "textarea" },
83
+ { "name": "primaryBtnText", "label": "Button Label", "type": "text" },
84
+ { "name": "primaryBtnUrl", "label": "Button Link", "type": "url" },
85
+ { "name": "accentColor", "label": "Accent Color", "type": "color" }
86
+ ]
87
+ ```
88
+
89
+ ### Step 6: Execute Creation
90
+ Call `component_create` with:
91
+ ```json
92
+ {
93
+ "name": "<Descriptive Name>",
94
+ "collection": "<Category>",
95
+ "html": "<semantic_html>",
96
+ "css": "<scoped_css>",
97
+ "schema": [...]
98
+ }
99
+ ```
100
+
101
+ ### Step 7: Output Component Snippet
102
+ 1. Report the created component ID and name.
103
+ 2. Provide the JSON snippet for inserting this component into a page:
104
+ ```json
105
+ {
106
+ "type": "custom",
107
+ "component_id": "<returned_component_id>"
108
+ }
109
+ ```
@@ -0,0 +1,69 @@
1
+ ---
2
+ id: "cmd_create_invoice"
3
+ name: "Create Customer Invoice"
4
+ slash: "/create-invoice"
5
+ description: "Draft a new retail or wholesale billing invoice"
6
+ domain_tags: ["shop"]
7
+ required_tools: ["invoice_create", "contact_create"]
8
+ ---
9
+
10
+ # Create Customer Invoice (`/create-invoice`)
11
+
12
+ Draft a formal customer invoice with line items, tax computations, and due dates. All invoices are drafted first for human review before transmission.
13
+
14
+ ## Available Tools
15
+ - `invoice_create(customer_id: string, line_items: array, due_date?: string)`: Creates invoice draft with tax calculations.
16
+ - `contact_create(name: string, email?: string, phone?: string, type?: string)`: Registers new customer if not found.
17
+
18
+ ## Line Item Schema
19
+ Each item in `line_items` array:
20
+ ```json
21
+ {
22
+ "item_id": "optional_item_id_or_sku",
23
+ "name": "Widget Pro",
24
+ "quantity": 2,
25
+ "unit_price": 49.99,
26
+ "tax_rate": 18.0
27
+ }
28
+ ```
29
+
30
+ ## Accepted Arguments
31
+ - Natural language invoice requests:
32
+ - `/create-invoice for Acme Corp: 5 Premium Subscriptions @ $100/mo due in 30 days`
33
+ - `/create-invoice customer:"John Doe" items:[{ name: "Consulting", qty: 10, rate: 150 }]`
34
+
35
+ ## Execution Protocol
36
+
37
+ ### Step 1: Parse Customer & Line Items
38
+ 1. Identify customer name, email, or ID.
39
+ 2. Parse line items: descriptions, quantities, unit prices, and applicable tax rates.
40
+ 3. Compute due date (default to Net 30 if unspecified).
41
+
42
+ ### Step 2: Validate or Create Customer
43
+ - Pass `customer_id` (or name/email) to `invoice_create`. The backend will match existing customers.
44
+ - If the customer does not exist and details (email/phone) are provided, call `contact_create(type: "customer")` first.
45
+
46
+ ### Step 3: Execute Invoice Creation
47
+ Call `invoice_create`:
48
+ ```json
49
+ {
50
+ "customer_id": "<customer_name_or_id>",
51
+ "line_items": [
52
+ {
53
+ "name": "Design Retainer",
54
+ "quantity": 1,
55
+ "unit_price": 1500.00,
56
+ "tax_rate": 0
57
+ }
58
+ ],
59
+ "due_date": "2026-12-22"
60
+ }
61
+ ```
62
+
63
+ ### Step 4: Present Draft Invoice
64
+ Display summary:
65
+ - **Invoice Number & ID**
66
+ - **Customer**: Name & Email
67
+ - **Itemized Table**: Items, Qty, Unit Price, Tax, Subtotal
68
+ - **Grand Total & Due Date**
69
+ - **Next Step**: Prompt the user to review and send: `/send-invoice <invoice_id>`.
@@ -0,0 +1,65 @@
1
+ ---
2
+ id: "cmd_create_new_bill"
3
+ name: "Create New Sale Bill"
4
+ slash: "/create-new-bill"
5
+ description: "Create a sale bill from product name, qty, custom price and discount — or parse a handwritten bill"
6
+ domain_tags: ["shop"]
7
+ required_tools: ["shop_create_new_bill"]
8
+ ---
9
+
10
+ # Create New Sale Bill (`/create-new-bill`)
11
+
12
+ Fast point-of-sale (POS) billing. Generate immediate sales receipts from natural language entries, custom rates, item discounts, or by parsing OCR text from handwritten bills.
13
+
14
+ ## Available Tools
15
+ - `shop_create_new_bill(line_items: array, customer_name?: string, payment_method?: string, payment_status?: string, bill_discount_pct?: number, notes?: string)`: Generates a retail/POS sales bill and updates inventory immediately.
16
+
17
+ ## Line Item Schema
18
+ ```json
19
+ {
20
+ "item_name": "Tellzy 40 Tab",
21
+ "quantity": 5,
22
+ "unit_price": 1258.83,
23
+ "discount_pct": 15.0,
24
+ "tax_rate": 12.0
25
+ }
26
+ ```
27
+
28
+ ## Accepted Arguments
29
+ - Natural language line item string:
30
+ - `/create-new-bill 5 Box Tellzy 40 Tab @ ₹1258.83 -15%`
31
+ - `/create-new-bill 2 Apple AirPods Pro @ 249 cash customer: Alice`
32
+ - Multi-item or pasted receipt text.
33
+
34
+ ## Execution Protocol
35
+
36
+ ### Step 1: Parse Line Items
37
+ 1. Extract item names, packaging/unit, quantities, custom selling price, and line discount %.
38
+ 2. Extract payment method (`cash`, `upi`, `card`, `credit`) — default to `cash`.
39
+ 3. Extract optional customer name and overall bill discount if specified.
40
+
41
+ ### Step 2: Execute Bill Creation
42
+ Call `shop_create_new_bill`:
43
+ ```json
44
+ {
45
+ "line_items": [
46
+ {
47
+ "item_name": "Tellzy 40 Tab",
48
+ "quantity": 5,
49
+ "unit_price": 1258.83,
50
+ "discount_pct": 15.0
51
+ }
52
+ ],
53
+ "customer_name": "Walk-in Customer",
54
+ "payment_method": "cash",
55
+ "payment_status": "confirmed"
56
+ }
57
+ ```
58
+
59
+ ### Step 3: Present Bill Receipt
60
+ Output a clean receipt breakdown:
61
+ - **Receipt / Order ID**
62
+ - **Payment Method & Status**
63
+ - **Itemized Table**: Item, Qty, Rate, Discount, Tax, Total
64
+ - **Grand Total Paid**
65
+ - **Inventory Notice**: Stock quantities decremented automatically in the stock ledger.
@@ -0,0 +1,96 @@
1
+ ---
2
+ id: "cmd_create_page"
3
+ name: "Create Website Page"
4
+ slash: "/create-page"
5
+ description: "Draft a new landing page or website page with title and slug"
6
+ domain_tags: ["pages"]
7
+ required_tools: ["page_create", "page_get_section_schema"]
8
+ ---
9
+
10
+ # Create Website Page (`/create-page`)
11
+
12
+ Autonomously compose and create a high-converting, responsive website or landing page using native visual sections or custom blocks.
13
+
14
+ ## Available Tools
15
+ - `page_create(title: string, slug: string, excerpt?: string, sections?: array, published?: boolean)`: Creates a new page.
16
+ - `page_get_section_schema(category?: string, section_types?: array)`: Inspects native section schemas and theme design tokens.
17
+
18
+ ## Accepted Arguments
19
+ The user may provide:
20
+ - A page topic or title: `/create-page About Us` or `/create-page Black Friday Sale`
21
+ - A slug: `/create-page pricing`
22
+ - Full requirements including sections, style preferences, or target audience.
23
+
24
+ ## Section Assembly Rules
25
+ Assemble the page using native modular section types that fit the page purpose:
26
+ - **Header**: `sc_navbar` — Sticky responsive navigation with brand logo and CTA button.
27
+ - **Hero**: `sc_hero` or `hero_section` — High-impact hero banner with headline, subtitle, and primary/secondary action buttons.
28
+ - **Features / Benefits**: `sc_use_cases` or `sc_features` — Grid or card layout highlighting capabilities.
29
+ - **Showcase / Proof**: `sc_workspace` or `sc_under_the_hood` — Interactive demo preview or split screenshot.
30
+ - **Pricing / Conversion**: `pricing` or `cta_section` — Tiered price cards with feature checks and conversion buttons.
31
+ - **Content / FAQ**: `faq` or `text` — Accordion FAQ block for objection handling.
32
+ - **Footer**: `sc_footer` — Multi-column site footer with navigation links and copyright.
33
+
34
+ ## Design System & Theme Alignment
35
+ All native sections automatically adopt the business design tokens:
36
+ - Background: `var(--surface-1)` (#09090b) and `var(--surface-2)` (#18181b)
37
+ - Accent: `var(--accent)` (#38bdf8)
38
+ - Text: `var(--text-primary)` (#ffffff) and `var(--text-secondary)` (#a1a1aa)
39
+
40
+ ## Execution Protocol
41
+
42
+ ### Step 1: Analyze Page Goals & Business Context
43
+ 1. Extract title and derive a clean URL-friendly slug (e.g. `About Us` $\rightarrow$ `about`).
44
+ 2. Identify the target audience and business offering.
45
+ 3. Tailor realistic, engaging copy for each section (avoid generic lorem ipsum).
46
+
47
+ ### Step 2: Assemble Sections JSON
48
+ Construct a structured array of sections:
49
+ ```json
50
+ [
51
+ {
52
+ "type": "sc_navbar",
53
+ "data": { "brandName": "My Store", "ctaText": "Get Started", "ctaLink": "/signup" }
54
+ },
55
+ {
56
+ "type": "sc_hero",
57
+ "data": {
58
+ "headline": "Empower Your Business Workflow",
59
+ "subheadline": "All-in-one platform for sales, billing, and content management.",
60
+ "primaryBtnText": "Start Free Trial",
61
+ "primaryBtnUrl": "/pricing"
62
+ }
63
+ },
64
+ {
65
+ "type": "sc_use_cases",
66
+ "data": { "title": "Why Choose Us", "items": [...] }
67
+ },
68
+ {
69
+ "type": "faq",
70
+ "data": { "items": [{ "question": "How does it work?", "answer": "..." }] }
71
+ },
72
+ {
73
+ "type": "sc_footer",
74
+ "data": { "copyright": "© 2026 My Business. All rights reserved." }
75
+ }
76
+ ]
77
+ ```
78
+
79
+ ### Step 3: Create the Page
80
+ Call `page_create` with:
81
+ ```json
82
+ {
83
+ "title": "<Page Title>",
84
+ "slug": "<slug>",
85
+ "excerpt": "<Short meta description>",
86
+ "sections": [...],
87
+ "published": false
88
+ }
89
+ ```
90
+
91
+ ### Step 4: Report Results
92
+ 1. Output page summary: Title, slug, total sections configured.
93
+ 2. Provide preview link: `/pages/<slug>`
94
+ 3. Explain next actions:
95
+ - Preview or test live: `/publish-page <slug>`
96
+ - Customize specific sections: `/update-page <slug>`
@@ -0,0 +1,41 @@
1
+ ---
2
+ id: "cmd_list_components"
3
+ name: "List Custom Components"
4
+ slash: "/list-components"
5
+ description: "List all custom components stored in user_components"
6
+ domain_tags: ["pages"]
7
+ required_tools: ["component_list"]
8
+ ---
9
+
10
+ # List Custom Components (`/list-components`)
11
+
12
+ List and inspect bespoke HTML/CSS component blocks stored in `user_components` for the Visual Page Builder.
13
+
14
+ ## Available Tools
15
+ - `component_list(collection?: string)`: Lists custom components with id, name, collection, and schema definitions.
16
+
17
+ ## Accepted Arguments
18
+ - `/list-components` — Lists all custom components across all categories.
19
+ - `/list-components Hero` or `/list-components Conversion` — Scopes listing to a single collection category.
20
+
21
+ ## Execution Protocol
22
+
23
+ ### Step 1: Query Components
24
+ Call `component_list`:
25
+ ```json
26
+ {
27
+ "collection": "<optional_category_filter>"
28
+ }
29
+ ```
30
+
31
+ ### Step 2: Format Output Table
32
+ Display components grouped by collection:
33
+
34
+ | Name | Collection | ID | Schema Fields |
35
+ | :--- | :--- | :--- | :--- |
36
+ | Dark ROI Calculator | Conversion | `comp_981` | headline, savingsRate, btnUrl |
37
+ | Developer Hero | Hero | `comp_412` | headline, subhead, terminalCode |
38
+
39
+ ### Step 3: Suggest Quick Actions
40
+ - To build a new custom component: `/create-component <name>`
41
+ - To embed in a page: `{ "type": "custom", "component_id": "<id>" }` inside `/update-page <slug>`.
@@ -0,0 +1,46 @@
1
+ ---
2
+ id: "cmd_list_content"
3
+ name: "List Blog, Docs & Guides"
4
+ slash: "/list-content"
5
+ description: "List existing blog posts, newsletters, docs, guides, and collections"
6
+ domain_tags: ["content"]
7
+ required_tools: ["content_list"]
8
+ ---
9
+
10
+ # List Content (`/list-content`)
11
+
12
+ List published and draft articles across Blog, Knowledge Base / Docs, Step-by-Step Guides, Newsletters, or custom hubs.
13
+
14
+ ## Available Tools
15
+ - `content_list(category_id?: string, content_type?: string, published_only?: boolean)`: Retrieves article listings and child collections.
16
+
17
+ ## Accepted Arguments
18
+ - All hubs: `/list-content`
19
+ - Hub-specific:
20
+ - `/list-content docs` or `/list-content cat_32`
21
+ - `/list-content blog` or `/list-content cat_35`
22
+ - `/list-content guides` or `/list-content cat_36`
23
+ - `/list-content newsletter` or `/list-content cat_20`
24
+
25
+ ## Execution Protocol
26
+
27
+ ### Step 1: Query Articles
28
+ Call `content_list` with appropriate filter:
29
+ ```json
30
+ {
31
+ "content_type": "<optional_hub_slug>"
32
+ }
33
+ ```
34
+
35
+ ### Step 2: Display Results Table
36
+ Group by Hub or Collection:
37
+
38
+ | Title | Slug | Hub | Status | Collection | Updated |
39
+ | :--- | :--- | :--- | :--- | :--- | :--- |
40
+ | Pages Architecture | `pages-architecture` | Docs | 🟢 Live | Getting Started | 1 day ago |
41
+ | Automate Invoicing | `automate-invoicing` | Blog | 🟡 Draft | Retail Tips | 3 days ago |
42
+
43
+ ### Step 3: Suggest Quick Actions
44
+ - To edit an article: `/update-content <id>`
45
+ - To audit SEO: `/seo-audit <id_or_hub>`
46
+ - To create a new doc: `/write-docs <title>`
@@ -0,0 +1,45 @@
1
+ ---
2
+ id: "cmd_list_pages"
3
+ name: "List Website Pages"
4
+ slash: "/list-pages"
5
+ description: "List all website pages, slugs, and publication statuses"
6
+ domain_tags: ["pages"]
7
+ required_tools: ["page_list"]
8
+ ---
9
+
10
+ # List Website Pages (`/list-pages`)
11
+
12
+ Retrieve and display an inventory of all landing pages, website pages, publication statuses, and section counts.
13
+
14
+ ## Available Tools
15
+ - `page_list(published_only?: boolean)`: Retrieves list of pages with id, title, slug, excerpt, published status, and update timestamps.
16
+
17
+ ## Accepted Arguments
18
+ - `/list-pages` — Lists all pages (both drafts and published).
19
+ - `/list-pages published` or `/list-pages --live` — Lists only live, published pages.
20
+
21
+ ## Execution Protocol
22
+
23
+ ### Step 1: Query Pages
24
+ Call `page_list` with:
25
+ ```json
26
+ {
27
+ "published_only": false
28
+ }
29
+ ```
30
+ (Set `published_only: true` if user requested only active/live pages.)
31
+
32
+ ### Step 2: Format Output Table
33
+ Display the results in a clean markdown table:
34
+
35
+ | Title | Slug | Status | Sections | Last Updated |
36
+ | :--- | :--- | :--- | :--- | :--- |
37
+ | Home | `home` | 🟢 Live | 6 sections | 2 hours ago |
38
+ | Pricing | `pricing` | 🟡 Draft | 4 sections | Yesterday |
39
+ | About Us | `about` | 🟢 Live | 3 sections | 3 days ago |
40
+
41
+ ### Step 3: Suggest Quick Actions
42
+ Offer relevant next commands:
43
+ - `/create-page <title>` to build a new page.
44
+ - `/publish-page <slug>` to toggle a draft live.
45
+ - `/update-page <slug>` to edit an existing page.
@@ -0,0 +1,64 @@
1
+ ---
2
+ id: "cmd_publish_page"
3
+ name: "Publish Website Page"
4
+ slash: "/publish-page"
5
+ description: "Publish a page or toggle draft status for website"
6
+ domain_tags: ["pages"]
7
+ required_tools: ["page_publish", "page_list"]
8
+ ---
9
+
10
+ # Publish Website Page (`/publish-page`)
11
+
12
+ Publish a draft landing page or storefront page to make it publicly accessible, or revert a live page back to draft status.
13
+
14
+ ## Available Tools
15
+
16
+ - `page_publish(page_id_or_slug: string, published?: boolean)`: Toggles publication status for a page.
17
+ - `page_list(published_only?: boolean)`: Lists existing pages to discover `id` or `slug` when not provided.
18
+
19
+ ## Accepted Arguments
20
+
21
+ The user may invoke this command with:
22
+
23
+ - A page slug: `/publish-page about` or `/publish-page pricing`
24
+ - A page ID: `/publish-page pg_123`
25
+ - A draft toggle flag: `/publish-page about draft` or `/publish-page about --unpublish`
26
+ - No arguments: `/publish-page` (agent prompts or lists available pages)
27
+
28
+ ## Execution Protocol
29
+
30
+ ### Step 1: Resolve Target Page
31
+
32
+ 1. If the user provided a slug or ID (e.g. `about`, `pricing`), use that target directly.
33
+ 2. If the user did not specify which page to publish, call `page_list()` to inspect all pages in the current profile.
34
+ 3. Present the list of unpublished draft pages to the user and confirm which one to publish, or ask for the page slug/title.
35
+
36
+ ### Step 2: Determine Publication State
37
+
38
+ - By default, set `published: true` (or `1`) to make the page live.
39
+ - If the user explicitly mentions "unpublish", "revert to draft", or "draft", set `published: false` (or `0`).
40
+
41
+ ### Step 3: Execute Publication
42
+
43
+ Call `page_publish` with:
44
+
45
+ ```json
46
+ {
47
+ "page_id_or_slug": "<target_slug_or_id>",
48
+ "published": true
49
+ }
50
+ ```
51
+
52
+ ### Step 4: Verification & Response
53
+
54
+ 1. Confirm the updated publication status.
55
+ 2. Format a clear confirmation response:
56
+ - **Page Title & Slug**: e.g. `About Us` (`/about`)
57
+ - **Status**: Live (Published) or Draft (Offline)
58
+ - **Live URL**: `https://<store-domain>/<slug>` (or `/pages/<slug>`)
59
+ - **Next Actions**: Suggest checking live rendering or editing sections via `/update-page <slug>`.
60
+
61
+ ## Safety Rules
62
+
63
+ - Never delete or drop page sections during publication.
64
+ - If `page_publish` returns an error indicating the page was not found, call `page_list()` to check available slugs and suggest matching pages.
@@ -0,0 +1,42 @@
1
+ ---
2
+ id: "cmd_send_invoice"
3
+ name: "Send Invoice"
4
+ slash: "/send-invoice"
5
+ description: "Send an existing invoice to customer via email or link"
6
+ domain_tags: ["shop"]
7
+ required_tools: ["invoice_send"]
8
+ ---
9
+
10
+ # Send Invoice (`/send-invoice`)
11
+
12
+ Dispatch a finalized customer invoice via email and generate a secure public payment link.
13
+
14
+ ## Available Tools
15
+ - `invoice_send(invoice_id: string, recipient_email?: string)`: Finalizes and delivers the invoice.
16
+
17
+ ## Accepted Arguments
18
+ - `/send-invoice <invoice_id>` e.g. `/send-invoice inv_8472`
19
+ - With explicit recipient: `/send-invoice inv_8472 to:billing@acme.com`
20
+
21
+ ## Execution Protocol
22
+
23
+ ### Step 1: Confirm Invoice ID & Delivery Channel
24
+ 1. Extract invoice ID from command arguments.
25
+ 2. If missing, ask the user for the invoice ID or reference number.
26
+ 3. Confirm recipient email if explicitly provided.
27
+
28
+ ### Step 2: Execute Transmission
29
+ Call `invoice_send`:
30
+ ```json
31
+ {
32
+ "invoice_id": "<invoice_id>",
33
+ "recipient_email": "<optional_email>"
34
+ }
35
+ ```
36
+
37
+ ### Step 3: Confirmation & Payment URL
38
+ Report the delivery result:
39
+ - **Invoice Reference**: e.g. `INV-2026-0042`
40
+ - **Delivery Status**: Delivered via email to customer
41
+ - **Payment Link**: Shareable URL for customer payment
42
+ - **Accounting Note**: Invoice marked as issued in receivables ledger.
@@ -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,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.