@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.
Files changed (130) 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 -65
  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/generate-schema.ts +244 -0
  38. package/scripts/setup.sh +134 -0
  39. package/scripts/setup.ts +92 -0
  40. package/server.json +21 -0
  41. package/skills/README.md +19 -27
  42. package/skills/billing/SKILL.md +64 -0
  43. package/skills/brand/SKILL.md +30 -86
  44. package/skills/copywriting/SKILL.md +1 -1
  45. package/skills/crm/SKILL.md +38 -0
  46. package/skills/docs-cms/SKILL.md +53 -0
  47. package/skills/docs-cms/references/how-to.md +383 -0
  48. package/skills/inbox/SKILL.md +49 -0
  49. package/skills/inventory/SKILL.md +69 -0
  50. package/skills/pages/SKILL.md +169 -0
  51. package/skills/pages/references/sections-catalog.json +950 -0
  52. package/skills/social/SKILL.md +1 -1
  53. package/templates/antigravity.json +8 -0
  54. package/templates/claude-code.mcp.json +8 -0
  55. package/templates/cursor.mcp.json +8 -0
  56. package/templates/vscode.mcp.json +9 -0
  57. package/.claude/commands/analytics.md +0 -7
  58. package/.claude/commands/blog-writer.md +0 -9
  59. package/.claude/commands/cbo.md +0 -7
  60. package/.claude/commands/ceo.md +0 -10
  61. package/.claude/commands/cmo.md +0 -7
  62. package/.claude/commands/compress.md +0 -73
  63. package/.claude/commands/coo.md +0 -11
  64. package/.claude/commands/copywriter.md +0 -15
  65. package/.claude/commands/course-creator.md +0 -9
  66. package/.claude/commands/crm.md +0 -591
  67. package/.claude/commands/deep.md +0 -50
  68. package/.claude/commands/docs-writer.md +0 -8
  69. package/.claude/commands/forms-builder.md +0 -10
  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/.env.example +0 -2
  80. package/.mcp.json +0 -3
  81. package/ABOUT-ME.md +0 -96
  82. package/HEARTBEAT.md +0 -105
  83. package/PLAN.md +0 -384
  84. package/PRD-Agent-Composition.md +0 -149
  85. package/PRD-Agent-Harness.md +0 -316
  86. package/REFERENCE.md +0 -124
  87. package/SOUL.md +0 -148
  88. package/SYSTEM.md +0 -71
  89. package/agents/_base.ts +0 -63
  90. package/agents/creators/blog-writer.ts +0 -347
  91. package/agents/creators/copywriter.ts +0 -89
  92. package/agents/creators/course-creator.ts +0 -106
  93. package/agents/creators/crm-agent.ts +0 -479
  94. package/agents/creators/docs-writer.ts +0 -77
  95. package/agents/creators/forms-builder.ts +0 -90
  96. package/agents/creators/jobs-manager.ts +0 -82
  97. package/agents/creators/newsletter-writer.ts +0 -91
  98. package/agents/creators/store-manager.ts +0 -138
  99. package/agents/csuite/cbo.ts +0 -109
  100. package/agents/csuite/ceo.ts +0 -121
  101. package/agents/csuite/cmo.ts +0 -109
  102. package/agents/csuite/coo.ts +0 -115
  103. package/agents/growth/analytics-agent.ts +0 -52
  104. package/agents/growth/scheduler.ts +0 -68
  105. package/agents/growth/seo-agent.ts +0 -282
  106. package/agents/growth/social-agent.ts +0 -346
  107. package/brand-voice.md +0 -127
  108. package/cli.ts +0 -125
  109. package/context/brand.md +0 -80
  110. package/context/business.md +0 -66
  111. package/ingest.md +0 -110
  112. package/lib/analytics.ts +0 -81
  113. package/lib/db.adapter.ts +0 -30
  114. package/lib/db.ts +0 -16
  115. package/lib/id.ts +0 -15
  116. package/lib/kb.ts +0 -337
  117. package/lib/memory.ts +0 -219
  118. package/lib/pattern-detector.ts +0 -169
  119. package/lib/profile.ts +0 -119
  120. package/lib/slug.ts +0 -30
  121. package/setup.ts +0 -127
  122. package/skills/agents/SKILL.md +0 -56
  123. package/skills/analytics/SKILL.md +0 -52
  124. package/skills/blog-writer/SKILL.md +0 -452
  125. package/skills/ceo/SKILL.md +0 -25
  126. package/skills/cmo/SKILL.md +0 -8
  127. package/skills/schema/SKILL.md +0 -45
  128. package/skills/store/SKILL.md +0 -62
  129. package/tsconfig.json +0 -13
  130. 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`).