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: dev/db-design
|
|
3
|
+
description: >
|
|
4
|
+
Database design: schema, normalization, indexes, RLS policies, migration planning.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Db Design — `/dev db <action>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Vasco (DBA) | **Framework:** Normalization + Indexing Best Practices
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Database design: schema, normalization, indexes, RLS policies, migration planning.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
ERD diagram, migration scripts, index strategy, RLS policy definitions
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/db-schema
|
|
3
|
+
description: >
|
|
4
|
+
Design database schemas with normalization, indexing, migrations,
|
|
5
|
+
RLS policies, ERD generation, and cross-cutting concerns.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# DB Schema — `/dev db-schema <feature>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Andre (Backend Dev) | **Framework:** Relational Schema Design + Laravel Conventions
|
|
12
|
+
|
|
13
|
+
## Schema Design Process
|
|
14
|
+
|
|
15
|
+
1. **Requirements -> Entities** -- extract nouns as candidate tables
|
|
16
|
+
2. **Identify Relationships** -- 1:1, 1:N, M:N (junction tables)
|
|
17
|
+
3. **Add Cross-cutting Concerns** -- see table below
|
|
18
|
+
4. **Normalize** -- at least 3NF, denormalize only with measured need
|
|
19
|
+
5. **Index Strategy** -- foreign keys, frequent WHERE/ORDER columns
|
|
20
|
+
6. **Generate Migration** -- framework-specific migration code
|
|
21
|
+
7. **Generate ERD** -- Mermaid diagram from schema
|
|
22
|
+
|
|
23
|
+
## Cross-cutting Concerns
|
|
24
|
+
|
|
25
|
+
| Concern | Implementation | When |
|
|
26
|
+
|---------|---------------|------|
|
|
27
|
+
| **Timestamps** | `created_at`, `updated_at` | Every table (NON-NEGOTIABLE) |
|
|
28
|
+
| **Soft deletes** | `deleted_at TIMESTAMPTZ` | Auditable data (orders, users) |
|
|
29
|
+
| **Multi-tenancy** | `organization_id` FK on all tenant-scoped tables | SaaS applications |
|
|
30
|
+
| **Audit trail** | `created_by`, `updated_by` + audit log table | Regulated domains |
|
|
31
|
+
| **Optimistic locking** | `version INTEGER` column | Concurrent update scenarios |
|
|
32
|
+
| **Public IDs** | UUID/CUID for URLs/APIs, auto-increment internal | Public-facing resources |
|
|
33
|
+
|
|
34
|
+
## Index Strategy
|
|
35
|
+
|
|
36
|
+
| Index Type | When to Use | Example |
|
|
37
|
+
|-----------|------------|---------|
|
|
38
|
+
| **Single column** | FK columns, frequent WHERE | `INDEX idx_tasks_project_id ON tasks(project_id)` |
|
|
39
|
+
| **Composite** | Multi-column WHERE clauses | `INDEX idx_tasks_org_status ON tasks(org_id, status)` |
|
|
40
|
+
| **Partial** | Filtered queries on subset | `WHERE deleted_at IS NULL` |
|
|
41
|
+
| **Covering** | Avoid table lookups | Include all SELECT columns in index |
|
|
42
|
+
| **Unique** | Business key enforcement | `UNIQUE(org_id, slug)` |
|
|
43
|
+
|
|
44
|
+
## Normalization Quick Reference
|
|
45
|
+
|
|
46
|
+
| Form | Rule | Violation Example |
|
|
47
|
+
|------|------|------------------|
|
|
48
|
+
| **1NF** | Atomic values, no repeating groups | `tags: "a,b,c"` in one column |
|
|
49
|
+
| **2NF** | No partial dependency on composite PK | Non-key depends on part of PK |
|
|
50
|
+
| **3NF** | No transitive dependency | `city` depends on `zip`, not PK |
|
|
51
|
+
|
|
52
|
+
Denormalize only when: measured query performance requires it AND read/write ratio justifies it.
|
|
53
|
+
|
|
54
|
+
## Common Pitfalls
|
|
55
|
+
|
|
56
|
+
| Pitfall | Fix |
|
|
57
|
+
|---------|-----|
|
|
58
|
+
| Soft delete without partial index | Add `WHERE deleted_at IS NULL` index |
|
|
59
|
+
| Missing composite indexes | Profile queries, add composite for multi-column WHERE |
|
|
60
|
+
| Mutable surrogate keys (email as PK) | Use UUID/CUID, keep email as unique constraint |
|
|
61
|
+
| NOT NULL column without default on existing table | Provide default or multi-step migration |
|
|
62
|
+
| No optimistic locking | Add `version` column for concurrent writes |
|
|
63
|
+
| RLS not tested | Always test with non-superuser role |
|
|
64
|
+
|
|
65
|
+
## Laravel Migration Convention
|
|
66
|
+
|
|
67
|
+
```php
|
|
68
|
+
Schema::create('tasks', function (Blueprint $table) {
|
|
69
|
+
$table->id();
|
|
70
|
+
$table->uuid('uuid')->unique();
|
|
71
|
+
$table->foreignId('project_id')->constrained()->cascadeOnDelete();
|
|
72
|
+
$table->foreignId('created_by_id')->constrained('users');
|
|
73
|
+
$table->string('title');
|
|
74
|
+
$table->text('description')->nullable();
|
|
75
|
+
$table->string('status')->default('todo');
|
|
76
|
+
$table->string('priority')->default('medium');
|
|
77
|
+
$table->integer('position')->default(0);
|
|
78
|
+
$table->integer('version')->default(1);
|
|
79
|
+
$table->timestamps();
|
|
80
|
+
$table->softDeletes();
|
|
81
|
+
|
|
82
|
+
$table->index(['project_id', 'status']);
|
|
83
|
+
$table->index(['created_by_id']);
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## ERD Output (Mermaid)
|
|
88
|
+
|
|
89
|
+
```mermaid
|
|
90
|
+
erDiagram
|
|
91
|
+
User ||--o{ Project : owns
|
|
92
|
+
Project ||--o{ Task : contains
|
|
93
|
+
Task }o--o{ Label : "tagged with"
|
|
94
|
+
Task ||--o{ Comment : has
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Proactive Triggers
|
|
98
|
+
|
|
99
|
+
Surface these issues WITHOUT being asked:
|
|
100
|
+
|
|
101
|
+
- Table with >20 columns → suggest normalization
|
|
102
|
+
- Missing index on foreign key → flag query performance
|
|
103
|
+
- No soft delete on user-facing data → flag compliance risk
|
|
104
|
+
|
|
105
|
+
## Output
|
|
106
|
+
|
|
107
|
+
```markdown
|
|
108
|
+
## Schema Design: <Feature Name>
|
|
109
|
+
|
|
110
|
+
### Entities
|
|
111
|
+
| Table | Purpose | Key Columns |
|
|
112
|
+
|-------|---------|------------|
|
|
113
|
+
| ... | ... | ... |
|
|
114
|
+
|
|
115
|
+
### Relationships
|
|
116
|
+
| From | To | Type | FK |
|
|
117
|
+
|------|-----|------|-----|
|
|
118
|
+
| ... | ... | 1:N | ... |
|
|
119
|
+
|
|
120
|
+
### Indexes
|
|
121
|
+
| Table | Columns | Type | Reason |
|
|
122
|
+
|-------|---------|------|--------|
|
|
123
|
+
| ... | ... | composite | ... |
|
|
124
|
+
|
|
125
|
+
### Migration
|
|
126
|
+
<Laravel migration code>
|
|
127
|
+
|
|
128
|
+
### ERD
|
|
129
|
+
<Mermaid diagram>
|
|
130
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/ddd-model
|
|
3
|
+
description: >
|
|
4
|
+
Domain-Driven Design modeling: bounded contexts, aggregates, domain events, context mapping, ubiquitous language.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Ddd Model — `/dev ddd <domain>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Gabriel (Architect) | **Framework:** DDD (Eric Evans / Vaughn Vernon)
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Domain-Driven Design modeling: bounded contexts, aggregates, domain events, context mapping, ubiquitous language.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
DDD model with bounded context map, aggregate definitions, and domain event catalog
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/dependency-audit
|
|
3
|
+
description: >
|
|
4
|
+
Audit project dependencies for vulnerabilities, license compliance, outdated packages, and supply chain risks.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Dependency Audit — `/dev dependency-audit`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Bruno (Security Engineer) | **Framework:** OWASP Supply Chain Security, SemVer
|
|
11
|
+
|
|
12
|
+
## Audit Scope
|
|
13
|
+
|
|
14
|
+
| Check | What | Tools |
|
|
15
|
+
|-------|------|-------|
|
|
16
|
+
| **Vulnerabilities** | Known CVEs in direct and transitive deps | `npm audit`, `composer audit`, `pip-audit`, `cargo audit` |
|
|
17
|
+
| **Licenses** | Incompatible or copyleft licenses | `license-checker`, manifest inspection |
|
|
18
|
+
| **Outdated** | Packages behind latest stable version | `npm outdated`, `composer outdated` |
|
|
19
|
+
| **Unused** | Declared but never imported | `depcheck`, import analysis |
|
|
20
|
+
| **Maintenance** | Abandoned or unmaintained packages | Last release date, commit activity |
|
|
21
|
+
|
|
22
|
+
## Vulnerability Scanning
|
|
23
|
+
|
|
24
|
+
Run these per ecosystem:
|
|
25
|
+
|
|
26
|
+
| Ecosystem | Command | Lock File |
|
|
27
|
+
|-----------|---------|-----------|
|
|
28
|
+
| Node.js | `npm audit --production` | package-lock.json |
|
|
29
|
+
| PHP | `composer audit` | composer.lock |
|
|
30
|
+
| Python | `pip-audit` | requirements.txt / poetry.lock |
|
|
31
|
+
| Go | `govulncheck ./...` | go.sum |
|
|
32
|
+
| Rust | `cargo audit` | Cargo.lock |
|
|
33
|
+
|
|
34
|
+
**Severity classification:**
|
|
35
|
+
- **Critical/High** -- Fix before next deploy
|
|
36
|
+
- **Medium** -- Fix within current sprint
|
|
37
|
+
- **Low** -- Fix within next 30 days
|
|
38
|
+
|
|
39
|
+
## License Compliance Matrix
|
|
40
|
+
|
|
41
|
+
| License | Type | Commercial Use | Distribution Risk |
|
|
42
|
+
|---------|------|---------------|-------------------|
|
|
43
|
+
| MIT, ISC, BSD-2, BSD-3 | Permissive | Safe | None |
|
|
44
|
+
| Apache 2.0 | Permissive | Safe | Patent clause |
|
|
45
|
+
| MPL 2.0, LGPL | Weak copyleft | Caution | File-level copyleft |
|
|
46
|
+
| GPL v2/v3 | Strong copyleft | Risk | Entire project must be GPL |
|
|
47
|
+
| AGPL v3 | Network copyleft | High risk | Network use triggers copyleft |
|
|
48
|
+
| Proprietary / Unknown | Restricted | Review required | Legal review mandatory |
|
|
49
|
+
|
|
50
|
+
**Rules:**
|
|
51
|
+
- [ ] No GPL/AGPL in proprietary projects
|
|
52
|
+
- [ ] All dependencies have identifiable licenses
|
|
53
|
+
- [ ] License changes between versions reviewed
|
|
54
|
+
|
|
55
|
+
## Upgrade Risk Assessment
|
|
56
|
+
|
|
57
|
+
| Update Type | Risk | Action |
|
|
58
|
+
|-------------|------|--------|
|
|
59
|
+
| Patch (1.2.3 -> 1.2.4) | Low | Auto-update, run tests |
|
|
60
|
+
| Minor (1.2.3 -> 1.3.0) | Medium | Review changelog, run tests |
|
|
61
|
+
| Major (1.2.3 -> 2.0.0) | High | Read migration guide, plan sprint work |
|
|
62
|
+
| Deprecated | Critical | Find replacement, schedule migration |
|
|
63
|
+
|
|
64
|
+
## Supply Chain Checks
|
|
65
|
+
|
|
66
|
+
- [ ] Lock files committed and up to date
|
|
67
|
+
- [ ] No typosquatting risks (verify package names)
|
|
68
|
+
- [ ] Check for recent maintainer changes on critical deps
|
|
69
|
+
- [ ] Verify package registry sources (no unknown registries)
|
|
70
|
+
- [ ] Review transitive dependency tree depth (flag > 5 levels)
|
|
71
|
+
|
|
72
|
+
## Audit Cadence
|
|
73
|
+
|
|
74
|
+
| Check | Frequency |
|
|
75
|
+
|-------|-----------|
|
|
76
|
+
| Vulnerability scan | Every CI run |
|
|
77
|
+
| License audit | Weekly / before release |
|
|
78
|
+
| Outdated check | Monthly |
|
|
79
|
+
| Full dependency audit | Quarterly |
|
|
80
|
+
|
|
81
|
+
## Proactive Triggers
|
|
82
|
+
|
|
83
|
+
Surface these issues WITHOUT being asked:
|
|
84
|
+
|
|
85
|
+
- Critical CVE in production dependency → BLOCK until resolved
|
|
86
|
+
- GPL dependency in commercial project → flag license violation risk
|
|
87
|
+
- Dependency with no maintainer activity >1yr → flag supply chain risk
|
|
88
|
+
|
|
89
|
+
## Output
|
|
90
|
+
|
|
91
|
+
```markdown
|
|
92
|
+
## Dependency Audit: <project>
|
|
93
|
+
|
|
94
|
+
### Ecosystem: {Node.js / PHP / Python / etc.}
|
|
95
|
+
- Direct dependencies: {count}
|
|
96
|
+
- Transitive dependencies: {count}
|
|
97
|
+
|
|
98
|
+
### Vulnerabilities
|
|
99
|
+
| Package | Severity | CVE | Fix Version | Status |
|
|
100
|
+
|---------|----------|-----|-------------|--------|
|
|
101
|
+
|
|
102
|
+
### License Issues
|
|
103
|
+
| Package | License | Risk | Action Required |
|
|
104
|
+
|---------|---------|------|-----------------|
|
|
105
|
+
|
|
106
|
+
### Outdated (top 10 by age)
|
|
107
|
+
| Package | Current | Latest | Type | Risk |
|
|
108
|
+
|---------|---------|--------|------|------|
|
|
109
|
+
|
|
110
|
+
### Unused Dependencies
|
|
111
|
+
- [list of packages declared but not imported]
|
|
112
|
+
|
|
113
|
+
### Summary
|
|
114
|
+
- Vulnerabilities: {critical} critical, {high} high, {medium} medium
|
|
115
|
+
- License issues: {count}
|
|
116
|
+
- Outdated: {count} ({major} major updates pending)
|
|
117
|
+
- Recommendation: {SAFE TO DEPLOY | FIX BEFORE DEPLOY | BLOCK DEPLOY}
|
|
118
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/deploy
|
|
3
|
+
description: >
|
|
4
|
+
Deploy to environment: pre-deploy checks, deployment execution, post-deploy verification.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Deploy — `/dev deploy <env>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Carlos (DevOps) | **Framework:** Blue-Green + Canary Deployments
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Deploy to environment: pre-deploy checks, deployment execution, post-deploy verification.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Deployment report with status, rollback plan, and monitoring links
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/devops-pipeline
|
|
3
|
+
description: >
|
|
4
|
+
CI/CD pipeline design: build, test, deploy stages with blue-green/canary strategies.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Devops Pipeline — `/dev pipeline <project>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Carlos (DevOps) | **Framework:** Three Ways (Gene Kim) + GitOps
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
CI/CD pipeline design: build, test, deploy stages with blue-green/canary strategies.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Pipeline config (GitHub Actions/GitLab CI), deployment strategy, monitoring setup
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/docs
|
|
3
|
+
description: >
|
|
4
|
+
Generate or update project documentation: README, API docs, architecture docs.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Docs — `/dev docs`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Lucas (Analyst) | **Framework:** Documentation Best Practices
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Generate or update project documentation: README, API docs, architecture docs.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Updated documentation saved to project and Obsidian
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/env-secrets
|
|
3
|
+
description: >
|
|
4
|
+
Audit .env files for leaked secrets, validate .env.example sync, and guide vault integration.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Env & Secrets Manager — `/dev env-secrets`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Bruno (Security Engineer) | **Framework:** OWASP Secrets Management, DevSecOps
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Audits environment files for leaked secrets, validates .env/.env.example drift, and provides vault integration guidance for production workloads.
|
|
15
|
+
|
|
16
|
+
## Audit Checklist
|
|
17
|
+
|
|
18
|
+
| Check | What to Verify | Severity |
|
|
19
|
+
|-------|---------------|----------|
|
|
20
|
+
| .gitignore | `.env` listed and not tracked | CRITICAL |
|
|
21
|
+
| Hardcoded secrets | API keys, passwords, tokens in source code | CRITICAL |
|
|
22
|
+
| .env.example sync | All keys present with placeholder values, no real values | HIGH |
|
|
23
|
+
| Secret patterns | AWS keys, Stripe keys, JWT secrets, DB passwords | CRITICAL |
|
|
24
|
+
| Git history | Secrets ever committed (even if removed) | HIGH |
|
|
25
|
+
| CI/CD variables | Secrets masked and scoped to environments | MEDIUM |
|
|
26
|
+
|
|
27
|
+
## Secret Detection Patterns
|
|
28
|
+
|
|
29
|
+
| Pattern | Regex | Example Match |
|
|
30
|
+
|---------|-------|--------------|
|
|
31
|
+
| AWS Access Key | `AKIA[0-9A-Z]{16}` | `AKIAIOSFODNN7EXAMPLE` |
|
|
32
|
+
| Stripe Key | `sk_(live\|test)_[0-9a-zA-Z]{24,}` | `sk_live_abc123...` |
|
|
33
|
+
| JWT Secret | `(jwt\|JWT).*(secret\|key).*=.+` | `JWT_SECRET=mysecret` |
|
|
34
|
+
| Generic Password | `(password\|passwd\|pwd).*=.{8,}` | `DB_PASSWORD=hunter2` |
|
|
35
|
+
| Private Key | `-----BEGIN (RSA\|EC\|DSA) PRIVATE KEY-----` | PEM block |
|
|
36
|
+
|
|
37
|
+
## Automated Scans
|
|
38
|
+
|
|
39
|
+
| Tool | Purpose | Command |
|
|
40
|
+
|------|---------|---------|
|
|
41
|
+
| GitLeaks | Scan repo for secrets | `gitleaks detect --source . --report-path gitleaks.json` |
|
|
42
|
+
| detect-secrets | Baseline + audit | `detect-secrets scan > .secrets.baseline` |
|
|
43
|
+
| git log | History check | `git log --all --diff-filter=A -- '*.env' '*secret*'` |
|
|
44
|
+
|
|
45
|
+
## Vault Integration Guide
|
|
46
|
+
|
|
47
|
+
| Provider | Best For | Integration Pattern |
|
|
48
|
+
|----------|----------|-------------------|
|
|
49
|
+
| HashiCorp Vault | Multi-cloud / hybrid | SDK pull or sidecar injection |
|
|
50
|
+
| AWS Secrets Manager | AWS-native | Lambda/ECS native, auto-rotation |
|
|
51
|
+
| Azure Key Vault | Azure-native | Managed HSM, Azure AD RBAC |
|
|
52
|
+
| GCP Secret Manager | GCP-native | IAM-based, automatic versioning |
|
|
53
|
+
|
|
54
|
+
## Emergency Rotation Checklist
|
|
55
|
+
|
|
56
|
+
- [ ] Revoke compromised credential immediately at provider
|
|
57
|
+
- [ ] Generate and deploy replacement to all consumers
|
|
58
|
+
- [ ] Audit access logs for unauthorized usage
|
|
59
|
+
- [ ] Scan git history, CI logs, artifacts for leaked value
|
|
60
|
+
- [ ] File incident report with scope and timeline
|
|
61
|
+
- [ ] Tighten detection controls to prevent recurrence
|
|
62
|
+
|
|
63
|
+
## Proactive Triggers
|
|
64
|
+
|
|
65
|
+
Surface these issues WITHOUT being asked:
|
|
66
|
+
|
|
67
|
+
- .env file in git history → CRITICAL flag, rotation needed
|
|
68
|
+
- Hardcoded API key in source → BLOCK until removed
|
|
69
|
+
- Secrets without expiration → flag rotation risk
|
|
70
|
+
|
|
71
|
+
## Output
|
|
72
|
+
|
|
73
|
+
```markdown
|
|
74
|
+
## Env & Secrets Audit: <project>
|
|
75
|
+
|
|
76
|
+
### CRITICAL
|
|
77
|
+
- [C1] `.env` committed to git — contains DB_PASSWORD and STRIPE_KEY
|
|
78
|
+
Fix: Remove from tracking, rotate credentials, add to .gitignore
|
|
79
|
+
|
|
80
|
+
### HIGH
|
|
81
|
+
- [H1] .env.example missing 3 keys present in .env
|
|
82
|
+
- [H2] AWS key found in git history (commit abc123)
|
|
83
|
+
|
|
84
|
+
### MEDIUM
|
|
85
|
+
- [M1] CI secrets not scoped to production environment
|
|
86
|
+
|
|
87
|
+
### Rotation Required: DB_PASSWORD, STRIPE_KEY, AWS_ACCESS_KEY_ID
|
|
88
|
+
### Recommendation: BLOCK deploy until all CRITICAL items resolved
|
|
89
|
+
```
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/incident
|
|
3
|
+
description: >
|
|
4
|
+
Incident response framework: severity classification, timeline reconstruction, runbook execution, stakeholder communication, and post-incident review.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Incident Response — `/dev incident`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Dev Lead) | **Framework:** Google SRE Incident Management, Blameless PIR
|
|
11
|
+
|
|
12
|
+
## Severity Classification
|
|
13
|
+
|
|
14
|
+
| Level | Definition | Response Time | Comms Cadence | Escalation |
|
|
15
|
+
|-------|-----------|---------------|---------------|------------|
|
|
16
|
+
| **SEV1** | Full outage, data loss, security breach | 5 min | Every 15 min | Immediate exec notification |
|
|
17
|
+
| **SEV2** | Partial degradation, >25% users affected | 15 min | Every 30 min | Team lead within 30 min |
|
|
18
|
+
| **SEV3** | Single feature affected, workaround exists | 2 hours | Key milestones | Internal team only |
|
|
19
|
+
| **SEV4** | Cosmetic, dev/test env, no user impact | Next business day | Standard cycle | Standard ticket |
|
|
20
|
+
|
|
21
|
+
## Incident Commander Checklist
|
|
22
|
+
|
|
23
|
+
### Detection (0-5 min)
|
|
24
|
+
- [ ] Identify affected services and user impact
|
|
25
|
+
- [ ] Classify severity using table above
|
|
26
|
+
- [ ] Create incident tracking ticket
|
|
27
|
+
- [ ] Establish war room (Slack channel / video bridge)
|
|
28
|
+
|
|
29
|
+
### Response (5-30 min)
|
|
30
|
+
- [ ] Assign Incident Commander (owns process, not debugging)
|
|
31
|
+
- [ ] Assign Technical Lead (owns investigation)
|
|
32
|
+
- [ ] Check recent deployments and config changes
|
|
33
|
+
- [ ] Review error logs and monitoring dashboards
|
|
34
|
+
- [ ] Send initial stakeholder notification
|
|
35
|
+
|
|
36
|
+
### Mitigation
|
|
37
|
+
- [ ] Decide: rollback vs. fix-forward
|
|
38
|
+
- [ ] Execute mitigation (prefer rollback under pressure)
|
|
39
|
+
- [ ] Validate fix with monitoring and end-to-end tests
|
|
40
|
+
- [ ] Update status page and stakeholders
|
|
41
|
+
|
|
42
|
+
### Resolution
|
|
43
|
+
- [ ] Confirm service restored to normal
|
|
44
|
+
- [ ] Send resolution notification
|
|
45
|
+
- [ ] Schedule Post-Incident Review (within 48h)
|
|
46
|
+
|
|
47
|
+
## Communication Templates
|
|
48
|
+
|
|
49
|
+
**Initial notification:**
|
|
50
|
+
```
|
|
51
|
+
[SEV{level}] {Service} -- {Brief Description}
|
|
52
|
+
Impact: {what users experience}
|
|
53
|
+
Status: Investigating | Mitigating | Resolved
|
|
54
|
+
IC: {name} | Tech Lead: {name}
|
|
55
|
+
Next update: {time}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
**Stakeholder update:**
|
|
59
|
+
```
|
|
60
|
+
[SEV{level}] Update #{n} -- {Service}
|
|
61
|
+
Status: {current status}
|
|
62
|
+
Actions taken: {what was done}
|
|
63
|
+
Next steps: {what happens next}
|
|
64
|
+
ETA: {estimate or "investigating"}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Runbook Template
|
|
68
|
+
|
|
69
|
+
| Section | Content |
|
|
70
|
+
|---------|---------|
|
|
71
|
+
| **Quick Reference** | Severity indicators, key contacts, critical commands |
|
|
72
|
+
| **Detection** | Alert definitions, manual symptom checklist |
|
|
73
|
+
| **Initial Response** | Severity assessment, command establishment, first investigation |
|
|
74
|
+
| **Mitigation Strategies** | Step-by-step procedures with rollback plans |
|
|
75
|
+
| **Recovery** | Service restoration, data consistency checks, notification |
|
|
76
|
+
| **Common Pitfalls** | Known failure modes and how to avoid them |
|
|
77
|
+
|
|
78
|
+
## Post-Incident Review (PIR)
|
|
79
|
+
|
|
80
|
+
| Framework | When to Use |
|
|
81
|
+
|-----------|------------|
|
|
82
|
+
| **5 Whys** | Simple, linear root cause chains |
|
|
83
|
+
| **Fishbone (Ishikawa)** | Multiple contributing factors |
|
|
84
|
+
| **Timeline Analysis** | Complex incidents with many events |
|
|
85
|
+
|
|
86
|
+
**PIR principles:**
|
|
87
|
+
- Blameless -- focus on systems, not people
|
|
88
|
+
- Action items have owners and due dates
|
|
89
|
+
- Share learnings broadly
|
|
90
|
+
- Update runbooks with new knowledge
|
|
91
|
+
|
|
92
|
+
## Proactive Triggers
|
|
93
|
+
|
|
94
|
+
Surface these issues WITHOUT being asked:
|
|
95
|
+
|
|
96
|
+
- SEV1 without defined escalation path → flag response gap
|
|
97
|
+
- No PIR template → flag learning gap
|
|
98
|
+
- Incident >30min without status update → flag communication failure
|
|
99
|
+
|
|
100
|
+
## Output
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
## Incident Report: <title>
|
|
104
|
+
|
|
105
|
+
### Summary
|
|
106
|
+
- Severity: SEV{level}
|
|
107
|
+
- Duration: {start} to {end} ({total time})
|
|
108
|
+
- Impact: {users/services affected}
|
|
109
|
+
- Root Cause: {1-2 sentence summary}
|
|
110
|
+
|
|
111
|
+
### Timeline
|
|
112
|
+
| Time | Event |
|
|
113
|
+
|------|-------|
|
|
114
|
+
|
|
115
|
+
### Root Cause Analysis
|
|
116
|
+
[5 Whys / Fishbone / Timeline analysis]
|
|
117
|
+
|
|
118
|
+
### Action Items
|
|
119
|
+
| # | Action | Owner | Due | Status |
|
|
120
|
+
|---|--------|-------|-----|--------|
|
|
121
|
+
|
|
122
|
+
### Lessons Learned
|
|
123
|
+
1. [Key takeaway]
|
|
124
|
+
2. [Key takeaway]
|
|
125
|
+
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arka-dev-mcp
|
|
3
|
+
description: >
|
|
4
|
+
MCP (Model Context Protocol) management for projects. Apply pre-configured MCP profiles,
|
|
5
|
+
add or remove individual MCP servers, list all available MCPs from the registry, and check
|
|
6
|
+
which MCPs are active in a project. Generates .mcp.json and .claude/settings.local.json.
|
|
7
|
+
Use when user says "mcp", "apply mcp", "add mcp", "mcp status", "mcp list", "remove mcp",
|
|
8
|
+
"model context protocol", "mcp profile", or wants to configure Claude Code integrations.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# MCP Management — ARKA OS Dev Department
|
|
12
|
+
|
|
13
|
+
Manage Model Context Protocol (MCP) servers for projects. MCPs extend Claude Code with external tool integrations.
|
|
14
|
+
|
|
15
|
+
## Commands
|
|
16
|
+
|
|
17
|
+
| Command | Description |
|
|
18
|
+
|---------|-------------|
|
|
19
|
+
| `/dev mcp apply <profile> [--project <path>]` | Apply MCP profile to a project |
|
|
20
|
+
| `/dev mcp add <name> [--project <path>]` | Add a single MCP to a project |
|
|
21
|
+
| `/dev mcp list` | Show all available MCPs from the registry |
|
|
22
|
+
| `/dev mcp status [--project <path>]` | Show active MCPs in a project |
|
|
23
|
+
| `/dev mcp remove <name> [--project <path>]` | Remove an MCP from a project |
|
|
24
|
+
|
|
25
|
+
## Profiles
|
|
26
|
+
|
|
27
|
+
| Profile | MCPs Included | Use For |
|
|
28
|
+
|---------|---------------|---------|
|
|
29
|
+
| `base` | obsidian, context7, playwright, memory-bank, sentry, gh-grep, clickup, firecrawl, supabase | All projects |
|
|
30
|
+
| `laravel` | base + laravel-boost, serena | Laravel backends |
|
|
31
|
+
| `nuxt` | base + nuxt, nuxt-ui | Nuxt 3/4 apps |
|
|
32
|
+
| `vue` | base + nuxt-ui | Vue 3 SPAs |
|
|
33
|
+
| `react` | base + next-devtools | React SPAs |
|
|
34
|
+
| `nextjs` | base + next-devtools, supabase | Next.js apps |
|
|
35
|
+
| `ecommerce` | base + laravel-boost, serena, mirakl, shopify-dev | E-commerce projects |
|
|
36
|
+
| `full-stack` | base + laravel-boost, serena, nuxt, nuxt-ui | Laravel + Nuxt apps |
|
|
37
|
+
| `comms` | base + slack, discord, whatsapp, teams | Messaging platforms |
|
|
38
|
+
|
|
39
|
+
## How It Works
|
|
40
|
+
|
|
41
|
+
### /dev mcp apply <profile>
|
|
42
|
+
|
|
43
|
+
1. Read the MCP registry at `mcps/registry.json`
|
|
44
|
+
2. Read the profile file at `mcps/profiles/<profile>.json`
|
|
45
|
+
3. Resolve base + profile MCPs (profiles extend base automatically)
|
|
46
|
+
4. Run the apply script:
|
|
47
|
+
```bash
|
|
48
|
+
bash "$ARKA_OS/mcps/scripts/apply-mcps.sh" <profile> --project <path>
|
|
49
|
+
```
|
|
50
|
+
5. This generates:
|
|
51
|
+
- `.mcp.json` in the project root (MCP server definitions)
|
|
52
|
+
- `.claude/settings.local.json` (enables MCPs + base permissions)
|
|
53
|
+
6. Report what was installed
|
|
54
|
+
|
|
55
|
+
### /dev mcp add <name>
|
|
56
|
+
|
|
57
|
+
Add a single MCP without applying a full profile:
|
|
58
|
+
```bash
|
|
59
|
+
bash "$ARKA_OS/mcps/scripts/apply-mcps.sh" --add <name> --project <path>
|
|
60
|
+
```
|
|
61
|
+
This merges the new MCP into the existing `.mcp.json`.
|
|
62
|
+
|
|
63
|
+
### /dev mcp list
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
bash "$ARKA_OS/mcps/scripts/apply-mcps.sh" --list
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Shows all MCPs from the registry with their category and description.
|
|
70
|
+
|
|
71
|
+
### /dev mcp status
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
bash "$ARKA_OS/mcps/scripts/apply-mcps.sh" --status --project <path>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Shows which MCPs are currently active in the project's `.mcp.json`.
|
|
78
|
+
|
|
79
|
+
### /dev mcp remove <name>
|
|
80
|
+
|
|
81
|
+
1. Read project's `.mcp.json`
|
|
82
|
+
2. Remove the specified MCP entry
|
|
83
|
+
3. Update `.claude/settings.local.json` to remove from `enabledMcpjsonServers`
|
|
84
|
+
4. Report the change
|
|
85
|
+
|
|
86
|
+
## Registry
|
|
87
|
+
|
|
88
|
+
The central MCP registry lives at `mcps/registry.json`. Each entry contains:
|
|
89
|
+
- `command` + `args` (for local MCPs) OR `type` + `url` (for HTTP MCPs)
|
|
90
|
+
- `category` — which profile group it belongs to
|
|
91
|
+
- `description` — what the MCP does
|
|
92
|
+
- `env` — required environment variables (if any)
|
|
93
|
+
- `required_env` — list of env var names that must be set
|
|
94
|
+
|
|
95
|
+
## Environment Variables
|
|
96
|
+
|
|
97
|
+
Some MCPs require API keys or configuration. These are defined in the registry's `env` field.
|
|
98
|
+
When applying MCPs that need env vars, the script will warn which ones need to be set.
|
|
99
|
+
|
|
100
|
+
The user should set these in their shell profile or project `.env`, or run `bash env-setup.sh`:
|
|
101
|
+
- `CLICKUP_API_KEY` / `CLICKUP_TEAM_ID` — ClickUp integration
|
|
102
|
+
- `FIRECRAWL_API_KEY` — Firecrawl web scraping
|
|
103
|
+
- `PG_HOST` / `PG_PORT` / `PG_USER` / `PG_PASSWORD` / `PG_DATABASE` — PostgreSQL direct access
|
|
104
|
+
- `DISCORD_TOKEN` — Discord bot integration
|
|
105
|
+
- `WHATSAPP_API_TOKEN` / `WHATSAPP_PHONE_ID` — WhatsApp Business API
|
|
106
|
+
- `TEAMS_APP_ID` / `TEAMS_APP_SECRET` — Microsoft Teams
|