@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.
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +25 -0
- package/.cursorrules +10 -0
- package/.superconsole-plugin/plugin.json +62 -0
- package/AGENTS.md +105 -63
- package/CLAUDE.md +11 -84
- package/GEMINI.md +11 -34
- package/README.md +95 -154
- package/assets/logo.svg +3 -0
- package/bin/businesskit.js +45 -18
- 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/brief.md +12 -0
- package/commands/capabilities.md +33 -0
- package/commands/chase.md +12 -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 +124 -0
- package/commands/crm.md +13 -0
- package/commands/followups.md +13 -0
- package/commands/list-components.md +41 -0
- package/commands/list-content.md +46 -0
- package/commands/list-pages.md +45 -0
- package/commands/pipeline.md +13 -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-agent.md +33 -0
- package/commands/update-contact.md +46 -0
- package/commands/update-content.md +48 -0
- package/commands/update-page.md +56 -0
- package/commands/update-price.md +47 -0
- package/commands/write-blog.md +56 -0
- package/commands/write-docs.md +90 -0
- package/commands/write-guide.md +51 -0
- package/commands/write-newsletter.md +50 -0
- package/dist/server.js +4099 -0
- package/mcp_config.json +12 -0
- package/package.json +54 -25
- package/plugin.json +32 -0
- package/scripts/setup.sh +169 -0
- package/scripts/setup.ts +129 -0
- package/scripts/update.sh +56 -0
- package/server.json +21 -0
- package/skills/README.md +20 -27
- package/skills/billing/SKILL.md +64 -0
- package/skills/brand/SKILL.md +30 -86
- package/skills/cms/SKILL.md +111 -0
- package/skills/cms/references/cms-hubs.md +84 -0
- package/skills/cms/references/html-blocks.md +177 -0
- package/skills/copywriting/SKILL.md +1 -1
- package/skills/crm/SKILL.md +24 -0
- package/skills/docs/SKILL.md +65 -0
- package/skills/docs/references/how-to.md +155 -0
- package/skills/inbox/SKILL.md +49 -0
- package/skills/inventory/SKILL.md +69 -0
- package/skills/pages/SKILL.md +214 -0
- package/skills/pages/references/sections-catalog.json +1183 -0
- package/skills/social/SKILL.md +84 -211
- package/skills/social/evals/evals.json +66 -0
- package/skills/social/evals/rubric.md +26 -0
- package/skills/social/examples/repurposing-blog-to-social.md +93 -0
- package/skills/social/examples/weekly-content-calendar.md +30 -0
- package/skills/social/linkedin/SKILL.md +107 -0
- package/skills/social/linkedin/evals/evals.json +106 -0
- package/skills/social/linkedin/evals/rubric.md +28 -0
- package/skills/social/linkedin/examples/gasp-weekly-sprint.md +24 -0
- package/skills/social/linkedin/examples/growth-posts-by-format.md +140 -0
- package/skills/social/linkedin/references/gasp-funnel-and-calibration.md +90 -0
- package/skills/social/linkedin/references/six-growth-formats.md +114 -0
- package/skills/social/references/platforms.md +76 -0
- package/skills/social/references/post-templates.md +105 -0
- package/skills/social/references/reverse-engineering.md +62 -0
- package/src/data/sections-catalog.json +950 -0
- package/src/db.ts +170 -0
- package/src/server.ts +75 -0
- package/src/tools/content.ts +326 -0
- package/src/tools/crm.ts +1416 -0
- package/src/tools/domains.ts +89 -0
- package/src/tools/inbox.ts +270 -0
- package/src/tools/index.ts +116 -0
- package/src/tools/pages.ts +1217 -0
- package/src/tools/shop.ts +771 -0
- package/src/tools/system.ts +94 -0
- package/src/tools/types.ts +17 -0
- 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
|
@@ -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,124 @@
|
|
|
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, links, 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` — Interactive tabbed showcase highlighting capabilities.
|
|
29
|
+
- **Showcase / Proof**: `sc_workspace` or `sc_under_the_hood` — Split interactive terminal/preview with stats and overview.
|
|
30
|
+
- **Pricing / Conversion**: `pricing` or `cta_section` — Tiered price cards with feature pairs and conversion buttons.
|
|
31
|
+
- **Content / FAQ**: `faq`, `about_section`, or `text` — Accordion FAQ block, about story, or rich HTML text block.
|
|
32
|
+
- **Footer**: `sc_footer` — Multi-column site footer with navigation links, status badge, 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": {
|
|
54
|
+
"brandName": "My Store",
|
|
55
|
+
"links": [{ "label": "Features", "url": "#features" }, { "label": "FAQ", "url": "#faq" }],
|
|
56
|
+
"ctaText": "Get Started",
|
|
57
|
+
"ctaUrl": "/signup"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "sc_hero",
|
|
62
|
+
"data": {
|
|
63
|
+
"title": "Empower Your Business Workflow",
|
|
64
|
+
"subtitle": "All-in-one platform for sales, billing, and content management.",
|
|
65
|
+
"primaryButtonText": "Start Free Trial",
|
|
66
|
+
"primaryButtonUrl": "/pricing",
|
|
67
|
+
"secondaryButtonText": "Book a demo →",
|
|
68
|
+
"secondaryButtonUrl": "/contact"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "sc_use_cases",
|
|
73
|
+
"data": {
|
|
74
|
+
"badgeText": "USE CASES",
|
|
75
|
+
"title": "Why Choose Us",
|
|
76
|
+
"subtitle": "Built to streamline your daily operations.",
|
|
77
|
+
"tabs": [
|
|
78
|
+
{
|
|
79
|
+
"id": "workflow",
|
|
80
|
+
"icon": "zap",
|
|
81
|
+
"title": "Fast Checkout",
|
|
82
|
+
"eyebrow": "Fast Checkout",
|
|
83
|
+
"subtitle": "Ring up bills in seconds",
|
|
84
|
+
"headline": "Zero waiting at the counter.",
|
|
85
|
+
"body": "Handle POS billing, inventory updates, and customer receipts in one flow."
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "faq",
|
|
92
|
+
"data": {
|
|
93
|
+
"title": "Frequently Asked Questions",
|
|
94
|
+
"items": [{ "question": "How does it work?", "answer": "..." }]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "sc_footer",
|
|
99
|
+
"data": {
|
|
100
|
+
"brandName": "My Business",
|
|
101
|
+
"copyright": "© 2026 My Business. All rights reserved."
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Step 3: Create the Page
|
|
108
|
+
Call `page_create` with:
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"title": "<Page Title>",
|
|
112
|
+
"slug": "<slug>",
|
|
113
|
+
"excerpt": "<Short meta description>",
|
|
114
|
+
"sections": [...],
|
|
115
|
+
"published": false
|
|
116
|
+
}
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### Step 4: Report Results
|
|
120
|
+
1. Output page summary: Title, slug, total sections configured.
|
|
121
|
+
2. Provide builder/preview link: `/dashboard/pages/<id>` (public route: `/pages/<slug>`).
|
|
122
|
+
3. Explain next actions:
|
|
123
|
+
- Preview or test live: `/publish-page <slug>`
|
|
124
|
+
- Customize specific sections: `/update-page <slug>`
|
package/commands/crm.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_crm_overview"
|
|
3
|
+
name: "CRM Today & Overview"
|
|
4
|
+
slash: "/crm"
|
|
5
|
+
description: "Review contacts, open deals, due follow-ups, and stale items"
|
|
6
|
+
domain_tags: ["crm"]
|
|
7
|
+
required_tools: ["crm_search_contacts", "crm_list_deals", "crm_list_tasks", "crm_list_stale"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# CRM Overview (`/crm`)
|
|
11
|
+
|
|
12
|
+
Inspect active contacts, open deals, due/overdue tasks, and silent contacts/deals.
|
|
13
|
+
Call `crm_list_tasks`, `crm_list_stale`, `crm_list_deals`, and `crm_search_contacts`, then summarize concisely.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_crm_followups"
|
|
3
|
+
name: "Due Follow-ups & Nudges"
|
|
4
|
+
slash: "/followups"
|
|
5
|
+
description: "Review due/overdue tasks and silent leads, and save follow-up drafts"
|
|
6
|
+
domain_tags: ["crm"]
|
|
7
|
+
required_tools: ["crm_list_tasks", "crm_list_stale", "crm_draft_followup"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# CRM Follow-ups (`/followups`)
|
|
11
|
+
|
|
12
|
+
Check due/overdue CRM tasks (`crm_list_tasks`) and quiet contacts (`crm_list_stale`).
|
|
13
|
+
Save follow-up email drafts via `crm_draft_followup` (always saved as drafts, never sent).
|
|
@@ -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,13 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_crm_pipeline"
|
|
3
|
+
name: "CRM Pipeline Review"
|
|
4
|
+
slash: "/pipeline"
|
|
5
|
+
description: "Inspect deals, pipeline stages, and propose stage updates"
|
|
6
|
+
domain_tags: ["crm"]
|
|
7
|
+
required_tools: ["crm_list_deals", "crm_get_deal", "crm_list_stages", "crm_update_deal_stage"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# CRM Pipeline (`/pipeline`)
|
|
11
|
+
|
|
12
|
+
List configured stages (`crm_list_stages`) and open deals (`crm_list_deals`).
|
|
13
|
+
Stage changes use `crm_update_deal_stage` to queue human approval.
|
|
@@ -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.
|