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,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: strat/growth-strategy
|
|
3
|
+
description: >
|
|
4
|
+
Growth strategy: market penetration, development, product development, diversification.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Growth Strategy — `/strat growth <business>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Tomas (Chief Strategist) | **Framework:** Ansoff Matrix + Adjacencies
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Growth strategy: market penetration, development, product development, diversification.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Growth roadmap with Ansoff quadrant, risk assessment, and resource requirements
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: strat/moat-analysis
|
|
3
|
+
description: >
|
|
4
|
+
Competitive moat analysis: which of the 7 Powers applies and how durable.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Moat Analysis — `/strat moat <company>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Tomas (Chief Strategist) | **Framework:** 7 Powers (Hamilton Helmer)
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Competitive moat analysis: which of the 7 Powers applies and how durable.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Moat assessment with power type, durability score, and strengthening actions
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: strat/position
|
|
3
|
+
description: >
|
|
4
|
+
Competitive positioning: alternatives, unique capabilities, value, target, category.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Position — `/strat position <product>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Tomas (Chief Strategist) | **Framework:** Positioning (Ries/Trout) + April Dunford
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Competitive positioning: alternatives, unique capabilities, value, target, category.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Positioning statement + perceptual map + competitive differentiation
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: strat/scenario-plan
|
|
3
|
+
description: >
|
|
4
|
+
Scenario planning: 3-5 plausible futures with strategies for each.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Scenario Plan — `/strat scenario <context>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Lucas (Market Analyst) | **Framework:** Scenario Planning + PESTLE
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Scenario planning: 3-5 plausible futures with strategies for each.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Scenario matrix with base/optimistic/pessimistic/black swan + action plans
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
id: strategy-squad
|
|
2
|
+
name: Strategy & Innovation Squad
|
|
3
|
+
description: Competitive analysis, positioning, business model design, scenario planning
|
|
4
|
+
department: strategy
|
|
5
|
+
squad_type: department
|
|
6
|
+
topology: stream-aligned
|
|
7
|
+
|
|
8
|
+
skills_prefix: "/strat"
|
|
9
|
+
obsidian_path: "WizardingCode/Strategy/"
|
|
10
|
+
quality_gate_required: true
|
|
11
|
+
max_size: 4
|
|
12
|
+
|
|
13
|
+
members:
|
|
14
|
+
- agent_id: strategy-director-tomas
|
|
15
|
+
role: Strategic vision, competitive positioning, market entry
|
|
16
|
+
is_lead: true
|
|
17
|
+
- agent_id: market-analyst-lucas
|
|
18
|
+
role: Market sizing, competitive intelligence, trend analysis
|
|
19
|
+
- agent_id: business-model-designer-marta-s
|
|
20
|
+
role: Business model design, value proposition, revenue models
|
|
21
|
+
|
|
22
|
+
workflows:
|
|
23
|
+
- workflow_id: strat-analyze
|
|
24
|
+
trigger_command: "/strat analyze"
|
|
25
|
+
tier: enterprise
|
|
26
|
+
- workflow_id: strat-swot
|
|
27
|
+
trigger_command: "/strat swot"
|
|
28
|
+
tier: focused
|
|
29
|
+
- workflow_id: strat-blue-ocean
|
|
30
|
+
trigger_command: "/strat blue-ocean"
|
|
31
|
+
tier: enterprise
|
|
32
|
+
- workflow_id: strat-bmc
|
|
33
|
+
trigger_command: "/strat bmc"
|
|
34
|
+
tier: focused
|
|
35
|
+
- workflow_id: strat-position
|
|
36
|
+
trigger_command: "/strat position"
|
|
37
|
+
tier: focused
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
id: strat-analyze
|
|
2
|
+
name: Strategic Analysis
|
|
3
|
+
description: Comprehensive strategic analysis using Porter, Blue Ocean, Wardley, and 7 Powers
|
|
4
|
+
department: strategy
|
|
5
|
+
tier: enterprise
|
|
6
|
+
command: "/strat analyze"
|
|
7
|
+
requires_branch: false
|
|
8
|
+
requires_spec: false
|
|
9
|
+
quality_gate_required: true
|
|
10
|
+
|
|
11
|
+
phases:
|
|
12
|
+
- id: brief
|
|
13
|
+
name: Analysis Brief
|
|
14
|
+
description: Define scope, market, competitors, and key questions
|
|
15
|
+
agents:
|
|
16
|
+
- agent_id: strategy-director-tomas
|
|
17
|
+
role: Frame the strategic question and analysis scope
|
|
18
|
+
gate:
|
|
19
|
+
type: user_approval
|
|
20
|
+
description: User confirms analysis scope
|
|
21
|
+
|
|
22
|
+
- id: research
|
|
23
|
+
name: Multi-Framework Research
|
|
24
|
+
description: 5 parallel analysis agents each applying a different framework
|
|
25
|
+
agents:
|
|
26
|
+
- agent_id: market-analyst-lucas
|
|
27
|
+
role: "Porter's Five Forces + TAM/SAM/SOM"
|
|
28
|
+
parallel: true
|
|
29
|
+
- agent_id: business-model-designer-marta-s
|
|
30
|
+
role: "Business Model Canvas + Value Proposition Canvas"
|
|
31
|
+
parallel: true
|
|
32
|
+
- agent_id: strategy-director-tomas
|
|
33
|
+
role: "Blue Ocean Strategy Canvas + ERRC Grid"
|
|
34
|
+
parallel: true
|
|
35
|
+
gate:
|
|
36
|
+
type: auto
|
|
37
|
+
|
|
38
|
+
- id: synthesis
|
|
39
|
+
name: Strategic Synthesis
|
|
40
|
+
description: Synthesize all frameworks into unified strategic picture
|
|
41
|
+
agents:
|
|
42
|
+
- agent_id: strategy-director-tomas
|
|
43
|
+
role: Synthesize findings, identify key strategic moves
|
|
44
|
+
gate:
|
|
45
|
+
type: user_approval
|
|
46
|
+
description: User reviews synthesis and strategic recommendations
|
|
47
|
+
outputs:
|
|
48
|
+
- type: document
|
|
49
|
+
format: markdown
|
|
50
|
+
obsidian_path: "WizardingCode/Strategy/Analysis/"
|
|
51
|
+
description: Strategic Analysis report
|
|
52
|
+
|
|
53
|
+
- id: self-critique
|
|
54
|
+
name: Self-Critique
|
|
55
|
+
description: Devil's advocate review of strategic recommendations
|
|
56
|
+
agents:
|
|
57
|
+
- agent_id: market-analyst-lucas
|
|
58
|
+
role: Challenge assumptions, identify blind spots, stress-test
|
|
59
|
+
gate:
|
|
60
|
+
type: auto
|
|
61
|
+
|
|
62
|
+
- id: quality-gate
|
|
63
|
+
name: Quality Gate
|
|
64
|
+
description: Quality review of analysis quality and accuracy
|
|
65
|
+
agents:
|
|
66
|
+
- agent_id: cqo-marta
|
|
67
|
+
role: Orchestrate quality review
|
|
68
|
+
- agent_id: copy-director-eduardo
|
|
69
|
+
role: Report clarity, language quality
|
|
70
|
+
parallel: true
|
|
71
|
+
- agent_id: tech-director-francisca
|
|
72
|
+
role: Data accuracy, logical consistency
|
|
73
|
+
parallel: true
|
|
74
|
+
gate:
|
|
75
|
+
type: quality_gate
|
|
76
|
+
required_verdict: APPROVED
|
|
77
|
+
|
|
78
|
+
- id: delivery
|
|
79
|
+
name: Delivery
|
|
80
|
+
description: Save to Obsidian with actionable recommendations
|
|
81
|
+
agents:
|
|
82
|
+
- agent_id: strategy-director-tomas
|
|
83
|
+
role: Final strategic report delivery
|
|
84
|
+
gate:
|
|
85
|
+
type: auto
|
|
86
|
+
outputs:
|
|
87
|
+
- type: document
|
|
88
|
+
format: markdown
|
|
89
|
+
obsidian_path: "WizardingCode/Strategy/"
|
|
90
|
+
description: Strategic Analysis with recommendations
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
id: strat-swot
|
|
2
|
+
name: SWOT Analysis
|
|
3
|
+
department: strategy
|
|
4
|
+
tier: focused
|
|
5
|
+
command: /strat swot
|
|
6
|
+
requires_branch: false
|
|
7
|
+
requires_spec: false
|
|
8
|
+
quality_gate_required: true
|
|
9
|
+
description: 'SWOT analysis: Strengths, Weaknesses, Opportunities, Threats'
|
|
10
|
+
phases:
|
|
11
|
+
- id: brief
|
|
12
|
+
name: Analysis Brief
|
|
13
|
+
agents:
|
|
14
|
+
- agent_id: strategy-director-tomas
|
|
15
|
+
role: Define scope and context
|
|
16
|
+
gate:
|
|
17
|
+
type: user_approval
|
|
18
|
+
description: User confirms scope
|
|
19
|
+
- id: analyze
|
|
20
|
+
name: SWOT Analysis
|
|
21
|
+
agents:
|
|
22
|
+
- agent_id: market-analyst-lucas
|
|
23
|
+
role: Internal (S/W) and external (O/T) analysis
|
|
24
|
+
gate:
|
|
25
|
+
type: auto
|
|
26
|
+
- id: quality-gate
|
|
27
|
+
name: Quality Gate
|
|
28
|
+
agents:
|
|
29
|
+
- agent_id: cqo-marta
|
|
30
|
+
role: Orchestrate review
|
|
31
|
+
- agent_id: tech-director-francisca
|
|
32
|
+
role: Data accuracy and logic
|
|
33
|
+
parallel: true
|
|
34
|
+
gate:
|
|
35
|
+
type: quality_gate
|
|
36
|
+
required_verdict: APPROVED
|
|
37
|
+
- id: delivery
|
|
38
|
+
name: Delivery
|
|
39
|
+
agents:
|
|
40
|
+
- agent_id: strategy-director-tomas
|
|
41
|
+
role: SWOT report with strategic implications
|
|
42
|
+
gate:
|
|
43
|
+
type: auto
|
|
44
|
+
outputs:
|
|
45
|
+
- type: document
|
|
46
|
+
format: markdown
|
|
47
|
+
obsidian_path: WizardingCode/Strategy/SWOT/
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
2
|
+
import { join, dirname } from "node:path";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
configureHooks(config, installDir) {
|
|
6
|
+
const settingsPath = config.settingsFile;
|
|
7
|
+
|
|
8
|
+
// Ensure settings directory exists
|
|
9
|
+
mkdirSync(dirname(settingsPath), { recursive: true });
|
|
10
|
+
|
|
11
|
+
// Load existing settings (merge, don't overwrite)
|
|
12
|
+
let settings = {};
|
|
13
|
+
if (existsSync(settingsPath)) {
|
|
14
|
+
try {
|
|
15
|
+
settings = JSON.parse(readFileSync(settingsPath, "utf-8"));
|
|
16
|
+
} catch {
|
|
17
|
+
// Backup corrupted settings
|
|
18
|
+
const backup = settingsPath + ".bak";
|
|
19
|
+
try { writeFileSync(backup, readFileSync(settingsPath)); } catch {}
|
|
20
|
+
settings = {};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const hooksDir = join(installDir, "config", "hooks");
|
|
25
|
+
|
|
26
|
+
// Configure hooks (ArkaOS hooks only — preserve user's other hooks)
|
|
27
|
+
if (!settings.hooks) {
|
|
28
|
+
settings.hooks = {};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// UserPromptSubmit — Synapse v2 context injection
|
|
32
|
+
settings.hooks.UserPromptSubmit = [
|
|
33
|
+
{
|
|
34
|
+
hooks: [
|
|
35
|
+
{
|
|
36
|
+
type: "command",
|
|
37
|
+
command: join(hooksDir, "user-prompt-submit.sh"),
|
|
38
|
+
timeout: 10,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
// PostToolUse — Error tracking
|
|
45
|
+
settings.hooks.PostToolUse = [
|
|
46
|
+
{
|
|
47
|
+
hooks: [
|
|
48
|
+
{
|
|
49
|
+
type: "command",
|
|
50
|
+
command: join(hooksDir, "post-tool-use.sh"),
|
|
51
|
+
timeout: 5,
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
},
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
// PreCompact — Session digest
|
|
58
|
+
settings.hooks.PreCompact = [
|
|
59
|
+
{
|
|
60
|
+
hooks: [
|
|
61
|
+
{
|
|
62
|
+
type: "command",
|
|
63
|
+
command: join(hooksDir, "pre-compact.sh"),
|
|
64
|
+
timeout: 30,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
writeFileSync(settingsPath, JSON.stringify(settings, null, 2));
|
|
71
|
+
console.log(" Claude Code hooks configured.");
|
|
72
|
+
},
|
|
73
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
configureHooks(config, installDir) {
|
|
6
|
+
// Codex CLI uses AGENTS.md for instructions
|
|
7
|
+
const agentsPath = join(config.configDir, "AGENTS.md");
|
|
8
|
+
|
|
9
|
+
// Create reference to ArkaOS instructions
|
|
10
|
+
const arkaosRef = `# ArkaOS v2 Configuration
|
|
11
|
+
|
|
12
|
+
> Auto-generated by ArkaOS installer. Do not edit manually.
|
|
13
|
+
|
|
14
|
+
## System Instructions
|
|
15
|
+
|
|
16
|
+
ArkaOS is installed at: ${installDir}
|
|
17
|
+
Load instructions from: ${join(installDir, "config", "codex-instructions.md")}
|
|
18
|
+
|
|
19
|
+
## Available Commands
|
|
20
|
+
|
|
21
|
+
Use natural language or prefix commands:
|
|
22
|
+
- /do <description> — Universal orchestrator
|
|
23
|
+
- /dev, /mkt, /fin, /strat, /brand, /ops, /ecom, /kb, /saas, /landing, /community, /content
|
|
24
|
+
|
|
25
|
+
## Hooks
|
|
26
|
+
|
|
27
|
+
Codex CLI does not support native hooks. Context is injected via instruction files.
|
|
28
|
+
`;
|
|
29
|
+
|
|
30
|
+
mkdirSync(config.configDir, { recursive: true });
|
|
31
|
+
writeFileSync(agentsPath, arkaosRef);
|
|
32
|
+
console.log(" Codex CLI AGENTS.md configured.");
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { existsSync, writeFileSync, mkdirSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
configureHooks(config, installDir) {
|
|
6
|
+
// Cursor uses .cursorrules for project-level instructions
|
|
7
|
+
// and .cursor/rules for global rules
|
|
8
|
+
const rulesDir = join(config.configDir, "rules");
|
|
9
|
+
mkdirSync(rulesDir, { recursive: true });
|
|
10
|
+
|
|
11
|
+
const arkaosRule = `# ArkaOS v2 Configuration
|
|
12
|
+
|
|
13
|
+
ArkaOS is installed at: ${installDir}
|
|
14
|
+
|
|
15
|
+
## Instructions
|
|
16
|
+
|
|
17
|
+
You are running inside ArkaOS — The Operating System for AI Agent Teams.
|
|
18
|
+
Load full instructions from: ${join(installDir, "config", "cursor-instructions.md")}
|
|
19
|
+
|
|
20
|
+
## Available Commands
|
|
21
|
+
|
|
22
|
+
Use natural language or prefix commands:
|
|
23
|
+
- /do <description> — Universal orchestrator
|
|
24
|
+
- /dev, /mkt, /fin, /strat, /brand, /ops, /ecom, /kb, /saas, /landing, /community, /content
|
|
25
|
+
|
|
26
|
+
## Agent System
|
|
27
|
+
|
|
28
|
+
ArkaOS has 62 specialized agents across 16 departments. Each request is routed to the appropriate squad.
|
|
29
|
+
`;
|
|
30
|
+
|
|
31
|
+
writeFileSync(join(rulesDir, "arkaos.md"), arkaosRule);
|
|
32
|
+
console.log(" Cursor rules configured.");
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { existsSync, writeFileSync, mkdirSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
configureHooks(config, installDir) {
|
|
6
|
+
// Gemini CLI uses GEMINI.md for instructions
|
|
7
|
+
const geminiMdPath = join(config.configDir, "GEMINI.md");
|
|
8
|
+
|
|
9
|
+
const arkaosRef = `# ArkaOS v2 Configuration
|
|
10
|
+
|
|
11
|
+
> Auto-generated by ArkaOS installer. Do not edit manually.
|
|
12
|
+
|
|
13
|
+
## System Instructions
|
|
14
|
+
|
|
15
|
+
ArkaOS is installed at: ${installDir}
|
|
16
|
+
Load instructions from: ${join(installDir, "config", "gemini-instructions.md")}
|
|
17
|
+
|
|
18
|
+
## Available Commands
|
|
19
|
+
|
|
20
|
+
Use natural language or prefix commands:
|
|
21
|
+
- /do <description> — Universal orchestrator
|
|
22
|
+
- /dev, /mkt, /fin, /strat, /brand, /ops, /ecom, /kb, /saas, /landing, /community, /content
|
|
23
|
+
|
|
24
|
+
## Tool Mapping
|
|
25
|
+
|
|
26
|
+
Gemini CLI tools map to ArkaOS tools:
|
|
27
|
+
- activate_skill → Skill invocation
|
|
28
|
+
- read_file → Read
|
|
29
|
+
- edit_file → Edit
|
|
30
|
+
- run_command → Bash
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
mkdirSync(config.configDir, { recursive: true });
|
|
34
|
+
writeFileSync(geminiMdPath, arkaosRef);
|
|
35
|
+
console.log(" Gemini CLI GEMINI.md configured.");
|
|
36
|
+
},
|
|
37
|
+
};
|
package/installer/cli.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { parseArgs } from "node:util";
|
|
4
|
+
import { install } from "./index.js";
|
|
5
|
+
import { detectRuntime } from "./detect-runtime.js";
|
|
6
|
+
|
|
7
|
+
const { values, positionals } = parseArgs({
|
|
8
|
+
options: {
|
|
9
|
+
help: { type: "boolean", short: "h" },
|
|
10
|
+
version: { type: "boolean", short: "v" },
|
|
11
|
+
runtime: { type: "string", short: "r" },
|
|
12
|
+
path: { type: "string", short: "p" },
|
|
13
|
+
force: { type: "boolean", short: "f" },
|
|
14
|
+
},
|
|
15
|
+
allowPositionals: true,
|
|
16
|
+
strict: false,
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const VERSION = "2.0.0-alpha.1";
|
|
20
|
+
const command = positionals[0] || "install";
|
|
21
|
+
|
|
22
|
+
if (values.version) {
|
|
23
|
+
console.log(`ArkaOS v${VERSION}`);
|
|
24
|
+
process.exit(0);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
if (values.help || command === "help") {
|
|
28
|
+
console.log(`
|
|
29
|
+
ArkaOS v${VERSION} — The Operating System for AI Agent Teams
|
|
30
|
+
|
|
31
|
+
Usage:
|
|
32
|
+
npx arkaos install Install ArkaOS in current environment
|
|
33
|
+
npx arkaos install --runtime <runtime> Install for specific runtime
|
|
34
|
+
npx arkaos doctor Run health checks
|
|
35
|
+
npx arkaos update Update to latest version
|
|
36
|
+
npx arkaos uninstall Remove ArkaOS
|
|
37
|
+
|
|
38
|
+
Options:
|
|
39
|
+
-r, --runtime <name> Target runtime: claude-code, codex, gemini, cursor
|
|
40
|
+
-p, --path <dir> Installation directory (default: auto-detect)
|
|
41
|
+
-f, --force Force reinstall, overwriting existing files
|
|
42
|
+
-v, --version Show version
|
|
43
|
+
-h, --help Show this help
|
|
44
|
+
|
|
45
|
+
Runtimes:
|
|
46
|
+
claude-code Anthropic Claude Code CLI
|
|
47
|
+
codex OpenAI Codex CLI
|
|
48
|
+
gemini Google Gemini CLI
|
|
49
|
+
cursor Cursor AI IDE
|
|
50
|
+
|
|
51
|
+
Examples:
|
|
52
|
+
npx arkaos install Auto-detect runtime and install
|
|
53
|
+
npx arkaos install --runtime codex Install for Codex CLI specifically
|
|
54
|
+
npx arkaos doctor Verify installation health
|
|
55
|
+
`);
|
|
56
|
+
process.exit(0);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function main() {
|
|
60
|
+
switch (command) {
|
|
61
|
+
case "install":
|
|
62
|
+
const runtime = values.runtime || await detectRuntime();
|
|
63
|
+
await install({ runtime, path: values.path, force: values.force });
|
|
64
|
+
break;
|
|
65
|
+
|
|
66
|
+
case "doctor":
|
|
67
|
+
const { doctor } = await import("./doctor.js");
|
|
68
|
+
await doctor();
|
|
69
|
+
break;
|
|
70
|
+
|
|
71
|
+
case "update":
|
|
72
|
+
const { update } = await import("./update.js");
|
|
73
|
+
await update();
|
|
74
|
+
break;
|
|
75
|
+
|
|
76
|
+
case "uninstall":
|
|
77
|
+
const { uninstall } = await import("./uninstall.js");
|
|
78
|
+
await uninstall();
|
|
79
|
+
break;
|
|
80
|
+
|
|
81
|
+
default:
|
|
82
|
+
console.error(`Unknown command: ${command}`);
|
|
83
|
+
console.error('Run "npx arkaos help" for usage information.');
|
|
84
|
+
process.exit(1);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
main().catch((err) => {
|
|
89
|
+
console.error("Error:", err.message);
|
|
90
|
+
process.exit(1);
|
|
91
|
+
});
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { execSync } from "node:child_process";
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
|
+
|
|
6
|
+
const RUNTIMES = [
|
|
7
|
+
{
|
|
8
|
+
id: "claude-code",
|
|
9
|
+
name: "Claude Code",
|
|
10
|
+
detect: () => {
|
|
11
|
+
try {
|
|
12
|
+
execSync("claude --version", { stdio: "pipe" });
|
|
13
|
+
return true;
|
|
14
|
+
} catch {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
configDir: () => join(homedir(), ".claude"),
|
|
19
|
+
skillsDir: () => join(homedir(), ".claude", "skills"),
|
|
20
|
+
settingsFile: () => join(homedir(), ".claude", "settings.json"),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "codex",
|
|
24
|
+
name: "Codex CLI",
|
|
25
|
+
detect: () => {
|
|
26
|
+
try {
|
|
27
|
+
execSync("codex --version", { stdio: "pipe" });
|
|
28
|
+
return true;
|
|
29
|
+
} catch {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
configDir: () => join(homedir(), ".codex"),
|
|
34
|
+
skillsDir: () => join(homedir(), ".codex", "skills"),
|
|
35
|
+
settingsFile: () => join(homedir(), ".codex", "settings.json"),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "gemini",
|
|
39
|
+
name: "Gemini CLI",
|
|
40
|
+
detect: () => {
|
|
41
|
+
try {
|
|
42
|
+
execSync("gemini --version", { stdio: "pipe" });
|
|
43
|
+
return true;
|
|
44
|
+
} catch {
|
|
45
|
+
return existsSync(join(homedir(), ".gemini"));
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
configDir: () => join(homedir(), ".gemini"),
|
|
49
|
+
skillsDir: () => join(homedir(), ".gemini", "skills"),
|
|
50
|
+
settingsFile: () => join(homedir(), ".gemini", "settings.json"),
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: "cursor",
|
|
54
|
+
name: "Cursor",
|
|
55
|
+
detect: () => {
|
|
56
|
+
try {
|
|
57
|
+
execSync("cursor --version", { stdio: "pipe" });
|
|
58
|
+
return true;
|
|
59
|
+
} catch {
|
|
60
|
+
const cursorPaths = [
|
|
61
|
+
join(homedir(), ".cursor"),
|
|
62
|
+
"/Applications/Cursor.app",
|
|
63
|
+
join(homedir(), "AppData", "Local", "Programs", "cursor"),
|
|
64
|
+
];
|
|
65
|
+
return cursorPaths.some((p) => existsSync(p));
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
configDir: () => join(homedir(), ".cursor"),
|
|
69
|
+
skillsDir: () => join(homedir(), ".cursor", "skills"),
|
|
70
|
+
settingsFile: () => join(homedir(), ".cursor", "settings.json"),
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
export async function detectRuntime() {
|
|
75
|
+
console.log("Detecting AI runtime...\n");
|
|
76
|
+
|
|
77
|
+
const detected = [];
|
|
78
|
+
for (const runtime of RUNTIMES) {
|
|
79
|
+
if (runtime.detect()) {
|
|
80
|
+
detected.push(runtime);
|
|
81
|
+
console.log(` Found: ${runtime.name}`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if (detected.length === 0) {
|
|
86
|
+
console.error(
|
|
87
|
+
"\nNo supported AI runtime detected.\n" +
|
|
88
|
+
"Install one of: Claude Code, Codex CLI, Gemini CLI, or Cursor\n" +
|
|
89
|
+
"Or specify manually: npx arkaos install --runtime claude-code"
|
|
90
|
+
);
|
|
91
|
+
process.exit(1);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (detected.length === 1) {
|
|
95
|
+
console.log(`\nUsing: ${detected[0].name}\n`);
|
|
96
|
+
return detected[0].id;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
console.log(`\nMultiple runtimes found. Using: ${detected[0].name}`);
|
|
100
|
+
console.log(
|
|
101
|
+
`To install for a different runtime: npx arkaos install --runtime <name>\n`
|
|
102
|
+
);
|
|
103
|
+
return detected[0].id;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function getRuntimeConfig(runtimeId) {
|
|
107
|
+
const runtime = RUNTIMES.find((r) => r.id === runtimeId);
|
|
108
|
+
if (!runtime) {
|
|
109
|
+
throw new Error(
|
|
110
|
+
`Unknown runtime: ${runtimeId}. Supported: ${RUNTIMES.map((r) => r.id).join(", ")}`
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
id: runtime.id,
|
|
115
|
+
name: runtime.name,
|
|
116
|
+
configDir: runtime.configDir(),
|
|
117
|
+
skillsDir: runtime.skillsDir(),
|
|
118
|
+
settingsFile: runtime.settingsFile(),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { RUNTIMES };
|