arkaos 2.15.0 → 2.16.0

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 (156) hide show
  1. package/VERSION +1 -1
  2. package/arka/SKILL.md +13 -0
  3. package/arka/skills/comfyui/SKILL.md +82 -0
  4. package/arka/skills/comfyui/references/squads.md +80 -0
  5. package/arka/skills/comfyui/references/workflows.md +435 -0
  6. package/arka/skills/forge/SKILL.md +35 -599
  7. package/arka/skills/forge/references/complexity-engine.md +77 -0
  8. package/arka/skills/forge/references/critic-synthesis.md +154 -0
  9. package/arka/skills/forge/references/workflows.md +408 -0
  10. package/arka/skills/fovory/SKILL.md +91 -0
  11. package/arka/skills/fovory/references/integration.md +186 -0
  12. package/arka/skills/fovory/references/workflows.md +209 -0
  13. package/arka/skills/platform-arka/SKILL.md +121 -0
  14. package/arka/skills/platform-arka/references/workflows.md +202 -0
  15. package/arka/skills/rothbard100/SKILL.md +113 -0
  16. package/arka/skills/rothbard100/references/squad.md +111 -0
  17. package/arka/skills/rothbard100/references/workflows.md +175 -0
  18. package/config/constitution.yaml +8 -0
  19. package/config/hooks/pre-compact.sh +11 -5
  20. package/config/hooks/session-start.sh +4 -5
  21. package/config/hooks/token-hygiene.sh +120 -0
  22. package/config/hooks/user-prompt-submit.sh +28 -10
  23. package/core/agents/__pycache__/schema.cpython-313.pyc +0 -0
  24. package/core/agents/schema.py +20 -1
  25. package/core/synapse/__pycache__/layers.cpython-313.pyc +0 -0
  26. package/core/synapse/layers.py +7 -0
  27. package/core/workflow/__pycache__/schema.cpython-313.pyc +0 -0
  28. package/core/workflow/schema.py +4 -1
  29. package/departments/brand/SKILL.md +13 -0
  30. package/departments/brand/agents/brand-director.yaml +1 -0
  31. package/departments/brand/agents/brand-strategist.yaml +1 -0
  32. package/departments/brand/agents/ux-designer.yaml +1 -0
  33. package/departments/brand/agents/visual-designer.yaml +1 -0
  34. package/departments/brand/workflows/identity.yaml +1 -0
  35. package/departments/brand/workflows/naming.yaml +1 -0
  36. package/departments/community/SKILL.md +13 -0
  37. package/departments/community/agents/community-manager.yaml +1 -0
  38. package/departments/community/agents/community-strategist.yaml +1 -0
  39. package/departments/community/agents/engagement-designer.yaml +1 -0
  40. package/departments/community/workflows/setup.yaml +1 -0
  41. package/departments/content/SKILL.md +13 -0
  42. package/departments/content/agents/content-strategist.yaml +1 -0
  43. package/departments/content/agents/repurpose-distributor.yaml +1 -0
  44. package/departments/content/agents/scriptwriter.yaml +1 -0
  45. package/departments/content/agents/viral-engineer.yaml +1 -0
  46. package/departments/content/workflows/viral.yaml +1 -0
  47. package/departments/dev/SKILL.md +13 -0
  48. package/departments/dev/agents/architect.yaml +1 -0
  49. package/departments/dev/agents/backend-dev.yaml +1 -0
  50. package/departments/dev/agents/cto.yaml +1 -0
  51. package/departments/dev/agents/dba.yaml +1 -0
  52. package/departments/dev/agents/devops-eng.yaml +1 -0
  53. package/departments/dev/agents/frontend-dev.yaml +1 -0
  54. package/departments/dev/agents/qa-eng.yaml +1 -0
  55. package/departments/dev/agents/research-assistant.yaml +1 -0
  56. package/departments/dev/agents/security-eng.yaml +1 -0
  57. package/departments/dev/agents/tech-lead.yaml +1 -0
  58. package/departments/dev/skills/onboard/SKILL.md +21 -353
  59. package/departments/dev/skills/onboard/references/mcp-config.md +284 -0
  60. package/departments/dev/skills/onboard/references/stack-detection.md +83 -0
  61. package/departments/dev/workflows/debug.yaml +1 -0
  62. package/departments/dev/workflows/feature.yaml +3 -0
  63. package/departments/dev/workflows/refactor.yaml +1 -0
  64. package/departments/ecom/SKILL.md +13 -0
  65. package/departments/ecom/agents/commerce-engineer.yaml +1 -0
  66. package/departments/ecom/agents/cro-specialist.yaml +1 -0
  67. package/departments/ecom/agents/ecom-director.yaml +1 -0
  68. package/departments/ecom/agents/retention-manager.yaml +1 -0
  69. package/departments/ecom/skills/ecommerce/SKILL.md +66 -0
  70. package/departments/ecom/skills/ecommerce/references/audit-flow.md +109 -0
  71. package/departments/ecom/skills/ecommerce/references/playbooks.md +141 -0
  72. package/departments/ecom/workflows/product-page.yaml +1 -0
  73. package/departments/finance/SKILL.md +13 -0
  74. package/departments/finance/agents/cfo.yaml +1 -0
  75. package/departments/finance/agents/financial-analyst.yaml +1 -0
  76. package/departments/finance/agents/investment-strategist.yaml +1 -0
  77. package/departments/finance/workflows/cashflow.yaml +1 -0
  78. package/departments/finance/workflows/model.yaml +1 -0
  79. package/departments/kb/SKILL.md +13 -0
  80. package/departments/kb/agents/data-collector.yaml +1 -0
  81. package/departments/kb/agents/knowledge-curator.yaml +1 -0
  82. package/departments/kb/agents/knowledge-director.yaml +1 -0
  83. package/departments/kb/agents/research-analyst.yaml +1 -0
  84. package/departments/kb/skills/knowledge/SKILL.md +94 -0
  85. package/departments/kb/skills/knowledge/references/async-processing.md +89 -0
  86. package/departments/kb/skills/knowledge/references/ingestion-pipeline.md +308 -0
  87. package/departments/kb/skills/knowledge/scripts/kb-check-capabilities.sh +143 -0
  88. package/departments/kb/skills/knowledge/scripts/kb-cleanup.sh +135 -0
  89. package/departments/kb/skills/knowledge/scripts/kb-queue.sh +156 -0
  90. package/departments/kb/skills/knowledge/scripts/kb-status.sh +195 -0
  91. package/departments/kb/skills/knowledge/scripts/kb-worker.sh +217 -0
  92. package/departments/kb/workflows/learn.yaml +1 -0
  93. package/departments/landing/SKILL.md +13 -0
  94. package/departments/landing/agents/affiliate-manager.yaml +1 -0
  95. package/departments/landing/agents/conversion-strategist.yaml +1 -0
  96. package/departments/landing/agents/cro-specialist.yaml +1 -0
  97. package/departments/landing/agents/sales-copywriter.yaml +1 -0
  98. package/departments/landing/workflows/launch.yaml +1 -0
  99. package/departments/landing/workflows/offer.yaml +3 -0
  100. package/departments/leadership/SKILL.md +13 -0
  101. package/departments/leadership/agents/culture-coach.yaml +1 -0
  102. package/departments/leadership/agents/hr-specialist.yaml +1 -0
  103. package/departments/leadership/agents/leadership-director.yaml +1 -0
  104. package/departments/leadership/workflows/team-build.yaml +1 -0
  105. package/departments/marketing/SKILL.md +13 -0
  106. package/departments/marketing/agents/content-marketer.yaml +1 -0
  107. package/departments/marketing/agents/marketing-director.yaml +1 -0
  108. package/departments/marketing/agents/paid-specialist.yaml +1 -0
  109. package/departments/marketing/agents/seo-specialist.yaml +1 -0
  110. package/departments/marketing/workflows/campaign.yaml +1 -0
  111. package/departments/marketing/workflows/social.yaml +1 -0
  112. package/departments/ops/SKILL.md +13 -0
  113. package/departments/ops/agents/automation-engineer.yaml +1 -0
  114. package/departments/ops/agents/doc-writer.yaml +1 -0
  115. package/departments/ops/agents/ops-lead.yaml +1 -0
  116. package/departments/ops/skills/operations/SKILL.md +83 -0
  117. package/departments/ops/skills/operations/references/calendar-email.md +73 -0
  118. package/departments/ops/skills/operations/references/clickup-ops.md +224 -0
  119. package/departments/ops/skills/update/SKILL.md +19 -45
  120. package/departments/ops/skills/update/references/sync-engine.md +93 -0
  121. package/departments/ops/skills/update/references/workflows.md +84 -0
  122. package/departments/ops/workflows/lean-audit.yaml +1 -0
  123. package/departments/org/SKILL.md +13 -0
  124. package/departments/org/agents/coo.yaml +1 -0
  125. package/departments/org/agents/org-designer.yaml +1 -0
  126. package/departments/org/agents/people-ops.yaml +1 -0
  127. package/departments/org/workflows/design.yaml +2 -0
  128. package/departments/pm/SKILL.md +13 -0
  129. package/departments/pm/agents/pm-director.yaml +1 -0
  130. package/departments/pm/agents/product-owner.yaml +1 -0
  131. package/departments/pm/agents/scrum-master.yaml +1 -0
  132. package/departments/quality/SKILL.md +13 -0
  133. package/departments/quality/agents/copy-director.yaml +1 -0
  134. package/departments/quality/agents/cqo.yaml +1 -0
  135. package/departments/quality/agents/tech-director.yaml +1 -0
  136. package/departments/saas/SKILL.md +13 -0
  137. package/departments/saas/agents/cs-manager.yaml +1 -0
  138. package/departments/saas/agents/growth-engineer.yaml +1 -0
  139. package/departments/saas/agents/metrics-analyst.yaml +1 -0
  140. package/departments/saas/agents/saas-strategist.yaml +1 -0
  141. package/departments/saas/workflows/metrics.yaml +1 -0
  142. package/departments/saas/workflows/validate.yaml +1 -0
  143. package/departments/sales/SKILL.md +13 -0
  144. package/departments/sales/agents/sales-closer.yaml +1 -0
  145. package/departments/sales/agents/sales-director.yaml +1 -0
  146. package/departments/sales/agents/sales-ops.yaml +1 -0
  147. package/departments/sales/workflows/pipeline.yaml +1 -0
  148. package/departments/strategy/SKILL.md +13 -0
  149. package/departments/strategy/agents/business-model-designer.yaml +1 -0
  150. package/departments/strategy/agents/market-analyst.yaml +1 -0
  151. package/departments/strategy/agents/strategy-director.yaml +1 -0
  152. package/departments/strategy/workflows/analysis.yaml +1 -0
  153. package/departments/strategy/workflows/swot.yaml +1 -0
  154. package/installer/index.js +19 -0
  155. package/package.json +1 -1
  156. package/pyproject.toml +1 -1
@@ -0,0 +1,83 @@
1
+ # arka-onboard — Stack Detection
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## Step 1: Validate Path
6
+
7
+ ```python
8
+ python3 "$ARKA_OS/../arka-onboard/scripts/detect-stack.py" "<path>" --json
9
+ ```
10
+
11
+ If the path doesn't exist, resolve relative to `$HOME` or common project directories (`~/Herd/`, `~/Projects/`, `~/Code/`).
12
+
13
+ Check if already onboarded: look for `projects/<name>/PROJECT.md` in `$ARKA_OS`.
14
+
15
+ ## Step 2: Auto-Detect Stack
16
+
17
+ Run the bundled detection script:
18
+
19
+ ```bash
20
+ python3 "$(dirname "$0")/scripts/detect-stack.py" "<resolved-path>" --json
21
+ ```
22
+
23
+ This returns a JSON report with:
24
+ - **Framework** — Laravel, Nuxt, Vue, React, Next.js, Django, FastAPI, etc.
25
+ - **Language** — PHP, TypeScript, Python, etc.
26
+ - **Stack** — full list of detected technologies
27
+ - **Database** — PostgreSQL, MySQL, SQLite, Supabase
28
+ - **Cache/Queue** — Redis, Horizon
29
+ - **Auth** — Sanctum, Passport, NextAuth, Supabase Auth
30
+ - **Payments** — Stripe, Paddle
31
+ - **CSS** — Tailwind, Sass, Nuxt UI, shadcn/ui
32
+ - **Testing** — Pest, PHPUnit, Vitest, Jest, Playwright
33
+ - **Architecture** — monolith, api-only, monorepo, frontend-spa
34
+ - **Patterns** — Services, Repositories, Actions, DTOs
35
+ - **Conventions** — TypeScript, ESLint, Prettier, PHPStan, Docker
36
+ - **Metrics** — models, controllers, migrations, components, pages, tests
37
+ - **MCP Profile** — recommended profile (laravel/nuxt/vue/react/nextjs/full-stack/base)
38
+
39
+ If the script is not available, detect manually by reading:
40
+ - `composer.json` — PHP/Laravel dependencies
41
+ - `package.json` — Node.js/frontend dependencies
42
+ - `nuxt.config.ts` / `next.config.ts` — framework config
43
+ - `.env.example` or `.env` — database, cache, queue, payment keys
44
+ - `docker-compose.yml` — infrastructure setup
45
+
46
+ ## Step 3: Architecture Analysis
47
+
48
+ Glob the project directory to understand its structure:
49
+
50
+ ```
51
+ # Laravel
52
+ app/Models/*.php → count models
53
+ app/Http/Controllers/ → count controllers
54
+ database/migrations/ → count migrations
55
+ routes/*.php → count route files
56
+ app/Services/ → Services pattern?
57
+ app/Repositories/ → Repository pattern?
58
+ tests/ → count tests
59
+
60
+ # Frontend
61
+ components/**/*.vue|tsx → count components
62
+ pages/**/*.vue|tsx → count pages
63
+ composables/ → composables pattern?
64
+ stores/ → state management?
65
+ ```
66
+
67
+ Determine:
68
+ - **Monolith** — backend + frontend views in one repo
69
+ - **API-only** — backend without frontend views
70
+ - **Monorepo** — `api/` + `frontend/` or `apps/` + `packages/`
71
+ - **Frontend SPA** — no backend, just frontend
72
+
73
+ ## Step 4: Git Analysis
74
+
75
+ Read-only git commands to understand project history:
76
+
77
+ ```bash
78
+ git -C "<path>" remote -v # remotes
79
+ git -C "<path>" branch -a # branches
80
+ git -C "<path>" log --oneline -10 # recent commits
81
+ git -C "<path>" shortlog -sn --no-merges | head -5 # top contributors
82
+ git -C "<path>" rev-list --count HEAD # total commits
83
+ ```
@@ -42,6 +42,7 @@ phases:
42
42
 
43
43
  - id: quality-gate
44
44
  name: Quality Gate
45
+ model_override: opus
45
46
  description: Review fix quality
46
47
  agents:
47
48
  - agent_id: cqo-marta
@@ -11,6 +11,7 @@ quality_gate_required: true
11
11
  phases:
12
12
  - id: spec
13
13
  name: Specification
14
+ model_override: opus
14
15
  description: Create or validate feature specification
15
16
  agents:
16
17
  - agent_id: tech-lead-paulo
@@ -36,6 +37,7 @@ phases:
36
37
 
37
38
  - id: architecture
38
39
  name: Architecture
40
+ model_override: opus
39
41
  description: Design system architecture and write ADR
40
42
  agents:
41
43
  - agent_id: architect-gabriel
@@ -99,6 +101,7 @@ phases:
99
101
 
100
102
  - id: quality-gate
101
103
  name: Quality Gate
104
+ model_override: opus
102
105
  description: Mandatory review by CQO, Copy Director, and Tech Director
103
106
  agents:
104
107
  - agent_id: cqo-marta
@@ -43,6 +43,7 @@ phases:
43
43
 
44
44
  - id: quality-gate
45
45
  name: Quality Gate
46
+ model_override: opus
46
47
  description: Review refactored code
47
48
  agents:
48
49
  - agent_id: cqo-marta
@@ -37,3 +37,16 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
37
37
  | **David** (Engineer) | 2 | C+D | Shopify, headless, checkout, APIs |
38
38
 
39
39
  ## Frameworks: ResearchXL (CXL), RFM (Sanocki), MACH Architecture, Baymard UX Guidelines, E-Commerce Metrics Stack, Subscription Models, Marketplace Flywheel
40
+
41
+ ## Model Selection
42
+
43
+ When dispatching subagent work via the Task tool, include the `model` parameter from the target agent's YAML `model:` field:
44
+
45
+ - Agent YAMLs at `departments/*/agents/*.yaml` have `model: opus | sonnet | haiku`
46
+ - Quality Gate dispatch (Marta/Eduardo/Francisca) ALWAYS uses `model: opus` — NON-NEGOTIABLE
47
+ - Default to `sonnet` if the agent YAML has no `model` field
48
+ - Mechanical tasks (commit messages, routing, keyword extraction) use `model: haiku`
49
+
50
+ Example Task tool call:
51
+
52
+ Task(description="...", subagent_type="general-purpose", model="sonnet", prompt="...")
@@ -3,6 +3,7 @@ name: David
3
3
  role: Commerce Engineer
4
4
  department: ecom
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Alice
3
3
  role: CRO Specialist
4
4
  department: ecom
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Ricardo
3
3
  role: E-Commerce Director
4
4
  department: ecom
5
5
  tier: 1
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Catarina
3
3
  role: Retention & Email Manager
4
4
  department: ecom
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: arka-ecommerce
3
+ description: >
4
+ E-commerce department. Full store audits with 5 parallel agents (UX, SEO, performance,
5
+ content, conversion), product listing optimization, pricing strategy analysis, store launch
6
+ plans, e-commerce ad campaigns, competitor analysis, e-commerce SEO audits, automated email
7
+ flows (cart abandonment, post-purchase, win-back), and store performance reports. Integrates
8
+ with Shopify MCP for direct product/order/customer management. All output saved to Obsidian.
9
+ Use when user says "ecom", "store", "product", "shop", "shopify", "ecommerce", "e-commerce",
10
+ "sales", "conversion", "pricing", "catalog", "inventory", "cart", "checkout", "listing",
11
+ or any online store task.
12
+ ---
13
+
14
+ # E-commerce Department — ARKA OS
15
+
16
+ Store management, product optimization, and e-commerce growth. All output saved to Obsidian (`WizardingCode/Ecommerce/`) with wikilinks and kebab-case tags.
17
+
18
+ ## Squad (compact)
19
+
20
+ - **Ricardo** — Lead (brief, planning, execution, self-critique, delivery)
21
+ - **Tomas** — Strategy challenge (Phase 1)
22
+ - **Helena (CFO)** — Financial supervision (Phase 1 + 5)
23
+ - **Marta (CQO)** — Quality Gate orchestrator (Phase 6) — absolute veto
24
+ - **Eduardo + Francisca** — Copy + technical review under Marta
25
+
26
+ ## Universal Workflow (7-Phase — NON-NEGOTIABLE)
27
+
28
+ Phase 0 BRIEF → Phase 1 CHALLENGE/RESEARCH → Phase 2 PLANNING → Phase 3 EXECUTION → Phase 4 SELF-CRITIQUE → Phase 5 SUPERVISION (Helena) → Phase 6 QUALITY GATE (Marta) → Phase 7 DELIVERY. Every phase transition is announced. No output reaches the user without Marta's APPROVED.
29
+
30
+ ## Commands
31
+
32
+ | Command | Description |
33
+ |---------|-------------|
34
+ | `/ecom audit <url>` | Full store audit (5 parallel agents) |
35
+ | `/ecom product <description>` | Create optimized product listing |
36
+ | `/ecom pricing <product>` | Pricing strategy analysis |
37
+ | `/ecom launch <store>` | New store launch plan |
38
+ | `/ecom ads <product>` | E-commerce ad campaigns |
39
+ | `/ecom competitors <url>` | Competitive e-commerce analysis |
40
+ | `/ecom seo <url>` | E-commerce SEO audit |
41
+ | `/ecom email <type>` | Email flows (cart, post-purchase, win-back) |
42
+ | `/ecom report <store>` | Store performance report |
43
+
44
+ ## Obsidian Output
45
+
46
+ | Content | Vault Path |
47
+ |---------|-----------|
48
+ | Store audits | `WizardingCode/Ecommerce/Audits/<date> <store>.md` |
49
+ | Product analyses | `WizardingCode/Ecommerce/Products/<name>.md` |
50
+ | Competitor research | `WizardingCode/Ecommerce/Competitors/<date> <name>.md` |
51
+ | Launch plans | `WizardingCode/Ecommerce/Launches/<store>.md` |
52
+ | Performance reports | `WizardingCode/Ecommerce/Reports/<date> <store>.md` |
53
+
54
+ ## MCP Integration
55
+
56
+ Shopify MCP (when available): products, orders, customers, discounts, shop details.
57
+
58
+ ## References
59
+
60
+ Load only when executing the relevant workflow:
61
+
62
+ - `references/audit-flow.md` — 5-parallel-agents audit (UX, SEO, performance, content, conversion), synthesis, Obsidian template, report format
63
+ - `references/playbooks.md` — Product listing optimization, pricing strategy (competitor + margin + psychological), RFM, marketplace operations
64
+
65
+ ---
66
+ *All output: `WizardingCode/Ecommerce/` — Part of the [[WizardingCode MOC]]*
@@ -0,0 +1,109 @@
1
+ # arka-ecommerce — Audit Flow (5 Parallel Agents)
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## /ecom audit <url>
6
+
7
+ ### Step 1: Fetch Store Data
8
+ - Use WebFetch to crawl the store URL
9
+ - Capture homepage, key product pages, cart, checkout flow
10
+
11
+ ### Step 2: Run 5 Parallel Audit Agents
12
+
13
+ Launch these agents simultaneously:
14
+
15
+ **Agent 1: UX Auditor**
16
+ - Navigation and information architecture
17
+ - Mobile responsiveness
18
+ - Page load perception
19
+ - Cart and checkout friction
20
+ - Search and filtering usability
21
+
22
+ **Agent 2: SEO Auditor**
23
+ - Title tags, meta descriptions, heading structure
24
+ - Product page SEO (schema markup, alt text, URLs)
25
+ - Internal linking and site structure
26
+ - Collection/category page optimization
27
+ - Technical SEO (canonical URLs, sitemap, robots.txt)
28
+
29
+ **Agent 3: Performance Auditor**
30
+ - Page load speed indicators
31
+ - Image optimization assessment
32
+ - Third-party script overhead
33
+ - Core Web Vitals estimation
34
+ - Mobile performance
35
+
36
+ **Agent 4: Content Auditor**
37
+ - Product descriptions (quality, length, persuasion)
38
+ - Product photography assessment
39
+ - Trust signals (reviews, badges, guarantees)
40
+ - Brand consistency across pages
41
+ - Copy effectiveness (headlines, CTAs)
42
+
43
+ **Agent 5: Conversion Auditor**
44
+ - Call-to-action clarity and placement
45
+ - Social proof visibility
46
+ - Urgency/scarcity elements
47
+ - Upsell and cross-sell opportunities
48
+ - Abandoned cart recovery signals
49
+ - Email capture strategy
50
+
51
+ ### Step 3: Synthesize Results
52
+ - Combine all 5 agent reports
53
+ - Prioritize findings by impact (high/medium/low)
54
+ - Create actionable recommendations with estimated effort
55
+
56
+ ### Step 4: Save to Obsidian
57
+
58
+ **File:** `WizardingCode/Ecommerce/Audits/<YYYY-MM-DD> <store>.md`
59
+ ```markdown
60
+ ---
61
+ type: audit
62
+ department: ecommerce
63
+ title: "<store> — E-commerce Audit"
64
+ url: "<url>"
65
+ date_created: <YYYY-MM-DD>
66
+ tags:
67
+ - "audit"
68
+ - "ecommerce"
69
+ ---
70
+
71
+ # <store> — E-commerce Audit
72
+
73
+ ## Executive Summary
74
+ [Top 3-5 findings and overall score]
75
+
76
+ ## UX Analysis
77
+ [Agent 1 findings]
78
+
79
+ ## SEO Analysis
80
+ [Agent 2 findings]
81
+
82
+ ## Performance Analysis
83
+ [Agent 3 findings]
84
+
85
+ ## Content Analysis
86
+ [Agent 4 findings]
87
+
88
+ ## Conversion Analysis
89
+ [Agent 5 findings]
90
+
91
+ ## Priority Actions
92
+ | # | Action | Impact | Effort | Category |
93
+ |---|--------|--------|--------|----------|
94
+ | 1 | [action] | High | [effort] | [category] |
95
+
96
+ ---
97
+ *Part of the [[WizardingCode MOC]]*
98
+ ```
99
+
100
+ ### Step 5: Report
101
+ ```
102
+ ═══ ARKA ECOM — Store Audit Complete ═══
103
+ Store: <store>
104
+ URL: <url>
105
+ Issues: <count> (High: X, Medium: Y, Low: Z)
106
+ Top action: <highest impact recommendation>
107
+ Obsidian: WizardingCode/Ecommerce/Audits/<date> <store>.md
108
+ ═════════════════════════════════════════
109
+ ```
@@ -0,0 +1,141 @@
1
+ # arka-ecommerce — Playbooks (Product, Pricing, RFM, Marketplace)
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## /ecom product <description>
6
+
7
+ **Step 1: Research**
8
+ - Understand the product from the description
9
+ - If URL provided, use WebFetch to analyze the current listing
10
+ - If Shopify MCP available, pull existing product data
11
+
12
+ **Step 2: Optimize Product Listing**
13
+ - Title: SEO-optimized, keyword-rich, clear benefit
14
+ - Description: Problem → Solution → Benefits → Features → CTA
15
+ - Bullet points: Feature → Benefit format
16
+ - SEO tags: Primary keyword, long-tail variants, related terms
17
+ - Meta description: 155 chars, keyword-included, click-worthy
18
+
19
+ **Step 3: Generate Variants**
20
+ - 3 title options (SEO vs. emotional vs. benefit-led)
21
+ - Short description (50 words) and long description (200+ words)
22
+ - Suggested collections/categories
23
+ - Cross-sell and upsell suggestions
24
+
25
+ **Step 4: Save to Obsidian**
26
+
27
+ **File:** `WizardingCode/Ecommerce/Products/<name>.md`
28
+ ```markdown
29
+ ---
30
+ type: product
31
+ department: ecommerce
32
+ title: "<product name>"
33
+ date_created: <YYYY-MM-DD>
34
+ tags:
35
+ - "product"
36
+ - "ecommerce"
37
+ ---
38
+
39
+ # <product name>
40
+
41
+ ## Optimized Listing
42
+ ### Title Options
43
+ 1. [SEO-focused]
44
+ 2. [Emotion-focused]
45
+ 3. [Benefit-focused]
46
+
47
+ ### Description
48
+ [Optimized product description]
49
+
50
+ ### Bullet Points
51
+ - [Feature → Benefit]
52
+
53
+ ### SEO
54
+ - Primary keyword: [keyword]
55
+ - Tags: [list]
56
+ - Meta description: [155 chars]
57
+
58
+ ### Upsell/Cross-sell
59
+ - [Suggestions]
60
+
61
+ ---
62
+ *Part of the [[WizardingCode MOC]]*
63
+ ```
64
+
65
+ **Step 5: Apply via Shopify MCP**
66
+ - If Shopify MCP is available and user confirms, push the optimized listing directly
67
+
68
+ ## /ecom pricing <product>
69
+
70
+ **Step 1: Gather Product Data**
71
+ - Current price (if exists)
72
+ - Cost of goods / margin
73
+ - Product category and positioning
74
+
75
+ **Step 2: Competitor Analysis**
76
+ - Use WebFetch to research 3-5 competitor prices for similar products
77
+ - Map price range: budget → mid-range → premium
78
+
79
+ **Step 3: Pricing Strategy**
80
+ - Calculate margin at different price points
81
+ - Apply psychological pricing (charm pricing, anchoring, decoy)
82
+ - Consider bundling opportunities
83
+ - Evaluate penetration vs. skimming strategy
84
+
85
+ **Step 4: Generate Recommendation**
86
+
87
+ **File:** `WizardingCode/Ecommerce/Products/<product>-pricing.md`
88
+ ```markdown
89
+ ---
90
+ type: pricing-analysis
91
+ department: ecommerce
92
+ title: "<product> — Pricing Strategy"
93
+ date_created: <YYYY-MM-DD>
94
+ tags:
95
+ - "pricing"
96
+ - "ecommerce"
97
+ ---
98
+
99
+ # <product> — Pricing Strategy
100
+
101
+ ## Competitor Landscape
102
+ | Competitor | Product | Price | Positioning |
103
+ |-----------|---------|-------|-------------|
104
+ | [name] | [product] | [price] | [budget/mid/premium] |
105
+
106
+ ## Margin Analysis
107
+ | Price Point | Margin | Margin % | Notes |
108
+ |------------|--------|----------|-------|
109
+ | [price] | [margin] | [%] | [note] |
110
+
111
+ ## Recommendation
112
+ - **Recommended price:** [price]
113
+ - **Strategy:** [penetration/skimming/competitive]
114
+ - **Rationale:** [why this price wins]
115
+
116
+ ## Psychological Pricing
117
+ - [Techniques to apply]
118
+
119
+ ## Bundle Opportunities
120
+ - [Bundle suggestions with margin impact]
121
+
122
+ ---
123
+ *Part of the [[WizardingCode MOC]]*
124
+ ```
125
+
126
+ ## RFM Segmentation
127
+
128
+ Recency, Frequency, Monetary analysis. Identify Champions, Loyal Customers, At-Risk, Hibernating, Lost. Map segments to lifecycle email flows and win-back offers.
129
+
130
+ ## Marketplace Operations
131
+
132
+ Seller onboarding, commission models, quality control, dispute resolution, catalog governance, listing quality scores, marketplace-specific SEO (Amazon A9, eBay Cassini).
133
+
134
+ ## MCP Integration
135
+
136
+ Shopify MCP when available:
137
+ - Product management (get-products, get-collections)
138
+ - Order management (get-orders, get-order)
139
+ - Customer management (get-customers, tag-customer)
140
+ - Discount creation (create-discount)
141
+ - Store info (get-shop-details)
@@ -33,6 +33,7 @@ phases:
33
33
 
34
34
  - id: quality-gate
35
35
  name: Quality Gate
36
+ model_override: opus
36
37
  description: Review recommendations
37
38
  agents:
38
39
  - agent_id: cqo-marta
@@ -35,3 +35,16 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
35
35
  | **Rui** | 2 | D+I | Fundraising, term sheets, cap table, M&A |
36
36
 
37
37
  ## Frameworks: 3-Statement Model, DCF (Damodaran), Unit Economics (SaaS), COSO ERM, FP&A Cycle, VC Framework (Feld), Scenario Analysis, Monte Carlo
38
+
39
+ ## Model Selection
40
+
41
+ When dispatching subagent work via the Task tool, include the `model` parameter from the target agent's YAML `model:` field:
42
+
43
+ - Agent YAMLs at `departments/*/agents/*.yaml` have `model: opus | sonnet | haiku`
44
+ - Quality Gate dispatch (Marta/Eduardo/Francisca) ALWAYS uses `model: opus` — NON-NEGOTIABLE
45
+ - Default to `sonnet` if the agent YAML has no `model` field
46
+ - Mechanical tasks (commit messages, routing, keyword extraction) use `model: haiku`
47
+
48
+ Example Task tool call:
49
+
50
+ Task(description="...", subagent_type="general-purpose", model="sonnet", prompt="...")
@@ -3,6 +3,7 @@ name: Helena
3
3
  role: Chief Financial Officer
4
4
  department: finance
5
5
  tier: 0
6
+ model: opus
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Leonor
3
3
  role: Financial Analyst
4
4
  department: finance
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Rui
3
3
  role: Investment & Fundraising Strategist
4
4
  department: finance
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -25,6 +25,7 @@ phases:
25
25
  description: User reviews assumptions
26
26
  - id: quality-gate
27
27
  name: Quality Gate
28
+ model_override: opus
28
29
  agents:
29
30
  - agent_id: cqo-marta
30
31
  role: Orchestrate
@@ -54,6 +54,7 @@ phases:
54
54
 
55
55
  - id: quality-gate
56
56
  name: Quality Gate
57
+ model_override: opus
57
58
  description: Validate model accuracy and assumptions
58
59
  agents:
59
60
  - agent_id: cqo-marta
@@ -36,3 +36,16 @@ allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
36
36
  | **Helena C.** | 2 | S+C | Vault maintenance, Zettelkasten, MOCs, linking |
37
37
 
38
38
  ## Frameworks: Zettelkasten (Luhmann), BASB/CODE/PARA (Forte), SECI Model (Nonaka/Takeuchi), LYT/MOCs (Milo), Progressive Summarization, CRAAP Test, Research Methodology
39
+
40
+ ## Model Selection
41
+
42
+ When dispatching subagent work via the Task tool, include the `model` parameter from the target agent's YAML `model:` field:
43
+
44
+ - Agent YAMLs at `departments/*/agents/*.yaml` have `model: opus | sonnet | haiku`
45
+ - Quality Gate dispatch (Marta/Eduardo/Francisca) ALWAYS uses `model: opus` — NON-NEGOTIABLE
46
+ - Default to `sonnet` if the agent YAML has no `model` field
47
+ - Mechanical tasks (commit messages, routing, keyword extraction) use `model: haiku`
48
+
49
+ Example Task tool call:
50
+
51
+ Task(description="...", subagent_type="general-purpose", model="sonnet", prompt="...")
@@ -3,6 +3,7 @@ name: Tomas Jr
3
3
  role: Data Collector
4
4
  department: kb
5
5
  tier: 3
6
+ model: haiku
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Helena C.
3
3
  role: Knowledge Curator
4
4
  department: kb
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Clara
3
3
  role: Knowledge Director
4
4
  department: kb
5
5
  tier: 1
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc:
@@ -3,6 +3,7 @@ name: Francisco
3
3
  role: Research Analyst
4
4
  department: kb
5
5
  tier: 2
6
+ model: sonnet
6
7
 
7
8
  behavioral_dna:
8
9
  disc: