@businesskit/agent 1.0.5 → 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.
Files changed (62) hide show
  1. package/.superconsole-plugin/plugin.json +61 -31
  2. package/AGENTS.md +20 -9
  3. package/README.md +101 -113
  4. package/bin/businesskit.js +41 -8
  5. package/commands/brief.md +12 -0
  6. package/commands/chase.md +12 -0
  7. package/commands/create-page.md +43 -15
  8. package/commands/crm.md +13 -0
  9. package/commands/followups.md +13 -0
  10. package/commands/pipeline.md +13 -0
  11. package/commands/update-agent.md +33 -0
  12. package/commands/update-content.md +1 -0
  13. package/commands/update-page.md +3 -2
  14. package/commands/write-blog.md +4 -0
  15. package/commands/write-docs.md +6 -0
  16. package/commands/write-guide.md +5 -0
  17. package/commands/write-newsletter.md +4 -0
  18. package/dist/server.js +4099 -0
  19. package/mcp_config.json +6 -2
  20. package/package.json +23 -5
  21. package/scripts/setup.sh +70 -35
  22. package/scripts/setup.ts +58 -21
  23. package/scripts/update.sh +56 -0
  24. package/server.json +3 -3
  25. package/skills/README.md +3 -2
  26. package/skills/cms/SKILL.md +111 -0
  27. package/skills/cms/references/cms-hubs.md +84 -0
  28. package/skills/cms/references/html-blocks.md +177 -0
  29. package/skills/crm/SKILL.md +15 -29
  30. package/skills/docs/SKILL.md +65 -0
  31. package/skills/docs/references/how-to.md +155 -0
  32. package/skills/pages/SKILL.md +62 -17
  33. package/skills/pages/references/sections-catalog.json +377 -144
  34. package/skills/social/SKILL.md +83 -210
  35. package/skills/social/evals/evals.json +66 -0
  36. package/skills/social/evals/rubric.md +26 -0
  37. package/skills/social/examples/repurposing-blog-to-social.md +93 -0
  38. package/skills/social/examples/weekly-content-calendar.md +30 -0
  39. package/skills/social/linkedin/SKILL.md +107 -0
  40. package/skills/social/linkedin/evals/evals.json +106 -0
  41. package/skills/social/linkedin/evals/rubric.md +28 -0
  42. package/skills/social/linkedin/examples/gasp-weekly-sprint.md +24 -0
  43. package/skills/social/linkedin/examples/growth-posts-by-format.md +140 -0
  44. package/skills/social/linkedin/references/gasp-funnel-and-calibration.md +90 -0
  45. package/skills/social/linkedin/references/six-growth-formats.md +114 -0
  46. package/skills/social/references/platforms.md +76 -0
  47. package/skills/social/references/post-templates.md +105 -0
  48. package/skills/social/references/reverse-engineering.md +62 -0
  49. package/src/data/sections-catalog.json +950 -0
  50. package/src/db.ts +170 -0
  51. package/src/server.ts +75 -0
  52. package/src/tools/content.ts +326 -0
  53. package/src/tools/crm.ts +1416 -0
  54. package/src/tools/domains.ts +89 -0
  55. package/src/tools/inbox.ts +270 -0
  56. package/src/tools/index.ts +116 -0
  57. package/src/tools/pages.ts +1217 -0
  58. package/src/tools/shop.ts +771 -0
  59. package/src/tools/system.ts +94 -0
  60. package/src/tools/types.ts +17 -0
  61. package/skills/docs-cms/SKILL.md +0 -53
  62. package/skills/docs-cms/references/how-to.md +0 -383
@@ -0,0 +1,33 @@
1
+ ---
2
+ id: "cmd_update_agent"
3
+ name: "Update BusinessKit Agent"
4
+ slash: "/update-agent"
5
+ description: "Safely updates BusinessKit Agent to the latest upstream release while preserving user context, memory, and custom skills"
6
+ domain_tags: ["system", "maintenance"]
7
+ required_tools: []
8
+ ---
9
+
10
+ # Update BusinessKit Agent (`/update-agent`)
11
+
12
+ Fetches the latest skills, declarative slash commands, and rules from the canonical [businesskit-agent](https://github.com/businesskitai/businesskit-agent) repository, updating your workspace without removing your personalized business/brand context, memory logs, or custom skills.
13
+
14
+ ## Accepted Arguments
15
+ - `/update-agent`
16
+ - `/update`
17
+
18
+ ## How it works
19
+ 1. **Preserves Custom Context**: Snapshots `context/*.md` (`business.md`, `brand.md`, `brand-voice.md`) in memory before updating.
20
+ 2. **Pulls Latest Release**: Pulls the latest commits/tags from `https://github.com/businesskitai/businesskit-agent`.
21
+ 3. **Preserves Custom Skills**: Any untracked custom skills (e.g. `skills/my-skill/`) or custom commands (`commands/my-command.md`) are strictly untouched.
22
+ 4. **Restores User Context**: Restores your business details and tone settings.
23
+ 5. **Refreshes Config**: Regenerates `.mcp.json`, `.cursor/`, and `.gemini/` configurations.
24
+
25
+ ## Terminal Command
26
+ You can also run this command directly in your terminal at any time:
27
+ ```bash
28
+ npm run update
29
+ # or
30
+ npx @businesskit/agent update
31
+ # or
32
+ ./scripts/update.sh
33
+ ```
@@ -29,6 +29,7 @@ Fetch, revise, and update an existing post, documentation article, guide, or new
29
29
 
30
30
  ### Step 2: Apply Edits to HTML
31
31
  - Preserve existing valid HTML elements and classes (`tech-callout`, `tech-steps`, `tech-accordion`).
32
+ - For supported HTML element syntax, consult [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md).
32
33
  - Apply the user's specific requested changes (e.g. rewrite a paragraph, add a code block, fix typos).
33
34
  - Keep pure semantic HTML — never insert raw Markdown syntax.
34
35
 
@@ -4,7 +4,7 @@ name: "Update Website Page"
4
4
  slash: "/update-page"
5
5
  description: "Update sections, copy, or settings on an existing page"
6
6
  domain_tags: ["pages"]
7
- required_tools: ["page_get", "page_update", "page_list"]
7
+ required_tools: ["page_get", "page_update", "page_list", "page_get_section_schema"]
8
8
  ---
9
9
 
10
10
  # Update Website Page (`/update-page`)
@@ -15,6 +15,7 @@ Fetch, revise, and update copy, visual sections, styling, or metadata on an exis
15
15
  - `page_get(page_id_or_slug: string)`: Retrieves the full current page structure, sections array, and metadata.
16
16
  - `page_update(page_id_or_slug: string, title?: string, slug?: string, excerpt?: string, sections?: array, published?: boolean)`: Saves updates.
17
17
  - `page_list(published_only?: boolean)`: Discovers page IDs/slugs if target is ambiguous.
18
+ - `page_get_section_schema(category?: string, section_type?: string)`: Inspects section schemas before adding new native sections.
18
19
 
19
20
  ## Accepted Arguments
20
21
  - `/update-page <slug>` e.g. `/update-page home` or `/update-page about`
@@ -52,4 +53,4 @@ Call `page_update` with:
52
53
 
53
54
  ### Step 4: Confirmation
54
55
  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>`.
56
+ 2. Provide page status (Draft or Live) and builder/preview link: `/dashboard/pages/<id>` (public route: `/pages/<slug>`).
@@ -33,6 +33,10 @@ Draft or publish an engaging, SEO-optimized blog article with clean semantic Tip
33
33
  - `seo_description` (150–160 chars) and relevant `seo_keywords`.
34
34
  4. **Draft Mode**: Save as draft (`published: false`) unless the user explicitly requests immediate publishing.
35
35
 
36
+ ## Reference Catalog
37
+ Before authoring `body_html`, read:
38
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for exact supported HTML snippets (steps, callout cards, task lists, code blocks, accordion FAQs, and video embeds).
39
+
36
40
  ## Execution Protocol
37
41
  1. Formulate title, excerpt, and engaging opening paragraph.
38
42
  2. Structure sections using `<h2>`, `<h3>`, and relevant widgets.
@@ -28,6 +28,7 @@ Create or update structured technical reference and knowledge base documentation
28
28
  3. **Never Emit `<h1>` in HTML**: Top-level headings inside `body_html` must start with `<h2>`, followed by `<h3>`.
29
29
  4. **Pure Semantic HTML in `body_html`**: Never write Markdown syntax (`##`, `*`, ``` ```, `- `).
30
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
+ 6. **Collection Row Requirement**: When creating or inserting a new `collections` row, **ALWAYS** pass `category_id = "cat_32"`. Collections without `category_id` become orphaned.
31
32
 
32
33
  ## Supported HTML Blocks
33
34
  - **Section Headings**: `<h2>Section Title</h2>`, `<h3>Subtopic</h3>`
@@ -65,6 +66,11 @@ Create or update structured technical reference and knowledge base documentation
65
66
  </div>
66
67
  ```
67
68
 
69
+ ## Reference Catalogs
70
+ Before authoring `body_html`, read:
71
+ - [`skills/docs/references/how-to.md`](../skills/docs/references/how-to.md) for documentation collection hierarchy and naming rules.
72
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for the universal HTML element catalog (steps, callouts, task lists, code blocks, accordion FAQs).
73
+
68
74
  ## Execution Protocol
69
75
  1. Call `content_list(category_id: "cat_32")` to find matching child collections.
70
76
  2. Compose article with concise `excerpt` and prefixed SEO title (e.g. `Pages: Visual Site Architecture`).
@@ -28,6 +28,11 @@ Create an actionable how-to walkthrough with clear prerequisites, numbered step
28
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
29
  5. **Troubleshooting FAQ**: Closing FAQ accordion using `<div data-type="accordion-group" class="tech-accordion">`.
30
30
  6. **Metadata**: Set `additional_details` like `[{"key": "Difficulty", "value": "Beginner"}, {"key": "Time", "value": "10 mins"}]`.
31
+ 7. **Collection Row Requirement**: When creating or inserting a new `collections` row for guides, **ALWAYS** pass `category_id = "cat_36"`. Collections without `category_id` become orphaned.
32
+
33
+ ## Reference Catalog
34
+ Before authoring `body_html`, read:
35
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for exact supported HTML snippets (sequential `<div data-type="steps">`, callout cards, task lists, code blocks, and accordion FAQs).
31
36
 
32
37
  ## Execution Protocol
33
38
  1. Call `content_list(category_id: "cat_36")` to discover existing guide categories.
@@ -27,6 +27,10 @@ Draft or publish a conversational email newsletter issue with curated highlights
27
27
  4. **Callout Tip**: Use `<div data-type="info-card">` or checklist `<ul data-type="taskList">`.
28
28
  5. **Call-to-Action (CTA)**: Provide explicit button label and URL (`cta_button_text: "Read Full Release"`, `cta_button_url: "https://..."`).
29
29
 
30
+ ## Reference Catalog
31
+ Before authoring `body_html`, read:
32
+ - [`skills/cms/references/html-blocks.md`](../skills/cms/references/html-blocks.md) for exact supported HTML snippets (steps, callout cards, task lists, and CTA blocks).
33
+
30
34
  ## Execution Protocol
31
35
  1. Compose issue title and lead copy.
32
36
  2. Structure sections using semantic HTML.