@growthub/cli 0.7.9 → 0.8.1
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/assets/worker-kits/creative-strategist-v1/SKILL.md +95 -0
- package/assets/worker-kits/creative-strategist-v1/bundles/creative-strategist-v1.json +12 -2
- package/assets/worker-kits/creative-strategist-v1/helpers/README.md +29 -0
- package/assets/worker-kits/creative-strategist-v1/helpers/extract-muse-frames.sh +81 -0
- package/assets/worker-kits/creative-strategist-v1/helpers/grep-hooks.sh +62 -0
- package/assets/worker-kits/creative-strategist-v1/kit.json +20 -2
- package/assets/worker-kits/creative-strategist-v1/skills/README.md +23 -0
- package/assets/worker-kits/creative-strategist-v1/skills/frame-analysis/SKILL.md +88 -0
- package/assets/worker-kits/creative-strategist-v1/templates/project.md +48 -0
- package/assets/worker-kits/creative-strategist-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/creative-strategist-v1/workers/creative-strategist/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/.env.example +53 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/QUICKSTART.md +98 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/.env.example +25 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/README.md +36 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/app/api/settings/integrations/route.js +13 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/app/api/workspace/route.js +27 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/app/globals.css +237 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/app/layout.jsx +14 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/app/page.jsx +165 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/app/settings/integrations/page.jsx +134 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/auth/index.js +21 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/env.js +28 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/integrations/growthub-connection-normalizer.js +95 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/integrations/index.js +178 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/payments/index.js +13 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/persistence/index.js +13 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/persistence/postgres.js +16 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/persistence/provider-managed.js +16 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/adapters/persistence/qstash-kv.js +16 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/domain/integrations.js +185 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/lib/domain/portal.js +16 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/next.config.js +10 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/package-lock.json +976 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/package.json +17 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/postcss.config.mjs +3 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/apps/agency-portal/vercel.json +5 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/brands/NEW-CLIENT.md +10 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/brands/_template/brand-kit.md +27 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/brands/growthub/brand-kit.md +25 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/bundles/growthub-agency-portal-starter-v1.json +65 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/docs/adapter-contracts.md +79 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/docs/fork-sync-integration.md +32 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/docs/governed-workspace-primitives.md +182 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/docs/starter-kit-overview.md +30 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/docs/vercel-serverless-deployment.md +46 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/docs/vite-ui-shell-guide.md +24 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/examples/portal-brief-sample.md +44 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/examples/workspace-sample.md +10 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/growthub-meta/README.md +11 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/growthub-meta/kit-standard.md +16 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/helpers/README.md +49 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/kit.json +156 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/output/README.md +13 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/output-standards.md +25 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/runtime-assumptions.md +15 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/setup/check-deps.sh +20 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/setup/verify-env.mjs +92 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/skills/README.md +55 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/skills.md +133 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/index.html +12 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/package-lock.json +1677 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/package.json +20 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/serve.mjs +42 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/src/App.jsx +162 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/src/app.css +138 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/src/main.jsx +10 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/studio/vite.config.js +8 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/agent-contract.md +9 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/client-onboarding-plan.md +56 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/deployment-handoff.md +61 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/deployment-plan.md +22 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/portal-brief.md +65 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/project.md +55 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/supabase-setup-plan.md +26 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/templates/workspace-brief.md +11 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/validation-checklist.md +32 -0
- package/assets/worker-kits/growthub-agency-portal-starter-v1/workers/agency-portal-operator/CLAUDE.md +75 -0
- package/assets/worker-kits/growthub-ai-website-cloner-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-ai-website-cloner-v1/bundles/growthub-ai-website-cloner-v1.json +9 -2
- package/assets/worker-kits/growthub-ai-website-cloner-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-ai-website-cloner-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-ai-website-cloner-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-ai-website-cloner-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-ai-website-cloner-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-ai-website-cloner-v1/workers/ai-website-cloner-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/SKILL.md +122 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/bundles/growthub-custom-workspace-starter-v1.json +14 -2
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/docs/governed-workspace-primitives.md +182 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/helpers/README.md +44 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/kit.json +16 -2
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/skills/README.md +55 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/templates/project.md +55 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-custom-workspace-starter-v1/workers/custom-workspace-operator/CLAUDE.md +24 -2
- package/assets/worker-kits/growthub-email-marketing-v1/SKILL.md +90 -0
- package/assets/worker-kits/growthub-email-marketing-v1/bundles/growthub-email-marketing-v1.json +9 -2
- package/assets/worker-kits/growthub-email-marketing-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-email-marketing-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-email-marketing-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-email-marketing-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-email-marketing-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-email-marketing-v1/workers/email-marketing-strategist/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-geo-seo-v1/SKILL.md +90 -0
- package/assets/worker-kits/growthub-geo-seo-v1/bundles/growthub-geo-seo-v1.json +12 -3
- package/assets/worker-kits/growthub-geo-seo-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-geo-seo-v1/kit.json +23 -5
- package/assets/worker-kits/growthub-geo-seo-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-geo-seo-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-geo-seo-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-geo-seo-v1/workers/geo-seo-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-hyperframes-studio-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-hyperframes-studio-v1/bundles/growthub-hyperframes-studio-v1.json +6 -1
- package/assets/worker-kits/growthub-hyperframes-studio-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-hyperframes-studio-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-hyperframes-studio-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-hyperframes-studio-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-hyperframes-studio-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-hyperframes-studio-v1/workers/hyperframes-studio-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-marketing-skills-v1/SKILL.md +90 -0
- package/assets/worker-kits/growthub-marketing-skills-v1/bundles/growthub-marketing-skills-v1.json +12 -3
- package/assets/worker-kits/growthub-marketing-skills-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-marketing-skills-v1/kit.json +23 -5
- package/assets/worker-kits/growthub-marketing-skills-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-marketing-skills-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-marketing-skills-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-marketing-skills-v1/workers/marketing-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/bundles/growthub-open-higgsfield-studio-v1.json +9 -2
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-open-higgsfield-studio-v1/workers/open-higgsfield-studio-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-open-montage-studio-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-open-montage-studio-v1/bundles/growthub-open-montage-studio-v1.json +9 -2
- package/assets/worker-kits/growthub-open-montage-studio-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-open-montage-studio-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-open-montage-studio-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-open-montage-studio-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-open-montage-studio-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-open-montage-studio-v1/workers/open-montage-studio-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-postiz-social-v1/SKILL.md +90 -0
- package/assets/worker-kits/growthub-postiz-social-v1/bundles/growthub-postiz-social-v1.json +9 -2
- package/assets/worker-kits/growthub-postiz-social-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-postiz-social-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-postiz-social-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-postiz-social-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-postiz-social-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-postiz-social-v1/workers/postiz-social-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-twenty-crm-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-twenty-crm-v1/bundles/growthub-twenty-crm-v1.json +9 -2
- package/assets/worker-kits/growthub-twenty-crm-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-twenty-crm-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-twenty-crm-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-twenty-crm-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-twenty-crm-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-twenty-crm-v1/workers/twenty-crm-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-video-use-studio-v1/SKILL.md +89 -0
- package/assets/worker-kits/growthub-video-use-studio-v1/bundles/growthub-video-use-studio-v1.json +6 -1
- package/assets/worker-kits/growthub-video-use-studio-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-video-use-studio-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-video-use-studio-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-video-use-studio-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-video-use-studio-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-video-use-studio-v1/workers/video-use-studio-operator/CLAUDE.md +22 -0
- package/assets/worker-kits/growthub-zernio-social-v1/SKILL.md +90 -0
- package/assets/worker-kits/growthub-zernio-social-v1/bundles/growthub-zernio-social-v1.json +9 -2
- package/assets/worker-kits/growthub-zernio-social-v1/helpers/README.md +29 -0
- package/assets/worker-kits/growthub-zernio-social-v1/kit.json +14 -2
- package/assets/worker-kits/growthub-zernio-social-v1/skills/README.md +23 -0
- package/assets/worker-kits/growthub-zernio-social-v1/templates/project.md +48 -0
- package/assets/worker-kits/growthub-zernio-social-v1/templates/self-eval.md +67 -0
- package/assets/worker-kits/growthub-zernio-social-v1/workers/zernio-social-operator/CLAUDE.md +22 -0
- package/dist/index.js +970 -241
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
# .growthub-fork/project.md — session memory primitive (v1)
|
|
3
|
+
#
|
|
4
|
+
# Written by the CLI at init/import time. Append-only, human-readable; sits
|
|
5
|
+
# alongside the machine-readable `trace.jsonl`. Approvals, self-eval outcomes,
|
|
6
|
+
# and sub-skill runs all record here.
|
|
7
|
+
#
|
|
8
|
+
# Replaceable tokens (seeded at init time):
|
|
9
|
+
# {{KIT_ID}} {{FORK_ID}} {{STARTED_AT}} {{SOURCE}} {{SOURCE_REF}}
|
|
10
|
+
|
|
11
|
+
kitId: "{{KIT_ID}}"
|
|
12
|
+
forkId: "{{FORK_ID}}"
|
|
13
|
+
startedAt: "{{STARTED_AT}}"
|
|
14
|
+
source: "{{SOURCE}}"
|
|
15
|
+
sourceRef: "{{SOURCE_REF}}"
|
|
16
|
+
skillManifestVersion: 1
|
|
17
|
+
approvals: []
|
|
18
|
+
selfEvalHistory: []
|
|
19
|
+
subSkillRuns: []
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Project journal — fork `{{FORK_ID}}`
|
|
23
|
+
|
|
24
|
+
Baseline primitive: `{{KIT_ID}}`. Seeded at `{{STARTED_AT}}` from `{{SOURCE}}` (`{{SOURCE_REF}}`).
|
|
25
|
+
|
|
26
|
+
This is your cross-session continuity surface. Read the last few entries before every session; append after every material change, approval, and self-eval boundary.
|
|
27
|
+
|
|
28
|
+
## How to use this file
|
|
29
|
+
|
|
30
|
+
1. **Session start.** Read the last 3 entries + tail 20 events in `.growthub-fork/trace.jsonl`. State your plan.
|
|
31
|
+
2. **Material change.** Record as a dated bullet (what, why, outcome). Simultaneously append a typed event to `trace.jsonl` via the Fork Sync Agent — never bypass.
|
|
32
|
+
3. **Approval boundary.** Add a row to `approvals` in the frontmatter (verbatim decision).
|
|
33
|
+
4. **Self-eval boundary.** Append to `selfEvalHistory`: `attempt`, `criteria`, `outcome`, `notes`. Enforce `maxRetries: 3`.
|
|
34
|
+
5. **Sub-skill spawn.** Append to `subSkillRuns`: `subSkill`, `startedAt`, `result`.
|
|
35
|
+
|
|
36
|
+
## Session log
|
|
37
|
+
|
|
38
|
+
<!-- Append newest entries at the bottom. Format:
|
|
39
|
+
|
|
40
|
+
### {{YYYY-MM-DD HH:mm UTC}} · {{skill-slug}}
|
|
41
|
+
- **Plan.** What you intend to do.
|
|
42
|
+
- **Changes.** Material changes (each must correspond to a trace event).
|
|
43
|
+
- **Outcome.** Pass / fail / parked. Reference self-eval criteria.
|
|
44
|
+
- **Next.** What the next session should pick up.
|
|
45
|
+
|
|
46
|
+
-->
|
|
47
|
+
|
|
48
|
+
_No sessions recorded yet. Populated as the fork is operated._
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Self-evaluation template — v1 primitive (Growthub, capability-agnostic)
|
|
2
|
+
|
|
3
|
+
A skill's `selfEval` contract declares **what good looks like** (`criteria[]`) and **the retry ceiling** (`maxRetries`). The agent drives the loop; this file is the pattern the agent follows at every unit of work.
|
|
4
|
+
|
|
5
|
+
The contract is defined in `@growthub/api-contract/skills::SkillSelfEval` and is **capability-agnostic** — the same primitive applies to code edits, copy drafts, CRM rules, API payloads, asset renders, audit passes, and every other domain. The "unit of work" is the smallest reversible change the skill operates on; concrete boundaries are defined in the kit's own `skills.md` operator runbook, not here.
|
|
6
|
+
|
|
7
|
+
## Loop
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
for attempt in 1..maxRetries: # default maxRetries = 3
|
|
11
|
+
generate — produce a proposal (whatever the skill produces)
|
|
12
|
+
apply — materialise the proposal against the fork
|
|
13
|
+
self-evaluate — for each criterion in skill.selfEval.criteria:
|
|
14
|
+
check → pass / fail / needs-confirmation
|
|
15
|
+
record — append to project.md (human) + trace.jsonl (machine)
|
|
16
|
+
|
|
17
|
+
if all criteria pass: break
|
|
18
|
+
if attempt == maxRetries: park with needs_confirmation note. Stop.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What each attempt writes
|
|
22
|
+
|
|
23
|
+
### Human row — append to `.growthub-fork/project.md` "Session log"
|
|
24
|
+
|
|
25
|
+
```md
|
|
26
|
+
### 2026-04-23 18:40 UTC · <skill-slug>
|
|
27
|
+
- **Plan.** What you intend to do this unit of work.
|
|
28
|
+
- **Changes.** Material change applied (must correspond to a trace event).
|
|
29
|
+
- **Self-eval.** attempt 2/3 — criterion "<one of skill.selfEval.criteria>" ✗ (<note>). Retrying.
|
|
30
|
+
- **Outcome.** retry-pending / pass / parked.
|
|
31
|
+
- **Next.** What the next attempt (or next session) should pick up.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Machine row — append to `.growthub-fork/trace.jsonl` (via `appendKitForkTraceEvent`)
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"ts": "2026-04-23T18:40:00.000Z",
|
|
39
|
+
"forkId": "<fork-id>",
|
|
40
|
+
"kitId": "<kit-id>",
|
|
41
|
+
"type": "self_eval_recorded",
|
|
42
|
+
"summary": "attempt 2/3 failed on <criterion>",
|
|
43
|
+
"detail": {
|
|
44
|
+
"skill": "<skill-slug>",
|
|
45
|
+
"attempt": 2,
|
|
46
|
+
"maxRetries": 3,
|
|
47
|
+
"criterion": "<one of skill.selfEval.criteria>",
|
|
48
|
+
"outcome": "fail",
|
|
49
|
+
"notes": "<short explanation>"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Hard rules
|
|
55
|
+
|
|
56
|
+
1. **Never exceed `maxRetries`.** At the ceiling, park with a `needs_confirmation` note and stop. Do not loop forever.
|
|
57
|
+
2. **Record every attempt.** Even the first pass. Continuity depends on a complete journal.
|
|
58
|
+
3. **Keep `project.md` and `trace.jsonl` in sync.** One without the other is a protocol violation.
|
|
59
|
+
4. **Preserve prior entries.** Append-only. Never rewrite history.
|
|
60
|
+
|
|
61
|
+
## Bound the blast radius
|
|
62
|
+
|
|
63
|
+
Evaluate at the smallest unit of work the skill operates on, not only at the end of a multi-step run. The retry ceiling applies to that unit — so a bad attempt does not sink the whole job.
|
|
64
|
+
|
|
65
|
+
What counts as a "unit of work" is **kit-specific** and lives in that kit's `skills.md` operator runbook — not in this agnostic template. A kit picks its own smallest reversible boundary and documents it in `skills.md`; this template does not prescribe one.
|
|
66
|
+
|
|
67
|
+
The agnostic SDK (`@growthub/api-contract/skills::SkillSelfEval`) does not encode any domain-specific boundaries — it only carries `criteria[]`, `maxRetries`, and `traceTo`. See `SKILL.md::selfEval.criteria` in this kit for the concrete checks, and `skills.md` for the kit-specific unit of work.
|
|
@@ -318,3 +318,25 @@ Append a line to the active brand kit DELIVERABLES LOG:
|
|
|
318
318
|
9. `LlmstxtPlan`
|
|
319
319
|
10. `RemediationRoadmap`
|
|
320
320
|
11. `ClientProposal` (if requested)
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## Governed-workspace primitives (v1.2)
|
|
325
|
+
|
|
326
|
+
This workspace carries the six architectural primitives every Growthub fork inherits. The contract is capability-agnostic (`@growthub/api-contract/skills::SkillManifest`); kit-specific specialisation lives in `skills.md` above.
|
|
327
|
+
|
|
328
|
+
1. **`SKILL.md`** at the kit root — the discovery entry / routing menu. Read before `skills.md`.
|
|
329
|
+
2. **Repo-root `AGENTS.md` pointer** — Cursor / Claude / Codex all read the same contract.
|
|
330
|
+
3. **`.growthub-fork/project.md`** — session memory, seeded at init/import from `templates/project.md`. Append a dated entry after every material change.
|
|
331
|
+
4. **Self-evaluation (`selfEval.criteria` + `maxRetries`)** — generate → apply → evaluate → record; retry up to 3; every attempt writes to both `project.md` (human) and `trace.jsonl` (machine). Use `recordSelfEval` (`cli/src/skills/self-eval.ts`); never bypass the fork-trace primitive.
|
|
332
|
+
5. **Nested `skills/<slug>/SKILL.md`** — sub-skill lanes for parallel sub-agents on heavy or narrow work.
|
|
333
|
+
6. **`helpers/<verb>.{sh,mjs,py}`** — safe shell tool layer; promote any inline shell that gets used twice.
|
|
334
|
+
|
|
335
|
+
Command surface from inside this fork:
|
|
336
|
+
|
|
337
|
+
- `growthub skills list` — enumerate this fork’s SKILL.md tree
|
|
338
|
+
- `growthub skills validate` — strict shape check
|
|
339
|
+
- `growthub skills session show` — print the current `.growthub-fork/project.md`
|
|
340
|
+
- `growthub skills session init --kit <kit-id>` — (re-)seed session memory
|
|
341
|
+
|
|
342
|
+
Full user-facing narrative: `cli/assets/worker-kits/growthub-custom-workspace-starter-v1/docs/governed-workspace-primitives.md` (also shipped into any workspace forked from the starter kit).
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: growthub-hyperframes-studio-v1
|
|
3
|
+
description: "Self-contained workspace for Hyperframes video production. Produces implementation-ready video briefs, Hyperframes-compatible prompt packs, and rendered segments. Use when the user says: \"hyperframes\", \"video brief\", \"frame-by-frame prompt\". Session memory tracks scene EDLs, per-cut render outcomes, and self-eval retries (bounded by maxRetries: 3)."
|
|
4
|
+
triggers:
|
|
5
|
+
- hyperframes studio
|
|
6
|
+
- fork growthub-hyperframes-studio-v1
|
|
7
|
+
progressiveDisclosure: true
|
|
8
|
+
sessionMemory:
|
|
9
|
+
path: .growthub-fork/project.md
|
|
10
|
+
selfEval:
|
|
11
|
+
criteria:
|
|
12
|
+
- Operator contract (workers/hyperframes-studio-operator/CLAUDE.md) read before any material change.
|
|
13
|
+
- .growthub-fork/project.md appended to at each material change.
|
|
14
|
+
- .growthub-fork/trace.jsonl receives a typed event for each material change.
|
|
15
|
+
- Kit-specific QUICKSTART / runtime-assumptions / output-standards honoured.
|
|
16
|
+
maxRetries: 3
|
|
17
|
+
traceTo: .growthub-fork/trace.jsonl
|
|
18
|
+
helpers: []
|
|
19
|
+
subSkills: []
|
|
20
|
+
mcpTools: []
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Growthub Agent Worker Kit — Hyperframes Studio
|
|
24
|
+
|
|
25
|
+
Discovery entry + routing menu for the `growthub-hyperframes-studio-v1` worker kit. Family: `studio`. Agent contract: `workers/hyperframes-studio-operator/CLAUDE.md`.
|
|
26
|
+
|
|
27
|
+
## When to use this skill
|
|
28
|
+
|
|
29
|
+
When the user's intent matches any of the triggers above — or when an agent has been dropped into a fork whose `.growthub-fork/fork.json` declares `kitId: "growthub-hyperframes-studio-v1"`.
|
|
30
|
+
|
|
31
|
+
## Decision tree
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Fork exists (this directory contains .growthub-fork/fork.json)?
|
|
35
|
+
├── No → run: growthub starter init --out <path> (or import-repo / import-skill)
|
|
36
|
+
│ then: growthub kit download growthub-hyperframes-studio-v1 --out <path>
|
|
37
|
+
│
|
|
38
|
+
└── Yes → read in this order:
|
|
39
|
+
1. .growthub-fork/project.md — session memory (primitive #3)
|
|
40
|
+
2. SKILL.md (this file) — routing menu (primitive #1)
|
|
41
|
+
3. skills.md — operator runbook
|
|
42
|
+
4. workers/hyperframes-studio-operator/CLAUDE.md — agent contract
|
|
43
|
+
5. QUICKSTART.md — first-run steps
|
|
44
|
+
6. runtime-assumptions.md — host expectations
|
|
45
|
+
7. .growthub-fork/policy.json — what you may touch
|
|
46
|
+
8. .growthub-fork/trace.jsonl (tail 20) — recent machine history
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## The six primitives (same shape across every Growthub worker kit)
|
|
50
|
+
|
|
51
|
+
1. **`SKILL.md`** — this file.
|
|
52
|
+
2. **Symlinked pointer** — repo-root `AGENTS.md` is authoritative.
|
|
53
|
+
3. **`.growthub-fork/project.md`** — session memory, seeded by the CLI from `templates/project.md` at init/import time.
|
|
54
|
+
4. **Self-evaluation** — generate → apply → evaluate → record; retry up to `selfEval.maxRetries` (default 3); mirrors the Fork Sync Agent's preview → apply → trace loop (primitive #4). Contract: `@growthub/api-contract/skills::SkillSelfEval`.
|
|
55
|
+
5. **`skills/`** — nested sub-skills for parallel sub-agents on heavy / narrow work.
|
|
56
|
+
6. **`helpers/`** — safe shell tool layer. Promote inline shell here whenever the same snippet is re-used.
|
|
57
|
+
|
|
58
|
+
## Self-evaluation (primitive #4)
|
|
59
|
+
|
|
60
|
+
Enforce `selfEval.maxRetries: 3`. At the ceiling, park with a `needs_confirmation` note in `project.md` and stop. Record every attempt to both `project.md` and `trace.jsonl`.
|
|
61
|
+
|
|
62
|
+
## Session memory (primitive #3)
|
|
63
|
+
|
|
64
|
+
`.growthub-fork/project.md` is the only cross-session continuity surface for this fork. Append at every material change, approval boundary, and self-eval outcome.
|
|
65
|
+
|
|
66
|
+
## Sub-skills (primitive #5)
|
|
67
|
+
|
|
68
|
+
(None declared at the baseline; populate `skills/` and the frontmatter `subSkills[]` array as specialist lanes emerge.)
|
|
69
|
+
|
|
70
|
+
## Helpers (primitive #6)
|
|
71
|
+
|
|
72
|
+
(None declared at the baseline; populate `helpers/` and the frontmatter `helpers[]` array as inline shell matures.)
|
|
73
|
+
|
|
74
|
+
## MCP routing (optional)
|
|
75
|
+
|
|
76
|
+
List concrete MCP tool IDs in `mcpTools[]` when a fork runs an MCP server for auth-heavy actions. Declarative only at v1.
|
|
77
|
+
|
|
78
|
+
## Related files
|
|
79
|
+
|
|
80
|
+
- `skills.md` — operator runbook (deep)
|
|
81
|
+
- `QUICKSTART.md` — first-run steps
|
|
82
|
+
- `runtime-assumptions.md` — host expectations
|
|
83
|
+
- `output-standards.md` — output locations + manifest shape
|
|
84
|
+
- `validation-checklist.md` — pre-flight checklist (if present)
|
|
85
|
+
- `templates/project.md` — session-memory template
|
|
86
|
+
- `templates/self-eval.md` — self-evaluation template
|
|
87
|
+
- `helpers/README.md` — safe shell tool layer convention
|
|
88
|
+
- `skills/README.md` — sub-skill convention
|
|
89
|
+
- `workers/hyperframes-studio-operator/CLAUDE.md` — agent contract
|
|
@@ -34,7 +34,12 @@
|
|
|
34
34
|
"docs/provider-adapter-layer.md",
|
|
35
35
|
"docs/hyperframes-discovery-path.md",
|
|
36
36
|
"growthub-meta/README.md",
|
|
37
|
-
"growthub-meta/kit-standard.md"
|
|
37
|
+
"growthub-meta/kit-standard.md",
|
|
38
|
+
"SKILL.md",
|
|
39
|
+
"templates/project.md",
|
|
40
|
+
"templates/self-eval.md",
|
|
41
|
+
"helpers/README.md",
|
|
42
|
+
"skills/README.md"
|
|
38
43
|
],
|
|
39
44
|
"optionalPresets": [],
|
|
40
45
|
"export": {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# `helpers/` — safe shell tool layer (primitive #6)
|
|
2
|
+
|
|
3
|
+
A **helper** is a small, deterministic script an agent invokes via one shell call instead of reconstructing a raw pipeline inline. Helpers are reviewable, deterministic, and safer than raw commands.
|
|
4
|
+
|
|
5
|
+
## Convention
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
helpers/
|
|
9
|
+
├── README.md # this file
|
|
10
|
+
├── <verb>.sh # single-purpose shell scripts
|
|
11
|
+
├── <verb>.mjs # optional: Node-based helper
|
|
12
|
+
└── <verb>.py # optional: Python-based helper
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Every helper:
|
|
16
|
+
|
|
17
|
+
1. Carries a one-line header comment: what it does + how to invoke it.
|
|
18
|
+
2. Uses `set -euo pipefail` (or equivalent) — no silent failures.
|
|
19
|
+
3. Has a matching row in the parent `SKILL.md`'s `helpers[]` frontmatter.
|
|
20
|
+
4. Is referenced from `skills.md` at the step the agent should invoke it (no duplicated shell bodies).
|
|
21
|
+
|
|
22
|
+
## When to promote an inline snippet
|
|
23
|
+
|
|
24
|
+
- Appears more than once in `skills.md`.
|
|
25
|
+
- Has fragile quoting or path interpolation.
|
|
26
|
+
- Calls a side-effecting binary (ffmpeg, git, gh, npm install).
|
|
27
|
+
- Multiple sub-skills invoke it.
|
|
28
|
+
|
|
29
|
+
See the parent `SKILL.md` `helpers[]` array for the current roster.
|
|
@@ -46,7 +46,12 @@
|
|
|
46
46
|
"docs/provider-adapter-layer.md",
|
|
47
47
|
"docs/hyperframes-discovery-path.md",
|
|
48
48
|
"growthub-meta/README.md",
|
|
49
|
-
"growthub-meta/kit-standard.md"
|
|
49
|
+
"growthub-meta/kit-standard.md",
|
|
50
|
+
"SKILL.md",
|
|
51
|
+
"templates/project.md",
|
|
52
|
+
"templates/self-eval.md",
|
|
53
|
+
"helpers/README.md",
|
|
54
|
+
"skills/README.md"
|
|
50
55
|
],
|
|
51
56
|
"setupPaths": {
|
|
52
57
|
"quickstart": "QUICKSTART.md",
|
|
@@ -73,7 +78,14 @@
|
|
|
73
78
|
"output/README.md",
|
|
74
79
|
"templates",
|
|
75
80
|
"docs",
|
|
76
|
-
"growthub-meta"
|
|
81
|
+
"growthub-meta",
|
|
82
|
+
"SKILL.md",
|
|
83
|
+
"templates/project.md",
|
|
84
|
+
"templates/self-eval.md",
|
|
85
|
+
"helpers",
|
|
86
|
+
"helpers/README.md",
|
|
87
|
+
"skills",
|
|
88
|
+
"skills/README.md"
|
|
77
89
|
]
|
|
78
90
|
},
|
|
79
91
|
"bundles": [
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# `skills/` — nested sub-skill convention (primitive #5)
|
|
2
|
+
|
|
3
|
+
A **sub-skill** is a full `SKILL.md`-addressable lane that a parent skill can spawn as a parallel sub-agent.
|
|
4
|
+
|
|
5
|
+
## Convention
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
skills/
|
|
9
|
+
├── README.md # this file
|
|
10
|
+
└── <slug>/ # kebab-case; matches the SKILL.md name
|
|
11
|
+
├── SKILL.md # frontmatter + routing body (≤ 500 lines)
|
|
12
|
+
├── references/ # optional — long docs loaded on demand
|
|
13
|
+
├── templates/ # optional — reusable text/JS templates
|
|
14
|
+
└── scripts/ # optional — deterministic helpers
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Each sub-skill's frontmatter follows `@growthub/api-contract/skills::SkillManifest`. Sub-skills share the parent's `.growthub-fork/project.md` journal — they do not branch it.
|
|
18
|
+
|
|
19
|
+
## Parallelism
|
|
20
|
+
|
|
21
|
+
Spawn a sub-skill sub-agent when (a) the sub-skill's work is fully scoped by its own criteria, and (b) the parent's next step does not depend on intermediate state from the sub-skill. Each sub-skill run appends a row to `project.md::subSkillRuns` so the parent can read the outcome on return.
|
|
22
|
+
|
|
23
|
+
See the parent `SKILL.md` `subSkills[]` array for the current roster.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
# .growthub-fork/project.md — session memory primitive (v1)
|
|
3
|
+
#
|
|
4
|
+
# Written by the CLI at init/import time. Append-only, human-readable; sits
|
|
5
|
+
# alongside the machine-readable `trace.jsonl`. Approvals, self-eval outcomes,
|
|
6
|
+
# and sub-skill runs all record here.
|
|
7
|
+
#
|
|
8
|
+
# Replaceable tokens (seeded at init time):
|
|
9
|
+
# {{KIT_ID}} {{FORK_ID}} {{STARTED_AT}} {{SOURCE}} {{SOURCE_REF}}
|
|
10
|
+
|
|
11
|
+
kitId: "{{KIT_ID}}"
|
|
12
|
+
forkId: "{{FORK_ID}}"
|
|
13
|
+
startedAt: "{{STARTED_AT}}"
|
|
14
|
+
source: "{{SOURCE}}"
|
|
15
|
+
sourceRef: "{{SOURCE_REF}}"
|
|
16
|
+
skillManifestVersion: 1
|
|
17
|
+
approvals: []
|
|
18
|
+
selfEvalHistory: []
|
|
19
|
+
subSkillRuns: []
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# Project journal — fork `{{FORK_ID}}`
|
|
23
|
+
|
|
24
|
+
Baseline primitive: `{{KIT_ID}}`. Seeded at `{{STARTED_AT}}` from `{{SOURCE}}` (`{{SOURCE_REF}}`).
|
|
25
|
+
|
|
26
|
+
This is your cross-session continuity surface. Read the last few entries before every session; append after every material change, approval, and self-eval boundary.
|
|
27
|
+
|
|
28
|
+
## How to use this file
|
|
29
|
+
|
|
30
|
+
1. **Session start.** Read the last 3 entries + tail 20 events in `.growthub-fork/trace.jsonl`. State your plan.
|
|
31
|
+
2. **Material change.** Record as a dated bullet (what, why, outcome). Simultaneously append a typed event to `trace.jsonl` via the Fork Sync Agent — never bypass.
|
|
32
|
+
3. **Approval boundary.** Add a row to `approvals` in the frontmatter (verbatim decision).
|
|
33
|
+
4. **Self-eval boundary.** Append to `selfEvalHistory`: `attempt`, `criteria`, `outcome`, `notes`. Enforce `maxRetries: 3`.
|
|
34
|
+
5. **Sub-skill spawn.** Append to `subSkillRuns`: `subSkill`, `startedAt`, `result`.
|
|
35
|
+
|
|
36
|
+
## Session log
|
|
37
|
+
|
|
38
|
+
<!-- Append newest entries at the bottom. Format:
|
|
39
|
+
|
|
40
|
+
### {{YYYY-MM-DD HH:mm UTC}} · {{skill-slug}}
|
|
41
|
+
- **Plan.** What you intend to do.
|
|
42
|
+
- **Changes.** Material changes (each must correspond to a trace event).
|
|
43
|
+
- **Outcome.** Pass / fail / parked. Reference self-eval criteria.
|
|
44
|
+
- **Next.** What the next session should pick up.
|
|
45
|
+
|
|
46
|
+
-->
|
|
47
|
+
|
|
48
|
+
_No sessions recorded yet. Populated as the fork is operated._
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Self-evaluation template — v1 primitive (Growthub, capability-agnostic)
|
|
2
|
+
|
|
3
|
+
A skill's `selfEval` contract declares **what good looks like** (`criteria[]`) and **the retry ceiling** (`maxRetries`). The agent drives the loop; this file is the pattern the agent follows at every unit of work.
|
|
4
|
+
|
|
5
|
+
The contract is defined in `@growthub/api-contract/skills::SkillSelfEval` and is **capability-agnostic** — the same primitive applies to code edits, copy drafts, CRM rules, API payloads, asset renders, audit passes, and every other domain. The "unit of work" is the smallest reversible change the skill operates on; concrete boundaries are defined in the kit's own `skills.md` operator runbook, not here.
|
|
6
|
+
|
|
7
|
+
## Loop
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
for attempt in 1..maxRetries: # default maxRetries = 3
|
|
11
|
+
generate — produce a proposal (whatever the skill produces)
|
|
12
|
+
apply — materialise the proposal against the fork
|
|
13
|
+
self-evaluate — for each criterion in skill.selfEval.criteria:
|
|
14
|
+
check → pass / fail / needs-confirmation
|
|
15
|
+
record — append to project.md (human) + trace.jsonl (machine)
|
|
16
|
+
|
|
17
|
+
if all criteria pass: break
|
|
18
|
+
if attempt == maxRetries: park with needs_confirmation note. Stop.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## What each attempt writes
|
|
22
|
+
|
|
23
|
+
### Human row — append to `.growthub-fork/project.md` "Session log"
|
|
24
|
+
|
|
25
|
+
```md
|
|
26
|
+
### 2026-04-23 18:40 UTC · <skill-slug>
|
|
27
|
+
- **Plan.** What you intend to do this unit of work.
|
|
28
|
+
- **Changes.** Material change applied (must correspond to a trace event).
|
|
29
|
+
- **Self-eval.** attempt 2/3 — criterion "<one of skill.selfEval.criteria>" ✗ (<note>). Retrying.
|
|
30
|
+
- **Outcome.** retry-pending / pass / parked.
|
|
31
|
+
- **Next.** What the next attempt (or next session) should pick up.
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Machine row — append to `.growthub-fork/trace.jsonl` (via `appendKitForkTraceEvent`)
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"ts": "2026-04-23T18:40:00.000Z",
|
|
39
|
+
"forkId": "<fork-id>",
|
|
40
|
+
"kitId": "<kit-id>",
|
|
41
|
+
"type": "self_eval_recorded",
|
|
42
|
+
"summary": "attempt 2/3 failed on <criterion>",
|
|
43
|
+
"detail": {
|
|
44
|
+
"skill": "<skill-slug>",
|
|
45
|
+
"attempt": 2,
|
|
46
|
+
"maxRetries": 3,
|
|
47
|
+
"criterion": "<one of skill.selfEval.criteria>",
|
|
48
|
+
"outcome": "fail",
|
|
49
|
+
"notes": "<short explanation>"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Hard rules
|
|
55
|
+
|
|
56
|
+
1. **Never exceed `maxRetries`.** At the ceiling, park with a `needs_confirmation` note and stop. Do not loop forever.
|
|
57
|
+
2. **Record every attempt.** Even the first pass. Continuity depends on a complete journal.
|
|
58
|
+
3. **Keep `project.md` and `trace.jsonl` in sync.** One without the other is a protocol violation.
|
|
59
|
+
4. **Preserve prior entries.** Append-only. Never rewrite history.
|
|
60
|
+
|
|
61
|
+
## Bound the blast radius
|
|
62
|
+
|
|
63
|
+
Evaluate at the smallest unit of work the skill operates on, not only at the end of a multi-step run. The retry ceiling applies to that unit — so a bad attempt does not sink the whole job.
|
|
64
|
+
|
|
65
|
+
What counts as a "unit of work" is **kit-specific** and lives in that kit's `skills.md` operator runbook — not in this agnostic template. A kit picks its own smallest reversible boundary and documents it in `skills.md`; this template does not prescribe one.
|
|
66
|
+
|
|
67
|
+
The agnostic SDK (`@growthub/api-contract/skills::SkillSelfEval`) does not encode any domain-specific boundaries — it only carries `criteria[]`, `maxRetries`, and `traceTo`. See `SKILL.md::selfEval.criteria` in this kit for the concrete checks, and `skills.md` for the kit-specific unit of work.
|
|
@@ -16,3 +16,25 @@ You convert campaign goals into implementation-ready Hyperframes composition and
|
|
|
16
16
|
4. Verify environment with `node setup/verify-env.mjs`.
|
|
17
17
|
|
|
18
18
|
If setup checks fail, stop and return remediation only.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Governed-workspace primitives (v1.2)
|
|
23
|
+
|
|
24
|
+
This workspace carries the six architectural primitives every Growthub fork inherits. The contract is capability-agnostic (`@growthub/api-contract/skills::SkillManifest`); kit-specific specialisation lives in `skills.md` above.
|
|
25
|
+
|
|
26
|
+
1. **`SKILL.md`** at the kit root — the discovery entry / routing menu. Read before `skills.md`.
|
|
27
|
+
2. **Repo-root `AGENTS.md` pointer** — Cursor / Claude / Codex all read the same contract.
|
|
28
|
+
3. **`.growthub-fork/project.md`** — session memory, seeded at init/import from `templates/project.md`. Append a dated entry after every material change.
|
|
29
|
+
4. **Self-evaluation (`selfEval.criteria` + `maxRetries`)** — generate → apply → evaluate → record; retry up to 3; every attempt writes to both `project.md` (human) and `trace.jsonl` (machine). Use `recordSelfEval` (`cli/src/skills/self-eval.ts`); never bypass the fork-trace primitive.
|
|
30
|
+
5. **Nested `skills/<slug>/SKILL.md`** — sub-skill lanes for parallel sub-agents on heavy or narrow work.
|
|
31
|
+
6. **`helpers/<verb>.{sh,mjs,py}`** — safe shell tool layer; promote any inline shell that gets used twice.
|
|
32
|
+
|
|
33
|
+
Command surface from inside this fork:
|
|
34
|
+
|
|
35
|
+
- `growthub skills list` — enumerate this fork’s SKILL.md tree
|
|
36
|
+
- `growthub skills validate` — strict shape check
|
|
37
|
+
- `growthub skills session show` — print the current `.growthub-fork/project.md`
|
|
38
|
+
- `growthub skills session init --kit <kit-id>` — (re-)seed session memory
|
|
39
|
+
|
|
40
|
+
Full user-facing narrative: `cli/assets/worker-kits/growthub-custom-workspace-starter-v1/docs/governed-workspace-primitives.md` (also shipped into any workspace forked from the starter kit).
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: growthub-marketing-skills-v1
|
|
3
|
+
description: "Self-contained marketing execution environment wrapping the open-source marketingskills library — CRO, SEO, content strategy, email, launch, pricing, competitor, ASO. Use when the user says: \"page cro\", \"seo audit\", \"content strategy\", \"launch strategy\", \"competitor analysis\". Session memory tracks dispatched intents, chosen framework+template, and deliverable outcomes."
|
|
4
|
+
triggers:
|
|
5
|
+
- marketing skills
|
|
6
|
+
- marketing operator
|
|
7
|
+
- fork growthub-marketing-skills-v1
|
|
8
|
+
progressiveDisclosure: true
|
|
9
|
+
sessionMemory:
|
|
10
|
+
path: .growthub-fork/project.md
|
|
11
|
+
selfEval:
|
|
12
|
+
criteria:
|
|
13
|
+
- Operator contract (workers/marketing-operator/CLAUDE.md) read before any material change.
|
|
14
|
+
- .growthub-fork/project.md appended to at each material change.
|
|
15
|
+
- .growthub-fork/trace.jsonl receives a typed event for each material change.
|
|
16
|
+
- Kit-specific QUICKSTART / runtime-assumptions / output-standards honoured.
|
|
17
|
+
maxRetries: 3
|
|
18
|
+
traceTo: .growthub-fork/trace.jsonl
|
|
19
|
+
helpers: []
|
|
20
|
+
subSkills: []
|
|
21
|
+
mcpTools: []
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Growthub Agent Worker Kit — Marketing Operator
|
|
25
|
+
|
|
26
|
+
Discovery entry + routing menu for the `growthub-marketing-skills-v1` worker kit. Family: `operator`. Agent contract: `workers/marketing-operator/CLAUDE.md`.
|
|
27
|
+
|
|
28
|
+
## When to use this skill
|
|
29
|
+
|
|
30
|
+
When the user's intent matches any of the triggers above — or when an agent has been dropped into a fork whose `.growthub-fork/fork.json` declares `kitId: "growthub-marketing-skills-v1"`.
|
|
31
|
+
|
|
32
|
+
## Decision tree
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
Fork exists (this directory contains .growthub-fork/fork.json)?
|
|
36
|
+
├── No → run: growthub starter init --out <path> (or import-repo / import-skill)
|
|
37
|
+
│ then: growthub kit download growthub-marketing-skills-v1 --out <path>
|
|
38
|
+
│
|
|
39
|
+
└── Yes → read in this order:
|
|
40
|
+
1. .growthub-fork/project.md — session memory (primitive #3)
|
|
41
|
+
2. SKILL.md (this file) — routing menu (primitive #1)
|
|
42
|
+
3. skills.md — operator runbook
|
|
43
|
+
4. workers/marketing-operator/CLAUDE.md — agent contract
|
|
44
|
+
5. QUICKSTART.md — first-run steps
|
|
45
|
+
6. runtime-assumptions.md — host expectations
|
|
46
|
+
7. .growthub-fork/policy.json — what you may touch
|
|
47
|
+
8. .growthub-fork/trace.jsonl (tail 20) — recent machine history
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## The six primitives (same shape across every Growthub worker kit)
|
|
51
|
+
|
|
52
|
+
1. **`SKILL.md`** — this file.
|
|
53
|
+
2. **Symlinked pointer** — repo-root `AGENTS.md` is authoritative.
|
|
54
|
+
3. **`.growthub-fork/project.md`** — session memory, seeded by the CLI from `templates/project.md` at init/import time.
|
|
55
|
+
4. **Self-evaluation** — generate → apply → evaluate → record; retry up to `selfEval.maxRetries` (default 3); mirrors the Fork Sync Agent's preview → apply → trace loop (primitive #4). Contract: `@growthub/api-contract/skills::SkillSelfEval`.
|
|
56
|
+
5. **`skills/`** — nested sub-skills for parallel sub-agents on heavy / narrow work.
|
|
57
|
+
6. **`helpers/`** — safe shell tool layer. Promote inline shell here whenever the same snippet is re-used.
|
|
58
|
+
|
|
59
|
+
## Self-evaluation (primitive #4)
|
|
60
|
+
|
|
61
|
+
Enforce `selfEval.maxRetries: 3`. At the ceiling, park with a `needs_confirmation` note in `project.md` and stop. Record every attempt to both `project.md` and `trace.jsonl`.
|
|
62
|
+
|
|
63
|
+
## Session memory (primitive #3)
|
|
64
|
+
|
|
65
|
+
`.growthub-fork/project.md` is the only cross-session continuity surface for this fork. Append at every material change, approval boundary, and self-eval outcome.
|
|
66
|
+
|
|
67
|
+
## Sub-skills (primitive #5)
|
|
68
|
+
|
|
69
|
+
(None declared at the baseline; populate `skills/` and the frontmatter `subSkills[]` array as specialist lanes emerge.)
|
|
70
|
+
|
|
71
|
+
## Helpers (primitive #6)
|
|
72
|
+
|
|
73
|
+
(None declared at the baseline; populate `helpers/` and the frontmatter `helpers[]` array as inline shell matures.)
|
|
74
|
+
|
|
75
|
+
## MCP routing (optional)
|
|
76
|
+
|
|
77
|
+
List concrete MCP tool IDs in `mcpTools[]` when a fork runs an MCP server for auth-heavy actions. Declarative only at v1.
|
|
78
|
+
|
|
79
|
+
## Related files
|
|
80
|
+
|
|
81
|
+
- `skills.md` — operator runbook (deep)
|
|
82
|
+
- `QUICKSTART.md` — first-run steps
|
|
83
|
+
- `runtime-assumptions.md` — host expectations
|
|
84
|
+
- `output-standards.md` — output locations + manifest shape
|
|
85
|
+
- `validation-checklist.md` — pre-flight checklist (if present)
|
|
86
|
+
- `templates/project.md` — session-memory template
|
|
87
|
+
- `templates/self-eval.md` — self-evaluation template
|
|
88
|
+
- `helpers/README.md` — safe shell tool layer convention
|
|
89
|
+
- `skills/README.md` — sub-skill convention
|
|
90
|
+
- `workers/marketing-operator/CLAUDE.md` — agent contract
|
package/assets/worker-kits/growthub-marketing-skills-v1/bundles/growthub-marketing-skills-v1.json
CHANGED
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
"workerId": "marketing-operator"
|
|
8
8
|
},
|
|
9
9
|
"briefType": "marketing-operator",
|
|
10
|
-
"publicExampleBrandPaths": [
|
|
10
|
+
"publicExampleBrandPaths": [
|
|
11
|
+
"brands/growthub/product-marketing-context.md"
|
|
12
|
+
],
|
|
11
13
|
"requiredFrozenAssets": [
|
|
12
14
|
"QUICKSTART.md",
|
|
13
15
|
".env.example",
|
|
@@ -32,12 +34,19 @@
|
|
|
32
34
|
"setup/verify-env.mjs",
|
|
33
35
|
"output/README.md",
|
|
34
36
|
"growthub-meta/README.md",
|
|
35
|
-
"growthub-meta/kit-standard.md"
|
|
37
|
+
"growthub-meta/kit-standard.md",
|
|
38
|
+
"SKILL.md",
|
|
39
|
+
"templates/project.md",
|
|
40
|
+
"templates/self-eval.md",
|
|
41
|
+
"helpers/README.md",
|
|
42
|
+
"skills/README.md"
|
|
36
43
|
],
|
|
37
44
|
"optionalPresets": [],
|
|
38
45
|
"export": {
|
|
39
46
|
"folderName": "growthub-agent-worker-kit-marketing-skills-v1",
|
|
40
47
|
"zipFileName": "growthub-agent-worker-kit-marketing-skills-v1.zip"
|
|
41
48
|
},
|
|
42
|
-
"activationModes": [
|
|
49
|
+
"activationModes": [
|
|
50
|
+
"export"
|
|
51
|
+
]
|
|
43
52
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# `helpers/` — safe shell tool layer (primitive #6)
|
|
2
|
+
|
|
3
|
+
A **helper** is a small, deterministic script an agent invokes via one shell call instead of reconstructing a raw pipeline inline. Helpers are reviewable, deterministic, and safer than raw commands.
|
|
4
|
+
|
|
5
|
+
## Convention
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
helpers/
|
|
9
|
+
├── README.md # this file
|
|
10
|
+
├── <verb>.sh # single-purpose shell scripts
|
|
11
|
+
├── <verb>.mjs # optional: Node-based helper
|
|
12
|
+
└── <verb>.py # optional: Python-based helper
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Every helper:
|
|
16
|
+
|
|
17
|
+
1. Carries a one-line header comment: what it does + how to invoke it.
|
|
18
|
+
2. Uses `set -euo pipefail` (or equivalent) — no silent failures.
|
|
19
|
+
3. Has a matching row in the parent `SKILL.md`'s `helpers[]` frontmatter.
|
|
20
|
+
4. Is referenced from `skills.md` at the step the agent should invoke it (no duplicated shell bodies).
|
|
21
|
+
|
|
22
|
+
## When to promote an inline snippet
|
|
23
|
+
|
|
24
|
+
- Appears more than once in `skills.md`.
|
|
25
|
+
- Has fragile quoting or path interpolation.
|
|
26
|
+
- Calls a side-effecting binary (ffmpeg, git, gh, npm install).
|
|
27
|
+
- Multiple sub-skills invoke it.
|
|
28
|
+
|
|
29
|
+
See the parent `SKILL.md` `helpers[]` array for the current roster.
|