@businesskit/agent 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +25 -0
- package/.cursorrules +10 -0
- package/.superconsole-plugin/plugin.json +32 -0
- package/AGENTS.md +94 -63
- package/CLAUDE.md +11 -65
- package/GEMINI.md +11 -34
- package/README.md +106 -153
- package/assets/logo.svg +3 -0
- package/bin/businesskit.js +11 -17
- package/commands/add-contact.md +47 -0
- package/commands/add-inventory-from-invoice.md +80 -0
- package/commands/adjust-stock.md +46 -0
- package/commands/capabilities.md +33 -0
- package/commands/check-stock.md +43 -0
- package/commands/create-component.md +109 -0
- package/commands/create-invoice.md +69 -0
- package/commands/create-new-bill.md +65 -0
- package/commands/create-page.md +96 -0
- package/commands/list-components.md +41 -0
- package/commands/list-content.md +46 -0
- package/commands/list-pages.md +45 -0
- package/commands/publish-page.md +64 -0
- package/commands/send-invoice.md +42 -0
- package/commands/seo-audit.md +36 -0
- package/commands/update-contact.md +46 -0
- package/commands/update-content.md +47 -0
- package/commands/update-page.md +55 -0
- package/commands/update-price.md +47 -0
- package/commands/write-blog.md +52 -0
- package/commands/write-docs.md +84 -0
- package/commands/write-guide.md +46 -0
- package/commands/write-newsletter.md +46 -0
- package/mcp_config.json +8 -0
- package/package.json +34 -23
- package/plugin.json +32 -0
- package/scripts/generate-schema.ts +244 -0
- package/scripts/setup.sh +134 -0
- package/scripts/setup.ts +92 -0
- package/server.json +21 -0
- package/skills/README.md +19 -27
- package/skills/billing/SKILL.md +64 -0
- package/skills/brand/SKILL.md +30 -86
- package/skills/copywriting/SKILL.md +1 -1
- package/skills/crm/SKILL.md +38 -0
- package/skills/docs-cms/SKILL.md +53 -0
- package/skills/docs-cms/references/how-to.md +383 -0
- package/skills/inbox/SKILL.md +49 -0
- package/skills/inventory/SKILL.md +69 -0
- package/skills/pages/SKILL.md +169 -0
- package/skills/pages/references/sections-catalog.json +950 -0
- package/skills/social/SKILL.md +1 -1
- package/templates/antigravity.json +8 -0
- package/templates/claude-code.mcp.json +8 -0
- package/templates/cursor.mcp.json +8 -0
- package/templates/vscode.mcp.json +9 -0
- package/.claude/commands/analytics.md +0 -7
- package/.claude/commands/blog-writer.md +0 -9
- package/.claude/commands/cbo.md +0 -7
- package/.claude/commands/ceo.md +0 -10
- package/.claude/commands/cmo.md +0 -7
- package/.claude/commands/compress.md +0 -73
- package/.claude/commands/coo.md +0 -11
- package/.claude/commands/copywriter.md +0 -15
- package/.claude/commands/course-creator.md +0 -9
- package/.claude/commands/crm.md +0 -591
- package/.claude/commands/deep.md +0 -50
- package/.claude/commands/docs-writer.md +0 -8
- package/.claude/commands/forms-builder.md +0 -10
- package/.claude/commands/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/.env.example +0 -2
- package/.mcp.json +0 -3
- package/ABOUT-ME.md +0 -96
- package/HEARTBEAT.md +0 -105
- package/PLAN.md +0 -384
- package/PRD-Agent-Composition.md +0 -149
- package/PRD-Agent-Harness.md +0 -316
- package/REFERENCE.md +0 -124
- package/SOUL.md +0 -148
- package/SYSTEM.md +0 -71
- package/agents/_base.ts +0 -63
- package/agents/creators/blog-writer.ts +0 -347
- package/agents/creators/copywriter.ts +0 -89
- package/agents/creators/course-creator.ts +0 -106
- package/agents/creators/crm-agent.ts +0 -479
- package/agents/creators/docs-writer.ts +0 -77
- package/agents/creators/forms-builder.ts +0 -90
- package/agents/creators/jobs-manager.ts +0 -82
- package/agents/creators/newsletter-writer.ts +0 -91
- package/agents/creators/store-manager.ts +0 -138
- package/agents/csuite/cbo.ts +0 -109
- package/agents/csuite/ceo.ts +0 -121
- package/agents/csuite/cmo.ts +0 -109
- package/agents/csuite/coo.ts +0 -115
- package/agents/growth/analytics-agent.ts +0 -52
- package/agents/growth/scheduler.ts +0 -68
- package/agents/growth/seo-agent.ts +0 -282
- package/agents/growth/social-agent.ts +0 -346
- package/brand-voice.md +0 -127
- package/cli.ts +0 -125
- package/context/brand.md +0 -80
- package/context/business.md +0 -66
- package/ingest.md +0 -110
- package/lib/analytics.ts +0 -81
- package/lib/db.adapter.ts +0 -30
- package/lib/db.ts +0 -16
- package/lib/id.ts +0 -15
- package/lib/kb.ts +0 -337
- package/lib/memory.ts +0 -219
- package/lib/pattern-detector.ts +0 -169
- package/lib/profile.ts +0 -119
- package/lib/slug.ts +0 -30
- package/setup.ts +0 -127
- 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 -45
- package/skills/store/SKILL.md +0 -62
- package/tsconfig.json +0 -13
- package/working-style.md +0 -87
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: inventory
|
|
3
|
+
description: Track physical stock, record purchase bills, update pricing, and audit warehouse inventory.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Inventory & Stock Management Skill
|
|
7
|
+
|
|
8
|
+
Use this skill when checking stock quantities, recording incoming purchase shipments, adjusting stock, or updating product catalog prices.
|
|
9
|
+
|
|
10
|
+
## 1. Operating Rules
|
|
11
|
+
|
|
12
|
+
- Physical inventory changes must be recorded through verified tools to maintain the append-only stock ledger (`shop_stock_ledger`).
|
|
13
|
+
- Never manually insert or delete rows in stock or accounting tables.
|
|
14
|
+
- Purchase invoices automatically update moving average cost and post accounts payable records.
|
|
15
|
+
|
|
16
|
+
## 2. Tool Workflows
|
|
17
|
+
|
|
18
|
+
### A. Check Stock Levels
|
|
19
|
+
Query on-hand quantities, reorder thresholds, and low-stock alerts:
|
|
20
|
+
```json
|
|
21
|
+
call_tool("inventory_get_levels", {
|
|
22
|
+
"item_name": "Tellzy 40",
|
|
23
|
+
"low_stock_only": false
|
|
24
|
+
})
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### B. Receive Stock from Purchase Invoice
|
|
28
|
+
Automatically restock inventory, update cost prices, and calculate retail selling rates from inward supplier bills:
|
|
29
|
+
```json
|
|
30
|
+
call_tool("inventory_receive_purchase_invoice", {
|
|
31
|
+
"vendor_name": "Apex Supplies",
|
|
32
|
+
"invoice_number": "INV-2026-88",
|
|
33
|
+
"invoice_date": "2026-11-22",
|
|
34
|
+
"payment_method": "bank_transfer",
|
|
35
|
+
"payment_status": "confirmed",
|
|
36
|
+
"line_items": [
|
|
37
|
+
{
|
|
38
|
+
"item_name": "Widget A",
|
|
39
|
+
"sku": "WDG-A-01",
|
|
40
|
+
"quantity": 100,
|
|
41
|
+
"unit_cost": 25.00,
|
|
42
|
+
"selling_price": 50.00,
|
|
43
|
+
"batch_number": "BATCH-2026-01",
|
|
44
|
+
"expiry_date": "2027-12-31"
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
})
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### C. Manual Stock Adjustment (Breakage / Audit Variance)
|
|
51
|
+
Record physical count adjustments, damaged goods, or write-offs:
|
|
52
|
+
```json
|
|
53
|
+
call_tool("inventory_add_stock", {
|
|
54
|
+
"sku": "WDG-A-01",
|
|
55
|
+
"quantity_delta": -3,
|
|
56
|
+
"movement_type": "damage",
|
|
57
|
+
"reason": "Damaged in warehouse transit"
|
|
58
|
+
})
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### D. Update Product Pricing
|
|
62
|
+
Update retail price, cost price, or minimum discount floor:
|
|
63
|
+
```json
|
|
64
|
+
call_tool("product_update_pricing", {
|
|
65
|
+
"sku": "WDG-A-01",
|
|
66
|
+
"price": 54.99,
|
|
67
|
+
"cost_price": 25.00
|
|
68
|
+
})
|
|
69
|
+
```
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: pages
|
|
3
|
+
description: Assemble, update, and publish visual landing pages, storefront pages, native sections, and bespoke HTML/CSS components.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Pages & Visual Builder Skill
|
|
7
|
+
|
|
8
|
+
Use this skill to design website pages, assemble modular sections, create bespoke custom components in `user_components`, and manage site publication.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 1. Operating Rules & Design System
|
|
13
|
+
|
|
14
|
+
1. **Native Sections (Default)**: Assemble high-converting pages using battle-tested native section components.
|
|
15
|
+
2. **Design Tokens**: All pages and native sections adapt to the active profile theme:
|
|
16
|
+
- Backgrounds: `var(--surface-1, #09090b)` and `var(--surface-2, #18181b)`
|
|
17
|
+
- Accent / Brand: `var(--accent, #38bdf8)`
|
|
18
|
+
- Text: `var(--text-primary, #ffffff)` and `var(--text-secondary, #a1a1aa)`
|
|
19
|
+
- Borders: `var(--border, rgba(255, 255, 255, 0.12))`
|
|
20
|
+
3. **Category-Aligned Learning**:
|
|
21
|
+
- When building custom components, **always inspect native blueprints in that exact category first** via `page_get_section_schema(category: "<Category>")` or by reading `references/sections-catalog.json`.
|
|
22
|
+
- Never build a custom FAQ by copying Hero structure; never build Pricing without inspecting tier card structures.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Native Sections Catalog
|
|
27
|
+
|
|
28
|
+
The canonical blueprints and field schemas are located in:
|
|
29
|
+
📁 [`references/sections-catalog.json`](./references/sections-catalog.json)
|
|
30
|
+
|
|
31
|
+
| Category | Native Section Types | Description |
|
|
32
|
+
| :--- | :--- | :--- |
|
|
33
|
+
| **Navigation** | `sc_navbar` | Sticky responsive navigation bar with brand title, links, and CTA button. |
|
|
34
|
+
| **Hero** | `sc_hero`, `hero_section` | Primary landing banner with headline, subhead, primary/secondary action buttons, and badge. |
|
|
35
|
+
| **Features** | `sc_use_cases`, `sc_features` | Interactive feature tab cards or grid highlighting core capabilities. |
|
|
36
|
+
| **Showcase** | `sc_workspace`, `sc_under_the_hood` | Split product demo with terminal, preview code, or app screenshots. |
|
|
37
|
+
| **Conversion** | `pricing`, `cta_section` | Tiered pricing cards (monthly/yearly toggle), feature checklists, and purchase CTAs. |
|
|
38
|
+
| **Content** | `faq`, `about_section`, `text` | Accessible accordion FAQ block, company story, or rich prose. |
|
|
39
|
+
| **Social Proof** | `testimonials` | Customer quote cards with avatars, author roles, and star ratings. |
|
|
40
|
+
| **Footer** | `sc_footer` | Multi-column navigation footer with copyright and social links. |
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 3. Custom Component Architecture (`user_components`)
|
|
45
|
+
|
|
46
|
+
When native sections do not cover a specific bespoke layout (e.g. interactive ROI calculator, multi-column comparison matrix):
|
|
47
|
+
|
|
48
|
+
### Required Standards
|
|
49
|
+
1. **Category**: Assign to the matching builder category (`Hero`, `Features`, `Conversion`, `Showcase`, `Social Proof`, `Content`, `Navigation`, `Footer`).
|
|
50
|
+
2. **Editable Content**: Add `contenteditable="true"` and `data-field="<fieldName>"` to all customizable text:
|
|
51
|
+
```html
|
|
52
|
+
<h2 contenteditable="true" data-field="title">Interactive ROI Calculator</h2>
|
|
53
|
+
<p contenteditable="true" data-field="subtitle">Calculate your monthly savings...</p>
|
|
54
|
+
```
|
|
55
|
+
3. **Action Buttons**: Wrap clickable buttons with link metadata:
|
|
56
|
+
```html
|
|
57
|
+
<a href="#" data-field="btnUrl" data-element-type="link">
|
|
58
|
+
<button data-field="btnText" data-element-type="button">Calculate Now</button>
|
|
59
|
+
</a>
|
|
60
|
+
```
|
|
61
|
+
4. **Scoped CSS**: Prefix all rules with a unique root class (e.g. `.comp-roi-custom`) and use design system CSS variables.
|
|
62
|
+
5. **Schema Array**: Provide field definitions for the Visual Builder inspector panel:
|
|
63
|
+
```json
|
|
64
|
+
[
|
|
65
|
+
{ "name": "title", "label": "Headline", "type": "text" },
|
|
66
|
+
{ "name": "btnText", "label": "Button Label", "type": "text" },
|
|
67
|
+
{ "name": "btnUrl", "label": "Button Link", "type": "url" }
|
|
68
|
+
]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 4. MCP Tool Workflows
|
|
74
|
+
|
|
75
|
+
### A. Inspect Blueprint Schemas
|
|
76
|
+
Query native schemas for a category directly from the MCP server:
|
|
77
|
+
```json
|
|
78
|
+
call_tool("page_get_section_schema", {
|
|
79
|
+
"category": "Conversion"
|
|
80
|
+
})
|
|
81
|
+
```
|
|
82
|
+
*(Or read [`references/sections-catalog.json`](./references/sections-catalog.json) directly from this skill directory).*
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
### B. Create Custom Component
|
|
87
|
+
Store a reusable block in `user_components`:
|
|
88
|
+
```json
|
|
89
|
+
call_tool("component_create", {
|
|
90
|
+
"name": "Developer ROI Calculator",
|
|
91
|
+
"collection": "Conversion",
|
|
92
|
+
"html": "<div class=\"comp-roi-custom\"><h2 contenteditable=\"true\" data-field=\"title\">Calculate Savings</h2></div>",
|
|
93
|
+
"css": ".comp-roi-custom { padding: 80px 24px; background: var(--surface-1); color: var(--text-primary); }",
|
|
94
|
+
"schema": [
|
|
95
|
+
{ "name": "title", "label": "Headline", "type": "text" }
|
|
96
|
+
]
|
|
97
|
+
})
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
### C. Assemble Complete Website Page
|
|
103
|
+
Compose native and custom sections in layout order:
|
|
104
|
+
```json
|
|
105
|
+
call_tool("page_create", {
|
|
106
|
+
"title": "Developer Cloud Platform",
|
|
107
|
+
"slug": "cloud",
|
|
108
|
+
"excerpt": "Next-generation serverless platform for autonomous business agents.",
|
|
109
|
+
"sections": [
|
|
110
|
+
{
|
|
111
|
+
"type": "sc_navbar",
|
|
112
|
+
"data": { "brandName": "CloudKit", "ctaText": "Deploy Now", "ctaLink": "/signup" }
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"type": "sc_hero",
|
|
116
|
+
"data": {
|
|
117
|
+
"headline": "Deploy Serverless Apps in Seconds",
|
|
118
|
+
"subheadline": "Zero config, global edge latency, automated database replication.",
|
|
119
|
+
"primaryBtnText": "Get Started Free",
|
|
120
|
+
"primaryBtnUrl": "/signup"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "sc_use_cases",
|
|
125
|
+
"data": { "title": "Platform Highlights", "items": [...] }
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"type": "custom",
|
|
129
|
+
"component_id": "comp_roi_calculator_id"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "pricing",
|
|
133
|
+
"data": { "title": "Transparent Plans", "tiers": [...] }
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "faq",
|
|
137
|
+
"data": { "items": [{ "question": "Can I self-host?", "answer": "Yes..." }] }
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "sc_footer",
|
|
141
|
+
"data": { "copyright": "© 2026 CloudKit. All rights reserved." }
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"published": false
|
|
145
|
+
})
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
### D. Update Page Sections
|
|
151
|
+
Fetch existing structure first with `page_get`, modify sections, and save:
|
|
152
|
+
```json
|
|
153
|
+
call_tool("page_update", {
|
|
154
|
+
"page_id_or_slug": "cloud",
|
|
155
|
+
"sections": <updated_sections_array>
|
|
156
|
+
})
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### E. Publish Page Live
|
|
162
|
+
Toggle page publication state:
|
|
163
|
+
```json
|
|
164
|
+
call_tool("page_publish", {
|
|
165
|
+
"page_id_or_slug": "cloud",
|
|
166
|
+
"published": true
|
|
167
|
+
})
|
|
168
|
+
```
|
|
169
|
+
Live URL is immediately available at `https://<domain>/cloud` (or `/pages/cloud`).
|