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,91 @@
1
+ ---
2
+ name: arka-fovory
3
+ description: >
4
+ Fovory ecosystem orchestrator. Supplier-to-Shopify integration engine with custom Laravel codebase
5
+ (fovory-supplier-sync) AND Shopify store operations. Routes to dev squad for code work and
6
+ operations/marketing squad for store management. 45 models, 74 actions, 1471 tests, AI module
7
+ with providers/agents/personas/triggers, AI enrichment pipeline (auto-enrich entities with
8
+ translations/SEO/GEO/AEO), supplier driver system (Foxway/Realtime/StockFirmati), product import
9
+ system, variants CRUD, e-commerce settings. Use when user says "fovory", "supplier sync",
10
+ "shopify", or wants to work on Fovory projects.
11
+ ---
12
+
13
+ # Fovory Ecosystem Orchestrator — ARKA OS
14
+
15
+ Dedicated orchestrator for the Fovory ecosystem.
16
+ **Dual nature** — custom Laravel codebase (supplier sync engine) + Shopify store operations/marketing.
17
+
18
+ ## Ecosystem Overview
19
+
20
+ | Project | Type | Stack | Path | Status |
21
+ |---------|------|-------|------|--------|
22
+ | **fovory-supplier-sync** | Supplier Integration Engine | Laravel 13 + Vue 3 + Inertia.js 3 + Nuxt UI 4 | `~/Herd/fovory-supplier-sync` | Active |
23
+ | **Fovory Shopify Store** | E-commerce Store | Shopify (millions of products) | Shopify Admin / MCP | Active |
24
+
25
+ ## Squad (compact)
26
+
27
+ **Dev Squad (fovory-supplier-sync):** Tech Lead, Backend Dev (Laravel 13/PHP 8.4/Actions), Frontend Dev (Vue 3/Inertia/Nuxt UI 4), AI Specialist (Laravel AI SDK), Security Engineer (OWASP/Sanctum/Fortify), QA (Pest 5 + Playwright).
28
+
29
+ **Ops & Marketing Squad (Shopify):** Operations Manager (COO), E-Commerce Manager, Product Manager, Marketing Strategist, Content Creator, Ads Specialist, Email Marketing, SEO Specialist, Analytics Specialist, Pricing Strategist.
30
+
31
+ See `references/integration.md` for full role matrix, tech stack details, and integration mechanics.
32
+
33
+ ## Routing
34
+
35
+ Auto-discoverable via `/arka do` or `/do`. Synapse routes "fovory", "supplier sync", "shopify store", "shopify operations" here. Direct invocation: `/fovory`.
36
+
37
+ ## Commands
38
+
39
+ ### Development (fovory-supplier-sync)
40
+
41
+ | Command | Description | Workflow |
42
+ |---------|-------------|----------|
43
+ | `/fovory <description>` | Auto-detect, plan, route | Auto |
44
+ | `/fovory feature <desc>` | New feature (full enterprise flow) | Enterprise |
45
+ | `/fovory forge <desc>` | Forge-plan complex feature | Forge + Enterprise |
46
+ | `/fovory debug <issue>` | Debug with root cause | Focused |
47
+ | `/fovory refactor <scope>` | Refactor + Clean Code audit | Focused |
48
+ | `/fovory review` | Code review of changes | Specialist |
49
+ | `/fovory test` | Run full Pest suite | Specialist |
50
+ | `/fovory plan <desc>` | Plan only (no code) | Planning |
51
+ | `/fovory status` | Branch, tests, commits, store overview | — |
52
+ | `/fovory docs` | Update Obsidian docs | — |
53
+ | `/fovory context` | Full ecosystem context | — |
54
+
55
+ ### Store Operations (Shopify)
56
+
57
+ | Command | Description |
58
+ |---------|-------------|
59
+ | `/fovory products [import\|translate\|pricing]` | Catalog management |
60
+ | `/fovory marketing [plan\|social\|email\|ads]` | Marketing ops |
61
+ | `/fovory analytics` | Performance dashboard |
62
+ | `/fovory audit` | Full store audit (5 parallel agents) |
63
+ | `/fovory strategy <topic>` | Strategic analysis |
64
+ | `/fovory seo` | SEO audit |
65
+
66
+ ## Workflow Tiers
67
+
68
+ | Tier | When | Phases |
69
+ |------|------|--------|
70
+ | **Enterprise** | Features, architecture, multi-file | 8 phases (0-7) |
71
+ | **Focused** | Bugs, refactors, store ops | 5 phases (1,2,3,5,7) |
72
+ | **Specialist** | Reviews, tests | 3 phases (4,5,7) |
73
+
74
+ Full phase-by-phase orchestration (Spec → Forge → Context → Analysis → Plan Approval → Execute → Self-Critique → Quality Gate → Report), `/fovory status` and `/fovory context` scripts, and the plan/report templates live in `references/workflows.md`.
75
+
76
+ ## Quality Gate (NON-NEGOTIABLE)
77
+
78
+ Every workflow ends in Quality Gate. Marta (CQO) dispatches Eduardo (Copy) and Francisca (Tech/UX) in parallel. Binary APPROVED/REJECTED. REJECTED returns to Execution with specific feedback. See `references/workflows.md` for checklist detail.
79
+
80
+ ## Project Conventions (fovory-supplier-sync) — NON-NEGOTIABLE
81
+
82
+ UDashboardPanel layout (never raw divs) · UModal forms (never USlideover) · Dropzone uploads (never native inputs) · `bun run build` (never npm) · Always paginate · Pest 5 + Playwright mandatory · `vendor/bin/pint --dirty --format agent` after PHP · Actions in `app/Actions/` · Form Requests for validation · Conventional commits (no Co-Authored-By) · One phase at a time, wait for approval · Spec before code · Browser-verify before done.
83
+
84
+ ## References
85
+
86
+ - `references/workflows.md` — Full orchestration phases, plan/report templates, status & context commands, Quality Gate checklists.
87
+ - `references/integration.md` — Shopify integration mechanics, supplier pipelines, Laravel codebase specifics, tech stack, modules, marketing channels, analytics, Obsidian output paths.
88
+
89
+ ## Obsidian Output
90
+
91
+ All documentation: `/Users/andreagroferreira/Documents/Personal/Projects/Fovory/` (see `references/integration.md` for vault tree).
@@ -0,0 +1,186 @@
1
+ # arka-fovory — integration
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## Architecture
6
+
7
+ ```
8
+ Suppliers (API + CSV)
9
+
10
+
11
+ fovory-supplier-sync (Laravel 13 + Vue 3)
12
+ ├── Supplier Driver System (Foxway, Realtime, StockFirmati)
13
+ ├── Product Normalizer (categories, colors, sizes)
14
+ ├── Deduplicator (EAN-based)
15
+ ├── AI Enrichment Pipeline (translations, SEO, GEO/AEO)
16
+ ├── AI System (providers, agents, personas, triggers, budgets)
17
+ ├── Bulk Import System (Excel, WebSocket progress)
18
+ ├── Variant/Offer CRUD (cascade status, bulk generation)
19
+ ├── E-commerce Settings (store config, branding, measurements)
20
+ └── Shopify Pusher (GraphQL Bulk Operations)
21
+
22
+
23
+ Fovory Shopify Store ──► Customers
24
+
25
+ ├── Marketing (Social, Ads, Email)
26
+ ├── Analytics (GA4, Shopify, Meta Pixel)
27
+ └── Operations (Stock sync, pricing, translations)
28
+ ```
29
+
30
+ ## Squad Roles (full matrix)
31
+
32
+ ### Development Squad (fovory-supplier-sync)
33
+
34
+ | Role | Agent Type | Specialty |
35
+ |------|-----------|-----------|
36
+ | **Tech Lead** | `tech-lead` | Sprint planning, task breakdown, plan presentation, coordination |
37
+ | **Backend Developer** | `backend-dev` | Laravel 13, PHP 8.4, Actions pattern, Eloquent, Form Requests, Horizon |
38
+ | **Frontend Developer** | `frontend-dev` | Vue 3, Inertia.js 3, Nuxt UI 4, TypeScript, Tailwind CSS 4, TipTap, TanStack |
39
+ | **AI Specialist** | `research-analyst` | Laravel AI SDK, Claude/Anthropic, agents/personas/triggers, prompt engineering |
40
+ | **Security Engineer** | `security-eng` | OWASP, Sanctum, Fortify, import validation, API security |
41
+ | **QA Tester** | `qa-eng` | Pest 5 (1471 tests), Playwright E2E, factories, datasets |
42
+
43
+ ### Operations & Marketing Squad (Shopify Store)
44
+
45
+ | Role | Agent Type | Specialty |
46
+ |------|-----------|-----------|
47
+ | **Operations Manager** | `coo` | Store operations, SOPs, daily tasks, automation |
48
+ | **E-Commerce Manager** | `ecom-director` | Store optimization, conversion, UX audits |
49
+ | **Product Manager** | `commerce-engineer` | Catalog management, CSV bulk ops, translations, stock |
50
+ | **Marketing Strategist** | `strategy-director` | Marketing strategy, campaign planning, market analysis |
51
+ | **Content Creator** | `content-marketer` | Social media posts, Reels scripts, blog articles |
52
+ | **Ads Specialist** | `paid-specialist` | Google Ads, Meta Ads, ad copy, creative strategy |
53
+ | **Email Marketing** | `content-marketer` | Email flows, campaigns, segmentation |
54
+ | **SEO Specialist** | `seo-specialist` | Product SEO, blog SEO, technical SEO |
55
+ | **Analytics Specialist** | `metrics-analyst` | GA4, Shopify analytics, conversion tracking |
56
+ | **Pricing Strategist** | `strategy-director` | Price optimization, competitor pricing, margins |
57
+
58
+ ## Project Conventions (fovory-supplier-sync)
59
+
60
+ These are NON-NEGOTIABLE when doing code work:
61
+
62
+ | Convention | Rule |
63
+ |-----------|------|
64
+ | **Layout** | UDashboardPanel with #header/#body slots — never raw divs with max-w |
65
+ | **Forms** | UModal with fieldsets + legends + USeparator — never USlideover |
66
+ | **File uploads** | Drag & drop dropzone pattern — never native file inputs |
67
+ | **Build tool** | `bun run build` — never npm |
68
+ | **Lists/tables** | Always paginate — never load all records |
69
+ | **Testing** | Pest 5 for unit/feature + Playwright for E2E — both mandatory |
70
+ | **PHP formatting** | `vendor/bin/pint --dirty --format agent` after changes |
71
+ | **Business logic** | Action classes in app/Actions/ |
72
+ | **Validation** | Form Request classes |
73
+ | **Commits** | Conventional commits, no Co-Authored-By trailer |
74
+ | **Phases** | Execute one at a time, STOP and wait for user approval |
75
+ | **Spec-driven** | Full interactive spec with user before ANY code |
76
+ | **Browser QA** | Must verify in browser before claiming done |
77
+
78
+ ## Tech Stack Reference
79
+
80
+ ### fovory-supplier-sync
81
+ - **Backend**: PHP 8.4, Laravel 13, Inertia.js 3, Laravel Horizon, Laravel Reverb (WebSocket)
82
+ - **Frontend**: Vue 3.5, TypeScript, Tailwind CSS 4, Nuxt UI 4, TipTap 3, TanStack Table, Unovis charts
83
+ - **Database**: PostgreSQL, Redis, SQLite (dev)
84
+ - **AI**: Laravel AI SDK (`laravel/ai`), Claude/Anthropic providers, agents/personas/triggers
85
+ - **Import**: Maatwebsite Excel, WebSocket progress tracking
86
+ - **Auth**: Laravel Fortify, Laravel Pennant (feature flags)
87
+ - **Testing**: Pest 5, Playwright, Larastan, Rector, Pint
88
+ - **Build**: Bun, Vite
89
+
90
+ ### Codebase Stats (2026-04-11)
91
+ - **45 models** — Products, Variants, Offers, Suppliers, AI (agents/personas/triggers/providers), Enrichment (jobs/batches), Imports, E-commerce Settings
92
+ - **74 actions** — Business logic layer
93
+ - **43 controllers** — HTTP layer
94
+ - **45 Vue pages** — Products, Brands, Categories, Segments, Collections, Attributes, AI, Imports, Settings, Auth
95
+ - **77 migrations** — Full schema
96
+ - **1471 tests** (4159 assertions) — Pest 5
97
+
98
+ ### Key Modules
99
+ - **Supplier Driver System** — Plugin-based architecture (Foxway, RealtimeData, StockFirmati), DriverManager, config registry, dynamic forms
100
+ - **Product Management** — CRUD, variants, offers, images (drag & drop), translations (multi-locale)
101
+ - **AI System** — Providers (OpenRouter, Anthropic, OpenAI), agents (Copywriter, Translator, AttributeMapper), personas, triggers, budgets, competitive analysis
102
+ - **AI Enrichment Pipeline** — Auto-enrich entities with translations, SEO metadata, GEO/AEO content; 4-phase pipeline with smart skip, graceful degradation, WebSocket progress tracking
103
+ - **Import System** — Excel bulk import, template download, WebSocket progress, row-level error reporting
104
+ - **E-commerce Settings** — General info, branding (logo, favicon, OG image with dropzone), measurements (weight/dimension units)
105
+
106
+ ## Shopify Integration
107
+
108
+ ### Via Shopify MCP (`shopify-dev`)
109
+ - Product CRUD (create, read, update, delete)
110
+ - Order management
111
+ - Customer data
112
+ - Inventory/stock management
113
+ - Collection management
114
+ - Discount/promotion management
115
+
116
+ ### CSV Bulk Operations
117
+ For millions of products, use CSV workflows:
118
+ 1. Export current catalog from Shopify
119
+ 2. Process CSV with transformations (pricing, translations, stock)
120
+ 3. Import updated CSV back to Shopify
121
+ 4. Verify changes
122
+
123
+ ### Supported Operations
124
+ - **Bulk price updates** (margin calculations, competitor matching, min 35% margin)
125
+ - **Bulk translations** (pt, en, fr, de — via AI agents)
126
+ - **Stock management** (threshold alerts, reorder recommendations, 5% buffer)
127
+ - **Category/tag optimization** (SEO-driven)
128
+ - **Image optimization** (alt texts, descriptions)
129
+ - **Meta descriptions** (SEO-optimized product descriptions)
130
+
131
+ ## Marketing Channels
132
+
133
+ ### Social Media
134
+ - **Instagram** — Posts, Reels, Stories sequences
135
+ - **TikTok** — Short-form video scripts
136
+ - **LinkedIn** — Professional brand content
137
+ - **X/Twitter** — Engagement posts
138
+ - **Pinterest** — Product pins, lookbooks
139
+
140
+ ### Advertising
141
+ - **Google Ads** — Search, Shopping, Display campaigns
142
+ - **Meta Ads** — Facebook/Instagram ads
143
+ - **Google Shopping** — Product feed optimization
144
+
145
+ ### Email Marketing
146
+ - **Welcome sequences** — Onboarding new customers
147
+ - **Cart abandonment** — Recovery flows
148
+ - **Post-purchase** — Upsell, review requests
149
+ - **Win-back** — Re-engagement campaigns
150
+ - **Newsletter** — Regular content
151
+
152
+ ## Analytics & Tracking
153
+
154
+ | Platform | Purpose |
155
+ |----------|---------|
156
+ | Google Analytics 4 | Traffic, conversions, behavior |
157
+ | Google Ads | Ad performance, ROAS |
158
+ | Shopify Analytics | Revenue, orders, products |
159
+ | Meta Pixel | Facebook/Instagram conversion tracking |
160
+ | Google Search Console | Organic search performance |
161
+
162
+ ## Knowledge Base Integration
163
+
164
+ Fovory feeds from and contributes to the global knowledge base:
165
+ - **Personas**: Use learned personas (from `/kb learn`) for authentic content voice
166
+ - **Market research**: Feed competitor analysis back into KB
167
+ - **Content patterns**: Learn from successful content for future generation
168
+ - **Price intelligence**: Store pricing data for strategic decisions
169
+
170
+ ## Obsidian Output
171
+
172
+ All documentation: `/Users/andreagroferreira/Documents/Personal/Projects/Fovory/`
173
+
174
+ ```
175
+ Projects/Fovory/
176
+ ├── Home.md — Ecosystem overview
177
+ ├── Architecture/ — System architecture, data flow
178
+ ├── Strategy/ — Pricing, market, competition
179
+ ├── Marketing/ — Content calendars, campaigns, ads
180
+ │ ├── Social/ — Social media content
181
+ │ ├── Email/ — Email campaigns
182
+ │ └── Ads/ — Ad campaigns and creatives
183
+ ├── Operations/ — SOPs, product management logs
184
+ ├── Analytics/ — Performance reports
185
+ └── Decisions/ — Architecture Decision Records
186
+ ```
@@ -0,0 +1,209 @@
1
+ # arka-fovory — workflows
2
+
3
+ Referenced from SKILL.md. Read only when needed.
4
+
5
+ ## Orchestration Workflow — Enterprise (Features)
6
+
7
+ For `/fovory feature` and `/fovory forge`, follow ALL phases in order:
8
+
9
+ ### Phase 0 — Specification (NON-NEGOTIABLE for code work)
10
+
11
+ Before ANY code, invoke the `arka-spec` skill to create a living spec:
12
+ 1. Interactive spec creation with the user (scope, requirements, constraints)
13
+ 2. User must APPROVE the spec before proceeding
14
+ 3. Spec is the contract — all subsequent phases validate against it
15
+ 4. Skip ONLY if user explicitly says "skip spec" or provides a pre-approved spec
16
+
17
+ ### Phase 0.5 — Forge Analysis (for complex requests)
18
+
19
+ Auto-invoke The Forge (`arka-forge`) when:
20
+ - Request touches **multiple modules** (e.g., supplier driver + enrichment pipeline)
21
+ - Request involves **architecture decisions** (new patterns, data model changes)
22
+ - Request spans **multiple squads** (dev + store ops)
23
+ - User explicitly calls `/fovory forge <description>`
24
+
25
+ The Forge provides:
26
+ - Complexity scoring across 5 dimensions
27
+ - 3 parallel explorer subagents (Pragmatic, Architectural, Contrarian)
28
+ - Critic synthesis with risk identification
29
+ - Approved ForgePlan before execution begins
30
+
31
+ Skip when: simple features, single-module changes, or user says "skip forge".
32
+
33
+ ### Phase 1 — Context Loading
34
+ 1. Read the ecosystem registry: `~/.claude/skills/arka/knowledge/ecosystems.json`
35
+ 2. Read project file: `~/.claude/skills/arka/projects/fovory-supplier-sync/PROJECT.md`
36
+ 3. Read CLAUDE.md from `~/Herd/fovory-supplier-sync/CLAUDE.md` (if code work)
37
+ 4. Identify whether request is **code** (routes to dev squad) or **store ops** (routes to ops/marketing squad)
38
+
39
+ ### Phase 2 — Analysis & Planning
40
+
41
+ **Before planning, verify context:**
42
+ - Restate the request to confirm understanding
43
+ - Ask at least 1 clarifying question about scope or intent
44
+ - Challenge at least 1 assumption (devil's advocate)
45
+ - Check memory/knowledge base for prior related work
46
+
47
+ 1. Analyze the request against ecosystem context (and Forge output if available)
48
+ 2. Determine which squad roles are needed
49
+ 3. Create a detailed execution plan with:
50
+ - **Request summary**
51
+ - **Affected area** (supplier-sync codebase / Shopify store / both)
52
+ - **Squad members involved** (which roles)
53
+ - **Steps** (numbered, with responsible role)
54
+ - **Risks/considerations**
55
+ - **Estimated scope** (files to change, tests to write)
56
+
57
+ ### Phase 3 — Plan Presentation & Approval
58
+ 1. Present the plan to the user:
59
+
60
+ ```
61
+ === Fovory — Execution Plan ===
62
+
63
+ WORKFLOW: [Enterprise / Focused / Specialist]
64
+
65
+ REQUEST: [summary]
66
+
67
+ SPEC: [spec reference or "inline"]
68
+
69
+ AFFECTED:
70
+ - [fovory-supplier-sync / Shopify store / both]
71
+
72
+ SQUAD:
73
+ - [role] — [responsibility in this task]
74
+
75
+ STEPS:
76
+ 1. [step] — [role]
77
+ 2. [step] — [role]
78
+ ...
79
+
80
+ CONSIDERATIONS:
81
+ - [risk/note]
82
+
83
+ ================================
84
+ ```
85
+
86
+ 2. Ask for user approval:
87
+ - "Approve plan and proceed?"
88
+ - Options: "Approve", "Modify", "Cancel"
89
+
90
+ ### Phase 4 — Execution
91
+ 1. Only proceed after approval
92
+ 2. **Code changes**: Use worktree isolation (NON-NEGOTIABLE)
93
+ 3. Each squad role runs as the appropriate agent type
94
+ 4. Follow project conventions from CLAUDE.md strictly:
95
+ - UDashboardPanel layout pattern (never raw divs)
96
+ - UModal for forms (never USlideover)
97
+ - Dropzone for file uploads (never native inputs)
98
+ - `bun run build` (never npm)
99
+ - Always paginate lists
100
+ - Pest tests + Playwright E2E mandatory
101
+ 5. Run `vendor/bin/pint --dirty --format agent` after PHP changes
102
+ 6. Run `php artisan test --compact` to verify
103
+
104
+ ### Phase 5 — Self-Critique & Security Audit
105
+ 1. **Self-Critique**: Review own implementation against the spec — identify gaps, edge cases, missed requirements
106
+ 2. **Security Audit** (for code work): Check against OWASP Top 10, validate input sanitization, auth/authz, SQL injection, XSS
107
+ 3. Fix any issues found before proceeding to Quality Gate
108
+
109
+ ### Phase 6 — Quality Gate (NON-NEGOTIABLE)
110
+
111
+ **Marta** (CQO) dispatches **Eduardo** and **Francisca** IN PARALLEL:
112
+
113
+ **Eduardo** (Copy Director) checks:
114
+ - Spelling errors, grammar mistakes
115
+ - Wrong accentuation (critical for pt-PT)
116
+ - AI cliches (no "leverage", "utilize", "streamline", "robust")
117
+ - Tone consistency across all text output
118
+ - Culturally appropriate language
119
+
120
+ **Francisca** (Tech/UX Director) checks:
121
+ - SOLID principles and Clean Code compliance
122
+ - Test coverage (target: >=80%)
123
+ - OWASP Top 10 security
124
+ - Core Web Vitals and performance
125
+ - UX/WCAG AA accessibility
126
+ - Data integrity and product data accuracy
127
+ - For store ops: pricing accuracy, translations, images, inventory sync
128
+
129
+ **Verdict:** APPROVED or REJECTED. Binary, no caveats, no exceptions.
130
+ - APPROVED → proceed to Documentation phase
131
+ - REJECTED → return to Execution phase with specific feedback, fix, re-submit
132
+
133
+ ### Phase 7 — Documentation & Report
134
+ 1. Update Obsidian documentation if significant
135
+ 2. Present execution report:
136
+
137
+ ```
138
+ === Fovory — Execution Report ===
139
+
140
+ WORKFLOW: [Enterprise / Focused / Specialist]
141
+
142
+ COMPLETED:
143
+ - [what was done]
144
+
145
+ FILES CHANGED:
146
+ - [files]
147
+
148
+ TESTS:
149
+ - [test results — X passed / Y assertions]
150
+
151
+ QUALITY GATE:
152
+ - Eduardo: [APPROVED/REJECTED — notes]
153
+ - Francisca: [APPROVED/REJECTED — notes]
154
+
155
+ DOCS UPDATED:
156
+ - [obsidian pages updated]
157
+
158
+ =================================
159
+ ```
160
+
161
+ ## Orchestration Workflow — Focused (Bugs, Refactors, Store Ops)
162
+
163
+ For `/fovory debug`, `/fovory refactor`, and store operation commands:
164
+ - Skip Phase 0 (Spec) and Phase 0.5 (Forge)
165
+ - Follow Phases: **1 → 2 → 3 → 4 → 5 → 6 → 7**
166
+ - Phase 5 (Self-Critique) focuses on root cause validation (bugs) or data accuracy (store ops)
167
+
168
+ ## Orchestration Workflow — Specialist (Reviews, Tests)
169
+
170
+ For `/fovory review`, `/fovory test`:
171
+ - Skip Phases 0, 0.5, 1, 2, 3
172
+ - Follow Phases: **4 → 6 → 7** (Execute → Quality Gate → Report)
173
+ - Direct execution with quality validation
174
+
175
+ ## /fovory status
176
+
177
+ Check the status of the ecosystem:
178
+
179
+ ```bash
180
+ # fovory-supplier-sync
181
+ cd ~/Herd/fovory-supplier-sync
182
+ git status
183
+ git log --oneline -5
184
+ git branch --show-current
185
+ php artisan test --compact 2>&1 | tail -3
186
+ ```
187
+
188
+ Present as:
189
+
190
+ ```
191
+ === Fovory — Ecosystem Status ===
192
+
193
+ CODE: fovory-supplier-sync (Laravel 13 + Vue 3)
194
+ Branch: [branch]
195
+ Last commit: [hash] — [message] ([date])
196
+ Status: [clean/uncommitted changes]
197
+ Tests: [X passed / Y assertions]
198
+
199
+ STORE: Fovory Shopify
200
+ [Shopify MCP status if available]
201
+
202
+ ==================================
203
+ ```
204
+
205
+ ## /fovory context
206
+
207
+ Show full ecosystem context:
208
+ 1. Read all project files and CLAUDE.md
209
+ 2. Present architecture, tech stack, modules, conventions, current state
@@ -0,0 +1,121 @@
1
+ ---
2
+ name: arka-platform-arka
3
+ description: >
4
+ ArkaOS platform ecosystem orchestrator. Self-managing product development for ArkaOS —
5
+ the core WizardingCode product. Full-stack product team: Python core engine, Node.js
6
+ installer/CLI, React dashboard, skills, agents, departments. Manages features, fixes,
7
+ releases (semi-auto with confirmation gate), test suite (542+ pytest), self-auditing,
8
+ and auto-evolution (detects gaps, proposes and implements improvements).
9
+ Reports to /wiz (WizardingCode Internal) for strategic alignment.
10
+ Use when user says "platform-arka", "arkaos dev", "arkaos feature", "arkaos release",
11
+ "arkaos audit", "arkaos evolve", "platform", or wants to develop/improve ArkaOS itself.
12
+ ---
13
+
14
+ # ArkaOS Platform — Product Development Ecosystem
15
+
16
+ Self-managing product development orchestrator for ArkaOS. **The system that evolves itself.**
17
+
18
+ ## Project
19
+
20
+ | Property | Value |
21
+ |----------|-------|
22
+ | **Product** | ArkaOS |
23
+ | **Company** | WizardingCode |
24
+ | **Path** | `/Users/andreagroferreira/AIProjects/arka-os` |
25
+ | **Stack** | Python (core) + Node.js (installer/CLI) + React (dashboard) |
26
+ | **Reports to** | `/wiz` (WizardingCode Internal) |
27
+ | **Version file** | `VERSION` (also `package.json`, `pyproject.toml`) |
28
+ | **Tests** | `pytest` (542+ tests in `tests/python/`) |
29
+
30
+ ## Architecture
31
+
32
+ ```
33
+ core/ (Python: Synapse, workflows, agents, governance, runtime)
34
+ installer/ (Node.js CLI + adapters) · scripts/ (React dashboard + FastAPI)
35
+ departments/ (17 depts: agents, skills, workflows) · config/ · knowledge/
36
+ tests/python/ (542+ pytest)
37
+ ```
38
+
39
+ ## Squad — The Platform Team
40
+
41
+ | Role | Agent Type | Responsibility |
42
+ |------|-----------|----------------|
43
+ | **Product Owner** | `strategy-director` | Roadmap, prioritization, OKRs, reports to `/wiz` |
44
+ | **Core Engineer** | `backend-dev` | Python core — Synapse, workflows, agents, governance |
45
+ | **CLI Engineer** | `backend-dev` | Node.js installer, CLI tools, bash hooks |
46
+ | **Dashboard Engineer** | `frontend-dev` | React dashboard, FastAPI endpoints, WebSocket |
47
+ | **Skill Architect** | `architect` | Skill design, agent YAML, department structure |
48
+ | **DevOps** | `devops-eng` | npm publish, GitHub releases, CI/CD, versioning |
49
+ | **QA Engineer** | `qa-eng` | pytest suite, integration tests, regression |
50
+ | **Security Engineer** | `security-eng` | Dependency audit, OWASP, installer security |
51
+ | **Platform Analyst** | `research-analyst` | Self-analysis, gap detection, evolution proposals |
52
+
53
+ ## Commands
54
+
55
+ ### Standard Product Commands
56
+
57
+ | Command | Description |
58
+ |---------|-------------|
59
+ | `/platform-arka` | General — describe what you need, orchestrator routes |
60
+ | `/platform-arka status` | Project status (version, coverage, issues, releases) |
61
+ | `/platform-arka feature <desc>` | Plan and implement a new feature |
62
+ | `/platform-arka fix <desc>` | Debug and fix an issue |
63
+ | `/platform-arka test` | Run full pytest suite + report |
64
+ | `/platform-arka review` | Code review of recent changes |
65
+ | `/platform-arka docs` | Update documentation (CLAUDE.md, CONTRIBUTING, Obsidian) |
66
+
67
+ ### Release Pipeline
68
+
69
+ | Command | Description |
70
+ |---------|-------------|
71
+ | `/platform-arka release <type>` | Semi-auto release: bump, changelog, commit. Pauses before push + npm publish + GitHub release |
72
+ | `/platform-arka release status` | Check latest release, npm version, GitHub tags |
73
+
74
+ ### Auto-Evolution Commands
75
+
76
+ | Command | Description |
77
+ |---------|-------------|
78
+ | `/platform-arka audit` | Self-analysis: code quality, test gaps, missing skills, agents without DNA, dead code, CLAUDE.md accuracy |
79
+ | `/platform-arka evolve` | Propose improvements from audit — with approval, implements |
80
+ | `/platform-arka roadmap` | View/update roadmap, synced with `/wiz` priorities |
81
+ | `/platform-arka metrics` | Coverage, agent count, skill count, department completeness, version history |
82
+
83
+ ### Skill & Agent Management
84
+
85
+ | Command | Description |
86
+ |---------|-------------|
87
+ | `/platform-arka skill create <name>` | Scaffold a new skill (SKILL.md + registration) |
88
+ | `/platform-arka skill list` | List all skills with status |
89
+ | `/platform-arka agent create <name>` | Create new agent YAML with behavioral DNA |
90
+ | `/platform-arka agent validate` | Validate all agent YAMLs (4-framework consistency) |
91
+ | `/platform-arka department <name>` | Department health check (agents, skills, workflows) |
92
+
93
+ ## Orchestration
94
+
95
+ The squad executes every request through a common arc: context loading → planning → user approval → execution (branch/worktree isolation where applicable) → Quality Gate (Marta/Eduardo/Francisca, mandatory) → Obsidian documentation. Releases additionally pause at a confirmation gate before publish. Evolve and audit flows use the Platform Analyst to scan departments, agents, skills, test coverage, and code quality, then propose ranked improvements.
96
+
97
+ **See `references/workflows.md` for the full step-by-step flows** (Standard, Release, Audit, Evolve, Status, Metrics, Skill Create, Agent Create).
98
+
99
+ ## Branch Strategy
100
+
101
+ | Scenario | Branch Pattern | Isolation |
102
+ |----------|---------------|-----------|
103
+ | Features | `feature/<desc>` | Worktree |
104
+ | Evolution improvements | `evolve/<desc>` | Worktree |
105
+ | Hotfixes, simple patches | Direct on `master` | None |
106
+ | Releases | From `master` | None (bump + tag + publish) |
107
+
108
+ ## /wiz Integration
109
+
110
+ - ArkaOS appears in `/wiz projects` and `/wiz status` as an active internal project
111
+ - `/wiz` sets strategic priorities that `/platform-arka roadmap` reflects
112
+ - Revenue (ARKA OS Pro) tracked via `/wiz finance`; roadmap syncs against `/wiz` OKRs
113
+
114
+ ## Obsidian Output
115
+
116
+ All documentation under `/Users/andreagroferreira/Documents/Personal/Projects/WizardingCode Internal/ArkaOS/`:
117
+ `Roadmap.md`, `Releases/vX.Y.Z.md`, `Audits/YYYY-MM-DD.md`, `Evolution Log.md`, `Metrics.md`.
118
+
119
+ ## References
120
+
121
+ - `references/workflows.md` — Full orchestration flows (Standard, Release, Audit, Evolve, Status, Metrics, Skill Create, Agent Create)