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,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/ai-security
|
|
3
|
+
description: >
|
|
4
|
+
AI/ML-specific security assessment: prompt injection, model poisoning,
|
|
5
|
+
data leakage, agent tool abuse, and MITRE ATLAS technique mapping.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# AI Security — `/dev ai-security`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Bruno (Security Engineer) | **Framework:** OWASP ML Top 10, NIST AI RMF, MITRE ATLAS
|
|
12
|
+
|
|
13
|
+
## Threat Categories
|
|
14
|
+
|
|
15
|
+
| Threat | Severity | ATLAS ID | What to Check |
|
|
16
|
+
|--------|----------|----------|--------------|
|
|
17
|
+
| Direct prompt injection | Critical | AML.T0051 | System-prompt overrides, role replacement |
|
|
18
|
+
| Indirect injection (RAG) | Critical | AML.T0051.001 | Malicious content in retrieved documents |
|
|
19
|
+
| Jailbreak (persona) | High | AML.T0051 | "DAN mode", "developer mode", persona bypass |
|
|
20
|
+
| System prompt extraction | High | AML.T0056 | "Repeat your instructions", "Show system prompt" |
|
|
21
|
+
| Agent tool abuse | Critical | AML.T0051.002 | "Call delete_files", "Bypass approval check" |
|
|
22
|
+
| Data poisoning | High | AML.T0020 | Malicious training examples, backdoor triggers |
|
|
23
|
+
| Model inversion | High | AML.T0024 | Training data reconstruction from outputs |
|
|
24
|
+
|
|
25
|
+
## Model Inversion Risk by Access Level
|
|
26
|
+
|
|
27
|
+
| Access | Risk | Attack | Mitigation |
|
|
28
|
+
|--------|------|--------|-----------|
|
|
29
|
+
| White-box | Critical (0.9) | Gradient-based inversion | Remove gradient access in prod; differential privacy |
|
|
30
|
+
| Gray-box | High (0.6) | Confidence-based inference | Disable logit outputs; rate limit API |
|
|
31
|
+
| Black-box | Low (0.3) | Label-only, high query volume | Monitor for systematic querying patterns |
|
|
32
|
+
|
|
33
|
+
## Data Poisoning Risk by Scope
|
|
34
|
+
|
|
35
|
+
| Scope | Risk | Mitigation |
|
|
36
|
+
|-------|------|-----------|
|
|
37
|
+
| Fine-tuning | High (0.85) | Audit all training examples; data provenance |
|
|
38
|
+
| RLHF | High (0.70) | Vet feedback contributors |
|
|
39
|
+
| RAG / retrieval | Medium (0.60) | Validate content before indexing |
|
|
40
|
+
| Pre-trained only | Low (0.20) | Verify model provenance; trusted sources |
|
|
41
|
+
| Inference only | Low (0.10) | Standard input validation |
|
|
42
|
+
|
|
43
|
+
## Guardrail Design Checklist
|
|
44
|
+
|
|
45
|
+
### Input Guardrails (before inference)
|
|
46
|
+
- [ ] Injection signature filter (regex against known patterns)
|
|
47
|
+
- [ ] Input length limit (prevent many-shot / context stuffing)
|
|
48
|
+
- [ ] Content policy classifier (separate from main model)
|
|
49
|
+
- [ ] External content treated as untrusted (RAG, web, email, API)
|
|
50
|
+
|
|
51
|
+
### Output Guardrails (after inference)
|
|
52
|
+
- [ ] System prompt confidentiality (detect/redact leakage)
|
|
53
|
+
- [ ] PII detection (email, SSN, credit card patterns)
|
|
54
|
+
- [ ] URL and code validation before display
|
|
55
|
+
|
|
56
|
+
### Agent Guardrails (tool access)
|
|
57
|
+
- [ ] Human approval gates for destructive actions (delete, send, upload)
|
|
58
|
+
- [ ] Minimal tool scope (only what the task needs)
|
|
59
|
+
- [ ] Tool parameter validation before execution
|
|
60
|
+
- [ ] Audit logging of every tool call with prompt context
|
|
61
|
+
|
|
62
|
+
## Assessment Workflow
|
|
63
|
+
|
|
64
|
+
| Step | Action | Output |
|
|
65
|
+
|------|--------|--------|
|
|
66
|
+
| 1 | Identify AI components | Inventory: models, agents, RAG, tools |
|
|
67
|
+
| 2 | Classify access level | Black-box / gray-box / white-box per component |
|
|
68
|
+
| 3 | Run injection scan | Injection score (0.0-1.0) per component |
|
|
69
|
+
| 4 | Assess model risks | Inversion + poisoning risk scores |
|
|
70
|
+
| 5 | Review guardrails | Checklist pass/fail per layer |
|
|
71
|
+
| 6 | Map to ATLAS | Technique coverage and gaps |
|
|
72
|
+
| 7 | Recommend controls | Prioritized by risk score |
|
|
73
|
+
|
|
74
|
+
## Anti-Patterns
|
|
75
|
+
|
|
76
|
+
| Anti-Pattern | Why It Fails |
|
|
77
|
+
|-------------|-------------|
|
|
78
|
+
| Testing only known jailbreaks | Published templates already blocked; test domain-specific |
|
|
79
|
+
| Static signatures only | Novel attacks bypass regex; add semantic similarity |
|
|
80
|
+
| Ignoring indirect injection | RAG content is higher risk than direct user input |
|
|
81
|
+
| No output filtering | Successful injection produces malicious output regardless |
|
|
82
|
+
| Skipping prod system prompt | Jailbreaks that fail in isolation may succeed with real prompt |
|
|
83
|
+
|
|
84
|
+
## Proactive Triggers
|
|
85
|
+
|
|
86
|
+
Surface these issues WITHOUT being asked:
|
|
87
|
+
|
|
88
|
+
- LLM with unrestricted tool access → CRITICAL flag
|
|
89
|
+
- No output filtering on AI responses → flag data leakage
|
|
90
|
+
- Training data containing PII → flag privacy violation
|
|
91
|
+
|
|
92
|
+
## Output
|
|
93
|
+
|
|
94
|
+
```markdown
|
|
95
|
+
## AI Security Assessment: <System>
|
|
96
|
+
|
|
97
|
+
### Component Inventory
|
|
98
|
+
| Component | Type | Access Level | Risk Score |
|
|
99
|
+
|-----------|------|-------------|------------|
|
|
100
|
+
|
|
101
|
+
### Findings
|
|
102
|
+
| # | Threat | Severity | ATLAS ID | Component |
|
|
103
|
+
|---|--------|----------|----------|-----------|
|
|
104
|
+
|
|
105
|
+
### Guardrail Status
|
|
106
|
+
| Layer | Control | Status | Gap |
|
|
107
|
+
|-------|---------|--------|-----|
|
|
108
|
+
|
|
109
|
+
### Recommendations
|
|
110
|
+
| Priority | Action | Effort | Risk Reduced |
|
|
111
|
+
|----------|--------|--------|-------------|
|
|
112
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/api-design
|
|
3
|
+
description: >
|
|
4
|
+
Design REST or GraphQL APIs with versioning, documentation, and contracts.
|
|
5
|
+
Follows OpenAPI spec for REST, SDL for GraphQL.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# API Design — `/dev api-design <api>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Gabriel (Architect) + Andre (Backend)
|
|
12
|
+
> **Output:** OpenAPI spec or GraphQL SDL + endpoint documentation
|
|
13
|
+
|
|
14
|
+
## REST API Design Principles
|
|
15
|
+
|
|
16
|
+
1. **Resource-oriented** — URLs are nouns, not verbs (`/users`, not `/getUsers`)
|
|
17
|
+
2. **HTTP methods** — GET (read), POST (create), PUT (replace), PATCH (update), DELETE
|
|
18
|
+
3. **Status codes** — 200 OK, 201 Created, 400 Bad Request, 401 Unauthorized, 404 Not Found, 422 Unprocessable
|
|
19
|
+
4. **Pagination** — `?page=1&per_page=20` with Link headers or cursor-based
|
|
20
|
+
5. **Filtering** — `?status=active&role=admin`
|
|
21
|
+
6. **Versioning** — URL prefix (`/api/v1/`) or header (`Accept: application/vnd.api+json;version=1`)
|
|
22
|
+
7. **Consistent response** — `{ "data": ..., "meta": { "pagination": ... } }`
|
|
23
|
+
8. **Error format** — `{ "error": { "code": "VALIDATION_FAILED", "message": "...", "details": [...] } }`
|
|
24
|
+
|
|
25
|
+
## Output: OpenAPI Snippet
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
openapi: 3.0.3
|
|
29
|
+
info:
|
|
30
|
+
title: <API Name>
|
|
31
|
+
version: 1.0.0
|
|
32
|
+
paths:
|
|
33
|
+
/api/v1/<resource>:
|
|
34
|
+
get:
|
|
35
|
+
summary: List <resources>
|
|
36
|
+
parameters:
|
|
37
|
+
- name: page
|
|
38
|
+
in: query
|
|
39
|
+
schema: { type: integer, default: 1 }
|
|
40
|
+
responses:
|
|
41
|
+
'200':
|
|
42
|
+
description: Success
|
|
43
|
+
content:
|
|
44
|
+
application/json:
|
|
45
|
+
schema:
|
|
46
|
+
type: object
|
|
47
|
+
properties:
|
|
48
|
+
data:
|
|
49
|
+
type: array
|
|
50
|
+
items: { $ref: '#/components/schemas/<Resource>' }
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Laravel Convention
|
|
54
|
+
|
|
55
|
+
- Routes: `routes/api.php` with `apiResource()`
|
|
56
|
+
- Controllers: `App\Http\Controllers\Api\V1\<Resource>Controller`
|
|
57
|
+
- Requests: `App\Http\Requests\<Resource>\Store<Resource>Request`
|
|
58
|
+
- Resources: `App\Http\Resources\<Resource>Resource`
|
|
59
|
+
- Tests: `tests/Feature/Api/V1/<Resource>Test.php`
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/architecture-design
|
|
3
|
+
description: >
|
|
4
|
+
Design system architecture using Clean Architecture, Hexagonal, or DDD patterns.
|
|
5
|
+
Produces an ADR (Architecture Decision Record) saved to Obsidian.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Grep, Glob, Agent, WebFetch]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Architecture Design — `/dev architecture <system>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Gabriel (Architect) | **Approver:** Marco (CTO)
|
|
12
|
+
> **Frameworks:** Clean Architecture, Hexagonal, DDD, Vertical Slice
|
|
13
|
+
|
|
14
|
+
## Workflow
|
|
15
|
+
|
|
16
|
+
### Step 1: Context Loading
|
|
17
|
+
- Read PROJECT.md and existing architecture
|
|
18
|
+
- Scan current codebase structure
|
|
19
|
+
- Identify existing patterns and conventions
|
|
20
|
+
|
|
21
|
+
### Step 2: Requirements Gathering
|
|
22
|
+
- Ask user: What system/feature needs architecture?
|
|
23
|
+
- Clarify: Scale requirements, team size, tech constraints
|
|
24
|
+
- Identify: Domain boundaries, data flows, external integrations
|
|
25
|
+
|
|
26
|
+
### Step 3: Architecture Design
|
|
27
|
+
Apply the appropriate pattern:
|
|
28
|
+
|
|
29
|
+
**Clean Architecture** (default for most systems):
|
|
30
|
+
```
|
|
31
|
+
Domain (entities, value objects) → no dependencies
|
|
32
|
+
Application (use cases) → depends on Domain
|
|
33
|
+
Interface Adapters (controllers, gateways) → depends on Application
|
|
34
|
+
Frameworks (DB, HTTP, UI) → depends on Interface Adapters
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**Hexagonal** (when many external integrations):
|
|
38
|
+
```
|
|
39
|
+
Ports (interfaces defined by domain)
|
|
40
|
+
Adapters (implementations for each external system)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**DDD Strategic** (when complex domain):
|
|
44
|
+
```
|
|
45
|
+
Bounded Contexts → Context Map → Aggregates → Domain Events
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Step 4: ADR Document
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
---
|
|
52
|
+
type: adr
|
|
53
|
+
title: "ADR-NNN: <Decision Title>"
|
|
54
|
+
status: proposed
|
|
55
|
+
date: YYYY-MM-DD
|
|
56
|
+
tags: [architecture, <domain>]
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
# ADR-NNN: <Decision Title>
|
|
60
|
+
|
|
61
|
+
## Context
|
|
62
|
+
What is the situation that requires a decision?
|
|
63
|
+
|
|
64
|
+
## Decision
|
|
65
|
+
What is the architecture we chose?
|
|
66
|
+
|
|
67
|
+
## Alternatives Considered
|
|
68
|
+
What else did we consider and why did we reject it?
|
|
69
|
+
|
|
70
|
+
## Data Flow
|
|
71
|
+
How does data move through the system?
|
|
72
|
+
|
|
73
|
+
## API Contracts
|
|
74
|
+
Key interfaces between components.
|
|
75
|
+
|
|
76
|
+
## Schema Changes
|
|
77
|
+
Database changes needed.
|
|
78
|
+
|
|
79
|
+
## Consequences
|
|
80
|
+
What are the trade-offs of this decision?
|
|
81
|
+
|
|
82
|
+
## Security Considerations
|
|
83
|
+
Security implications and mitigations.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Step 5: CTO Review
|
|
87
|
+
- Marco reviews the ADR
|
|
88
|
+
- Approves or requests changes
|
|
89
|
+
- ADR saved to Obsidian: `Projects/<name>/Architecture/ADR-<NNN>.md`
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/changelog
|
|
3
|
+
description: >
|
|
4
|
+
Generate changelogs from git history using conventional commits. Lint commit messages, detect version bumps, and render Keep a Changelog format.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Changelog Generator — `/dev changelog`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Andre (Senior Backend Dev) | **Framework:** Keep a Changelog, Conventional Commits, SemVer
|
|
11
|
+
|
|
12
|
+
## Conventional Commit Format
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
<type>[optional scope]: <description>
|
|
16
|
+
|
|
17
|
+
[optional body]
|
|
18
|
+
|
|
19
|
+
[optional footer(s)]
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
| Type | Changelog Section | SemVer Bump |
|
|
23
|
+
|------|------------------|-------------|
|
|
24
|
+
| `feat` | Added | MINOR |
|
|
25
|
+
| `fix` | Fixed | PATCH |
|
|
26
|
+
| `perf` | Changed | PATCH |
|
|
27
|
+
| `security` | Security | PATCH |
|
|
28
|
+
| `refactor` | Changed | -- |
|
|
29
|
+
| `docs` | -- (internal) | -- |
|
|
30
|
+
| `test` | -- (internal) | -- |
|
|
31
|
+
| `chore` | -- (internal) | -- |
|
|
32
|
+
| `feat!` / `BREAKING CHANGE:` | Breaking Changes | MAJOR |
|
|
33
|
+
| `deprecated` | Deprecated | -- |
|
|
34
|
+
| `remove` | Removed | MAJOR |
|
|
35
|
+
|
|
36
|
+
## Generation Workflow
|
|
37
|
+
|
|
38
|
+
1. **Determine range** -- Last tag to HEAD (or tag-to-tag)
|
|
39
|
+
```bash
|
|
40
|
+
git log v1.3.0..HEAD --pretty=format:"%s" --no-merges
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
2. **Parse commits** -- Extract type, scope, description, breaking changes
|
|
44
|
+
|
|
45
|
+
3. **Detect version bump** -- Highest priority: MAJOR > MINOR > PATCH
|
|
46
|
+
|
|
47
|
+
4. **Group by section** -- Map commit types to Keep a Changelog sections
|
|
48
|
+
|
|
49
|
+
5. **Render changelog** -- Prepend new entry to CHANGELOG.md
|
|
50
|
+
|
|
51
|
+
## Quality Rules
|
|
52
|
+
|
|
53
|
+
| Rule | Rationale |
|
|
54
|
+
|------|-----------|
|
|
55
|
+
| Every bullet must be user-meaningful | No "fix typo in test" in release notes |
|
|
56
|
+
| Breaking changes include migration steps | Users need actionable guidance |
|
|
57
|
+
| Security fixes in dedicated section | Visibility for security-conscious users |
|
|
58
|
+
| Empty sections are omitted | Clean, scannable output |
|
|
59
|
+
| Duplicate bullets are removed | One entry per change |
|
|
60
|
+
| Scope shown for multi-package repos | `auth: add OAuth2 support` |
|
|
61
|
+
|
|
62
|
+
## Commit Linting Checklist
|
|
63
|
+
|
|
64
|
+
- [ ] Commit starts with valid type (`feat`, `fix`, `perf`, etc.)
|
|
65
|
+
- [ ] Description is lowercase, imperative mood, < 72 chars
|
|
66
|
+
- [ ] Scope matches known modules (if enforced)
|
|
67
|
+
- [ ] Breaking changes use `!` suffix or `BREAKING CHANGE:` footer
|
|
68
|
+
- [ ] No merge commits in changelog range
|
|
69
|
+
|
|
70
|
+
## Monorepo Strategy
|
|
71
|
+
|
|
72
|
+
- Filter commits by scope for package-specific changelogs
|
|
73
|
+
- Keep infrastructure changes in root CHANGELOG.md
|
|
74
|
+
- Store package changelogs at package root
|
|
75
|
+
- Use scoped commits: `feat(api): add pagination endpoint`
|
|
76
|
+
|
|
77
|
+
## Proactive Triggers
|
|
78
|
+
|
|
79
|
+
Surface these issues WITHOUT being asked:
|
|
80
|
+
|
|
81
|
+
- >20 commits without changelog update → flag documentation drift
|
|
82
|
+
- Non-conventional commit messages → flag automation breakage
|
|
83
|
+
- No changelog entry for breaking changes → flag user communication gap
|
|
84
|
+
|
|
85
|
+
## Output
|
|
86
|
+
|
|
87
|
+
```markdown
|
|
88
|
+
# Changelog
|
|
89
|
+
|
|
90
|
+
## [X.Y.Z] - YYYY-MM-DD
|
|
91
|
+
|
|
92
|
+
### Breaking Changes
|
|
93
|
+
- **scope:** Description of breaking change
|
|
94
|
+
Migration: [steps to migrate]
|
|
95
|
+
|
|
96
|
+
### Added
|
|
97
|
+
- **scope:** New feature description (#PR)
|
|
98
|
+
|
|
99
|
+
### Fixed
|
|
100
|
+
- **scope:** Bug fix description (#PR)
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
- **scope:** Change description (#PR)
|
|
104
|
+
|
|
105
|
+
### Security
|
|
106
|
+
- **scope:** Security fix description (#PR)
|
|
107
|
+
|
|
108
|
+
### Deprecated
|
|
109
|
+
- **scope:** Deprecation notice and timeline
|
|
110
|
+
```
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/ci-cd-pipeline
|
|
3
|
+
description: >
|
|
4
|
+
Design and generate CI/CD pipelines from detected project stack.
|
|
5
|
+
GitHub Actions and GitLab CI with caching, matrix builds, and deployment gates.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# CI/CD Pipeline — `/dev ci-cd-pipeline <project>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Andre (Backend Dev) | **Framework:** DevOps Pipeline Design
|
|
12
|
+
|
|
13
|
+
## What This Does
|
|
14
|
+
|
|
15
|
+
Detects project stack from repository files, then generates pragmatic CI/CD pipelines with lint, test, build, and deploy stages. Supports GitHub Actions and GitLab CI.
|
|
16
|
+
|
|
17
|
+
## Stack Detection Heuristics
|
|
18
|
+
|
|
19
|
+
| Signal | Determines |
|
|
20
|
+
|--------|-----------|
|
|
21
|
+
| Lockfiles (`composer.lock`, `package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`) | Package manager |
|
|
22
|
+
| Manifests (`composer.json`, `package.json`, `pyproject.toml`, `go.mod`) | Runtime/language |
|
|
23
|
+
| Script commands in manifests | Lint, test, build commands |
|
|
24
|
+
| Missing scripts | Conservative placeholder commands |
|
|
25
|
+
|
|
26
|
+
## Pipeline Stages
|
|
27
|
+
|
|
28
|
+
| Stage | Purpose | Gate |
|
|
29
|
+
|-------|---------|------|
|
|
30
|
+
| **Lint** | Code style, static analysis | Must pass before test |
|
|
31
|
+
| **Test** | Unit + feature tests | Must pass before build |
|
|
32
|
+
| **Build** | Compile, bundle, optimize | Must pass before deploy |
|
|
33
|
+
| **Deploy (staging)** | Deploy to staging environment | Explicit environment context |
|
|
34
|
+
| **Deploy (production)** | Deploy to production | Manual approval gate required |
|
|
35
|
+
|
|
36
|
+
## Platform Selection
|
|
37
|
+
|
|
38
|
+
| Platform | When to Choose |
|
|
39
|
+
|----------|---------------|
|
|
40
|
+
| **GitHub Actions** | Tight GitHub ecosystem, public repos, most teams |
|
|
41
|
+
| **GitLab CI** | Self-hosted SCM + CI, integrated container registry |
|
|
42
|
+
|
|
43
|
+
Keep one canonical pipeline source per repo to reduce drift.
|
|
44
|
+
|
|
45
|
+
## Caching Strategy by Stack
|
|
46
|
+
|
|
47
|
+
| Stack | Cache Key | Cache Path |
|
|
48
|
+
|-------|-----------|-----------|
|
|
49
|
+
| **Node.js (npm)** | `${{ hashFiles('package-lock.json') }}` | `~/.npm` |
|
|
50
|
+
| **Node.js (pnpm)** | `${{ hashFiles('pnpm-lock.yaml') }}` | `~/.pnpm-store` |
|
|
51
|
+
| **PHP (Composer)** | `${{ hashFiles('composer.lock') }}` | `vendor/` |
|
|
52
|
+
| **Python (pip)** | `${{ hashFiles('requirements.txt') }}` | `~/.cache/pip` |
|
|
53
|
+
| **Go** | `${{ hashFiles('go.sum') }}` | `~/go/pkg/mod` |
|
|
54
|
+
|
|
55
|
+
## Design Checklist
|
|
56
|
+
|
|
57
|
+
- [ ] Stack detected from lockfiles and manifests
|
|
58
|
+
- [ ] Lint, test, build commands verified to exist in project
|
|
59
|
+
- [ ] Cache strategy matches package manager
|
|
60
|
+
- [ ] Required secrets documented (not embedded in YAML)
|
|
61
|
+
- [ ] Branch protection rules match org policy
|
|
62
|
+
- [ ] Deploy jobs gated by protected environments
|
|
63
|
+
- [ ] Matrix builds only when compatibility truly requires it
|
|
64
|
+
- [ ] Pipeline duration tracked as a metric
|
|
65
|
+
|
|
66
|
+
## Common Pitfalls
|
|
67
|
+
|
|
68
|
+
| Pitfall | Fix |
|
|
69
|
+
|---------|-----|
|
|
70
|
+
| Copying a Node pipeline into Python/Go repos | Detect stack first, then generate |
|
|
71
|
+
| Deploy jobs before stable tests | Require green CI before deploy |
|
|
72
|
+
| Forgetting dependency cache keys | Use lockfile hash as cache key |
|
|
73
|
+
| Expensive matrix builds on every branch | Limit matrix to main/release branches |
|
|
74
|
+
| Hardcoded secrets in YAML | Use CI secret store, document required vars |
|
|
75
|
+
| No rollback plan | Keep rollout/rollback commands explicit |
|
|
76
|
+
|
|
77
|
+
## Proactive Triggers
|
|
78
|
+
|
|
79
|
+
Surface these issues WITHOUT being asked:
|
|
80
|
+
|
|
81
|
+
- No caching in CI → flag slow pipeline
|
|
82
|
+
- Deploy without smoke test → flag blind deployment
|
|
83
|
+
- Secrets in env vars without rotation → flag security risk
|
|
84
|
+
|
|
85
|
+
## Output
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
# .github/workflows/ci.yml
|
|
89
|
+
name: CI
|
|
90
|
+
on:
|
|
91
|
+
push:
|
|
92
|
+
branches: [main, develop]
|
|
93
|
+
pull_request:
|
|
94
|
+
branches: [main]
|
|
95
|
+
|
|
96
|
+
jobs:
|
|
97
|
+
lint:
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/checkout@v4
|
|
101
|
+
- uses: <setup-action>
|
|
102
|
+
- run: <install-command>
|
|
103
|
+
- run: <lint-command>
|
|
104
|
+
|
|
105
|
+
test:
|
|
106
|
+
needs: lint
|
|
107
|
+
runs-on: ubuntu-latest
|
|
108
|
+
steps:
|
|
109
|
+
- uses: actions/checkout@v4
|
|
110
|
+
- uses: <setup-action>
|
|
111
|
+
- run: <install-command>
|
|
112
|
+
- run: <test-command>
|
|
113
|
+
|
|
114
|
+
build:
|
|
115
|
+
needs: test
|
|
116
|
+
runs-on: ubuntu-latest
|
|
117
|
+
steps:
|
|
118
|
+
- uses: actions/checkout@v4
|
|
119
|
+
- uses: <setup-action>
|
|
120
|
+
- run: <install-command>
|
|
121
|
+
- run: <build-command>
|
|
122
|
+
|
|
123
|
+
deploy:
|
|
124
|
+
needs: build
|
|
125
|
+
if: github.ref == 'refs/heads/main'
|
|
126
|
+
environment: <staging|production>
|
|
127
|
+
runs-on: ubuntu-latest
|
|
128
|
+
steps:
|
|
129
|
+
- run: <deploy-command>
|
|
130
|
+
```
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/clean-code-review
|
|
3
|
+
description: >
|
|
4
|
+
Review code against Clean Code (Uncle Bob) and SOLID principles. Checks naming,
|
|
5
|
+
function size, nesting depth, dead code, god classes, and dependency direction.
|
|
6
|
+
allowed-tools: [Read, Grep, Glob, Agent]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Clean Code Review — `/dev clean-review <file>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Paulo (Tech Lead) | **Framework:** Clean Code + SOLID (Robert C. Martin)
|
|
12
|
+
|
|
13
|
+
## What It Does
|
|
14
|
+
|
|
15
|
+
Reviews a file or PR against Clean Code and SOLID principles. Returns a structured
|
|
16
|
+
report with issues categorized as BLOCKER, WARNING, or NOTE.
|
|
17
|
+
|
|
18
|
+
## Checklist
|
|
19
|
+
|
|
20
|
+
### Clean Code Checks
|
|
21
|
+
- [ ] **Meaningful names** — Variables, functions, classes reveal intent
|
|
22
|
+
- [ ] **Small functions** — Under 30 lines, one responsibility each
|
|
23
|
+
- [ ] **Max 3 nesting levels** — No arrow code
|
|
24
|
+
- [ ] **Max 3 parameters** — Use objects for more
|
|
25
|
+
- [ ] **No dead code** — Remove commented-out code, unused imports
|
|
26
|
+
- [ ] **No magic numbers** — Named constants instead
|
|
27
|
+
- [ ] **Command-Query Separation** — Functions either do something or return something
|
|
28
|
+
- [ ] **DRY** — No duplicated logic (3+ lines repeated = extract)
|
|
29
|
+
- [ ] **Self-documenting** — Code readable without comments explaining the "what"
|
|
30
|
+
|
|
31
|
+
### SOLID Checks
|
|
32
|
+
- [ ] **SRP** — Each class has one reason to change
|
|
33
|
+
- [ ] **OCP** — Extend via interfaces/abstractions, not modification
|
|
34
|
+
- [ ] **LSP** — Subtypes are substitutable for their base types
|
|
35
|
+
- [ ] **ISP** — No client depends on methods it doesn't use
|
|
36
|
+
- [ ] **DIP** — High-level modules depend on abstractions, not details
|
|
37
|
+
|
|
38
|
+
### Architecture Checks
|
|
39
|
+
- [ ] **Dependency Rule** — Dependencies point inward (domain doesn't import framework)
|
|
40
|
+
- [ ] **No business logic in controllers** — Controllers delegate to services
|
|
41
|
+
- [ ] **Repository pattern** — Data access abstracted from business logic
|
|
42
|
+
|
|
43
|
+
## Output Format
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
## Clean Code Review: <file>
|
|
47
|
+
|
|
48
|
+
### BLOCKERS (must fix)
|
|
49
|
+
- [B1] `ClassName:lineN` — God class with 15 methods and 4 responsibilities
|
|
50
|
+
Fix: Split into UserService, AuthService, NotificationService
|
|
51
|
+
|
|
52
|
+
### WARNINGS (should fix)
|
|
53
|
+
- [W1] `functionName:lineN` — Function is 45 lines (max: 30)
|
|
54
|
+
Fix: Extract validation logic into validateInput()
|
|
55
|
+
|
|
56
|
+
### NOTES (nice to have)
|
|
57
|
+
- [N1] `variableName:lineN` — Name could be more descriptive
|
|
58
|
+
Suggest: `userAccountBalance` instead of `bal`
|
|
59
|
+
|
|
60
|
+
### Summary
|
|
61
|
+
- SOLID score: 4/5 (ISP violation in UserInterface)
|
|
62
|
+
- Clean Code score: 7/10
|
|
63
|
+
- Nesting max: 2 (good)
|
|
64
|
+
- Longest function: 45 lines (needs split)
|
|
65
|
+
```
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/code-review
|
|
3
|
+
description: >
|
|
4
|
+
Code review against Clean Code and SOLID. Checks naming, SRP, DIP, test coverage, security.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Code Review — `/dev review <file/pr>`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Tech Lead) | **Framework:** Clean Code + SOLID (Uncle Bob)
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Code review against Clean Code and SOLID. Checks naming, SRP, DIP, test coverage, security.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Review report: BLOCKER/WARNING/NOTE with line references and fix suggestions
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/codebase-onboard
|
|
3
|
+
description: >
|
|
4
|
+
Analyze an existing codebase and generate onboarding documentation: architecture, patterns, setup, key files.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Codebase Onboarding — `/dev codebase-onboard`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Dev Lead) | **Framework:** Developer Experience, Architecture Documentation
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Analyzes an existing codebase to generate onboarding documentation. Maps architecture, identifies patterns, documents setup, and highlights key files a new developer needs to understand.
|
|
15
|
+
|
|
16
|
+
## Analysis Steps
|
|
17
|
+
|
|
18
|
+
| Step | What to Discover | How |
|
|
19
|
+
|------|-----------------|-----|
|
|
20
|
+
| 1. Stack Detection | Languages, frameworks, versions | `package.json`, `composer.json`, `pyproject.toml`, `Gemfile` |
|
|
21
|
+
| 2. Structure Map | Directory layout, entry points | Top-level dirs, `src/`, `app/`, config files |
|
|
22
|
+
| 3. Architecture | Patterns (MVC, DDD, microservices) | Folder naming, dependency injection, service layers |
|
|
23
|
+
| 4. Data Layer | Database, ORM, migrations | Schema files, models, migration history |
|
|
24
|
+
| 5. API Surface | Routes, controllers, endpoints | Route files, OpenAPI specs, Postman collections |
|
|
25
|
+
| 6. Testing | Test framework, coverage, conventions | Test dirs, config files, CI test steps |
|
|
26
|
+
| 7. DevOps | CI/CD, Docker, deployment | `.github/workflows/`, `Dockerfile`, deploy configs |
|
|
27
|
+
| 8. Key Files | Config, env, entry points | `.env.example`, main configs, bootstrap files |
|
|
28
|
+
|
|
29
|
+
## Audience Depth
|
|
30
|
+
|
|
31
|
+
| Audience | Focus | Skip |
|
|
32
|
+
|----------|-------|------|
|
|
33
|
+
| Junior Dev | Setup + guardrails + common tasks | Deep architecture rationale |
|
|
34
|
+
| Senior Dev | Architecture + patterns + operational concerns | Basic setup details |
|
|
35
|
+
| Contractor | Scoped ownership + integration boundaries | Internal team processes |
|
|
36
|
+
|
|
37
|
+
## Codebase Signals to Detect
|
|
38
|
+
|
|
39
|
+
| Signal | Files | Indicates |
|
|
40
|
+
|--------|-------|-----------|
|
|
41
|
+
| Laravel | `artisan`, `composer.json` (laravel/framework) | PHP backend, Eloquent ORM |
|
|
42
|
+
| Nuxt/Vue | `nuxt.config.ts`, `vue.config.js` | Vue frontend, SSR capable |
|
|
43
|
+
| Next.js | `next.config.js`, `app/` directory | React frontend, App Router |
|
|
44
|
+
| Docker | `Dockerfile`, `docker-compose.yml` | Containerized deployment |
|
|
45
|
+
| Monorepo | `turbo.json`, `nx.json`, `pnpm-workspace.yaml` | Multi-package workspace |
|
|
46
|
+
|
|
47
|
+
## Quality Checklist
|
|
48
|
+
|
|
49
|
+
- [ ] Setup instructions tested on clean environment
|
|
50
|
+
- [ ] All commands are copy-pasteable and time-bounded
|
|
51
|
+
- [ ] Architecture decisions documented with "why" not just "what"
|
|
52
|
+
- [ ] Key files listed with purpose explanation
|
|
53
|
+
- [ ] Common tasks documented (run tests, add feature, deploy)
|
|
54
|
+
- [ ] Troubleshooting section covers known gotchas
|
|
55
|
+
|
|
56
|
+
## Proactive Triggers
|
|
57
|
+
|
|
58
|
+
Surface these issues WITHOUT being asked:
|
|
59
|
+
|
|
60
|
+
- No README or outdated README → flag onboarding barrier
|
|
61
|
+
- No local dev setup instructions → flag contributor friction
|
|
62
|
+
- Missing architecture diagram → flag understanding gap
|
|
63
|
+
|
|
64
|
+
## Output
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
## Codebase Onboarding: <project-name>
|
|
68
|
+
|
|
69
|
+
### Stack
|
|
70
|
+
- **Backend:** Laravel 11 / PHP 8.3
|
|
71
|
+
- **Frontend:** Nuxt 3 / Vue 3 / TypeScript
|
|
72
|
+
- **Database:** PostgreSQL 16, Redis 7
|
|
73
|
+
- **Infrastructure:** Docker, GitHub Actions, AWS
|
|
74
|
+
|
|
75
|
+
### Architecture Overview
|
|
76
|
+
- Pattern: Service-Repository (thin controllers)
|
|
77
|
+
- Auth: Laravel Sanctum (SPA + API tokens)
|
|
78
|
+
- Queue: Redis-backed, Horizon dashboard
|
|
79
|
+
|
|
80
|
+
### Key Files
|
|
81
|
+
| File | Purpose |
|
|
82
|
+
|------|---------|
|
|
83
|
+
| `routes/api.php` | All API route definitions |
|
|
84
|
+
| `app/Services/` | Business logic layer |
|
|
85
|
+
| `app/Http/Requests/` | Form validation |
|
|
86
|
+
| `.env.example` | Required environment variables |
|
|
87
|
+
|
|
88
|
+
### Local Setup (estimated: 15 minutes)
|
|
89
|
+
1. `git clone <repo> && cd <project>`
|
|
90
|
+
2. `cp .env.example .env`
|
|
91
|
+
3. `composer install && npm install`
|
|
92
|
+
4. `php artisan key:generate`
|
|
93
|
+
5. `php artisan migrate --seed`
|
|
94
|
+
6. `npm run dev` (Vite dev server)
|
|
95
|
+
Verify: `http://localhost:8000` loads
|
|
96
|
+
|
|
97
|
+
### Common Tasks
|
|
98
|
+
| Task | Command |
|
|
99
|
+
|------|---------|
|
|
100
|
+
| Run tests | `php artisan test` |
|
|
101
|
+
| Add migration | `php artisan make:migration` |
|
|
102
|
+
| Queue worker | `php artisan horizon` |
|
|
103
|
+
| Fresh seed | `php artisan migrate:fresh --seed` |
|
|
104
|
+
|
|
105
|
+
### Gotchas
|
|
106
|
+
- Redis must be running for queue/cache
|
|
107
|
+
- `.env` DB_HOST differs between Docker and Herd
|
|
108
|
+
- Run `npm run build` before testing SSR locally
|
|
109
|
+
```
|