arkaos 2.0.0-alpha.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/CONSTITUTION.md +81 -0
- package/LICENSE +21 -0
- package/README.md +154 -0
- package/VERSION +1 -0
- package/arka/SKILL.md +134 -0
- package/bin/arkaos +107 -0
- package/config/constitution.yaml +168 -0
- package/config/hooks/post-tool-use-v2.sh +116 -0
- package/config/hooks/post-tool-use.sh +188 -0
- package/config/hooks/pre-compact-v2.sh +43 -0
- package/config/hooks/pre-compact.sh +99 -0
- package/config/hooks/user-prompt-submit-v2.sh +119 -0
- package/config/hooks/user-prompt-submit.sh +312 -0
- package/core/__init__.py +3 -0
- package/core/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/agents/__init__.py +14 -0
- package/core/agents/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/agents/__pycache__/loader.cpython-313.pyc +0 -0
- package/core/agents/__pycache__/registry_gen.cpython-313.pyc +0 -0
- package/core/agents/__pycache__/schema.cpython-313.pyc +0 -0
- package/core/agents/__pycache__/validator.cpython-313.pyc +0 -0
- package/core/agents/loader.py +88 -0
- package/core/agents/registry_gen.py +118 -0
- package/core/agents/schema.py +265 -0
- package/core/agents/validator.py +141 -0
- package/core/conclave/__init__.py +12 -0
- package/core/conclave/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/advisor_db.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/display.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/matcher.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/persistence.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/profiler.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/prompts.cpython-313.pyc +0 -0
- package/core/conclave/__pycache__/schema.cpython-313.pyc +0 -0
- package/core/conclave/advisor_db.py +373 -0
- package/core/conclave/display.py +104 -0
- package/core/conclave/matcher.py +104 -0
- package/core/conclave/persistence.py +61 -0
- package/core/conclave/profiler.py +298 -0
- package/core/conclave/prompts.py +77 -0
- package/core/conclave/schema.py +132 -0
- package/core/governance/__init__.py +5 -0
- package/core/governance/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/governance/__pycache__/constitution.cpython-313.pyc +0 -0
- package/core/governance/constitution.py +152 -0
- package/core/registry/__init__.py +1 -0
- package/core/registry/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/registry/__pycache__/generator.cpython-313.pyc +0 -0
- package/core/registry/generator.py +199 -0
- package/core/runtime/__init__.py +6 -0
- package/core/runtime/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/base.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/claude_code.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/codex_cli.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/cursor.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/gemini_cli.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/registry.cpython-313.pyc +0 -0
- package/core/runtime/__pycache__/subagent.cpython-313.pyc +0 -0
- package/core/runtime/base.py +143 -0
- package/core/runtime/claude_code.py +104 -0
- package/core/runtime/codex_cli.py +71 -0
- package/core/runtime/cursor.py +71 -0
- package/core/runtime/gemini_cli.py +68 -0
- package/core/runtime/registry.py +86 -0
- package/core/runtime/subagent.py +201 -0
- package/core/specs/__init__.py +10 -0
- package/core/specs/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/specs/__pycache__/manager.cpython-313.pyc +0 -0
- package/core/specs/__pycache__/schema.cpython-313.pyc +0 -0
- package/core/specs/manager.py +164 -0
- package/core/specs/schema.py +199 -0
- package/core/squads/__init__.py +7 -0
- package/core/squads/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/squads/__pycache__/loader.cpython-313.pyc +0 -0
- package/core/squads/__pycache__/registry.cpython-313.pyc +0 -0
- package/core/squads/__pycache__/schema.cpython-313.pyc +0 -0
- package/core/squads/loader.py +40 -0
- package/core/squads/registry.py +145 -0
- package/core/squads/schema.py +93 -0
- package/core/synapse/__init__.py +11 -0
- package/core/synapse/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/synapse/__pycache__/cache.cpython-313.pyc +0 -0
- package/core/synapse/__pycache__/engine.cpython-313.pyc +0 -0
- package/core/synapse/__pycache__/layers.cpython-313.pyc +0 -0
- package/core/synapse/cache.py +82 -0
- package/core/synapse/engine.py +184 -0
- package/core/synapse/layers.py +441 -0
- package/core/tasks/__init__.py +6 -0
- package/core/tasks/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/tasks/__pycache__/manager.cpython-313.pyc +0 -0
- package/core/tasks/__pycache__/schema.cpython-313.pyc +0 -0
- package/core/tasks/manager.py +150 -0
- package/core/tasks/schema.py +108 -0
- package/core/workflow/__init__.py +10 -0
- package/core/workflow/__pycache__/__init__.cpython-313.pyc +0 -0
- package/core/workflow/__pycache__/engine.cpython-313.pyc +0 -0
- package/core/workflow/__pycache__/loader.cpython-313.pyc +0 -0
- package/core/workflow/__pycache__/schema.cpython-313.pyc +0 -0
- package/core/workflow/engine.py +216 -0
- package/core/workflow/loader.py +28 -0
- package/core/workflow/schema.py +129 -0
- package/departments/brand/SKILL.md +85 -0
- package/departments/brand/agents/brand-director.yaml +77 -0
- package/departments/brand/agents/brand-strategist.md +182 -0
- package/departments/brand/agents/brand-strategist.yaml +58 -0
- package/departments/brand/agents/creative-director.md +149 -0
- package/departments/brand/agents/motion-designer.md +113 -0
- package/departments/brand/agents/ux-designer.yaml +60 -0
- package/departments/brand/agents/visual-designer.md +187 -0
- package/departments/brand/agents/visual-designer.yaml +58 -0
- package/departments/brand/references/brand-creation-guide.md +559 -0
- package/departments/brand/scripts/provider-call.sh +262 -0
- package/departments/brand/skills/archetype-finder/SKILL.md +18 -0
- package/departments/brand/skills/colors/SKILL.md +18 -0
- package/departments/brand/skills/design-system/SKILL.md +18 -0
- package/departments/brand/skills/identity-system/SKILL.md +18 -0
- package/departments/brand/skills/logo-brief/SKILL.md +18 -0
- package/departments/brand/skills/mockup-generate/SKILL.md +18 -0
- package/departments/brand/skills/naming-evaluate/SKILL.md +50 -0
- package/departments/brand/skills/positioning-statement/SKILL.md +18 -0
- package/departments/brand/skills/primal-audit/SKILL.md +43 -0
- package/departments/brand/skills/ux-audit/SKILL.md +18 -0
- package/departments/brand/skills/voice-guide/SKILL.md +18 -0
- package/departments/brand/skills/wireframe/SKILL.md +18 -0
- package/departments/brand/squad.yaml +39 -0
- package/departments/brand/workflows/identity.yaml +113 -0
- package/departments/brand/workflows/naming.yaml +58 -0
- package/departments/community/SKILL.md +62 -0
- package/departments/community/agents/community-manager.yaml +57 -0
- package/departments/community/agents/community-strategist.yaml +74 -0
- package/departments/community/agents/engagement-designer.yaml +56 -0
- package/departments/community/skills/ai-community/SKILL.md +18 -0
- package/departments/community/skills/betting-setup/SKILL.md +18 -0
- package/departments/community/skills/business-model/SKILL.md +53 -0
- package/departments/community/skills/content-calendar/SKILL.md +18 -0
- package/departments/community/skills/events-plan/SKILL.md +18 -0
- package/departments/community/skills/gamification-design/SKILL.md +18 -0
- package/departments/community/skills/growth-plan/SKILL.md +18 -0
- package/departments/community/skills/metrics-track/SKILL.md +18 -0
- package/departments/community/skills/moderation/SKILL.md +18 -0
- package/departments/community/skills/monetize-plan/SKILL.md +18 -0
- package/departments/community/skills/niche-setup/SKILL.md +18 -0
- package/departments/community/skills/onboarding-flow/SKILL.md +18 -0
- package/departments/community/skills/platform-select/SKILL.md +18 -0
- package/departments/community/skills/retention-system/SKILL.md +48 -0
- package/departments/community/squad.yaml +32 -0
- package/departments/community/workflows/setup.yaml +62 -0
- package/departments/content/SKILL.md +65 -0
- package/departments/content/agents/content-strategist.yaml +74 -0
- package/departments/content/agents/repurpose-distributor.yaml +57 -0
- package/departments/content/agents/scriptwriter.yaml +56 -0
- package/departments/content/agents/viral-engineer.yaml +56 -0
- package/departments/content/skills/ai-workflow/SKILL.md +18 -0
- package/departments/content/skills/analytics/SKILL.md +18 -0
- package/departments/content/skills/calendar/SKILL.md +18 -0
- package/departments/content/skills/content-system/SKILL.md +75 -0
- package/departments/content/skills/hook-write/SKILL.md +43 -0
- package/departments/content/skills/monetization-plan/SKILL.md +18 -0
- package/departments/content/skills/newsletter-write/SKILL.md +18 -0
- package/departments/content/skills/platform-optimize/SKILL.md +18 -0
- package/departments/content/skills/repurpose-plan/SKILL.md +18 -0
- package/departments/content/skills/script-structure/SKILL.md +18 -0
- package/departments/content/skills/short-form/SKILL.md +18 -0
- package/departments/content/skills/thumbnail-package/SKILL.md +18 -0
- package/departments/content/skills/viral-design/SKILL.md +45 -0
- package/departments/content/skills/youtube-strategy/SKILL.md +18 -0
- package/departments/content/squad.yaml +39 -0
- package/departments/content/workflows/viral.yaml +99 -0
- package/departments/dev/SKILL.md +135 -0
- package/departments/dev/agents/analyst.md +184 -0
- package/departments/dev/agents/architect.md +184 -0
- package/departments/dev/agents/architect.yaml +74 -0
- package/departments/dev/agents/backend-dev.yaml +70 -0
- package/departments/dev/agents/cto.md +140 -0
- package/departments/dev/agents/cto.yaml +77 -0
- package/departments/dev/agents/dba.yaml +72 -0
- package/departments/dev/agents/devops-eng.yaml +72 -0
- package/departments/dev/agents/devops.md +204 -0
- package/departments/dev/agents/frontend-dev.md +213 -0
- package/departments/dev/agents/frontend-dev.yaml +71 -0
- package/departments/dev/agents/qa-eng.yaml +72 -0
- package/departments/dev/agents/qa.md +231 -0
- package/departments/dev/agents/security-eng.yaml +72 -0
- package/departments/dev/agents/security.md +174 -0
- package/departments/dev/agents/senior-dev.md +177 -0
- package/departments/dev/agents/tech-lead.md +188 -0
- package/departments/dev/agents/tech-lead.yaml +72 -0
- package/departments/dev/skills/adversarial-review/SKILL.md +117 -0
- package/departments/dev/skills/agent-design/SKILL.md +127 -0
- package/departments/dev/skills/agent-workflow/SKILL.md +116 -0
- package/departments/dev/skills/ai-assisted-dev/SKILL.md +18 -0
- package/departments/dev/skills/ai-security/SKILL.md +112 -0
- package/departments/dev/skills/api-design/SKILL.md +59 -0
- package/departments/dev/skills/architecture-design/SKILL.md +89 -0
- package/departments/dev/skills/changelog/SKILL.md +110 -0
- package/departments/dev/skills/ci-cd-pipeline/SKILL.md +130 -0
- package/departments/dev/skills/clean-code-review/SKILL.md +65 -0
- package/departments/dev/skills/code-review/SKILL.md +18 -0
- package/departments/dev/skills/codebase-onboard/SKILL.md +109 -0
- package/departments/dev/skills/db-design/SKILL.md +18 -0
- package/departments/dev/skills/db-schema/SKILL.md +130 -0
- package/departments/dev/skills/ddd-model/SKILL.md +18 -0
- package/departments/dev/skills/dependency-audit/SKILL.md +118 -0
- package/departments/dev/skills/deploy/SKILL.md +18 -0
- package/departments/dev/skills/devops-pipeline/SKILL.md +18 -0
- package/departments/dev/skills/docs/SKILL.md +18 -0
- package/departments/dev/skills/env-secrets/SKILL.md +89 -0
- package/departments/dev/skills/incident/SKILL.md +125 -0
- package/departments/dev/skills/mcp/SKILL.md +106 -0
- package/departments/dev/skills/mcp-builder/SKILL.md +121 -0
- package/departments/dev/skills/observability/SKILL.md +119 -0
- package/departments/dev/skills/onboard/SKILL.md +389 -0
- package/departments/dev/skills/onboard/scripts/detect-stack.py +472 -0
- package/departments/dev/skills/performance-audit/SKILL.md +49 -0
- package/departments/dev/skills/performance-profiler/SKILL.md +128 -0
- package/departments/dev/skills/rag-architect/SKILL.md +125 -0
- package/departments/dev/skills/red-team/SKILL.md +112 -0
- package/departments/dev/skills/refactor-plan/SKILL.md +18 -0
- package/departments/dev/skills/release/SKILL.md +130 -0
- package/departments/dev/skills/research/SKILL.md +18 -0
- package/departments/dev/skills/runbook/SKILL.md +103 -0
- package/departments/dev/skills/scaffold/SKILL.md +249 -0
- package/departments/dev/skills/security-audit/SKILL.md +68 -0
- package/departments/dev/skills/skill-audit/SKILL.md +96 -0
- package/departments/dev/skills/spec/SKILL.md +218 -0
- package/departments/dev/skills/stack-check/SKILL.md +18 -0
- package/departments/dev/skills/tdd-cycle/SKILL.md +56 -0
- package/departments/dev/skills/tech-debt/SKILL.md +100 -0
- package/departments/dev/squad.yaml +62 -0
- package/departments/dev/workflows/debug.yaml +63 -0
- package/departments/dev/workflows/feature.yaml +129 -0
- package/departments/dev/workflows/refactor.yaml +64 -0
- package/departments/ecom/SKILL.md +39 -0
- package/departments/ecom/agents/commerce-engineer.yaml +58 -0
- package/departments/ecom/agents/cro-specialist.yaml +56 -0
- package/departments/ecom/agents/ecom-director.yaml +73 -0
- package/departments/ecom/agents/retention-manager.yaml +59 -0
- package/departments/ecom/skills/analytics/SKILL.md +18 -0
- package/departments/ecom/skills/cart-recovery/SKILL.md +18 -0
- package/departments/ecom/skills/cro-optimize/SKILL.md +58 -0
- package/departments/ecom/skills/customer-journey/SKILL.md +18 -0
- package/departments/ecom/skills/fulfillment-plan/SKILL.md +18 -0
- package/departments/ecom/skills/marketplace-manage/SKILL.md +18 -0
- package/departments/ecom/skills/pricing-strategy/SKILL.md +18 -0
- package/departments/ecom/skills/product-launch/SKILL.md +18 -0
- package/departments/ecom/skills/rfm-segment/SKILL.md +44 -0
- package/departments/ecom/skills/social-commerce/SKILL.md +18 -0
- package/departments/ecom/skills/store-audit/SKILL.md +18 -0
- package/departments/ecom/skills/subscription-model/SKILL.md +18 -0
- package/departments/ecom/squad.yaml +39 -0
- package/departments/ecom/workflows/product-page.yaml +62 -0
- package/departments/ecommerce/SKILL.md +363 -0
- package/departments/ecommerce/agents/ecommerce-manager.md +91 -0
- package/departments/finance/SKILL.md +37 -0
- package/departments/finance/agents/cfo.md +85 -0
- package/departments/finance/agents/cfo.yaml +77 -0
- package/departments/finance/agents/financial-analyst.yaml +57 -0
- package/departments/finance/agents/investment-strategist.yaml +58 -0
- package/departments/finance/skills/budget-plan/SKILL.md +18 -0
- package/departments/finance/skills/cashflow-forecast/SKILL.md +18 -0
- package/departments/finance/skills/ciso-advisor/SKILL.md +113 -0
- package/departments/finance/skills/financial-model/SKILL.md +70 -0
- package/departments/finance/skills/pitch-deck/SKILL.md +18 -0
- package/departments/finance/skills/scenario-analysis/SKILL.md +18 -0
- package/departments/finance/skills/unit-economics/SKILL.md +44 -0
- package/departments/finance/skills/valuation-model/SKILL.md +18 -0
- package/departments/finance/squad.yaml +37 -0
- package/departments/finance/workflows/cashflow.yaml +47 -0
- package/departments/finance/workflows/model.yaml +83 -0
- package/departments/kb/SKILL.md +38 -0
- package/departments/kb/agents/knowledge-curator.yaml +60 -0
- package/departments/kb/agents/knowledge-director.yaml +72 -0
- package/departments/kb/agents/research-analyst.yaml +58 -0
- package/departments/kb/skills/ai-research/SKILL.md +18 -0
- package/departments/kb/skills/competitive-intel/SKILL.md +18 -0
- package/departments/kb/skills/knowledge-review/SKILL.md +18 -0
- package/departments/kb/skills/learn-content/SKILL.md +18 -0
- package/departments/kb/skills/moc-create/SKILL.md +18 -0
- package/departments/kb/skills/persona-build/SKILL.md +18 -0
- package/departments/kb/skills/research-plan/SKILL.md +51 -0
- package/departments/kb/skills/search-kb/SKILL.md +18 -0
- package/departments/kb/skills/source-evaluate/SKILL.md +18 -0
- package/departments/kb/skills/taxonomy-manage/SKILL.md +18 -0
- package/departments/kb/skills/write-as-persona/SKILL.md +18 -0
- package/departments/kb/skills/zettelkasten-process/SKILL.md +56 -0
- package/departments/kb/squad.yaml +34 -0
- package/departments/kb/workflows/learn.yaml +63 -0
- package/departments/knowledge/SKILL.md +474 -0
- package/departments/knowledge/agents/knowledge-curator.md +89 -0
- package/departments/knowledge/scripts/kb-check-capabilities.sh +143 -0
- package/departments/knowledge/scripts/kb-cleanup.sh +135 -0
- package/departments/knowledge/scripts/kb-queue.sh +156 -0
- package/departments/knowledge/scripts/kb-status.sh +195 -0
- package/departments/knowledge/scripts/kb-worker.sh +217 -0
- package/departments/landing/SKILL.md +65 -0
- package/departments/landing/agents/affiliate-manager.yaml +57 -0
- package/departments/landing/agents/conversion-strategist.yaml +74 -0
- package/departments/landing/agents/cro-specialist.yaml +58 -0
- package/departments/landing/agents/sales-copywriter.yaml +61 -0
- package/departments/landing/skills/ab-test/SKILL.md +18 -0
- package/departments/landing/skills/affiliate-bridge/SKILL.md +18 -0
- package/departments/landing/skills/awareness-diagnose/SKILL.md +18 -0
- package/departments/landing/skills/copy-framework/SKILL.md +55 -0
- package/departments/landing/skills/email-sequence/SKILL.md +18 -0
- package/departments/landing/skills/funnel-design/SKILL.md +49 -0
- package/departments/landing/skills/funnel-metrics/SKILL.md +18 -0
- package/departments/landing/skills/headline-write/SKILL.md +18 -0
- package/departments/landing/skills/landing-gen/SKILL.md +124 -0
- package/departments/landing/skills/launch-sequence/SKILL.md +18 -0
- package/departments/landing/skills/offer-create/SKILL.md +62 -0
- package/departments/landing/skills/optimize-page/SKILL.md +18 -0
- package/departments/landing/skills/page-architect/SKILL.md +18 -0
- package/departments/landing/skills/persuasion-apply/SKILL.md +18 -0
- package/departments/landing/skills/webinar-funnel/SKILL.md +18 -0
- package/departments/landing/squad.yaml +39 -0
- package/departments/landing/workflows/launch.yaml +72 -0
- package/departments/landing/workflows/offer.yaml +99 -0
- package/departments/leadership/SKILL.md +35 -0
- package/departments/leadership/agents/culture-coach.yaml +59 -0
- package/departments/leadership/agents/hr-specialist.yaml +57 -0
- package/departments/leadership/agents/leadership-director.yaml +72 -0
- package/departments/leadership/skills/change-manage/SKILL.md +18 -0
- package/departments/leadership/skills/conflict-resolve/SKILL.md +18 -0
- package/departments/leadership/skills/culture-audit/SKILL.md +18 -0
- package/departments/leadership/skills/delegation-matrix/SKILL.md +18 -0
- package/departments/leadership/skills/disc-assess/SKILL.md +18 -0
- package/departments/leadership/skills/feedback-give/SKILL.md +18 -0
- package/departments/leadership/skills/hiring-plan/SKILL.md +18 -0
- package/departments/leadership/skills/okr-define/SKILL.md +69 -0
- package/departments/leadership/skills/performance-review/SKILL.md +18 -0
- package/departments/leadership/skills/team-health/SKILL.md +56 -0
- package/departments/leadership/squad.yaml +35 -0
- package/departments/leadership/workflows/team-build.yaml +55 -0
- package/departments/marketing/SKILL.md +61 -0
- package/departments/marketing/agents/content-creator.md +85 -0
- package/departments/marketing/agents/content-marketer.yaml +58 -0
- package/departments/marketing/agents/marketing-director.yaml +75 -0
- package/departments/marketing/agents/paid-specialist.yaml +58 -0
- package/departments/marketing/agents/seo-specialist.yaml +57 -0
- package/departments/marketing/skills/ab-test/SKILL.md +18 -0
- package/departments/marketing/skills/analytics-report/SKILL.md +18 -0
- package/departments/marketing/skills/audience-segment/SKILL.md +18 -0
- package/departments/marketing/skills/calendar-plan/SKILL.md +18 -0
- package/departments/marketing/skills/cold-email/SKILL.md +128 -0
- package/departments/marketing/skills/competitor-analysis/SKILL.md +18 -0
- package/departments/marketing/skills/content-audit/SKILL.md +18 -0
- package/departments/marketing/skills/email-sequence/SKILL.md +18 -0
- package/departments/marketing/skills/growth-loop/SKILL.md +50 -0
- package/departments/marketing/skills/marketing-automation/SKILL.md +18 -0
- package/departments/marketing/skills/paid-campaign/SKILL.md +18 -0
- package/departments/marketing/skills/programmatic-seo/SKILL.md +123 -0
- package/departments/marketing/skills/seo-audit/SKILL.md +48 -0
- package/departments/marketing/skills/social-strategy/SKILL.md +18 -0
- package/departments/marketing/squad.yaml +39 -0
- package/departments/marketing/workflows/campaign.yaml +112 -0
- package/departments/marketing/workflows/social.yaml +56 -0
- package/departments/operations/SKILL.md +422 -0
- package/departments/operations/agents/coo.md +88 -0
- package/departments/ops/SKILL.md +37 -0
- package/departments/ops/agents/automation-engineer.yaml +58 -0
- package/departments/ops/agents/ops-lead.yaml +71 -0
- package/departments/ops/skills/bottleneck-find/SKILL.md +49 -0
- package/departments/ops/skills/dashboard-build/SKILL.md +18 -0
- package/departments/ops/skills/gtd-setup/SKILL.md +18 -0
- package/departments/ops/skills/integration-design/SKILL.md +18 -0
- package/departments/ops/skills/lean-audit/SKILL.md +18 -0
- package/departments/ops/skills/metrics-dashboard/SKILL.md +18 -0
- package/departments/ops/skills/n8n-flow/SKILL.md +18 -0
- package/departments/ops/skills/sop-create/SKILL.md +18 -0
- package/departments/ops/skills/workflow-automate/SKILL.md +39 -0
- package/departments/ops/skills/zapier-flow/SKILL.md +18 -0
- package/departments/ops/squad.yaml +35 -0
- package/departments/ops/workflows/lean-audit.yaml +69 -0
- package/departments/org/SKILL.md +34 -0
- package/departments/org/agents/coo.yaml +80 -0
- package/departments/org/agents/org-designer.yaml +56 -0
- package/departments/org/agents/people-ops.yaml +56 -0
- package/departments/org/skills/compensation-plan/SKILL.md +18 -0
- package/departments/org/skills/culture-define/SKILL.md +18 -0
- package/departments/org/skills/decision-framework/SKILL.md +18 -0
- package/departments/org/skills/hiring-plan/SKILL.md +18 -0
- package/departments/org/skills/meeting-optimize/SKILL.md +18 -0
- package/departments/org/skills/onboarding-design/SKILL.md +18 -0
- package/departments/org/skills/org-design/SKILL.md +18 -0
- package/departments/org/skills/remote-setup/SKILL.md +18 -0
- package/departments/org/skills/sop-process/SKILL.md +18 -0
- package/departments/org/skills/team-assess/SKILL.md +18 -0
- package/departments/org/squad.yaml +33 -0
- package/departments/org/workflows/design.yaml +55 -0
- package/departments/pm/SKILL.md +39 -0
- package/departments/pm/agents/pm-director.yaml +75 -0
- package/departments/pm/agents/product-owner.yaml +59 -0
- package/departments/pm/agents/scrum-master.yaml +59 -0
- package/departments/pm/skills/agile-po/SKILL.md +118 -0
- package/departments/pm/skills/backlog-groom/SKILL.md +18 -0
- package/departments/pm/skills/discovery-plan/SKILL.md +48 -0
- package/departments/pm/skills/estimate-forecast/SKILL.md +18 -0
- package/departments/pm/skills/impact-map/SKILL.md +18 -0
- package/departments/pm/skills/kanban-setup/SKILL.md +18 -0
- package/departments/pm/skills/risk-register/SKILL.md +18 -0
- package/departments/pm/skills/roadmap-build/SKILL.md +18 -0
- package/departments/pm/skills/shape-pitch/SKILL.md +55 -0
- package/departments/pm/skills/sprint-plan/SKILL.md +18 -0
- package/departments/pm/skills/stakeholder-map/SKILL.md +18 -0
- package/departments/pm/skills/standup-run/SKILL.md +18 -0
- package/departments/pm/skills/story-write/SKILL.md +18 -0
- package/departments/pm/squad.yaml +37 -0
- package/departments/pm/workflows/retro.yaml +33 -0
- package/departments/quality/SKILL.md +66 -0
- package/departments/quality/agents/copy-director.md +134 -0
- package/departments/quality/agents/copy-director.yaml +73 -0
- package/departments/quality/agents/cqo.md +134 -0
- package/departments/quality/agents/cqo.yaml +76 -0
- package/departments/quality/agents/tech-director.yaml +79 -0
- package/departments/quality/agents/tech-ux-director.md +193 -0
- package/departments/quality/squad.yaml +25 -0
- package/departments/saas/SKILL.md +64 -0
- package/departments/saas/agents/cs-manager.yaml +57 -0
- package/departments/saas/agents/growth-engineer.yaml +57 -0
- package/departments/saas/agents/metrics-analyst.yaml +57 -0
- package/departments/saas/agents/saas-strategist.yaml +74 -0
- package/departments/saas/skills/benchmark-compare/SKILL.md +18 -0
- package/departments/saas/skills/churn-analysis/SKILL.md +18 -0
- package/departments/saas/skills/customer-success/SKILL.md +18 -0
- package/departments/saas/skills/growth-plan/SKILL.md +18 -0
- package/departments/saas/skills/gtm-strategy/SKILL.md +18 -0
- package/departments/saas/skills/launch-execute/SKILL.md +18 -0
- package/departments/saas/skills/metrics-dashboard/SKILL.md +18 -0
- package/departments/saas/skills/micro-saas-stack/SKILL.md +18 -0
- package/departments/saas/skills/mvp-build/SKILL.md +18 -0
- package/departments/saas/skills/niche-evaluate/SKILL.md +18 -0
- package/departments/saas/skills/onboarding-optimize/SKILL.md +18 -0
- package/departments/saas/skills/plg-setup/SKILL.md +53 -0
- package/departments/saas/skills/pricing-strategy/SKILL.md +48 -0
- package/departments/saas/skills/saas-scaffold/SKILL.md +127 -0
- package/departments/saas/skills/validate-idea/SKILL.md +55 -0
- package/departments/saas/squad.yaml +37 -0
- package/departments/saas/workflows/metrics.yaml +58 -0
- package/departments/saas/workflows/validate.yaml +103 -0
- package/departments/sales/SKILL.md +35 -0
- package/departments/sales/agents/sales-closer.yaml +58 -0
- package/departments/sales/agents/sales-director.yaml +72 -0
- package/departments/sales/agents/sales-ops.yaml +55 -0
- package/departments/sales/skills/challenger-sell/SKILL.md +18 -0
- package/departments/sales/skills/deal-qualify/SKILL.md +18 -0
- package/departments/sales/skills/discovery-call/SKILL.md +18 -0
- package/departments/sales/skills/forecast-revenue/SKILL.md +18 -0
- package/departments/sales/skills/negotiate-plan/SKILL.md +18 -0
- package/departments/sales/skills/objection-handle/SKILL.md +18 -0
- package/departments/sales/skills/pipeline-manage/SKILL.md +18 -0
- package/departments/sales/skills/pricing-negotiate/SKILL.md +18 -0
- package/departments/sales/skills/proposal-write/SKILL.md +54 -0
- package/departments/sales/skills/spin-sell/SKILL.md +50 -0
- package/departments/sales/squad.yaml +35 -0
- package/departments/sales/workflows/pipeline.yaml +49 -0
- package/departments/strategy/SKILL.md +37 -0
- package/departments/strategy/agents/business-model-designer.yaml +58 -0
- package/departments/strategy/agents/market-analyst.yaml +58 -0
- package/departments/strategy/agents/strategist.md +79 -0
- package/departments/strategy/agents/strategy-director.yaml +75 -0
- package/departments/strategy/skills/blue-ocean/SKILL.md +56 -0
- package/departments/strategy/skills/bmc/SKILL.md +18 -0
- package/departments/strategy/skills/board-advisor/SKILL.md +121 -0
- package/departments/strategy/skills/cto-advisor/SKILL.md +113 -0
- package/departments/strategy/skills/five-forces/SKILL.md +74 -0
- package/departments/strategy/skills/growth-strategy/SKILL.md +18 -0
- package/departments/strategy/skills/moat-analysis/SKILL.md +18 -0
- package/departments/strategy/skills/position/SKILL.md +18 -0
- package/departments/strategy/skills/scenario-plan/SKILL.md +18 -0
- package/departments/strategy/squad.yaml +37 -0
- package/departments/strategy/workflows/analysis.yaml +90 -0
- package/departments/strategy/workflows/swot.yaml +47 -0
- package/installer/adapters/claude-code.js +73 -0
- package/installer/adapters/codex-cli.js +34 -0
- package/installer/adapters/cursor.js +34 -0
- package/installer/adapters/gemini-cli.js +37 -0
- package/installer/cli.js +91 -0
- package/installer/detect-runtime.js +122 -0
- package/installer/doctor.js +105 -0
- package/installer/index.js +199 -0
- package/installer/uninstall.js +46 -0
- package/installer/update.js +39 -0
- package/knowledge/agents-registry-v2.json +2702 -0
- package/knowledge/commands-registry-v2.json +3827 -0
- package/package.json +58 -0
- package/pyproject.toml +64 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/mcp-builder
|
|
3
|
+
description: >
|
|
4
|
+
Build production-ready MCP servers from API contracts. Scaffold from OpenAPI,
|
|
5
|
+
validate tool manifests, design auth and versioning strategies.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# MCP Builder — `/dev mcp-builder <api>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Andre (Backend Dev) | **Framework:** MCP Server Architecture
|
|
12
|
+
|
|
13
|
+
## What This Does
|
|
14
|
+
|
|
15
|
+
Builds MCP (Model Context Protocol) servers that expose APIs as typed tools for LLM agents. Converts OpenAPI specs into MCP tool definitions with scaffolded server code.
|
|
16
|
+
|
|
17
|
+
Note: For managing/applying existing MCP servers to projects, use `/dev mcp` instead.
|
|
18
|
+
|
|
19
|
+
## Build Process
|
|
20
|
+
|
|
21
|
+
1. Start from a valid OpenAPI spec (or define tools manually)
|
|
22
|
+
2. Generate tool manifest + starter server code
|
|
23
|
+
3. Review naming, descriptions, and auth strategy
|
|
24
|
+
4. Add endpoint-specific runtime logic
|
|
25
|
+
5. Validate with strict mode before publishing
|
|
26
|
+
6. Deploy with versioning and backward compatibility
|
|
27
|
+
|
|
28
|
+
## Runtime Selection
|
|
29
|
+
|
|
30
|
+
| Runtime | When to Choose | Strength |
|
|
31
|
+
|---------|---------------|----------|
|
|
32
|
+
| **Python** | Data pipelines, backend-heavy teams | Fast iteration, rich ecosystem |
|
|
33
|
+
| **TypeScript** | JS stacks, frontend/backend contract reuse | Shared types, tighter integration |
|
|
34
|
+
|
|
35
|
+
## Tool Design Rules
|
|
36
|
+
|
|
37
|
+
| Rule | Correct | Wrong |
|
|
38
|
+
|------|---------|-------|
|
|
39
|
+
| Naming | `list_invoices`, `create_user` | `get__v1__users___id` |
|
|
40
|
+
| Scope | One task intent per tool | Mega-tools with mode flags |
|
|
41
|
+
| Descriptions | Verb-first, explain intent and result | Missing or generic |
|
|
42
|
+
| Required fields | Explicitly typed, all required marked | Ambiguous optional-only schemas |
|
|
43
|
+
| Destructive ops | Include confirmation parameter | No guard on deletes |
|
|
44
|
+
| Errors | Structured `{ code, message, details }` | Opaque error strings |
|
|
45
|
+
|
|
46
|
+
## Auth and Safety
|
|
47
|
+
|
|
48
|
+
- [ ] Secrets in environment variables, never in tool schemas
|
|
49
|
+
- [ ] Explicit allowlist for outbound hosts
|
|
50
|
+
- [ ] Structured error responses for agent recovery
|
|
51
|
+
- [ ] Destructive actions require confirmation inputs
|
|
52
|
+
- [ ] Rate limiting on high-cost tools
|
|
53
|
+
- [ ] Request timeouts on all external calls
|
|
54
|
+
- [ ] Secrets and auth headers redacted from logs
|
|
55
|
+
|
|
56
|
+
## Versioning Strategy
|
|
57
|
+
|
|
58
|
+
| Action | Rule |
|
|
59
|
+
|--------|------|
|
|
60
|
+
| Non-breaking change | Additive fields only |
|
|
61
|
+
| Rename tool | Never rename in-place, create new tool ID |
|
|
62
|
+
| Breaking behavior | New tool ID with changelog entry |
|
|
63
|
+
| Deprecation | Mark deprecated, maintain for one release window |
|
|
64
|
+
|
|
65
|
+
## Quality Gate Checklist
|
|
66
|
+
|
|
67
|
+
Before publishing a manifest:
|
|
68
|
+
|
|
69
|
+
- [ ] Every tool has a clear verb-first name
|
|
70
|
+
- [ ] Every tool description explains intent and expected result
|
|
71
|
+
- [ ] Every required field is explicitly typed
|
|
72
|
+
- [ ] Destructive actions include confirmation parameters
|
|
73
|
+
- [ ] Error payload format is consistent across all tools
|
|
74
|
+
- [ ] Validator returns zero errors in strict mode
|
|
75
|
+
|
|
76
|
+
## Testing Strategy
|
|
77
|
+
|
|
78
|
+
| Level | What to Test |
|
|
79
|
+
|-------|-------------|
|
|
80
|
+
| **Unit** | OpenAPI operation -> MCP tool schema transformation |
|
|
81
|
+
| **Contract** | Snapshot `tool_manifest.json`, review diffs in PR |
|
|
82
|
+
| **Integration** | Call tool handlers against staging API |
|
|
83
|
+
| **Resilience** | Simulate 4xx/5xx upstream errors, verify structured responses |
|
|
84
|
+
|
|
85
|
+
## Architecture Decision: Single vs Split Servers
|
|
86
|
+
|
|
87
|
+
| Approach | Pros | Cons |
|
|
88
|
+
|----------|------|------|
|
|
89
|
+
| **Single MCP server** | Easiest operations | Broader blast radius |
|
|
90
|
+
| **Split domain servers** | Cleaner ownership, safer boundaries | More infra to manage |
|
|
91
|
+
|
|
92
|
+
## Proactive Triggers
|
|
93
|
+
|
|
94
|
+
Surface these issues WITHOUT being asked:
|
|
95
|
+
|
|
96
|
+
- Tool returning >10KB per call → flag context window waste
|
|
97
|
+
- No input validation on tool params → flag injection risk
|
|
98
|
+
- Missing error schema → flag poor client experience
|
|
99
|
+
|
|
100
|
+
## Output
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
## MCP Server: <Server Name>
|
|
104
|
+
|
|
105
|
+
### Tools
|
|
106
|
+
| Tool | Description | Params | Returns |
|
|
107
|
+
|------|------------|--------|---------|
|
|
108
|
+
| ... | ... | ... | ... |
|
|
109
|
+
|
|
110
|
+
### Auth
|
|
111
|
+
- **Strategy:** <env vars / OAuth / API key>
|
|
112
|
+
- **Outbound hosts:** <allowlist>
|
|
113
|
+
|
|
114
|
+
### Versioning
|
|
115
|
+
- **Current:** v<X>
|
|
116
|
+
- **Compatibility:** <backward-compatible since vX>
|
|
117
|
+
|
|
118
|
+
### Deployment
|
|
119
|
+
- **Runtime:** <Python / TypeScript>
|
|
120
|
+
- **Transport:** <stdio / HTTP>
|
|
121
|
+
```
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/observability
|
|
3
|
+
description: >
|
|
4
|
+
Design observability strategies: SLI/SLO frameworks, golden signals, structured logging, distributed tracing, alerting, and dashboards.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Observability Design — `/dev observability`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Dev Lead) | **Framework:** Google SRE (SLI/SLO), Golden Signals, RED/USE Methods
|
|
11
|
+
|
|
12
|
+
## Three Pillars Assessment
|
|
13
|
+
|
|
14
|
+
| Pillar | Key Questions | Tools |
|
|
15
|
+
|--------|--------------|-------|
|
|
16
|
+
| **Metrics** | Golden signals covered? RED for services, USE for resources? | Prometheus, Datadog |
|
|
17
|
+
| **Logs** | Structured JSON? Correlation IDs? Appropriate levels? | ELK, Loki |
|
|
18
|
+
| **Traces** | Distributed tracing enabled? Sampling strategy defined? | Jaeger, Zipkin, OpenTelemetry |
|
|
19
|
+
|
|
20
|
+
## SLI/SLO Design Checklist
|
|
21
|
+
|
|
22
|
+
- [ ] Define SLIs per service (latency p50/p95/p99, error rate, throughput)
|
|
23
|
+
- [ ] Set SLO targets based on user experience (e.g., 99.9% availability)
|
|
24
|
+
- [ ] Calculate error budgets (100% - SLO = budget)
|
|
25
|
+
- [ ] Configure multi-window burn rate alerts (1h/6h fast, 3d slow)
|
|
26
|
+
- [ ] Document SLA commitments (if customer-facing)
|
|
27
|
+
|
|
28
|
+
## Golden Signals Matrix
|
|
29
|
+
|
|
30
|
+
| Signal | What to Measure | Alert Threshold |
|
|
31
|
+
|--------|----------------|-----------------|
|
|
32
|
+
| **Latency** | p50, p95, p99 response time | p99 > 2x baseline for 5min |
|
|
33
|
+
| **Traffic** | Requests/sec, active sessions | Drop > 50% in 5min |
|
|
34
|
+
| **Errors** | 5xx rate, exception rate | Error rate > 1% for 5min |
|
|
35
|
+
| **Saturation** | CPU, memory, queue depth, connections | > 80% utilization for 10min |
|
|
36
|
+
|
|
37
|
+
## Structured Logging Standard
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
{
|
|
41
|
+
"timestamp": "ISO8601",
|
|
42
|
+
"level": "info|warn|error|debug",
|
|
43
|
+
"service": "service-name",
|
|
44
|
+
"trace_id": "uuid",
|
|
45
|
+
"span_id": "uuid",
|
|
46
|
+
"message": "Human-readable description",
|
|
47
|
+
"context": { "user_id": "123", "action": "checkout" }
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Log level rules:**
|
|
52
|
+
- `ERROR` -- Requires immediate attention, action needed
|
|
53
|
+
- `WARN` -- Unexpected but handled, review needed
|
|
54
|
+
- `INFO` -- Business events (user signup, order placed)
|
|
55
|
+
- `DEBUG` -- Development only, never in production
|
|
56
|
+
|
|
57
|
+
## Alert Design Rules
|
|
58
|
+
|
|
59
|
+
| Rule | Rationale |
|
|
60
|
+
|------|-----------|
|
|
61
|
+
| Every alert must be actionable | No alert without a runbook |
|
|
62
|
+
| Use hysteresis (different fire/resolve thresholds) | Prevents alert flapping |
|
|
63
|
+
| Group related alerts | Reduces notification fatigue |
|
|
64
|
+
| Suppress dependent alerts during known outages | Focus on root cause |
|
|
65
|
+
| Review alert precision monthly | Target > 90% actionable rate |
|
|
66
|
+
|
|
67
|
+
## Dashboard Hierarchy
|
|
68
|
+
|
|
69
|
+
1. **Executive** -- SLO status, error budgets, uptime (5 panels max)
|
|
70
|
+
2. **Service Overview** -- Golden signals per service (7 panels max)
|
|
71
|
+
3. **Component Detail** -- Per-instance metrics, logs, traces (drill-down)
|
|
72
|
+
4. **Debug** -- Full metrics, ad-hoc exploration
|
|
73
|
+
|
|
74
|
+
## Cost Optimization
|
|
75
|
+
|
|
76
|
+
- Tiered metric retention (7d full resolution, 90d downsampled, 1y aggregated)
|
|
77
|
+
- Log sampling for high-throughput services (keep 100% errors, sample 10% info)
|
|
78
|
+
- Tail-based trace sampling (keep slow/error traces, sample healthy ones)
|
|
79
|
+
- Monitor cardinality -- alert on metrics exceeding 10K unique label combinations
|
|
80
|
+
|
|
81
|
+
## Proactive Triggers
|
|
82
|
+
|
|
83
|
+
Surface these issues WITHOUT being asked:
|
|
84
|
+
|
|
85
|
+
- Error rate SLO undefined → flag blind alerting
|
|
86
|
+
- Logs without correlation ID → flag debugging nightmare
|
|
87
|
+
- No dashboard for critical paths → flag invisible failures
|
|
88
|
+
|
|
89
|
+
## Output
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
## Observability Design: <project>
|
|
93
|
+
|
|
94
|
+
### Service Inventory
|
|
95
|
+
| Service | SLI | SLO Target | Current |
|
|
96
|
+
|---------|-----|------------|---------|
|
|
97
|
+
|
|
98
|
+
### Logging
|
|
99
|
+
- Format: [structured JSON / plaintext -- recommendation]
|
|
100
|
+
- Missing correlation IDs: [list]
|
|
101
|
+
- Level misuse: [list]
|
|
102
|
+
|
|
103
|
+
### Metrics & Alerts
|
|
104
|
+
- Golden signals coverage: [X/4 per service]
|
|
105
|
+
- Alert rules: [count] ([actionable %])
|
|
106
|
+
- Missing alerts: [list]
|
|
107
|
+
|
|
108
|
+
### Tracing
|
|
109
|
+
- Instrumented services: [X/Y]
|
|
110
|
+
- Sampling strategy: [head/tail/adaptive]
|
|
111
|
+
|
|
112
|
+
### Dashboard Plan
|
|
113
|
+
- [Executive | Service | Component] dashboards needed
|
|
114
|
+
|
|
115
|
+
### Recommendations (priority order)
|
|
116
|
+
1. [Most impactful improvement]
|
|
117
|
+
2. [Next priority]
|
|
118
|
+
3. [Next priority]
|
|
119
|
+
```
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arka-dev-onboard
|
|
3
|
+
description: >
|
|
4
|
+
Onboard existing projects into ARKA OS with automatic stack detection, codebase analysis,
|
|
5
|
+
MCP configuration, and Obsidian documentation. Analyzes composer.json, package.json,
|
|
6
|
+
.env files, directory structure to auto-detect framework, database, auth, payments, and
|
|
7
|
+
architecture patterns. Generates PROJECT.md, applies MCP profiles, creates Obsidian project
|
|
8
|
+
pages, and registers in ARKA OS — making any existing codebase "ready to work" with full
|
|
9
|
+
context. Also manages project ecosystems (groups of related projects like API + frontend).
|
|
10
|
+
Use when user says "onboard", "register project", "add project", "import project",
|
|
11
|
+
"existing project", "ecosystem", or wants to bring an existing codebase into ARKA OS.
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
# Project Onboarding — ARKA OS Dev Department
|
|
15
|
+
|
|
16
|
+
Onboard existing projects into ARKA OS. Unlike `/dev scaffold` which creates NEW projects from templates, onboard analyzes EXISTING codebases and generates all the context, configuration, and documentation ARKA OS needs.
|
|
17
|
+
|
|
18
|
+
The goal: run one command, and the project is fully registered with stack detection, MCP configuration, Obsidian docs, and ecosystem assignment. No manual steps.
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
| Command | Description |
|
|
23
|
+
|---------|-------------|
|
|
24
|
+
| `/dev onboard <path>` | Onboard an existing project |
|
|
25
|
+
| `/dev onboard <path> --ecosystem <name>` | Onboard and assign to an ecosystem |
|
|
26
|
+
| `/dev ecosystem list` | List all ecosystems and their projects |
|
|
27
|
+
| `/dev ecosystem create <name>` | Create a new ecosystem |
|
|
28
|
+
| `/dev ecosystem add <project> --to <ecosystem>` | Add existing project to ecosystem |
|
|
29
|
+
|
|
30
|
+
## Workflow: /dev onboard <path>
|
|
31
|
+
|
|
32
|
+
### Step 1: Validate Path
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
python3 "$ARKA_OS/../arka-onboard/scripts/detect-stack.py" "<path>" --json
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
If the path doesn't exist, resolve relative to `$HOME` or common project directories (`~/Herd/`, `~/Projects/`, `~/Code/`).
|
|
39
|
+
|
|
40
|
+
Check if already onboarded: look for `projects/<name>/PROJECT.md` in `$ARKA_OS`.
|
|
41
|
+
|
|
42
|
+
### Step 2: Auto-Detect Stack
|
|
43
|
+
|
|
44
|
+
Run the bundled detection script:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
python3 "$(dirname "$0")/scripts/detect-stack.py" "<resolved-path>" --json
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
This returns a JSON report with:
|
|
51
|
+
- **Framework** — Laravel, Nuxt, Vue, React, Next.js, Django, FastAPI, etc.
|
|
52
|
+
- **Language** — PHP, TypeScript, Python, etc.
|
|
53
|
+
- **Stack** — full list of detected technologies
|
|
54
|
+
- **Database** — PostgreSQL, MySQL, SQLite, Supabase
|
|
55
|
+
- **Cache/Queue** — Redis, Horizon
|
|
56
|
+
- **Auth** — Sanctum, Passport, NextAuth, Supabase Auth
|
|
57
|
+
- **Payments** — Stripe, Paddle
|
|
58
|
+
- **CSS** — Tailwind, Sass, Nuxt UI, shadcn/ui
|
|
59
|
+
- **Testing** — Pest, PHPUnit, Vitest, Jest, Playwright
|
|
60
|
+
- **Architecture** — monolith, api-only, monorepo, frontend-spa
|
|
61
|
+
- **Patterns** — Services, Repositories, Actions, DTOs
|
|
62
|
+
- **Conventions** — TypeScript, ESLint, Prettier, PHPStan, Docker
|
|
63
|
+
- **Metrics** — models, controllers, migrations, components, pages, tests
|
|
64
|
+
- **MCP Profile** — recommended profile (laravel/nuxt/vue/react/nextjs/full-stack/base)
|
|
65
|
+
|
|
66
|
+
If the script is not available, detect manually by reading:
|
|
67
|
+
- `composer.json` — PHP/Laravel dependencies
|
|
68
|
+
- `package.json` — Node.js/frontend dependencies
|
|
69
|
+
- `nuxt.config.ts` / `next.config.ts` — framework config
|
|
70
|
+
- `.env.example` or `.env` — database, cache, queue, payment keys
|
|
71
|
+
- `docker-compose.yml` — infrastructure setup
|
|
72
|
+
|
|
73
|
+
### Step 3: Architecture Analysis
|
|
74
|
+
|
|
75
|
+
Glob the project directory to understand its structure:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
# Laravel
|
|
79
|
+
app/Models/*.php → count models
|
|
80
|
+
app/Http/Controllers/ → count controllers
|
|
81
|
+
database/migrations/ → count migrations
|
|
82
|
+
routes/*.php → count route files
|
|
83
|
+
app/Services/ → Services pattern?
|
|
84
|
+
app/Repositories/ → Repository pattern?
|
|
85
|
+
tests/ → count tests
|
|
86
|
+
|
|
87
|
+
# Frontend
|
|
88
|
+
components/**/*.vue|tsx → count components
|
|
89
|
+
pages/**/*.vue|tsx → count pages
|
|
90
|
+
composables/ → composables pattern?
|
|
91
|
+
stores/ → state management?
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Determine:
|
|
95
|
+
- **Monolith** — backend + frontend views in one repo
|
|
96
|
+
- **API-only** — backend without frontend views
|
|
97
|
+
- **Monorepo** — `api/` + `frontend/` or `apps/` + `packages/`
|
|
98
|
+
- **Frontend SPA** — no backend, just frontend
|
|
99
|
+
|
|
100
|
+
### Step 4: Git Analysis
|
|
101
|
+
|
|
102
|
+
Read-only git commands to understand project history:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
git -C "<path>" remote -v # remotes
|
|
106
|
+
git -C "<path>" branch -a # branches
|
|
107
|
+
git -C "<path>" log --oneline -10 # recent commits
|
|
108
|
+
git -C "<path>" shortlog -sn --no-merges | head -5 # top contributors
|
|
109
|
+
git -C "<path>" rev-list --count HEAD # total commits
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Step 5: Determine MCP Profile
|
|
113
|
+
|
|
114
|
+
Map detected stack to MCP profile using the same mapping as scaffold:
|
|
115
|
+
|
|
116
|
+
| Detected Framework | MCP Profile |
|
|
117
|
+
|-------------------|-------------|
|
|
118
|
+
| Laravel | `laravel` |
|
|
119
|
+
| Laravel + ecommerce indicators | `ecommerce` |
|
|
120
|
+
| Nuxt | `nuxt` |
|
|
121
|
+
| Vue (without Nuxt) | `vue` |
|
|
122
|
+
| React (without Next) | `react` |
|
|
123
|
+
| Next.js | `nextjs` |
|
|
124
|
+
| Monorepo (Laravel + frontend) | `full-stack` |
|
|
125
|
+
| Other / Unknown | `base` |
|
|
126
|
+
|
|
127
|
+
### Step 6: Ecosystem Assignment
|
|
128
|
+
|
|
129
|
+
If `--ecosystem <name>` was provided:
|
|
130
|
+
1. Read `knowledge/ecosystems.json`
|
|
131
|
+
2. If ecosystem exists, add this project to it
|
|
132
|
+
3. If not, create the ecosystem and add this project
|
|
133
|
+
|
|
134
|
+
If no ecosystem flag, ask the user:
|
|
135
|
+
- "Create new ecosystem" → ask for name, then create
|
|
136
|
+
- "Join existing ecosystem" → show list, let user pick
|
|
137
|
+
- "Standalone (no ecosystem)" → skip
|
|
138
|
+
|
|
139
|
+
Ecosystem entry format:
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"name": "project-name",
|
|
143
|
+
"role": "api|frontend|admin|worker|docs|landing",
|
|
144
|
+
"stack": "Laravel 11",
|
|
145
|
+
"path": "/absolute/path/to/project"
|
|
146
|
+
}
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Step 7: User Confirmation
|
|
150
|
+
|
|
151
|
+
Present the analysis summary and ask to proceed:
|
|
152
|
+
|
|
153
|
+
```
|
|
154
|
+
═══ ARKA OS — Project Analysis ═══
|
|
155
|
+
Name: <name>
|
|
156
|
+
Path: <path>
|
|
157
|
+
Framework: <framework> <version>
|
|
158
|
+
Language: <language>
|
|
159
|
+
Architecture: <type>
|
|
160
|
+
Stack: <technologies>
|
|
161
|
+
Database: <db>
|
|
162
|
+
Auth: <auth>
|
|
163
|
+
Testing: <testing>
|
|
164
|
+
Metrics: <X> models, <Y> components, <Z> migrations, <W> tests
|
|
165
|
+
MCP Profile: <profile> (<N> MCPs)
|
|
166
|
+
Ecosystem: <ecosystem or "standalone">
|
|
167
|
+
Git: <total commits>, <branches> branches, <contributors> contributors
|
|
168
|
+
═══════════════════════════════════
|
|
169
|
+
|
|
170
|
+
Proceed with onboarding? (Y/n)
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### Step 8: Generate PROJECT.md
|
|
174
|
+
|
|
175
|
+
Create `PROJECT.md` in the project root with all detected context:
|
|
176
|
+
|
|
177
|
+
```markdown
|
|
178
|
+
# <name> — WizardingCode Project
|
|
179
|
+
|
|
180
|
+
## Stack
|
|
181
|
+
- **Framework:** <framework> <version>
|
|
182
|
+
- **Language:** <language>
|
|
183
|
+
- **Database:** <database>
|
|
184
|
+
- **Cache:** <cache>
|
|
185
|
+
- **Queue:** <queue>
|
|
186
|
+
- **Auth:** <auth>
|
|
187
|
+
- **Payments:** <payments>
|
|
188
|
+
- **CSS:** <css>
|
|
189
|
+
- **Testing:** <testing>
|
|
190
|
+
|
|
191
|
+
## Architecture
|
|
192
|
+
- **Type:** <monolith|api-only|monorepo|frontend-spa>
|
|
193
|
+
- **Patterns:** <Services, Repositories, etc.>
|
|
194
|
+
|
|
195
|
+
## Key Paths
|
|
196
|
+
- Models: `app/Models/`
|
|
197
|
+
- Controllers: `app/Http/Controllers/`
|
|
198
|
+
- Routes: `routes/`
|
|
199
|
+
- Migrations: `database/migrations/`
|
|
200
|
+
- Tests: `tests/`
|
|
201
|
+
- Components: `components/` or `src/components/`
|
|
202
|
+
|
|
203
|
+
## Conventions
|
|
204
|
+
- TypeScript: <yes/no>
|
|
205
|
+
- Linting: <ESLint/PHPStan/none>
|
|
206
|
+
- Formatting: <Prettier/none>
|
|
207
|
+
- Docker: <yes/no>
|
|
208
|
+
|
|
209
|
+
## Ecosystem
|
|
210
|
+
- **Ecosystem:** <name or "standalone">
|
|
211
|
+
- **Role:** <api/frontend/admin/worker>
|
|
212
|
+
|
|
213
|
+
## Current State
|
|
214
|
+
- Total commits: <N>
|
|
215
|
+
- Active branches: <list>
|
|
216
|
+
- Top contributors: <list>
|
|
217
|
+
- Last commit: <date and message>
|
|
218
|
+
|
|
219
|
+
## MCPs Active
|
|
220
|
+
- <list from applied profile>
|
|
221
|
+
|
|
222
|
+
## Decisions
|
|
223
|
+
- **Onboarded:** <date> via ARKA OS v<version>
|
|
224
|
+
- **MCP Profile:** <profile>
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Step 9: Register in ARKA OS
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
mkdir -p "$ARKA_OS/projects/<name>"
|
|
231
|
+
cp "<path>/PROJECT.md" "$ARKA_OS/projects/<name>/PROJECT.md"
|
|
232
|
+
echo "<absolute-path>" > "$ARKA_OS/projects/<name>/.project-path"
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
The `.project-path` file stores the absolute path so system commands like `/arka standup` can find and reference the actual project.
|
|
236
|
+
|
|
237
|
+
### Step 10: Apply MCP Profile
|
|
238
|
+
|
|
239
|
+
```bash
|
|
240
|
+
bash "$ARKA_OS/mcps/scripts/apply-mcps.sh" <profile> --project "<path>"
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
This generates `.mcp.json` and `.claude/settings.local.json` in the project.
|
|
244
|
+
|
|
245
|
+
### Step 11: Create Obsidian Documentation
|
|
246
|
+
|
|
247
|
+
Create pages in the Obsidian vault at `{{OBSIDIAN_VAULT}}`:
|
|
248
|
+
|
|
249
|
+
**Home page:** `Projects/<name>/Home.md`
|
|
250
|
+
```markdown
|
|
251
|
+
---
|
|
252
|
+
type: project
|
|
253
|
+
name: <name>
|
|
254
|
+
stack:
|
|
255
|
+
- <framework>
|
|
256
|
+
- <language>
|
|
257
|
+
status: active
|
|
258
|
+
date_created: <YYYY-MM-DD>
|
|
259
|
+
ecosystem: <ecosystem or null>
|
|
260
|
+
tags:
|
|
261
|
+
- project
|
|
262
|
+
- <framework-kebab-case>
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
# <name>
|
|
266
|
+
|
|
267
|
+
> Onboarded into ARKA OS on <date>
|
|
268
|
+
|
|
269
|
+
## Overview
|
|
270
|
+
- **Framework:** <framework>
|
|
271
|
+
- **Architecture:** <type>
|
|
272
|
+
- **Stack:** <technologies>
|
|
273
|
+
|
|
274
|
+
## Architecture
|
|
275
|
+
- [[<name> - Architecture]]
|
|
276
|
+
|
|
277
|
+
## Links
|
|
278
|
+
- Local: `<path>`
|
|
279
|
+
- ARKA OS: `projects/<name>/PROJECT.md`
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
*Part of the [[Projects MOC]]*
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
**Architecture overview:** `Projects/<name>/Architecture/Overview.md`
|
|
286
|
+
```markdown
|
|
287
|
+
---
|
|
288
|
+
type: adr-log
|
|
289
|
+
project: <name>
|
|
290
|
+
date_created: <YYYY-MM-DD>
|
|
291
|
+
tags:
|
|
292
|
+
- architecture
|
|
293
|
+
- adr
|
|
294
|
+
---
|
|
295
|
+
|
|
296
|
+
# Architecture — <name>
|
|
297
|
+
|
|
298
|
+
## ADR-000: Project Onboarded
|
|
299
|
+
- **Date:** <today>
|
|
300
|
+
- **Decision:** Onboarded existing project into ARKA OS
|
|
301
|
+
- **Stack:** <full stack details>
|
|
302
|
+
- **Architecture:** <type> with <patterns>
|
|
303
|
+
- **MCP Profile:** <profile>
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
**Update Projects MOC:** Append `- [[<name>]]` to the Active Projects section.
|
|
307
|
+
|
|
308
|
+
**Ecosystem MOC** (if ecosystem assigned): Create or update `Projects/Ecosystems/<ecosystem>.md`:
|
|
309
|
+
```markdown
|
|
310
|
+
---
|
|
311
|
+
type: ecosystem
|
|
312
|
+
name: <ecosystem>
|
|
313
|
+
date_updated: <YYYY-MM-DD>
|
|
314
|
+
tags:
|
|
315
|
+
- ecosystem
|
|
316
|
+
- project
|
|
317
|
+
---
|
|
318
|
+
|
|
319
|
+
# <ecosystem> Ecosystem
|
|
320
|
+
|
|
321
|
+
## Projects
|
|
322
|
+
| Project | Role | Stack | Path |
|
|
323
|
+
|---------|------|-------|------|
|
|
324
|
+
| [[<name>]] | <role> | <stack> | `<path>` |
|
|
325
|
+
|
|
326
|
+
---
|
|
327
|
+
*Part of the [[Projects MOC]]*
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Step 12: Report
|
|
331
|
+
|
|
332
|
+
```
|
|
333
|
+
═══ ARKA OS — Project Onboarded ═══
|
|
334
|
+
Name: <name>
|
|
335
|
+
Framework: <framework>
|
|
336
|
+
Architecture: <type>
|
|
337
|
+
MCPs: <count> active (<profile> profile)
|
|
338
|
+
Ecosystem: <ecosystem or "standalone">
|
|
339
|
+
PROJECT.md: <path>/PROJECT.md
|
|
340
|
+
Obsidian: Projects/<name>/Home.md
|
|
341
|
+
════════════════════════════════════
|
|
342
|
+
|
|
343
|
+
Next steps:
|
|
344
|
+
cd <path>
|
|
345
|
+
/dev feature "describe your first feature"
|
|
346
|
+
/dev review (review current code)
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
## Workflow: /dev ecosystem list
|
|
350
|
+
|
|
351
|
+
1. Read `knowledge/ecosystems.json`
|
|
352
|
+
2. Display all ecosystems with their projects:
|
|
353
|
+
|
|
354
|
+
```
|
|
355
|
+
═══ ARKA OS — Ecosystems ═══
|
|
356
|
+
<ecosystem-name>
|
|
357
|
+
• <project> (<role>) — <stack> — <path>
|
|
358
|
+
• <project> (<role>) — <stack> — <path>
|
|
359
|
+
|
|
360
|
+
<ecosystem-name>
|
|
361
|
+
• <project> (<role>) — <stack> — <path>
|
|
362
|
+
═════════════════════════════
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
## Workflow: /dev ecosystem create <name>
|
|
366
|
+
|
|
367
|
+
1. Read `knowledge/ecosystems.json`
|
|
368
|
+
2. Create new ecosystem entry: `"<name>": { "projects": [] }`
|
|
369
|
+
3. Write back
|
|
370
|
+
4. Confirm creation
|
|
371
|
+
|
|
372
|
+
## Workflow: /dev ecosystem add <project> --to <ecosystem>
|
|
373
|
+
|
|
374
|
+
1. Read `knowledge/ecosystems.json`
|
|
375
|
+
2. Read `projects/<project>/PROJECT.md` to get stack info
|
|
376
|
+
3. Read `projects/<project>/.project-path` to get path
|
|
377
|
+
4. Ask user for role (api/frontend/admin/worker/docs/landing)
|
|
378
|
+
5. Add to ecosystem
|
|
379
|
+
6. Write back
|
|
380
|
+
7. Update Ecosystem MOC in Obsidian
|
|
381
|
+
|
|
382
|
+
## Error Handling
|
|
383
|
+
|
|
384
|
+
- If path doesn't exist: suggest common directories, ask for correct path
|
|
385
|
+
- If already onboarded: show existing PROJECT.md, ask if re-onboard
|
|
386
|
+
- If no git repo: skip git analysis steps, warn user
|
|
387
|
+
- If detection script fails: fall back to manual file inspection
|
|
388
|
+
- If MCP apply fails: warn but continue (MCPs can be applied later)
|
|
389
|
+
- If Obsidian vault not configured: skip Obsidian steps, warn user
|