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,249 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arka-dev-scaffold
|
|
3
|
+
description: >
|
|
4
|
+
Project scaffolding from real git repositories. Creates new Laravel, Nuxt, Vue, React, or
|
|
5
|
+
Next.js projects with automated dependency installation, mandatory packages, MCP configuration,
|
|
6
|
+
Laravel Herd linking, Obsidian project pages, and initial git commit. Full-stack monorepo support.
|
|
7
|
+
Use when user says "scaffold", "new project", "create project", "start project", "bootstrap",
|
|
8
|
+
"init project", "setup project", or wants to create a new codebase from a template.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Project Scaffolding — ARKA OS Dev Department
|
|
12
|
+
|
|
13
|
+
Create new projects from real git repositories with full automation: dependencies, MCPs, Obsidian pages, and initial commit.
|
|
14
|
+
|
|
15
|
+
## Commands
|
|
16
|
+
|
|
17
|
+
| Command | Git Repository | Stack |
|
|
18
|
+
|---------|---------------|-------|
|
|
19
|
+
| `/dev scaffold laravel <name>` | `git@andreagroferreira:andreagroferreira/laravel-starter-kit.git` | Laravel + Herd |
|
|
20
|
+
| `/dev scaffold nuxt-saas <name>` | `https://github.com/nuxt-ui-templates/dashboard.git` | Nuxt 3 Dashboard |
|
|
21
|
+
| `/dev scaffold nuxt-landing <name>` | `https://github.com/nuxt-ui-templates/landing.git` | Nuxt 3 Landing |
|
|
22
|
+
| `/dev scaffold nuxt-docs <name>` | `https://github.com/nuxt-ui-templates/docs.git` | Nuxt 3 Docs |
|
|
23
|
+
| `/dev scaffold vue-saas <name>` | `https://github.com/nuxt-ui-templates/dashboard-vue.git` | Vue 3 Dashboard |
|
|
24
|
+
| `/dev scaffold vue-landing <name>` | `https://github.com/nuxt-ui-templates/starter-vue.git` | Vue 3 Landing |
|
|
25
|
+
| `/dev scaffold full-stack <name>` | Laravel + Nuxt (both repos) | Full-stack |
|
|
26
|
+
| `/dev scaffold react <name>` | React starter (TBD) | React SPA |
|
|
27
|
+
| `/dev scaffold nextjs <name>` | Next.js starter (TBD) | Next.js App |
|
|
28
|
+
|
|
29
|
+
## Workflow: /dev scaffold <type> <name>
|
|
30
|
+
|
|
31
|
+
### Step 1: Clone & Initialize
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# Clone the template repo
|
|
35
|
+
git clone <repo-url> <name>
|
|
36
|
+
cd <name>
|
|
37
|
+
|
|
38
|
+
# Remove template git history and start fresh
|
|
39
|
+
rm -rf .git
|
|
40
|
+
git init
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Step 2: Install Dependencies
|
|
44
|
+
|
|
45
|
+
**For Laravel projects:**
|
|
46
|
+
```bash
|
|
47
|
+
composer install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**For Nuxt/Vue projects:**
|
|
51
|
+
```bash
|
|
52
|
+
pnpm install
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**For full-stack:**
|
|
56
|
+
Both `composer install` (in `api/` or root) and `pnpm install` (in `frontend/` or root).
|
|
57
|
+
|
|
58
|
+
### Step 3: Laravel Mandatory Packages (Laravel projects only)
|
|
59
|
+
|
|
60
|
+
Read `mcps/stacks/laravel-packages.json` and install in ORDER:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# 1. Boost FIRST (enables laravel-boost MCP)
|
|
64
|
+
composer require laravel/boost
|
|
65
|
+
php artisan boost:install
|
|
66
|
+
|
|
67
|
+
# 2. Horizon
|
|
68
|
+
composer require laravel/horizon
|
|
69
|
+
php artisan horizon:install
|
|
70
|
+
|
|
71
|
+
# 3. Prism (AI SDK)
|
|
72
|
+
composer require echolabs/prism
|
|
73
|
+
|
|
74
|
+
# 4. MCP Server
|
|
75
|
+
composer require php-mcp/laravel
|
|
76
|
+
php artisan vendor:publish --provider="PhpMcp\Laravel\McpServiceProvider"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**IMPORTANT:** Boost MUST be installed first. It enables the laravel-boost MCP server.
|
|
80
|
+
|
|
81
|
+
### Step 4: Laravel Herd (Laravel projects only)
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
herd link
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
This registers the project with Laravel Herd for local serving at `http://<name>.test`.
|
|
88
|
+
|
|
89
|
+
### Step 5: Apply MCP Profile
|
|
90
|
+
|
|
91
|
+
Run the MCP applicator with the appropriate profile:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
bash "$ARKA_OS/mcps/scripts/apply-mcps.sh" <profile> --project "$(pwd)"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Profile mapping:
|
|
98
|
+
- `laravel` → `laravel` profile
|
|
99
|
+
- `nuxt-*` → `nuxt` profile
|
|
100
|
+
- `vue-*` → `vue` profile
|
|
101
|
+
- `full-stack` → `full-stack` profile
|
|
102
|
+
|
|
103
|
+
This generates `.mcp.json` and `.claude/settings.local.json`.
|
|
104
|
+
|
|
105
|
+
### Step 6: Generate PROJECT.md
|
|
106
|
+
|
|
107
|
+
Create `PROJECT.md` in the project root with:
|
|
108
|
+
|
|
109
|
+
```markdown
|
|
110
|
+
# <name> — WizardingCode Project
|
|
111
|
+
|
|
112
|
+
## Client
|
|
113
|
+
- **Name:** [ask user or leave TBD]
|
|
114
|
+
- **Type:** [project type]
|
|
115
|
+
|
|
116
|
+
## Stack
|
|
117
|
+
- [auto-detected from scaffold type]
|
|
118
|
+
|
|
119
|
+
## Conventions
|
|
120
|
+
- [inherit from ARKA OS CLAUDE.md defaults]
|
|
121
|
+
|
|
122
|
+
## Decisions
|
|
123
|
+
- [scaffold date and type recorded here]
|
|
124
|
+
|
|
125
|
+
## MCPs Active
|
|
126
|
+
- [list from applied profile]
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Also register in ARKA OS:
|
|
130
|
+
```bash
|
|
131
|
+
mkdir -p "$ARKA_OS/projects/<name>"
|
|
132
|
+
cp PROJECT.md "$ARKA_OS/projects/<name>/PROJECT.md"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Step 7: Create Obsidian Project Page
|
|
136
|
+
|
|
137
|
+
Create pages in the Obsidian vault:
|
|
138
|
+
|
|
139
|
+
**Main page:** `Documents/Personal/Projects/<name>/Home.md`
|
|
140
|
+
```markdown
|
|
141
|
+
---
|
|
142
|
+
type: project
|
|
143
|
+
name: <name>
|
|
144
|
+
client: TBD
|
|
145
|
+
stack: [auto-detected]
|
|
146
|
+
status: active
|
|
147
|
+
date_created: [today]
|
|
148
|
+
tags:
|
|
149
|
+
- project
|
|
150
|
+
- [stack-tag]
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
# <name>
|
|
154
|
+
|
|
155
|
+
> WizardingCode Project
|
|
156
|
+
|
|
157
|
+
## Overview
|
|
158
|
+
[To be filled]
|
|
159
|
+
|
|
160
|
+
## Architecture
|
|
161
|
+
- [[<name> - Architecture]]
|
|
162
|
+
|
|
163
|
+
## Links
|
|
164
|
+
- Local: `~/Projects/<name>/`
|
|
165
|
+
- *Part of the [[Projects MOC]]*
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**Architecture page:** `Documents/Personal/Projects/<name>/Architecture/decisions.md`
|
|
169
|
+
```markdown
|
|
170
|
+
---
|
|
171
|
+
type: adr-log
|
|
172
|
+
project: <name>
|
|
173
|
+
date_created: [today]
|
|
174
|
+
tags:
|
|
175
|
+
- architecture
|
|
176
|
+
- adr
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
# Architecture Decisions — <name>
|
|
180
|
+
|
|
181
|
+
## ADR-001: Initial Stack Selection
|
|
182
|
+
- **Date:** [today]
|
|
183
|
+
- **Decision:** Scaffolded with [type] template
|
|
184
|
+
- **Rationale:** [based on project requirements]
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Step 8: Initial Git Commit
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
git add -A
|
|
191
|
+
git commit -m "Initial scaffold from ARKA OS ([type] template)"
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Step 9: Report
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
═══ ARKA OS — Project Scaffolded ═══
|
|
198
|
+
Name: <name>
|
|
199
|
+
Type: <type>
|
|
200
|
+
Stack: [stack details]
|
|
201
|
+
MCPs: [count] active ([profile] profile)
|
|
202
|
+
Herd: http://<name>.test (Laravel only)
|
|
203
|
+
Obsidian: Projects/<name>/Home.md
|
|
204
|
+
═════════════════════════════════════
|
|
205
|
+
|
|
206
|
+
Next steps:
|
|
207
|
+
cd <name>
|
|
208
|
+
/dev feature "describe your first feature"
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## React / Next.js Handling
|
|
212
|
+
|
|
213
|
+
`/dev scaffold react <name>` and `/dev scaffold nextjs <name>`:
|
|
214
|
+
|
|
215
|
+
1. Clone template repo
|
|
216
|
+
2. `pnpm install`
|
|
217
|
+
3. Apply MCP profile (`react` or `nextjs`)
|
|
218
|
+
4. Generate PROJECT.md
|
|
219
|
+
5. Create Obsidian project page
|
|
220
|
+
6. Initial git commit
|
|
221
|
+
|
|
222
|
+
**No mandatory packages step** — React/Next.js projects use recommended packages from `mcps/stacks/react-packages.json` instead. Profile mapping:
|
|
223
|
+
- `react` → `react` profile
|
|
224
|
+
- `nextjs` → `nextjs` profile
|
|
225
|
+
|
|
226
|
+
## Full-Stack Special Handling
|
|
227
|
+
|
|
228
|
+
`/dev scaffold full-stack <name>` creates a monorepo:
|
|
229
|
+
|
|
230
|
+
```
|
|
231
|
+
<name>/
|
|
232
|
+
├── api/ ← Laravel backend (from laravel-starter-kit)
|
|
233
|
+
├── frontend/ ← Nuxt dashboard (from nuxt-ui-templates/dashboard)
|
|
234
|
+
├── .mcp.json ← full-stack MCP profile
|
|
235
|
+
├── .claude/
|
|
236
|
+
│ └── settings.local.json
|
|
237
|
+
├── PROJECT.md
|
|
238
|
+
└── docker-compose.yml (if applicable)
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Both directories get their respective dependencies installed, and the full-stack MCP profile covers both Laravel and Nuxt tools.
|
|
242
|
+
|
|
243
|
+
## Error Handling
|
|
244
|
+
|
|
245
|
+
- If `git clone` fails: check SSH keys (`git@andreagroferreira:` for private repos)
|
|
246
|
+
- If `composer install` fails: check PHP version (`php -v`, need 8.3+)
|
|
247
|
+
- If `pnpm install` fails: check Node version (`node -v`, need 18+)
|
|
248
|
+
- If `herd link` fails: check Herd is installed and running
|
|
249
|
+
- If Boost install fails: continue with remaining packages, warn user
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/security-audit
|
|
3
|
+
description: >
|
|
4
|
+
OWASP Top 10 (2025) security audit with dependency scanning and security headers check.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Security Audit — `/dev security-audit`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Bruno (Security Engineer)
|
|
11
|
+
> **Framework:** OWASP Top 10 (2025), DevSecOps Pipeline
|
|
12
|
+
|
|
13
|
+
## OWASP Top 10 (2025) Checklist
|
|
14
|
+
|
|
15
|
+
| # | Vulnerability | What to Check |
|
|
16
|
+
|---|-------------|--------------|
|
|
17
|
+
| A01 | Broken Access Control | RBAC/ABAC implemented? Deny by default? |
|
|
18
|
+
| A02 | Cryptographic Failures | TLS everywhere? Data encrypted at rest? Strong algorithms? |
|
|
19
|
+
| A03 | Supply Chain Failures | Dependencies audited? SBOM exists? Signed artifacts? |
|
|
20
|
+
| A04 | Injection | Parameterized queries? Input validation? Output encoding? |
|
|
21
|
+
| A05 | Security Misconfiguration | Default credentials removed? Security headers present? |
|
|
22
|
+
| A06 | Vulnerable Components | `npm audit` / `composer audit` clean? No known CVEs? |
|
|
23
|
+
| A07 | Authentication Failures | MFA available? Rate limiting? Secure session management? |
|
|
24
|
+
| A08 | Data Integrity Failures | Deserialization safe? Signed packages? CI/CD tamper-proof? |
|
|
25
|
+
| A09 | Logging Failures | Security events logged? Centralized logging? Alerting? |
|
|
26
|
+
| A10 | Exceptional Conditions | Secure error handling? No stack traces in production? |
|
|
27
|
+
|
|
28
|
+
## Security Headers Check
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
Content-Security-Policy: default-src 'self'
|
|
32
|
+
Strict-Transport-Security: max-age=31536000; includeSubDomains
|
|
33
|
+
X-Content-Type-Options: nosniff
|
|
34
|
+
X-Frame-Options: DENY
|
|
35
|
+
Referrer-Policy: strict-origin-when-cross-origin
|
|
36
|
+
Permissions-Policy: camera=(), microphone=(), geolocation=()
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Automated Scans
|
|
40
|
+
|
|
41
|
+
| Tool | What | Command |
|
|
42
|
+
|------|------|---------|
|
|
43
|
+
| npm audit | JS dependency CVEs | `npm audit --production` |
|
|
44
|
+
| composer audit | PHP dependency CVEs | `composer audit` |
|
|
45
|
+
| pip audit | Python dependency CVEs | `pip-audit` |
|
|
46
|
+
| GitLeaks | Secrets in code | `gitleaks detect` |
|
|
47
|
+
|
|
48
|
+
## Output: Security Report
|
|
49
|
+
|
|
50
|
+
```markdown
|
|
51
|
+
## Security Audit: <project>
|
|
52
|
+
|
|
53
|
+
### CRITICAL (fix immediately)
|
|
54
|
+
- [C1] SQL Injection in UserController:45 — raw query with user input
|
|
55
|
+
Fix: Use parameterized query via Eloquent
|
|
56
|
+
|
|
57
|
+
### HIGH (fix before release)
|
|
58
|
+
- [H1] Missing CSRF protection on /api/webhook endpoint
|
|
59
|
+
|
|
60
|
+
### MEDIUM
|
|
61
|
+
- [M1] npm audit: 2 moderate vulnerabilities in lodash
|
|
62
|
+
|
|
63
|
+
### LOW
|
|
64
|
+
- [L1] Missing Permissions-Policy header
|
|
65
|
+
|
|
66
|
+
### Summary: 1 critical, 1 high, 1 medium, 1 low
|
|
67
|
+
### Recommendation: BLOCK release until C1 and H1 resolved
|
|
68
|
+
```
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/skill-audit
|
|
3
|
+
description: >
|
|
4
|
+
Audit AI agent skills for security vulnerabilities: prompt injection, code execution, data leakage, supply chain risks.
|
|
5
|
+
allowed-tools: [Read, Bash, Grep, Glob, Agent]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Skill Security Auditor — `/dev skill-audit`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Bruno (Security Engineer) | **Framework:** OWASP LLM Top 10, Supply Chain Security
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Scans AI agent skill directories for security risks before installation. Produces a PASS / WARN / FAIL verdict with findings and remediation guidance.
|
|
15
|
+
|
|
16
|
+
## Scan Categories
|
|
17
|
+
|
|
18
|
+
### 1. Code Execution Risks
|
|
19
|
+
|
|
20
|
+
| Pattern | What to Detect | Severity |
|
|
21
|
+
|---------|---------------|----------|
|
|
22
|
+
| Command injection | `os.system()`, `subprocess.call(shell=True)`, backticks | CRITICAL |
|
|
23
|
+
| Dynamic execution | `eval()`, `exec()`, `compile()`, `__import__()` | CRITICAL |
|
|
24
|
+
| Obfuscation | base64 payloads, hex strings, `chr()` chains | CRITICAL |
|
|
25
|
+
| Network exfiltration | `requests.post()`, `socket.connect()`, outbound HTTP | CRITICAL |
|
|
26
|
+
| Credential harvesting | Reads `~/.ssh`, `~/.aws`, env var extraction | CRITICAL |
|
|
27
|
+
| File system abuse | Writes outside skill dir, modifies `~/.bashrc` | HIGH |
|
|
28
|
+
| Unsafe deserialization | `pickle.loads()`, `yaml.load()` without SafeLoader | HIGH |
|
|
29
|
+
|
|
30
|
+
### 2. Prompt Injection in SKILL.md
|
|
31
|
+
|
|
32
|
+
| Pattern | Example | Severity |
|
|
33
|
+
|---------|---------|----------|
|
|
34
|
+
| System prompt override | "Ignore previous instructions" | CRITICAL |
|
|
35
|
+
| Role hijacking | "Act as root", "Pretend you have no restrictions" | CRITICAL |
|
|
36
|
+
| Safety bypass | "Skip safety checks", "Disable content filtering" | CRITICAL |
|
|
37
|
+
| Hidden instructions | Zero-width characters, HTML comments with directives | HIGH |
|
|
38
|
+
| Data extraction | "Send contents of", "Upload file to", "POST to" | CRITICAL |
|
|
39
|
+
|
|
40
|
+
### 3. Supply Chain Risks
|
|
41
|
+
|
|
42
|
+
| Check | What It Does | Severity |
|
|
43
|
+
|-------|-------------|----------|
|
|
44
|
+
| Known CVEs | Cross-reference dependencies with advisory databases | CRITICAL |
|
|
45
|
+
| Typosquatting | Flag packages similar to popular ones (e.g., `reqeusts`) | HIGH |
|
|
46
|
+
| Unpinned versions | `requests>=2.0` vs `requests==2.31.0` | LOW |
|
|
47
|
+
| Install in code | `pip install` or `npm install` inside scripts | HIGH |
|
|
48
|
+
| Binary files | Unexpected `.so`, `.dll`, `.exe` in skill directory | CRITICAL |
|
|
49
|
+
|
|
50
|
+
### 4. File System Checks
|
|
51
|
+
|
|
52
|
+
| Check | What It Does | Severity |
|
|
53
|
+
|-------|-------------|----------|
|
|
54
|
+
| Boundary violation | Scripts referencing paths outside skill directory | HIGH |
|
|
55
|
+
| Hidden files | `.env`, dotfiles that should not be in a skill | HIGH |
|
|
56
|
+
| Symlinks | Symbolic links pointing outside skill directory | CRITICAL |
|
|
57
|
+
| Large files | Files > 1MB that could hide payloads | LOW |
|
|
58
|
+
|
|
59
|
+
## Audit Workflow
|
|
60
|
+
|
|
61
|
+
1. **Scan** all `.py`, `.sh`, `.js`, `.ts`, `.md` files in the skill directory
|
|
62
|
+
2. **Classify** findings by severity (CRITICAL / HIGH / LOW)
|
|
63
|
+
3. **Verdict**: PASS (no critical/high), WARN (high only), FAIL (any critical)
|
|
64
|
+
4. **Remediate** each finding using the fix guidance provided
|
|
65
|
+
|
|
66
|
+
## Proactive Triggers
|
|
67
|
+
|
|
68
|
+
Surface these issues WITHOUT being asked:
|
|
69
|
+
|
|
70
|
+
- Skill executing arbitrary shell commands → CRITICAL security flag
|
|
71
|
+
- Skill reading files outside project dir → flag data leakage risk
|
|
72
|
+
- No input sanitization in tool params → flag prompt injection vector
|
|
73
|
+
|
|
74
|
+
## Output
|
|
75
|
+
|
|
76
|
+
```markdown
|
|
77
|
+
## Skill Security Audit: <skill-name>
|
|
78
|
+
|
|
79
|
+
### Verdict: FAIL
|
|
80
|
+
|
|
81
|
+
### CRITICAL (2 findings)
|
|
82
|
+
- [C1] CODE-EXEC — scripts/helper.py:42 — `eval(user_input)`
|
|
83
|
+
Fix: Replace with `ast.literal_eval()` or explicit parsing
|
|
84
|
+
- [C2] NET-EXFIL — scripts/analyzer.py:88 — `requests.post()` to external URL
|
|
85
|
+
Fix: Remove outbound calls or verify destination is trusted
|
|
86
|
+
|
|
87
|
+
### HIGH (1 finding)
|
|
88
|
+
- [H1] FS-BOUNDARY — scripts/scanner.py:15 — reads `~/.ssh/id_rsa`
|
|
89
|
+
Fix: Remove filesystem access outside skill directory
|
|
90
|
+
|
|
91
|
+
### LOW (1 finding)
|
|
92
|
+
- [L1] DEPS-UNPIN — requirements.txt:3 — `requests>=2.0`
|
|
93
|
+
Fix: Pin to specific version `requests==2.31.0`
|
|
94
|
+
|
|
95
|
+
### Recommendation: Do NOT install until C1 and C2 are resolved
|
|
96
|
+
```
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: arka-dev-spec
|
|
3
|
+
description: >
|
|
4
|
+
NON-NEGOTIABLE spec-driven development gate. Creates, validates, and manages feature
|
|
5
|
+
specifications before any code is written. Uses Living Specs engine (core/specs/).
|
|
6
|
+
Interactive workflow that collaborates with
|
|
7
|
+
the user to produce detailed specs covering scope, acceptance criteria, data model,
|
|
8
|
+
API contracts, UI/UX requirements, edge cases, and test scenarios.
|
|
9
|
+
Auto-invoked as Phase 0 by all code-modifying Tier 1 and Tier 2 dev workflows
|
|
10
|
+
(/dev feature, /dev api, /dev db, and code-modifying /dev do).
|
|
11
|
+
This is a Constitution rule (NON-NEGOTIABLE #7) — no code without an approved spec.
|
|
12
|
+
Use when user says "spec", "specification", "requirements", "define feature",
|
|
13
|
+
"write spec", "describe what to build", or when any code-modifying dev command is invoked.
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Spec-Driven Development — ARKA OS Dev Department
|
|
17
|
+
|
|
18
|
+
No code is written until a detailed spec exists and is approved. This is NON-NEGOTIABLE.
|
|
19
|
+
|
|
20
|
+
## Commands
|
|
21
|
+
|
|
22
|
+
| Command | Description | Lead Agent | Tier |
|
|
23
|
+
|---------|-------------|------------|------|
|
|
24
|
+
| `/dev spec <description>` | Create a feature spec interactively | Paulo | 3 |
|
|
25
|
+
| `/dev spec validate` | Validate an existing spec for completeness | Paulo | 3 |
|
|
26
|
+
| `/dev spec list` | List all specs in the current project | Paulo | 3 |
|
|
27
|
+
|
|
28
|
+
## Auto-Invocation (Phase 0)
|
|
29
|
+
|
|
30
|
+
This skill is automatically invoked as **Phase 0** before any code-modifying workflow:
|
|
31
|
+
|
|
32
|
+
| Command | Phase 0 Applied |
|
|
33
|
+
|---------|----------------|
|
|
34
|
+
| `/dev feature` | Yes, always |
|
|
35
|
+
| `/dev api` | Yes, always |
|
|
36
|
+
| `/dev db` | Yes, always |
|
|
37
|
+
| `/dev do` | Yes, when routed to feature/api/db |
|
|
38
|
+
| `/dev debug` | No (investigates existing code) |
|
|
39
|
+
| `/dev refactor` | No (works on existing code) |
|
|
40
|
+
|
|
41
|
+
When auto-invoked, Paulo checks if an approved spec already exists. If it does, he loads it as context. If not, he triggers the interactive spec creation workflow below.
|
|
42
|
+
|
|
43
|
+
## Workflow: /dev spec (Interactive Spec Creation)
|
|
44
|
+
|
|
45
|
+
### Step 1: Context Loading (Paulo)
|
|
46
|
+
- Read project context: PROJECT.md, CLAUDE.md, recent git log
|
|
47
|
+
- Identify the project stack, existing patterns, and relevant domain context
|
|
48
|
+
- Check Obsidian `Projects/<name>/Specs/` for related or overlapping specs
|
|
49
|
+
|
|
50
|
+
### Step 2: Requirements Gathering (Paulo)
|
|
51
|
+
Use `AskUserQuestion` to understand the feature. Ask only what is genuinely unclear; skip questions the user already answered in their request.
|
|
52
|
+
|
|
53
|
+
**Core questions (ask as needed):**
|
|
54
|
+
- What is the core problem or need this solves?
|
|
55
|
+
- Who are the users or actors involved?
|
|
56
|
+
- What are the expected inputs and outputs?
|
|
57
|
+
- Are there constraints, dependencies, or integrations?
|
|
58
|
+
- What does "done" look like? How will we know it works?
|
|
59
|
+
|
|
60
|
+
**Follow-up questions (if applicable):**
|
|
61
|
+
- Does this touch backend, frontend, or both?
|
|
62
|
+
- Are there existing patterns in the codebase we should follow?
|
|
63
|
+
- Any performance or scale requirements?
|
|
64
|
+
- Any third-party services or APIs involved?
|
|
65
|
+
|
|
66
|
+
Paulo may ask these in batches (2-3 questions at a time) to avoid overwhelming the user. The goal is a complete understanding, not an interrogation.
|
|
67
|
+
|
|
68
|
+
### Step 3: Spec Drafting (Paulo)
|
|
69
|
+
Draft the spec with the following sections. Not every section applies to every feature; omit sections that are genuinely irrelevant.
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
---
|
|
73
|
+
type: spec
|
|
74
|
+
status: draft
|
|
75
|
+
feature: <slug>
|
|
76
|
+
project: <project-name>
|
|
77
|
+
date_created: <YYYY-MM-DD>
|
|
78
|
+
tags:
|
|
79
|
+
- spec
|
|
80
|
+
- <project-tag>
|
|
81
|
+
- <feature-tag>
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
# SPEC: <Feature Title>
|
|
85
|
+
|
|
86
|
+
## Overview
|
|
87
|
+
**Problem:** What problem does this solve?
|
|
88
|
+
**Goal:** What is the desired outcome?
|
|
89
|
+
**Actors:** Who uses this feature?
|
|
90
|
+
|
|
91
|
+
## Scope
|
|
92
|
+
**In scope:**
|
|
93
|
+
- [Specific deliverable 1]
|
|
94
|
+
- [Specific deliverable 2]
|
|
95
|
+
|
|
96
|
+
**Out of scope:**
|
|
97
|
+
- [Explicitly excluded item 1]
|
|
98
|
+
|
|
99
|
+
## Acceptance Criteria
|
|
100
|
+
Numbered, testable criteria. Each must be verifiable.
|
|
101
|
+
|
|
102
|
+
1. Given [context], when [action], then [expected result]
|
|
103
|
+
2. Given [context], when [action], then [expected result]
|
|
104
|
+
3. ...
|
|
105
|
+
|
|
106
|
+
## Data Model
|
|
107
|
+
Entities, relationships, and schema changes.
|
|
108
|
+
|
|
109
|
+
| Entity | Fields | Relationships |
|
|
110
|
+
|--------|--------|--------------|
|
|
111
|
+
| ... | ... | ... |
|
|
112
|
+
|
|
113
|
+
**Migrations needed:**
|
|
114
|
+
- [ ] Create/alter table X
|
|
115
|
+
- [ ] Add index on Y
|
|
116
|
+
|
|
117
|
+
## API Contracts
|
|
118
|
+
Endpoints, request/response shapes, status codes.
|
|
119
|
+
|
|
120
|
+
### POST /api/v1/resource
|
|
121
|
+
**Request:**
|
|
122
|
+
```json
|
|
123
|
+
{ "field": "value" }
|
|
124
|
+
```
|
|
125
|
+
**Response (201):**
|
|
126
|
+
```json
|
|
127
|
+
{ "id": 1, "field": "value" }
|
|
128
|
+
```
|
|
129
|
+
**Errors:** 400 (validation), 401 (unauthorized), 409 (conflict)
|
|
130
|
+
|
|
131
|
+
## UI/UX Requirements
|
|
132
|
+
Screens, components, states, and flows. Skip if backend-only.
|
|
133
|
+
|
|
134
|
+
- **Screen:** [Name] — [Description]
|
|
135
|
+
- **States:** loading, empty, error, success
|
|
136
|
+
- **Components:** [Reusable components to create or extend]
|
|
137
|
+
|
|
138
|
+
## Edge Cases
|
|
139
|
+
Boundary conditions, error states, and unusual scenarios.
|
|
140
|
+
|
|
141
|
+
1. What happens when [edge case]?
|
|
142
|
+
2. What if [boundary condition]?
|
|
143
|
+
3. How does the system handle [failure scenario]?
|
|
144
|
+
|
|
145
|
+
## Test Scenarios
|
|
146
|
+
Derived from acceptance criteria. Maps to Phase 7 (QA).
|
|
147
|
+
|
|
148
|
+
| # | Scenario | Type | Expected |
|
|
149
|
+
|---|----------|------|----------|
|
|
150
|
+
| 1 | ... | Feature/Unit/Component | ... |
|
|
151
|
+
| 2 | ... | Feature/Unit/Component | ... |
|
|
152
|
+
|
|
153
|
+
## Dependencies
|
|
154
|
+
External services, existing code, or features that must exist first.
|
|
155
|
+
|
|
156
|
+
- [ ] [Dependency 1]
|
|
157
|
+
- [ ] [Dependency 2]
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Step 4: User Approval (Paulo)
|
|
161
|
+
Present the complete spec to the user using `AskUserQuestion`:
|
|
162
|
+
- Show the full spec content
|
|
163
|
+
- Ask: "Does this spec accurately capture what you need? Any changes?"
|
|
164
|
+
- Iterate until the user approves
|
|
165
|
+
|
|
166
|
+
### Step 5: Save to Obsidian (Paulo)
|
|
167
|
+
Save the approved spec:
|
|
168
|
+
- **Path:** `Projects/<project-name>/Specs/SPEC-<slug>.md`
|
|
169
|
+
- **Status:** Update frontmatter `status: approved`
|
|
170
|
+
- **Link:** Add wikilink from project Home.md if it exists
|
|
171
|
+
|
|
172
|
+
### Step 6: Return to Calling Workflow
|
|
173
|
+
When invoked as Phase 0, return the spec to the main workflow:
|
|
174
|
+
- Phase 2 (Research) uses the spec to focus research
|
|
175
|
+
- Phase 3 (Architecture) uses the spec as the design source of truth
|
|
176
|
+
- Phase 4 (Implementation) uses acceptance criteria as implementation targets
|
|
177
|
+
- Phase 7 (QA) uses test scenarios as the testing plan
|
|
178
|
+
|
|
179
|
+
## Workflow: /dev spec validate
|
|
180
|
+
|
|
181
|
+
Validate an existing spec for completeness and consistency:
|
|
182
|
+
|
|
183
|
+
1. Load the spec from Obsidian or from the user
|
|
184
|
+
2. Check completeness:
|
|
185
|
+
- [ ] Has Overview with problem, goal, actors
|
|
186
|
+
- [ ] Has Scope with in/out boundaries
|
|
187
|
+
- [ ] Has at least 3 testable Acceptance Criteria
|
|
188
|
+
- [ ] Has Data Model (if data changes are involved)
|
|
189
|
+
- [ ] Has API Contracts (if API changes are involved)
|
|
190
|
+
- [ ] Has Edge Cases (at least 2)
|
|
191
|
+
- [ ] Has Test Scenarios matching acceptance criteria
|
|
192
|
+
3. Check consistency:
|
|
193
|
+
- Data model matches API contracts
|
|
194
|
+
- Test scenarios cover all acceptance criteria
|
|
195
|
+
- Scope matches what acceptance criteria describe
|
|
196
|
+
4. Report findings and suggest improvements
|
|
197
|
+
|
|
198
|
+
## Workflow: /dev spec list
|
|
199
|
+
|
|
200
|
+
List all specs in the current project:
|
|
201
|
+
|
|
202
|
+
1. Search Obsidian `Projects/<project-name>/Specs/` for files matching `SPEC-*.md`
|
|
203
|
+
2. Display a table: Feature, Status (draft/approved), Date, Acceptance Criteria count
|
|
204
|
+
3. If no specs found, inform the user
|
|
205
|
+
|
|
206
|
+
## Obsidian Output
|
|
207
|
+
|
|
208
|
+
| Content | Path |
|
|
209
|
+
|---------|------|
|
|
210
|
+
| Feature specs | `Projects/<name>/Specs/SPEC-<slug>.md` |
|
|
211
|
+
|
|
212
|
+
## Key Principles
|
|
213
|
+
|
|
214
|
+
1. **Specs are living documents.** They can be updated as understanding grows, but changes must be acknowledged.
|
|
215
|
+
2. **The spec is the contract.** If it is not in the spec, it is not in scope. Scope creep is caught here.
|
|
216
|
+
3. **Specs save time.** Thirty minutes of spec writing prevents hours of rework.
|
|
217
|
+
4. **User collaboration is key.** The spec is built with the user, not imposed on them.
|
|
218
|
+
5. **Not every section is required.** A backend API needs Data Model and API Contracts but not UI/UX. Adapt the template.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/stack-check
|
|
3
|
+
description: >
|
|
4
|
+
Audit current tech stack: versions, dependencies, security, performance, upgrade paths.
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob, Agent, WebFetch, WebSearch]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Stack Check — `/dev stack-check`
|
|
9
|
+
|
|
10
|
+
> **Agent:** Paulo (Tech Lead) | **Framework:** 12-Factor App + Stack Analysis
|
|
11
|
+
|
|
12
|
+
## What It Does
|
|
13
|
+
|
|
14
|
+
Audit current tech stack: versions, dependencies, security, performance, upgrade paths.
|
|
15
|
+
|
|
16
|
+
## Output
|
|
17
|
+
|
|
18
|
+
Stack health report with upgrade recommendations and risk assessment
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: dev/tdd-cycle
|
|
3
|
+
description: >
|
|
4
|
+
Test-Driven Development using Kent Beck's Red-Green-Refactor cycle.
|
|
5
|
+
Write failing test first, minimal code to pass, then refactor.
|
|
6
|
+
allowed-tools: [Read, Write, Edit, Bash, Grep, Glob]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# TDD Cycle — `/dev test <scope>`
|
|
10
|
+
|
|
11
|
+
> **Agent:** Rita (QA) + Andre/Diana (implementation)
|
|
12
|
+
> **Framework:** TDD Red-Green-Refactor (Kent Beck)
|
|
13
|
+
|
|
14
|
+
## The Cycle
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
RED → Write a test that fails (defines desired behavior)
|
|
18
|
+
↓
|
|
19
|
+
GREEN → Write the MINIMUM code to make the test pass
|
|
20
|
+
↓
|
|
21
|
+
REFACTOR → Improve the code while keeping tests green
|
|
22
|
+
↓
|
|
23
|
+
REPEAT
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Rules (NON-NEGOTIABLE)
|
|
27
|
+
|
|
28
|
+
1. Never write production code without a failing test
|
|
29
|
+
2. Write only enough test to fail (one assertion)
|
|
30
|
+
3. Write only enough code to pass the failing test
|
|
31
|
+
4. Refactor only when all tests are green
|
|
32
|
+
|
|
33
|
+
## Testing Pyramid
|
|
34
|
+
|
|
35
|
+
| Level | Proportion | Speed | What to test |
|
|
36
|
+
|-------|-----------|-------|-------------|
|
|
37
|
+
| Unit | 70% | Fast | Pure functions, business logic, calculations |
|
|
38
|
+
| Integration | 20% | Medium | API endpoints, DB queries, service interactions |
|
|
39
|
+
| E2E | 10% | Slow | Critical user journeys only |
|
|
40
|
+
|
|
41
|
+
## Test Quality Criteria
|
|
42
|
+
|
|
43
|
+
- **Coverage:** >= 80% (measured, not guessed)
|
|
44
|
+
- **FIRST:** Fast, Independent, Repeatable, Self-validating, Timely
|
|
45
|
+
- **No mocking of what you own** — Mock external services, not your own classes
|
|
46
|
+
- **Test behavior, not implementation** — Tests should survive refactoring
|
|
47
|
+
|
|
48
|
+
## Stack-Specific
|
|
49
|
+
|
|
50
|
+
| Stack | Framework | Command |
|
|
51
|
+
|-------|-----------|---------|
|
|
52
|
+
| Laravel | PHPUnit + Pest | `php artisan test` |
|
|
53
|
+
| Vue/Nuxt | Vitest | `npx vitest` |
|
|
54
|
+
| React/Next | Jest | `npx jest` |
|
|
55
|
+
| Python | pytest | `python -m pytest` |
|
|
56
|
+
| E2E | Playwright | `npx playwright test` |
|