@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.
- 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 -84
- 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/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/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,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_update_content"
|
|
3
|
+
name: "Update Blog, Docs or Guide"
|
|
4
|
+
slash: "/update-content"
|
|
5
|
+
description: "Edit body, metadata, collection, or publish status on an existing post, doc, guide, or newsletter"
|
|
6
|
+
domain_tags: ["content"]
|
|
7
|
+
required_tools: ["content_get", "content_update", "content_list"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Update Content (`/update-content`)
|
|
11
|
+
|
|
12
|
+
Fetch, revise, and update an existing post, documentation article, guide, or newsletter.
|
|
13
|
+
|
|
14
|
+
## Available Tools
|
|
15
|
+
- `content_get(id: string)`: Retrieves current article body HTML, metadata, and status.
|
|
16
|
+
- `content_update(id: string, title?: string, body_html?: string, excerpt?: string, collection_id?: string, seo_title?: string, seo_description?: string, published?: boolean)`: Saves edits.
|
|
17
|
+
- `content_list(category_id?: string, content_type?: string)`: Discovers article IDs.
|
|
18
|
+
|
|
19
|
+
## Accepted Arguments
|
|
20
|
+
- `/update-content <id>` e.g. `/update-content post_821`
|
|
21
|
+
- `/update-content <id> publish` to toggle an article live.
|
|
22
|
+
- Instructions: `/update-content post_821 add callout note about v2 migration`
|
|
23
|
+
|
|
24
|
+
## Execution Protocol
|
|
25
|
+
|
|
26
|
+
### Step 1: Fetch Existing Article
|
|
27
|
+
1. Call `content_get(id: "<id>")` to load the current `body_html`, `title`, and collection metadata.
|
|
28
|
+
2. If ID is unknown, call `content_list` to find matching articles by title.
|
|
29
|
+
|
|
30
|
+
### Step 2: Apply Edits to HTML
|
|
31
|
+
- Preserve existing valid HTML elements and classes (`tech-callout`, `tech-steps`, `tech-accordion`).
|
|
32
|
+
- Apply the user's specific requested changes (e.g. rewrite a paragraph, add a code block, fix typos).
|
|
33
|
+
- Keep pure semantic HTML — never insert raw Markdown syntax.
|
|
34
|
+
|
|
35
|
+
### Step 3: Save Updates
|
|
36
|
+
Call `content_update`:
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"id": "<article_id>",
|
|
40
|
+
"body_html": "<updated_html>",
|
|
41
|
+
"title": "<optional_title>",
|
|
42
|
+
"published": true
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Step 4: Confirmation
|
|
47
|
+
Output updated article title, slug, publish state, and preview link.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_update_page"
|
|
3
|
+
name: "Update Website Page"
|
|
4
|
+
slash: "/update-page"
|
|
5
|
+
description: "Update sections, copy, or settings on an existing page"
|
|
6
|
+
domain_tags: ["pages"]
|
|
7
|
+
required_tools: ["page_get", "page_update", "page_list"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Update Website Page (`/update-page`)
|
|
11
|
+
|
|
12
|
+
Fetch, revise, and update copy, visual sections, styling, or metadata on an existing website page.
|
|
13
|
+
|
|
14
|
+
## Available Tools
|
|
15
|
+
- `page_get(page_id_or_slug: string)`: Retrieves the full current page structure, sections array, and metadata.
|
|
16
|
+
- `page_update(page_id_or_slug: string, title?: string, slug?: string, excerpt?: string, sections?: array, published?: boolean)`: Saves updates.
|
|
17
|
+
- `page_list(published_only?: boolean)`: Discovers page IDs/slugs if target is ambiguous.
|
|
18
|
+
|
|
19
|
+
## Accepted Arguments
|
|
20
|
+
- `/update-page <slug>` e.g. `/update-page home` or `/update-page about`
|
|
21
|
+
- Instructions on what to update, e.g.:
|
|
22
|
+
- `/update-page home add FAQ section with 3 questions`
|
|
23
|
+
- `/update-page pricing change pro plan price to $49`
|
|
24
|
+
- `/update-page about change hero headline to "Building the Future of Retail"`
|
|
25
|
+
|
|
26
|
+
## Execution Protocol
|
|
27
|
+
|
|
28
|
+
### Step 1: Fetch Existing Page
|
|
29
|
+
1. Identify the target page from user arguments. If ambiguous, call `page_list()` to find matching titles/slugs.
|
|
30
|
+
2. Call `page_get` with `page_id_or_slug`:
|
|
31
|
+
```json
|
|
32
|
+
{ "page_id_or_slug": "<slug_or_id>" }
|
|
33
|
+
```
|
|
34
|
+
3. Inspect existing `sections` and metadata.
|
|
35
|
+
|
|
36
|
+
### Step 2: Apply Targeted Modifications
|
|
37
|
+
1. **Preserve Intact Sections**: Never wipe out existing sections that the user didn't ask to change.
|
|
38
|
+
2. **Modify Requested Section**: Update specific fields within the matching section object (e.g. modify headline in `sc_hero`, or add an item to `faq`).
|
|
39
|
+
3. **Add New Sections**: Append or insert new section objects in the appropriate layout order.
|
|
40
|
+
4. **Remove Sections**: Only remove a section if the user explicitly requested its removal.
|
|
41
|
+
|
|
42
|
+
### Step 3: Execute Update
|
|
43
|
+
Call `page_update` with:
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"page_id_or_slug": "<slug_or_id>",
|
|
47
|
+
"sections": <updated_sections_array>,
|
|
48
|
+
"title": "<optional_updated_title>",
|
|
49
|
+
"excerpt": "<optional_updated_excerpt>"
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Step 4: Confirmation
|
|
54
|
+
1. Detail the exact changes applied (e.g. "Updated hero headline", "Appended 3 FAQs").
|
|
55
|
+
2. Provide page status (Draft or Live) and link: `/pages/<slug>`.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_update_pricing"
|
|
3
|
+
name: "Update Product Pricing"
|
|
4
|
+
slash: "/update-price"
|
|
5
|
+
description: "Directly update item cost, selling price or margins"
|
|
6
|
+
domain_tags: ["shop"]
|
|
7
|
+
required_tools: ["product_update_pricing"]
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Update Product Pricing (`/update-price`)
|
|
11
|
+
|
|
12
|
+
Update item cost price, outward selling price (retail / MRP), or minimum floor price on catalog items.
|
|
13
|
+
|
|
14
|
+
## Available Tools
|
|
15
|
+
- `product_update_pricing(sku: string, price?: number, cost_price?: number, min_price?: number)`: Updates item catalog pricing and recalculates profit margins.
|
|
16
|
+
|
|
17
|
+
## Accepted Arguments
|
|
18
|
+
- Single price change: `/update-price sku:WDG-01 price:59.99`
|
|
19
|
+
- Cost & selling change: `/update-price item:"Tellzy 40" cost:1100 price:1450`
|
|
20
|
+
- Margin update: `/update-price sku:SHIRT-01 20% margin`
|
|
21
|
+
|
|
22
|
+
## Execution Protocol
|
|
23
|
+
|
|
24
|
+
### Step 1: Identify Product & Price Points
|
|
25
|
+
1. Match item by SKU, ID, or product name.
|
|
26
|
+
2. Identify which prices are being updated:
|
|
27
|
+
- `price`: Standard retail selling price (MRP).
|
|
28
|
+
- `cost_price`: Inward wholesale cost.
|
|
29
|
+
- `min_price`: Discount floor price.
|
|
30
|
+
|
|
31
|
+
### Step 2: Execute Pricing Update
|
|
32
|
+
Call `product_update_pricing`:
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"sku": "<sku_or_item_name>",
|
|
36
|
+
"price": 59.99,
|
|
37
|
+
"cost_price": 32.00
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Step 3: Confirmation & Margin Calculation
|
|
42
|
+
Report the updated pricing structure:
|
|
43
|
+
- **Product Name & SKU**
|
|
44
|
+
- **New Cost Price**: e.g. $32.00
|
|
45
|
+
- **New Selling Price**: e.g. $59.99
|
|
46
|
+
- **Gross Profit Margin**: `((59.99 - 32.00) / 59.99) * 100` = 46.66%
|
|
47
|
+
- **Status**: Live on catalog and POS billing.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_draft_post"
|
|
3
|
+
name: "Write Blog Post"
|
|
4
|
+
slash: "/write-blog"
|
|
5
|
+
description: "Draft or publish a formatted blog article with clean HTML"
|
|
6
|
+
domain_tags: ["content"]
|
|
7
|
+
cms_id: "cc55cc55-0001-4000-8000-000000000035"
|
|
8
|
+
cms_slug: "blog"
|
|
9
|
+
required_tools: ["blog_post_create", "content_list"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Write Blog Post (`/write-blog`)
|
|
13
|
+
|
|
14
|
+
Draft or publish an engaging, SEO-optimized blog article with clean semantic TipTap HTML, pull quotes, callouts, and comparisons.
|
|
15
|
+
|
|
16
|
+
## Available Tools
|
|
17
|
+
- `blog_post_create(title: string, body_html: string, category_id?: string, content_type?: string, excerpt?: string, seo_title?: string, seo_description?: string, seo_keywords?: string, published?: boolean)`: Creates or publishes a post.
|
|
18
|
+
- `content_list(category_id?: string, content_type?: string)`: Checks existing posts for tone and topic overlap.
|
|
19
|
+
|
|
20
|
+
## Accepted Arguments
|
|
21
|
+
- Topic or title: `/write-blog 5 Ways to Automate Retail Invoicing`
|
|
22
|
+
- Outlines, drafts, or marketing briefs.
|
|
23
|
+
|
|
24
|
+
## Formatting Contract
|
|
25
|
+
1. **Target Hub**: Blog (`content_type: "blog"`, `cms_id: "cc55cc55-0001-4000-8000-000000000035"`).
|
|
26
|
+
2. **HTML Rules**:
|
|
27
|
+
- Write clean semantic HTML in `body_html` — NEVER Markdown syntax (`##`, `*`, ``` ```).
|
|
28
|
+
- NEVER emit `<h1>` in `body_html` (`title` automatically renders as `<h1>`).
|
|
29
|
+
- Use `<h2>`, `<h3>`, `<p>`, `<blockquote><p>...</p></blockquote>`, `<ul data-type="taskList">`, `<div data-type="info-card">`, and `<table>`.
|
|
30
|
+
3. **SEO & Discovery**:
|
|
31
|
+
- Compelling 1–2 sentence `excerpt` and `ai_summary`.
|
|
32
|
+
- `seo_title` prefixed with store or brand name (e.g. `BusinessKit | 5 Ways to Automate Billing`).
|
|
33
|
+
- `seo_description` (150–160 chars) and relevant `seo_keywords`.
|
|
34
|
+
4. **Draft Mode**: Save as draft (`published: false`) unless the user explicitly requests immediate publishing.
|
|
35
|
+
|
|
36
|
+
## Execution Protocol
|
|
37
|
+
1. Formulate title, excerpt, and engaging opening paragraph.
|
|
38
|
+
2. Structure sections using `<h2>`, `<h3>`, and relevant widgets.
|
|
39
|
+
3. Call `blog_post_create`:
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"category_id": "cat_35",
|
|
43
|
+
"content_type": "blog",
|
|
44
|
+
"title": "5 Ways to Automate Retail Invoicing",
|
|
45
|
+
"excerpt": "Discover how modern point-of-sale and automated invoices save hours each week.",
|
|
46
|
+
"seo_title": "5 Ways to Automate Invoicing | BusinessKit",
|
|
47
|
+
"seo_description": "Streamline your retail store billing with automated invoicing workflows.",
|
|
48
|
+
"body_html": "<p>Running a retail store...</p><h2>1. Digitize Inward Invoices</h2>...",
|
|
49
|
+
"published": false
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
4. Output draft confirmation, preview link, and publish command: `/update-content <id> publish`.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_write_docs"
|
|
3
|
+
name: "Write Docs Article"
|
|
4
|
+
slash: "/write-docs"
|
|
5
|
+
description: "Write structured documentation (steps, file code blocks, kbd, info-cards, accordions)"
|
|
6
|
+
domain_tags: ["content"]
|
|
7
|
+
required_tools: ["blog_post_create", "content_list"]
|
|
8
|
+
cms_id: "cc55cc55-0001-4000-8000-000000000032"
|
|
9
|
+
cms_slug: "docs"
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Write Docs Article (`/write-docs`)
|
|
13
|
+
|
|
14
|
+
Create or update structured technical reference and knowledge base documentation with interactive widgets, multi-step instructions, and syntax-highlighted code.
|
|
15
|
+
|
|
16
|
+
## Available Tools
|
|
17
|
+
- `content_list(category_id?: string, content_type?: string)`: Checks existing collections and articles in the Docs hub.
|
|
18
|
+
- `blog_post_create(title: string, body_html: string, category_id?: string, collection_id?: string, content_type?: string, excerpt?: string, seo_title?: string, seo_description?: string, published?: boolean)`: Publishes the documentation article.
|
|
19
|
+
|
|
20
|
+
## Accepted Arguments
|
|
21
|
+
- `/write-docs <title>` e.g. `/write-docs Setup MCP Server`
|
|
22
|
+
- With collection: `/write-docs collection:col_pg_start title:"Pages Architecture"`
|
|
23
|
+
- With full outline: Provide the technical guide requirements directly.
|
|
24
|
+
|
|
25
|
+
## Core Rules & Constraints
|
|
26
|
+
1. **Target Hub**: Knowledge Base / Docs (`category_id: "cat_32"`, `content_type: "docs"`).
|
|
27
|
+
2. **Title Constraint**: Strictly **$\le$ 3 words** (e.g. `What Are Pages`, `Install BusinessKit`). The title automatically renders as the page `<h1>`.
|
|
28
|
+
3. **Never Emit `<h1>` in HTML**: Top-level headings inside `body_html` must start with `<h2>`, followed by `<h3>`.
|
|
29
|
+
4. **Pure Semantic HTML in `body_html`**: Never write Markdown syntax (`##`, `*`, ``` ```, `- `).
|
|
30
|
+
5. **Collection Scoping**: Always associate with a child collection (e.g. `col_pg_start`, `col_crm`). Call `content_list(category_id: "cat_32")` first to discover active collections.
|
|
31
|
+
|
|
32
|
+
## Supported HTML Blocks
|
|
33
|
+
- **Section Headings**: `<h2>Section Title</h2>`, `<h3>Subtopic</h3>`
|
|
34
|
+
- **Prerequisites / Notes**:
|
|
35
|
+
```html
|
|
36
|
+
<div data-type="info-card" class="tech-callout tech-callout--info" role="note">
|
|
37
|
+
<div class="tech-callout__content"><p>Important prerequisite...</p></div>
|
|
38
|
+
</div>
|
|
39
|
+
```
|
|
40
|
+
- **Checklist**:
|
|
41
|
+
```html
|
|
42
|
+
<ul data-type="taskList"><li data-type="taskItem" data-checked="false"><label><input type="checkbox" /></label><div><p>Prerequisite step</p></div></li></ul>
|
|
43
|
+
```
|
|
44
|
+
- **Multi-step Walkthrough**:
|
|
45
|
+
```html
|
|
46
|
+
<div data-type="steps" class="tech-steps">
|
|
47
|
+
<div data-type="step-item" class="tech-step">
|
|
48
|
+
<div data-type="step-title" class="tech-step__title">1. Connect Your Account</div>
|
|
49
|
+
<div data-type="step-content" class="tech-step__content"><p>Step instructions...</p></div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
```
|
|
53
|
+
- **Code & Named Files**:
|
|
54
|
+
```html
|
|
55
|
+
<pre data-filename="config.json"><code class="language-json">{ "profile": "default" }</code></pre>
|
|
56
|
+
```
|
|
57
|
+
- **Keyboard Shortcuts**: `<kbd class="tech-kbd">⌘</kbd> + <kbd class="tech-kbd">K</kbd>`
|
|
58
|
+
- **Accordion FAQ (Collapsed by default)**:
|
|
59
|
+
```html
|
|
60
|
+
<div data-type="accordion-group" class="tech-accordion">
|
|
61
|
+
<div data-type="accordion-item" class="tech-accordion__item" aria-expanded="false">
|
|
62
|
+
<div data-type="accordion-title" class="tech-accordion__summary">Frequently asked question?</div>
|
|
63
|
+
<div data-type="accordion-content" class="tech-accordion__content" hidden="hidden"><p>Answer details...</p></div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Execution Protocol
|
|
69
|
+
1. Call `content_list(category_id: "cat_32")` to find matching child collections.
|
|
70
|
+
2. Compose article with concise `excerpt` and prefixed SEO title (e.g. `Pages: Visual Site Architecture`).
|
|
71
|
+
3. Call `blog_post_create`:
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"category_id": "cat_32",
|
|
75
|
+
"collection_id": "col_pg_start",
|
|
76
|
+
"content_type": "docs",
|
|
77
|
+
"title": "Pages Architecture",
|
|
78
|
+
"excerpt": "Learn how BusinessKit visual pages and components work together.",
|
|
79
|
+
"seo_title": "Pages Architecture | BusinessKit Docs",
|
|
80
|
+
"body_html": "<h2>Overview</h2><p>...</p>",
|
|
81
|
+
"published": true
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
4. Output published URL and summary: `https://<domain>/docs/pages-architecture`.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_write_guide"
|
|
3
|
+
name: "Write Step-by-Step Guide"
|
|
4
|
+
slash: "/write-guide"
|
|
5
|
+
description: "Create an actionable how-to guide with prerequisites, numbered steps, and FAQ"
|
|
6
|
+
domain_tags: ["content"]
|
|
7
|
+
cms_id: "cc55cc55-0001-4000-8000-000000000036"
|
|
8
|
+
cms_slug: "guides"
|
|
9
|
+
required_tools: ["blog_post_create", "content_list"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Write Step-by-Step Guide (`/write-guide`)
|
|
13
|
+
|
|
14
|
+
Create an actionable how-to walkthrough with clear prerequisites, numbered step walkthroughs, code samples, and troubleshooting FAQs.
|
|
15
|
+
|
|
16
|
+
## Available Tools
|
|
17
|
+
- `content_list(category_id?: string, content_type?: string)`: Checks existing guide collections.
|
|
18
|
+
- `blog_post_create(title: string, body_html: string, category_id?: string, collection_id?: string, content_type?: string, excerpt?: string, seo_title?: string, seo_description?: string, published?: boolean)`: Publishes the guide.
|
|
19
|
+
|
|
20
|
+
## Accepted Arguments
|
|
21
|
+
- `/write-guide How to Connect Stripe Terminal`
|
|
22
|
+
- With collection: `/write-guide collection:col_payments title:"Configure Bank Feeds"`
|
|
23
|
+
|
|
24
|
+
## Guide Structure Rules
|
|
25
|
+
1. **Target Hub**: Guides (`content_type: "guides"`, `category_id: "cat_36"`).
|
|
26
|
+
2. **Outcome Opener**: First paragraph `<p>` explains exactly what the user will accomplish.
|
|
27
|
+
3. **Prerequisites**: Highlight required tools, permissions, or accounts inside `<div data-type="info-card">` or `<ul data-type="taskList">`.
|
|
28
|
+
4. **Step Sequence**: Numbered tutorial inside `<div data-type="steps" class="tech-steps">` with code blocks `<pre data-filename="...">` and `<kbd class="tech-kbd">`.
|
|
29
|
+
5. **Troubleshooting FAQ**: Closing FAQ accordion using `<div data-type="accordion-group" class="tech-accordion">`.
|
|
30
|
+
6. **Metadata**: Set `additional_details` like `[{"key": "Difficulty", "value": "Beginner"}, {"key": "Time", "value": "10 mins"}]`.
|
|
31
|
+
|
|
32
|
+
## Execution Protocol
|
|
33
|
+
1. Call `content_list(category_id: "cat_36")` to discover existing guide categories.
|
|
34
|
+
2. Draft semantic HTML following the step sequence structure.
|
|
35
|
+
3. Call `blog_post_create`:
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"category_id": "cat_36",
|
|
39
|
+
"content_type": "guides",
|
|
40
|
+
"title": "Configure Bank Feeds",
|
|
41
|
+
"excerpt": "Connect your business bank account for automated statement reconciliation.",
|
|
42
|
+
"body_html": "<p>In this guide, you will connect...</p><div data-type=\"info-card\">...</div>",
|
|
43
|
+
"published": true
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
4. Output live guide link: `https://<domain>/guides/<slug>`.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "cmd_write_newsletter"
|
|
3
|
+
name: "Write Newsletter"
|
|
4
|
+
slash: "/write-newsletter"
|
|
5
|
+
description: "Draft or publish a newsletter issue with sections, highlights, and CTA"
|
|
6
|
+
domain_tags: ["content"]
|
|
7
|
+
cms_id: "cc55cc55-0001-4000-8000-000000000020"
|
|
8
|
+
cms_slug: "n"
|
|
9
|
+
required_tools: ["blog_post_create"]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Write Newsletter (`/write-newsletter`)
|
|
13
|
+
|
|
14
|
+
Draft or publish a conversational email newsletter issue with curated highlights, tips, and a prominent call-to-action button.
|
|
15
|
+
|
|
16
|
+
## Available Tools
|
|
17
|
+
- `blog_post_create(title: string, body_html: string, category_id?: string, content_type?: string, excerpt?: string, cta_button_text?: string, cta_button_url?: string, published?: boolean)`: Creates or publishes a newsletter issue.
|
|
18
|
+
|
|
19
|
+
## Accepted Arguments
|
|
20
|
+
- `/write-newsletter Issue #14: Holiday Inventory Planning`
|
|
21
|
+
- With theme/notes: `/write-newsletter Weekly digest with 3 top tips and product update`
|
|
22
|
+
|
|
23
|
+
## Newsletter Format Rules
|
|
24
|
+
1. **Target Hub**: Newsletter (`content_type: "n"`, `category_id: "cat_20"`).
|
|
25
|
+
2. **Conversational Tone**: Warm 1–2 paragraph opener `<p>` addressed directly to the reader.
|
|
26
|
+
3. **Sections**: 2–4 scannable sections (`<h2>Main Story</h2>`, `<h2>Quick Reads</h2>` with `<ul>`, `<h2>Tip of the Week</h2>`).
|
|
27
|
+
4. **Callout Tip**: Use `<div data-type="info-card">` or checklist `<ul data-type="taskList">`.
|
|
28
|
+
5. **Call-to-Action (CTA)**: Provide explicit button label and URL (`cta_button_text: "Read Full Release"`, `cta_button_url: "https://..."`).
|
|
29
|
+
|
|
30
|
+
## Execution Protocol
|
|
31
|
+
1. Compose issue title and lead copy.
|
|
32
|
+
2. Structure sections using semantic HTML.
|
|
33
|
+
3. Call `blog_post_create`:
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"category_id": "cat_20",
|
|
37
|
+
"content_type": "n",
|
|
38
|
+
"title": "Holiday Inventory Planning",
|
|
39
|
+
"excerpt": "How to prepare your warehouse stock for Q4 holiday demand spikes.",
|
|
40
|
+
"body_html": "<p>Hey everyone,</p><h2>Main Story</h2>...",
|
|
41
|
+
"cta_button_text": "View Stock Checklist",
|
|
42
|
+
"cta_button_url": "https://example.com/checklist",
|
|
43
|
+
"published": false
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
4. Output draft confirmation, preview link, and send options.
|
package/mcp_config.json
ADDED
package/package.json
CHANGED
|
@@ -1,38 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@businesskit/agent",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.5",
|
|
4
|
+
"description": "Universal BusinessKit Agent Kit — Antigravity, Cursor, Claude Code, VS Code, and Gemini CLI via BusinessKit native MCP tools.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"mcpName": "io.github.businesskitai/agent",
|
|
6
7
|
"bin": {
|
|
7
|
-
"bk": "
|
|
8
|
-
"businesskit": "
|
|
8
|
+
"bk": "bin/businesskit.js",
|
|
9
|
+
"businesskit": "bin/businesskit.js"
|
|
9
10
|
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"commands",
|
|
14
|
+
"skills",
|
|
15
|
+
"templates",
|
|
16
|
+
"scripts",
|
|
17
|
+
"rules",
|
|
18
|
+
"assets",
|
|
19
|
+
"plugin.json",
|
|
20
|
+
"mcp_config.json",
|
|
21
|
+
"server.json",
|
|
22
|
+
"AGENTS.md",
|
|
23
|
+
"CLAUDE.md",
|
|
24
|
+
"GEMINI.md",
|
|
25
|
+
"LICENSE",
|
|
26
|
+
"README.md",
|
|
27
|
+
".cursorrules",
|
|
28
|
+
".claude-plugin",
|
|
29
|
+
".cursor-plugin",
|
|
30
|
+
".superconsole-plugin"
|
|
31
|
+
],
|
|
10
32
|
"scripts": {
|
|
11
|
-
"setup": "
|
|
12
|
-
"
|
|
13
|
-
"ceo": "npx tsx cli.ts ceo",
|
|
14
|
-
"cmo": "npx tsx cli.ts cmo",
|
|
15
|
-
"coo": "npx tsx cli.ts coo",
|
|
16
|
-
"cbo": "npx tsx cli.ts cbo",
|
|
17
|
-
"analytics": "npx tsx cli.ts analytics",
|
|
18
|
-
"seo": "npx tsx cli.ts seo",
|
|
19
|
-
"scheduler:hourly": "npx tsx cli.ts scheduler hourly",
|
|
20
|
-
"scheduler:daily": "npx tsx cli.ts scheduler daily",
|
|
21
|
-
"scheduler:weekly": "npx tsx cli.ts scheduler weekly"
|
|
33
|
+
"setup": "bash ./scripts/setup.sh",
|
|
34
|
+
"setup:ts": "npx tsx scripts/setup.ts"
|
|
22
35
|
},
|
|
23
36
|
"keywords": [
|
|
24
37
|
"claude-code",
|
|
25
38
|
"claude-cowork",
|
|
39
|
+
"antigravity",
|
|
40
|
+
"cursor",
|
|
41
|
+
"mcp",
|
|
42
|
+
"model-context-protocol",
|
|
26
43
|
"ai-agent",
|
|
27
44
|
"business-agent",
|
|
28
|
-
"turso",
|
|
29
|
-
"crm",
|
|
30
|
-
"social-media",
|
|
31
45
|
"businesskit"
|
|
32
46
|
],
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"@libsql/client": "^0.15.15"
|
|
35
|
-
},
|
|
36
47
|
"devDependencies": {
|
|
37
48
|
"@types/node": "^22.0.0",
|
|
38
49
|
"tsx": "^4.19.0",
|
|
@@ -43,8 +54,8 @@
|
|
|
43
54
|
},
|
|
44
55
|
"repository": {
|
|
45
56
|
"type": "git",
|
|
46
|
-
"url": "https://github.com/
|
|
57
|
+
"url": "git+https://github.com/businesskitai/businesskit-agent.git"
|
|
47
58
|
},
|
|
48
|
-
"homepage": "https://github.com/
|
|
59
|
+
"homepage": "https://github.com/businesskitai/businesskit-agent#readme",
|
|
49
60
|
"license": "MIT"
|
|
50
61
|
}
|
package/plugin.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://antigravity.google/schemas/v1/plugin.json",
|
|
3
|
+
"name": "businesskit",
|
|
4
|
+
"displayName": "BusinessKit",
|
|
5
|
+
"version": "1.0.5",
|
|
6
|
+
"description": "Universal BusinessKit autonomous agent kit — POS billing, B2B invoices, inventory restocking, CRM contacts, customer support triage, and website publishing via native MCP tools.",
|
|
7
|
+
"logo": "assets/logo.svg",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "BusinessKit Team",
|
|
10
|
+
"url": "https://businesskit.ai"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://businesskit.ai",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/businesskitai/businesskit-agent"
|
|
16
|
+
},
|
|
17
|
+
"suggestedPrompts": [
|
|
18
|
+
"Draft a customer invoice for Acme Corp with 10 units of consulting",
|
|
19
|
+
"Restock inventory items from this supplier purchase invoice",
|
|
20
|
+
"Create a new landing page with hero, features, and pricing sections"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"businesskit",
|
|
24
|
+
"mcp",
|
|
25
|
+
"billing",
|
|
26
|
+
"pos",
|
|
27
|
+
"invoicing",
|
|
28
|
+
"inventory",
|
|
29
|
+
"crm",
|
|
30
|
+
"website-builder"
|
|
31
|
+
]
|
|
32
|
+
}
|
package/scripts/setup.sh
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# scripts/setup.sh — Auto-configure BusinessKit MCP for any agentic CLI/IDE
|
|
3
|
+
|
|
4
|
+
set -e
|
|
5
|
+
|
|
6
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
|
+
ROOT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
8
|
+
|
|
9
|
+
echo "=== BusinessKit Universal Agent Setup ==="
|
|
10
|
+
|
|
11
|
+
# 1. Locate BusinessKit binary
|
|
12
|
+
BK_BIN=""
|
|
13
|
+
if [ -n "$BUSINESSKIT_BIN" ] && [ -x "$BUSINESSKIT_BIN" ]; then
|
|
14
|
+
BK_BIN="$BUSINESSKIT_BIN"
|
|
15
|
+
elif [ -x "/Applications/BusinessKit.app/Contents/MacOS/businesskit" ]; then
|
|
16
|
+
BK_BIN="/Applications/BusinessKit.app/Contents/MacOS/businesskit"
|
|
17
|
+
elif [ -x "${ROOT_DIR}/../src-tauri/target/release/businesskit" ]; then
|
|
18
|
+
BK_BIN="$(cd "${ROOT_DIR}/../src-tauri/target/release" && pwd)/businesskit"
|
|
19
|
+
elif [ -x "${ROOT_DIR}/../src-tauri/target/debug/businesskit" ]; then
|
|
20
|
+
BK_BIN="$(cd "${ROOT_DIR}/../src-tauri/target/debug" && pwd)/businesskit"
|
|
21
|
+
elif command -v businesskit >/dev/null 2>&1; then
|
|
22
|
+
BK_BIN="$(command -v businesskit)"
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
if [ -z "$BK_BIN" ]; then
|
|
26
|
+
echo "Error: Could not locate BusinessKit binary."
|
|
27
|
+
echo "Please install BusinessKit or set BUSINESSKIT_BIN=/path/to/binary"
|
|
28
|
+
exit 1
|
|
29
|
+
fi
|
|
30
|
+
echo "✓ Found binary: $BK_BIN"
|
|
31
|
+
|
|
32
|
+
# 2. Discover available profiles
|
|
33
|
+
CREDS_DIR="${HOME}/.businesskit/creds"
|
|
34
|
+
PROFILES=()
|
|
35
|
+
DEFAULT_PROFILE="4628a5b1-ac05-4156-9d76-04bbd71119a1" # BusinessKit profile
|
|
36
|
+
|
|
37
|
+
if [ -d "$CREDS_DIR" ]; then
|
|
38
|
+
for f in "${CREDS_DIR}"/userdb_*.dat; do
|
|
39
|
+
if [ -f "$f" ]; then
|
|
40
|
+
pid=$(basename "$f" | sed -e 's/^userdb_//' -e 's/\.dat$//')
|
|
41
|
+
PROFILES+=("$pid")
|
|
42
|
+
fi
|
|
43
|
+
done
|
|
44
|
+
fi
|
|
45
|
+
|
|
46
|
+
SELECTED_PROFILE=""
|
|
47
|
+
if [ -n "$1" ]; then
|
|
48
|
+
SELECTED_PROFILE="$1"
|
|
49
|
+
elif [ "${#PROFILES[@]}" -eq 1 ]; then
|
|
50
|
+
SELECTED_PROFILE="${PROFILES[0]}"
|
|
51
|
+
elif [ -f "${CREDS_DIR}/userdb_${DEFAULT_PROFILE}.dat" ]; then
|
|
52
|
+
SELECTED_PROFILE="$DEFAULT_PROFILE"
|
|
53
|
+
elif [ "${#PROFILES[@]}" -gt 0 ]; then
|
|
54
|
+
SELECTED_PROFILE="${PROFILES[0]}"
|
|
55
|
+
else
|
|
56
|
+
echo "Warning: No cached profiles found in ~/.businesskit/creds/."
|
|
57
|
+
echo "Defaulting to: $DEFAULT_PROFILE"
|
|
58
|
+
SELECTED_PROFILE="$DEFAULT_PROFILE"
|
|
59
|
+
fi
|
|
60
|
+
|
|
61
|
+
echo "✓ Selected profile: $SELECTED_PROFILE"
|
|
62
|
+
|
|
63
|
+
# 3. Create output directory
|
|
64
|
+
mkdir -p "${ROOT_DIR}/output"
|
|
65
|
+
|
|
66
|
+
# 4. Generate Claude Code configuration (.mcp.json)
|
|
67
|
+
cat <<EOF > "${ROOT_DIR}/.mcp.json"
|
|
68
|
+
{
|
|
69
|
+
"mcpServers": {
|
|
70
|
+
"businesskit": {
|
|
71
|
+
"command": "${BK_BIN}",
|
|
72
|
+
"args": ["--mcp", "--profile", "${SELECTED_PROFILE}"]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
EOF
|
|
77
|
+
echo "✓ Generated Claude Code config: ${ROOT_DIR}/.mcp.json"
|
|
78
|
+
|
|
79
|
+
# 5. Generate Cursor configuration (.cursor/mcp.json)
|
|
80
|
+
mkdir -p "${ROOT_DIR}/.cursor"
|
|
81
|
+
cat <<EOF > "${ROOT_DIR}/.cursor/mcp.json"
|
|
82
|
+
{
|
|
83
|
+
"mcpServers": {
|
|
84
|
+
"businesskit": {
|
|
85
|
+
"command": "${BK_BIN}",
|
|
86
|
+
"args": ["--mcp", "--profile", "${SELECTED_PROFILE}"]
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
EOF
|
|
91
|
+
echo "✓ Generated Cursor config: ${ROOT_DIR}/.cursor/mcp.json"
|
|
92
|
+
|
|
93
|
+
# 6. Generate VS Code configuration (.vscode/mcp.json)
|
|
94
|
+
mkdir -p "${ROOT_DIR}/.vscode"
|
|
95
|
+
cat <<EOF > "${ROOT_DIR}/.vscode/mcp.json"
|
|
96
|
+
{
|
|
97
|
+
"servers": {
|
|
98
|
+
"businesskit": {
|
|
99
|
+
"type": "stdio",
|
|
100
|
+
"command": "${BK_BIN}",
|
|
101
|
+
"args": ["--mcp", "--profile", "${SELECTED_PROFILE}"]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
EOF
|
|
106
|
+
echo "✓ Generated VS Code config: ${ROOT_DIR}/.vscode/mcp.json"
|
|
107
|
+
|
|
108
|
+
# 7. Generate Gemini / Antigravity settings
|
|
109
|
+
mkdir -p "${ROOT_DIR}/.gemini"
|
|
110
|
+
cat <<EOF > "${ROOT_DIR}/.gemini/mcp_config.json"
|
|
111
|
+
{
|
|
112
|
+
"mcpServers": {
|
|
113
|
+
"businesskit": {
|
|
114
|
+
"command": "${BK_BIN}",
|
|
115
|
+
"args": ["--mcp", "--profile", "${SELECTED_PROFILE}"]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
EOF
|
|
120
|
+
echo "✓ Generated Antigravity / Gemini config: ${ROOT_DIR}/.gemini/mcp_config.json"
|
|
121
|
+
|
|
122
|
+
# 8. Register with Antigravity CLI if agy is in PATH
|
|
123
|
+
if command -v agy >/dev/null 2>&1; then
|
|
124
|
+
echo "Registering with Antigravity CLI (agy)..."
|
|
125
|
+
agy mcp add businesskit "${BK_BIN}" --mcp --profile "${SELECTED_PROFILE}" 2>/dev/null || true
|
|
126
|
+
fi
|
|
127
|
+
|
|
128
|
+
echo ""
|
|
129
|
+
echo "=== Setup Complete! ==="
|
|
130
|
+
echo "You can now run BusinessKit from any agentic CLI in this workspace:"
|
|
131
|
+
echo " - Antigravity / Gemini CLI"
|
|
132
|
+
echo " - Cursor (open this directory in Cursor)"
|
|
133
|
+
echo " - Claude Code (run 'claude' in this directory)"
|
|
134
|
+
echo " - VS Code Copilot"
|