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,125 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/rag-architect
|
|
3
|
+
description: >
|
|
4
|
+
Design RAG pipelines with chunking strategies, embedding selection,
|
|
5
|
+
retrieval optimization, and evaluation frameworks.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# RAG Architect — `/dev rag-architect <system>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Paulo (Dev Lead) + Andre (Backend) | **Framework:** RAG Pipeline Design
|
|
12
|
+
|
|
13
|
+
## RAG Pipeline Stages
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Documents -> Chunking -> Embedding -> Vector DB -> Retrieval -> Reranking -> Generation
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Chunking Strategies
|
|
20
|
+
|
|
21
|
+
| Strategy | Best For | Tradeoff |
|
|
22
|
+
|----------|----------|----------|
|
|
23
|
+
| **Fixed-size** (token/char) | Uniform docs, consistent sizes | May break semantic units |
|
|
24
|
+
| **Sentence-based** | Narrative text, articles | Variable chunk sizes |
|
|
25
|
+
| **Paragraph-based** | Structured docs, technical docs | Highly variable sizes |
|
|
26
|
+
| **Semantic** | Long-form, topic shifts | Complex, computationally expensive |
|
|
27
|
+
| **Recursive** | Mixed content types | Optimal utilization, complex logic |
|
|
28
|
+
| **Document-aware** | Multi-format collections | Format-specific implementation |
|
|
29
|
+
|
|
30
|
+
Rule of thumb: 10-20% overlap between chunks to maintain context continuity.
|
|
31
|
+
|
|
32
|
+
## Embedding Model Selection
|
|
33
|
+
|
|
34
|
+
| Category | Model | Dims | Speed | Use Case |
|
|
35
|
+
|----------|-------|------|-------|----------|
|
|
36
|
+
| Fast | all-MiniLM-L6-v2 | 384 | ~14K tok/s | Prototyping, low-latency |
|
|
37
|
+
| Balanced | all-mpnet-base-v2 | 768 | ~2.8K tok/s | Most applications |
|
|
38
|
+
| Quality | text-embedding-ada-002 | 1536 | API | Production, complex domains |
|
|
39
|
+
| Code | CodeBERT / GraphCodeBERT | 768 | Varies | Code search |
|
|
40
|
+
| Multilingual | LaBSE / multilingual-e5 | 768 | Varies | Multi-language corpora |
|
|
41
|
+
|
|
42
|
+
## Vector Database Comparison
|
|
43
|
+
|
|
44
|
+
| DB | Type | Best For | Limitation |
|
|
45
|
+
|----|------|----------|-----------|
|
|
46
|
+
| **Pinecone** | Managed | Production, auto-scaling | Vendor lock-in, cost |
|
|
47
|
+
| **Qdrant** | Self-hosted | High performance, low memory | Smaller community |
|
|
48
|
+
| **Weaviate** | Self-hosted/Cloud | Complex data, GraphQL | Learning curve |
|
|
49
|
+
| **Chroma** | Embedded | Dev/testing, prototyping | Not production-scale |
|
|
50
|
+
| **pgvector** | PostgreSQL ext. | Existing PG infra, ACID | Less specialized |
|
|
51
|
+
|
|
52
|
+
## Retrieval Strategies
|
|
53
|
+
|
|
54
|
+
| Strategy | Mechanism | When to Use |
|
|
55
|
+
|----------|-----------|------------|
|
|
56
|
+
| **Dense** | Embedding cosine similarity | Semantic matching, paraphrasing |
|
|
57
|
+
| **Sparse** | BM25, TF-IDF | Exact keyword matching |
|
|
58
|
+
| **Hybrid** | Dense + sparse with RRF fusion | Best of both, production default |
|
|
59
|
+
| **Reranking** | Cross-encoder second pass | Higher precision needed |
|
|
60
|
+
|
|
61
|
+
## Query Transformation Techniques
|
|
62
|
+
|
|
63
|
+
| Technique | How It Works | Benefit |
|
|
64
|
+
|-----------|-------------|---------|
|
|
65
|
+
| **HyDE** | Generate hypothetical answer, embed that | Matches document style |
|
|
66
|
+
| **Multi-Query** | Generate 3-5 query variations, merge results | Increases recall |
|
|
67
|
+
| **Step-Back** | Broaden query to general form | Better general context |
|
|
68
|
+
|
|
69
|
+
## Evaluation Metrics
|
|
70
|
+
|
|
71
|
+
| Metric | Target | Measures |
|
|
72
|
+
|--------|--------|----------|
|
|
73
|
+
| **Faithfulness** | > 90% | Answers grounded in retrieved context |
|
|
74
|
+
| **Context Relevance** | > 0.80 | Retrieved chunks relevant to query |
|
|
75
|
+
| **Answer Relevance** | > 0.85 | Answer addresses the question |
|
|
76
|
+
| **Precision@K** | > 0.70 | Top-K results that are relevant |
|
|
77
|
+
| **MRR** | > 0.75 | Rank of first relevant result |
|
|
78
|
+
|
|
79
|
+
Use RAGAS framework for comprehensive end-to-end evaluation.
|
|
80
|
+
|
|
81
|
+
## Design Checklist
|
|
82
|
+
|
|
83
|
+
- [ ] Chunking strategy selected and tested on sample docs
|
|
84
|
+
- [ ] Embedding model benchmarked for domain
|
|
85
|
+
- [ ] Vector DB chosen based on scale and infra constraints
|
|
86
|
+
- [ ] Retrieval strategy defined (dense/sparse/hybrid)
|
|
87
|
+
- [ ] Reranking layer evaluated for precision gain vs latency
|
|
88
|
+
- [ ] Query transformation tested for recall improvement
|
|
89
|
+
- [ ] Evaluation pipeline set up with ground-truth dataset
|
|
90
|
+
- [ ] Caching strategy defined (query-level, semantic, chunk-level)
|
|
91
|
+
- [ ] Fallback mechanisms for retrieval failures
|
|
92
|
+
- [ ] Cost per query estimated and budgeted
|
|
93
|
+
|
|
94
|
+
## Proactive Triggers
|
|
95
|
+
|
|
96
|
+
Surface these issues WITHOUT being asked:
|
|
97
|
+
|
|
98
|
+
- Chunk size >2000 tokens with complex data → flag retrieval quality risk
|
|
99
|
+
- No evaluation metrics defined → flag unmeasurable quality
|
|
100
|
+
- Single retrieval strategy → suggest hybrid (semantic + keyword)
|
|
101
|
+
|
|
102
|
+
## Output
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
## RAG System Design: <System Name>
|
|
106
|
+
|
|
107
|
+
### Pipeline
|
|
108
|
+
- **Chunking:** <strategy>, <size>, <overlap>
|
|
109
|
+
- **Embedding:** <model>, <dimensions>
|
|
110
|
+
- **Vector DB:** <database>, <index type>
|
|
111
|
+
- **Retrieval:** <strategy>, top-K=<N>
|
|
112
|
+
- **Reranking:** <model or none>
|
|
113
|
+
|
|
114
|
+
### Evaluation Targets
|
|
115
|
+
| Metric | Target |
|
|
116
|
+
|--------|--------|
|
|
117
|
+
| Faithfulness | >X% |
|
|
118
|
+
| Context Relevance | >X |
|
|
119
|
+
| Answer Relevance | >X |
|
|
120
|
+
|
|
121
|
+
### Cost Estimate
|
|
122
|
+
- Embedding cost: ~$X per 1K docs
|
|
123
|
+
- Storage: ~$X/month for <N> vectors
|
|
124
|
+
- Query cost: ~$X per 1K queries
|
|
125
|
+
```
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/red-team
|
|
3
|
+
description: >
|
|
4
|
+
Offensive security engagement planning: MITRE ATT&CK kill-chain, technique scoring, attack path analysis, OPSEC assessment.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Red Team Engagement — `/dev red-team`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Bruno (Security Engineer) | **Framework:** MITRE ATT&CK, Cyber Kill Chain
|
|
11
|
+
|
|
12
|
+
**All red team activities require written authorization (signed Rules of Engagement).**
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
Plans structured adversary simulations using MITRE ATT&CK techniques. Scores attack paths, identifies choke points, assesses OPSEC risks, and targets crown jewel assets.
|
|
17
|
+
|
|
18
|
+
## Kill-Chain Phases
|
|
19
|
+
|
|
20
|
+
| Phase | Order | MITRE Tactic | Examples |
|
|
21
|
+
|-------|-------|-------------|----------|
|
|
22
|
+
| Reconnaissance | 1 | TA0043 | T1595, T1596, T1598 |
|
|
23
|
+
| Initial Access | 2 | TA0001 | T1190, T1566, T1078 |
|
|
24
|
+
| Execution | 3 | TA0002 | T1059, T1047, T1204 |
|
|
25
|
+
| Persistence | 4 | TA0003 | T1053, T1543, T1136 |
|
|
26
|
+
| Privilege Escalation | 5 | TA0004 | T1055, T1548, T1134 |
|
|
27
|
+
| Credential Access | 6 | TA0006 | T1003, T1110, T1558 |
|
|
28
|
+
| Lateral Movement | 7 | TA0008 | T1021, T1550, T1534 |
|
|
29
|
+
| Exfiltration / Impact | 8 | TA0010/TA0040 | T1048, T1486, T1491 |
|
|
30
|
+
|
|
31
|
+
## Access Levels
|
|
32
|
+
|
|
33
|
+
| Level | Starting Position | Scope |
|
|
34
|
+
|-------|------------------|-------|
|
|
35
|
+
| External | No internal access, internet only | Phishing, public exploits |
|
|
36
|
+
| Internal | Network foothold, no credentials | Internal recon, lateral prep |
|
|
37
|
+
| Credentialed | Valid credentials (assumed breach) | Full kill chain |
|
|
38
|
+
|
|
39
|
+
## Technique Scoring
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
effort_score = detection_risk x (prerequisites + 1)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
| Technique | Detection Risk | Prerequisites | Effort | MITRE ID |
|
|
46
|
+
|-----------|---------------|---------------|--------|----------|
|
|
47
|
+
| Spearphishing link | 0.4 | none | 0.4 | T1566.001 |
|
|
48
|
+
| Scheduled task | 0.5 | execution | 1.0 | T1053.005 |
|
|
49
|
+
| PowerShell exec | 0.7 | initial_access | 1.4 | T1059.001 |
|
|
50
|
+
| LSASS dump | 0.8 | local_admin | 1.6 | T1003.001 |
|
|
51
|
+
| Pass-the-Hash | 0.6 | cred_access + network | 1.8 | T1550.002 |
|
|
52
|
+
| Ransomware deploy | 0.9 | persist + lateral | 2.7 | T1486 |
|
|
53
|
+
|
|
54
|
+
## OPSEC Checklist (Before Each Phase)
|
|
55
|
+
|
|
56
|
+
- [ ] Technique is in scope per Rules of Engagement
|
|
57
|
+
- [ ] Known detection signatures identified for this technique
|
|
58
|
+
- [ ] Less-detectable alternative evaluated
|
|
59
|
+
- [ ] Cleanup artifacts defined for post-exercise removal
|
|
60
|
+
- [ ] If detected, does it reveal the full operation or only current foothold
|
|
61
|
+
|
|
62
|
+
## Crown Jewel Targeting
|
|
63
|
+
|
|
64
|
+
| Crown Jewel | Attack Path | Detection Priority |
|
|
65
|
+
|-------------|------------|-------------------|
|
|
66
|
+
| Domain Controller | Kerberoasting, DCSync, Golden Ticket | Highest |
|
|
67
|
+
| Database servers | Lateral movement, DBA account, data staging | High |
|
|
68
|
+
| Payment systems | Network pivot, service account, exfiltration | Highest |
|
|
69
|
+
| Source code repos | VPN, internal git, code signing keys | High |
|
|
70
|
+
| Cloud management | Phishing, credential, AssumeRole chain | Highest |
|
|
71
|
+
|
|
72
|
+
## Anti-Patterns
|
|
73
|
+
|
|
74
|
+
| Anti-Pattern | Why It Fails |
|
|
75
|
+
|-------------|-------------|
|
|
76
|
+
| No written authorization | Criminal offense under CFAA and equivalents |
|
|
77
|
+
| Skipping kill-chain order | Single detection wipes all footholds |
|
|
78
|
+
| No crown jewels defined | Drifts into open-ended vulnerability hunting |
|
|
79
|
+
| Avoiding all detectable techniques | Unrealistic engagement, does not validate detection |
|
|
80
|
+
| No real-time documentation | Retroactive logs are unreliable for reporting |
|
|
81
|
+
| Leaving artifacts post-exercise | Creates permanent security risks |
|
|
82
|
+
|
|
83
|
+
## Proactive Triggers
|
|
84
|
+
|
|
85
|
+
Surface these issues WITHOUT being asked:
|
|
86
|
+
|
|
87
|
+
- Default credentials in production → CRITICAL flag
|
|
88
|
+
- No rate limiting on auth endpoints → flag brute force risk
|
|
89
|
+
- Publicly exposed admin panel → flag attack surface
|
|
90
|
+
|
|
91
|
+
## Output
|
|
92
|
+
|
|
93
|
+
```markdown
|
|
94
|
+
## Red Team Engagement Plan: <target>
|
|
95
|
+
|
|
96
|
+
### Authorization: RoE signed <date>, scope: <defined scope>
|
|
97
|
+
### Access Level: <external/internal/credentialed>
|
|
98
|
+
### Crown Jewels: <target assets>
|
|
99
|
+
|
|
100
|
+
### Kill-Chain Plan
|
|
101
|
+
| Phase | Technique | MITRE ID | Effort | OPSEC Risk |
|
|
102
|
+
|-------|-----------|----------|--------|-----------|
|
|
103
|
+
| Initial Access | Spearphishing | T1566.001 | 0.4 | Low |
|
|
104
|
+
| Execution | PowerShell | T1059.001 | 1.4 | Medium |
|
|
105
|
+
| Credential Access | LSASS dump | T1003.001 | 1.6 | High |
|
|
106
|
+
| Lateral Movement | Pass-the-Hash | T1550.002 | 1.8 | Medium |
|
|
107
|
+
|
|
108
|
+
### Choke Points: T1003 (credential dump) — blocks 3 attack paths
|
|
109
|
+
### Total Effort Score: 5.2
|
|
110
|
+
### Detection Gaps: <identified gaps in blue team coverage>
|
|
111
|
+
### Recommendation: Focus detection investment on choke point T1003
|
|
112
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/refactor-plan
|
|
3
|
+
description: >
|
|
4
|
+
Plan a refactoring: identify code smells, select refactoring patterns, ensure test safety net.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Refactor Plan — `/dev refactor <scope>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Tech Lead) | **Framework:** Refactoring Catalog (Martin Fowler)
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Plan a refactoring: identify code smells, select refactoring patterns, ensure test safety net.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Refactoring plan with patterns, risk assessment, and test verification steps
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/release
|
|
3
|
+
description: >
|
|
4
|
+
Release planning and execution: versioning strategy, readiness checklists, deployment coordination, rollback procedures, and hotfix management.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Release Management — `/dev release`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Dev Lead) | **Framework:** SemVer, DORA Metrics, Continuous Delivery
|
|
11
|
+
|
|
12
|
+
## Versioning Strategy (SemVer)
|
|
13
|
+
|
|
14
|
+
| Bump | When | Example |
|
|
15
|
+
|------|------|---------|
|
|
16
|
+
| **MAJOR** | Breaking changes, removed APIs | 1.x.x -> 2.0.0 |
|
|
17
|
+
| **MINOR** | New features, backward compatible | 1.2.x -> 1.3.0 |
|
|
18
|
+
| **PATCH** | Bug fixes, security patches | 1.2.3 -> 1.2.4 |
|
|
19
|
+
| **Pre-release** | Alpha/beta/RC testing | 1.3.0-beta.1 |
|
|
20
|
+
|
|
21
|
+
**Auto-detection from conventional commits:**
|
|
22
|
+
- `feat!:` or `BREAKING CHANGE:` footer -> MAJOR
|
|
23
|
+
- `feat:` -> MINOR
|
|
24
|
+
- `fix:`, `perf:`, `security:` -> PATCH
|
|
25
|
+
- `docs:`, `test:`, `chore:` -> No bump
|
|
26
|
+
|
|
27
|
+
## Release Readiness Checklist
|
|
28
|
+
|
|
29
|
+
### Code Quality
|
|
30
|
+
- [ ] All CI checks passing (lint, type-check, build)
|
|
31
|
+
- [ ] Test coverage >= 80%
|
|
32
|
+
- [ ] No critical/high static analysis findings
|
|
33
|
+
- [ ] Security audit clean (`/dev security-audit`)
|
|
34
|
+
- [ ] Dependency audit clean (`/dev dependency-audit`)
|
|
35
|
+
|
|
36
|
+
### Documentation
|
|
37
|
+
- [ ] CHANGELOG.md updated (`/dev changelog`)
|
|
38
|
+
- [ ] Migration guide written for breaking changes
|
|
39
|
+
- [ ] API documentation reflects changes
|
|
40
|
+
- [ ] Deployment notes prepared
|
|
41
|
+
|
|
42
|
+
### Approvals
|
|
43
|
+
- [ ] Code review approved
|
|
44
|
+
- [ ] QA validation complete (Marta -- Quality Gate)
|
|
45
|
+
- [ ] Product sign-off on feature scope
|
|
46
|
+
- [ ] Security clearance (if applicable)
|
|
47
|
+
|
|
48
|
+
## Deployment Sequence
|
|
49
|
+
|
|
50
|
+
| Phase | Timing | Action |
|
|
51
|
+
|-------|--------|--------|
|
|
52
|
+
| **Code Freeze** | T-24h | No new merges, final validation |
|
|
53
|
+
| **Migrations** | T-2h | Run and validate DB schema changes |
|
|
54
|
+
| **Deploy** | T-0 | Blue-green or canary rollout |
|
|
55
|
+
| **Verify** | T+1h | Monitor error rates, latency, golden signals |
|
|
56
|
+
| **Rollback Window** | T+4h | Go/no-go decision on keeping release |
|
|
57
|
+
|
|
58
|
+
## Rollback Triggers
|
|
59
|
+
|
|
60
|
+
| Trigger | Threshold | Action |
|
|
61
|
+
|---------|-----------|--------|
|
|
62
|
+
| Error rate spike | > 2x baseline for 15 min | Auto-rollback or IC decision |
|
|
63
|
+
| Latency degradation | p99 > 2x baseline for 10 min | Investigate, rollback if no fix |
|
|
64
|
+
| Core feature failure | Any critical path broken | Immediate rollback |
|
|
65
|
+
| Data corruption | Any evidence | Immediate rollback + incident |
|
|
66
|
+
|
|
67
|
+
## Rollback Types
|
|
68
|
+
|
|
69
|
+
| Type | Method | Notes |
|
|
70
|
+
|------|--------|-------|
|
|
71
|
+
| **Code** | Revert to previous container/build | Fastest, prefer this |
|
|
72
|
+
| **Feature flag** | Disable flag for new code path | No deploy needed |
|
|
73
|
+
| **Database** | Forward-only migration preferred | Never drop columns in rollback |
|
|
74
|
+
| **Infrastructure** | Blue-green switch | DNS propagation delay |
|
|
75
|
+
|
|
76
|
+
## Hotfix Procedure
|
|
77
|
+
|
|
78
|
+
| Severity | SLA | Process |
|
|
79
|
+
|----------|-----|---------|
|
|
80
|
+
| **P0** Critical | 2 hours | Emergency branch from last tag, minimal fix, expedited deploy |
|
|
81
|
+
| **P1** High | 24 hours | Expedited review, deploy in next window |
|
|
82
|
+
| **P2** Medium | Next release | Normal PR process |
|
|
83
|
+
|
|
84
|
+
**Hotfix steps:**
|
|
85
|
+
1. Branch from last stable tag: `git checkout -b hotfix/description vX.Y.Z`
|
|
86
|
+
2. Apply minimal fix (root cause only)
|
|
87
|
+
3. Run automated tests
|
|
88
|
+
4. Deploy with expedited approval
|
|
89
|
+
5. Merge back to main and develop
|
|
90
|
+
6. Schedule PIR for P0/P1
|
|
91
|
+
|
|
92
|
+
## DORA Metrics to Track
|
|
93
|
+
|
|
94
|
+
| Metric | Target | How to Measure |
|
|
95
|
+
|--------|--------|---------------|
|
|
96
|
+
| **Lead Time** | < 1 day | Commit to production |
|
|
97
|
+
| **Deploy Frequency** | Daily/weekly | Releases per period |
|
|
98
|
+
| **Change Failure Rate** | < 15% | Releases causing incidents |
|
|
99
|
+
| **MTTR** | < 1 hour | Incident to resolution |
|
|
100
|
+
|
|
101
|
+
## Proactive Triggers
|
|
102
|
+
|
|
103
|
+
Surface these issues WITHOUT being asked:
|
|
104
|
+
|
|
105
|
+
- No rollback plan documented → flag deployment risk
|
|
106
|
+
- Breaking change without major version bump → flag SemVer violation
|
|
107
|
+
- Release without changelog entry → flag documentation gap
|
|
108
|
+
|
|
109
|
+
## Output
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
## Release Plan: v{X.Y.Z}
|
|
113
|
+
|
|
114
|
+
### Version Bump: {MAJOR|MINOR|PATCH}
|
|
115
|
+
### Reason: {summary of changes}
|
|
116
|
+
|
|
117
|
+
### Readiness
|
|
118
|
+
- [ ] Code quality gates: {PASS/FAIL}
|
|
119
|
+
- [ ] Documentation: {PASS/FAIL}
|
|
120
|
+
- [ ] Approvals: {PASS/FAIL}
|
|
121
|
+
|
|
122
|
+
### Changes Included
|
|
123
|
+
- Features: {count}
|
|
124
|
+
- Fixes: {count}
|
|
125
|
+
- Breaking changes: {count}
|
|
126
|
+
|
|
127
|
+
### Deployment Strategy: {blue-green / canary / rolling}
|
|
128
|
+
### Rollback Plan: {container revert / feature flag / DB-safe}
|
|
129
|
+
### Risk Assessment: {LOW / MEDIUM / HIGH}
|
|
130
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/research
|
|
3
|
+
description: >
|
|
4
|
+
Research a technical topic: library evaluation, pattern comparison, best practice discovery.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Research — `/dev research <topic>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Lucas (Analyst) | **Framework:** Context7 + Web Research
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Research a technical topic: library evaluation, pattern comparison, best practice discovery.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Research report with options, trade-offs, and recommendation
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/runbook
|
|
3
|
+
description: >
|
|
4
|
+
Generate operational runbooks for deployment, incident response, rollback, and scaling procedures.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Runbook Generator — `/dev runbook`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Andre (Backend Dev) | **Framework:** SRE (Google), Three Ways (Gene Kim)
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Generates structured operational runbooks from service analysis. Covers deployment, health checks, rollback, incident response, and scaling procedures.
|
|
15
|
+
|
|
16
|
+
## Runbook Sections
|
|
17
|
+
|
|
18
|
+
| Section | Purpose | Required |
|
|
19
|
+
|---------|---------|----------|
|
|
20
|
+
| Service Overview | Name, owner, dependencies, endpoints | Yes |
|
|
21
|
+
| Health Checks | URLs, expected responses, check intervals | Yes |
|
|
22
|
+
| Deployment | Step-by-step deploy with verification | Yes |
|
|
23
|
+
| Rollback | How to revert, data migration rollback | Yes |
|
|
24
|
+
| Incident Response | Triage, escalation contacts, communication | Yes |
|
|
25
|
+
| Scaling | Horizontal/vertical triggers and procedures | If applicable |
|
|
26
|
+
| Maintenance | Scheduled tasks, backups, log rotation | If applicable |
|
|
27
|
+
|
|
28
|
+
## Generation Workflow
|
|
29
|
+
|
|
30
|
+
1. **Analyze** the service: stack, dependencies, infrastructure
|
|
31
|
+
2. **Detect** existing configs: Dockerfile, docker-compose, CI/CD, k8s manifests
|
|
32
|
+
3. **Generate** runbook with copy-pasteable commands
|
|
33
|
+
4. **Validate** every command runs in staging
|
|
34
|
+
5. **Store** runbook alongside service code in version control
|
|
35
|
+
|
|
36
|
+
## Runbook Quality Checklist
|
|
37
|
+
|
|
38
|
+
- [ ] Every command is copy-pasteable (no placeholders without explanation)
|
|
39
|
+
- [ ] Every critical step has a verification check after it
|
|
40
|
+
- [ ] Rollback triggers are explicit (what metric/error = rollback)
|
|
41
|
+
- [ ] Escalation contacts are named with phone/Slack
|
|
42
|
+
- [ ] Runbook tested outside of incident conditions
|
|
43
|
+
- [ ] Last review date documented
|
|
44
|
+
|
|
45
|
+
## Common Pitfalls
|
|
46
|
+
|
|
47
|
+
| Pitfall | Impact | Prevention |
|
|
48
|
+
|---------|--------|------------|
|
|
49
|
+
| Missing rollback commands | Incident drags on | Mandate rollback section in review |
|
|
50
|
+
| Steps without verification | Silent failures | Add expected output after each step |
|
|
51
|
+
| Stale contacts | Escalation fails | Review contacts quarterly |
|
|
52
|
+
| Never tested | Fails during incident | Dry-run in staging monthly |
|
|
53
|
+
|
|
54
|
+
## Proactive Triggers
|
|
55
|
+
|
|
56
|
+
Surface these issues WITHOUT being asked:
|
|
57
|
+
|
|
58
|
+
- Production service without runbook → flag operational risk
|
|
59
|
+
- Runbook >6 months without update → flag stale procedures
|
|
60
|
+
- No rollback section in deployment runbook → flag recovery gap
|
|
61
|
+
|
|
62
|
+
## Output
|
|
63
|
+
|
|
64
|
+
```markdown
|
|
65
|
+
## Runbook: <service-name>
|
|
66
|
+
|
|
67
|
+
### Service Overview
|
|
68
|
+
- **Owner:** <team/person>
|
|
69
|
+
- **Stack:** <e.g., Laravel 11, PostgreSQL 16, Redis 7>
|
|
70
|
+
- **Dependencies:** <upstream/downstream services>
|
|
71
|
+
- **Endpoints:** <health, API base URL>
|
|
72
|
+
|
|
73
|
+
### Health Checks
|
|
74
|
+
| Check | URL/Command | Expected | Interval |
|
|
75
|
+
|-------|------------|----------|----------|
|
|
76
|
+
| HTTP health | GET /health | 200 OK | 30s |
|
|
77
|
+
| DB connection | `php artisan db:monitor` | Connected | 60s |
|
|
78
|
+
| Queue depth | `redis-cli llen queues:default` | < 1000 | 60s |
|
|
79
|
+
|
|
80
|
+
### Deployment
|
|
81
|
+
1. `git pull origin main`
|
|
82
|
+
2. `composer install --no-dev --optimize-autoloader`
|
|
83
|
+
3. `php artisan migrate --force`
|
|
84
|
+
Verify: `php artisan migrate:status` shows all ran
|
|
85
|
+
4. `php artisan config:cache && php artisan route:cache`
|
|
86
|
+
5. `sudo systemctl reload php-fpm`
|
|
87
|
+
Verify: GET /health returns 200
|
|
88
|
+
|
|
89
|
+
### Rollback
|
|
90
|
+
**Trigger:** Error rate > 5% or p99 latency > 2s post-deploy
|
|
91
|
+
1. `git checkout <previous-tag>`
|
|
92
|
+
2. `composer install --no-dev`
|
|
93
|
+
3. `php artisan migrate:rollback --step=1`
|
|
94
|
+
4. `sudo systemctl reload php-fpm`
|
|
95
|
+
Verify: GET /health returns 200, error rate normalizes
|
|
96
|
+
|
|
97
|
+
### Incident Response
|
|
98
|
+
1. **Triage:** Check /health, logs (`tail -f storage/logs/laravel.log`)
|
|
99
|
+
2. **Escalate:** <contact name> — Slack #incidents / phone
|
|
100
|
+
3. **Communicate:** Post in #status-page within 10 minutes
|
|
101
|
+
4. **Resolve:** Apply fix or rollback
|
|
102
|
+
5. **Postmortem:** Within 48 hours, update this runbook
|
|
103
|
+
```
|