@aria_asi/cli 0.2.39 → 0.2.41
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/bin/aria.js +236 -34
- package/dist/aria-connector/src/action-ledger-core.d.ts +387 -0
- package/dist/aria-connector/src/action-ledger-core.d.ts.map +1 -0
- package/dist/aria-connector/src/action-ledger-core.js +638 -0
- package/dist/aria-connector/src/action-ledger-core.js.map +1 -0
- package/dist/aria-connector/src/chat.d.ts.map +1 -1
- package/dist/aria-connector/src/chat.js +5 -6
- package/dist/aria-connector/src/chat.js.map +1 -1
- package/dist/aria-connector/src/codebase-scanner.d.ts +1 -1
- package/dist/aria-connector/src/codebase-scanner.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/claude-code.d.ts +1 -0
- package/dist/aria-connector/src/connectors/claude-code.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/claude-code.js +152 -14
- package/dist/aria-connector/src/connectors/claude-code.js.map +1 -1
- package/dist/aria-connector/src/connectors/codebase-awareness.d.ts +10 -0
- package/dist/aria-connector/src/connectors/codebase-awareness.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/codebase-awareness.js +276 -27
- package/dist/aria-connector/src/connectors/codebase-awareness.js.map +1 -1
- package/dist/aria-connector/src/connectors/codex.d.ts +3 -1
- package/dist/aria-connector/src/connectors/codex.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/codex.js +1271 -40
- package/dist/aria-connector/src/connectors/codex.js.map +1 -1
- package/dist/aria-connector/src/connectors/cursor.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/cursor.js +7 -0
- package/dist/aria-connector/src/connectors/cursor.js.map +1 -1
- package/dist/aria-connector/src/connectors/governed-adapter.d.ts +30 -0
- package/dist/aria-connector/src/connectors/governed-adapter.d.ts.map +1 -0
- package/dist/aria-connector/src/connectors/governed-adapter.js +132 -0
- package/dist/aria-connector/src/connectors/governed-adapter.js.map +1 -0
- package/dist/aria-connector/src/connectors/opencode.d.ts +3 -1
- package/dist/aria-connector/src/connectors/opencode.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/opencode.js +18 -2
- package/dist/aria-connector/src/connectors/opencode.js.map +1 -1
- package/dist/aria-connector/src/connectors/repo-guard.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/repo-guard.js +25 -14
- package/dist/aria-connector/src/connectors/repo-guard.js.map +1 -1
- package/dist/aria-connector/src/connectors/runtime.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/runtime.js +92 -2
- package/dist/aria-connector/src/connectors/runtime.js.map +1 -1
- package/dist/aria-connector/src/connectors/shell.d.ts.map +1 -1
- package/dist/aria-connector/src/connectors/shell.js +123 -7
- package/dist/aria-connector/src/connectors/shell.js.map +1 -1
- package/dist/aria-connector/src/cross-cli-hive-binding.d.ts +63 -0
- package/dist/aria-connector/src/cross-cli-hive-binding.d.ts.map +1 -0
- package/dist/aria-connector/src/cross-cli-hive-binding.js +205 -0
- package/dist/aria-connector/src/cross-cli-hive-binding.js.map +1 -0
- package/dist/aria-connector/src/garden-control-plane.d.ts +6 -1
- package/dist/aria-connector/src/garden-control-plane.d.ts.map +1 -1
- package/dist/aria-connector/src/garden-control-plane.js +8 -2
- package/dist/aria-connector/src/garden-control-plane.js.map +1 -1
- package/dist/aria-connector/src/governed-surface-runner.d.ts +189 -0
- package/dist/aria-connector/src/governed-surface-runner.d.ts.map +1 -0
- package/dist/aria-connector/src/governed-surface-runner.js +1022 -0
- package/dist/aria-connector/src/governed-surface-runner.js.map +1 -0
- package/dist/aria-connector/src/index.d.ts +10 -1
- package/dist/aria-connector/src/index.d.ts.map +1 -1
- package/dist/aria-connector/src/index.js +5 -0
- package/dist/aria-connector/src/index.js.map +1 -1
- package/dist/aria-connector/src/task-runner.d.ts +3 -0
- package/dist/aria-connector/src/task-runner.d.ts.map +1 -0
- package/dist/aria-connector/src/task-runner.js +3526 -0
- package/dist/aria-connector/src/task-runner.js.map +1 -0
- package/dist/aria-web/src/lib/codebase-scanner.d.ts +21 -2
- package/dist/aria-web/src/lib/codebase-scanner.d.ts.map +1 -1
- package/dist/aria-web/src/lib/codebase-scanner.js +59 -14
- package/dist/aria-web/src/lib/codebase-scanner.js.map +1 -1
- package/dist/assets/hooks/README.md +58 -0
- package/dist/assets/hooks/aria-agent-handoff.mjs +147 -2
- package/dist/assets/hooks/aria-agent-ledger-merge.mjs +31 -7
- package/dist/assets/hooks/aria-architect-fallback.mjs +10 -2
- package/dist/assets/hooks/aria-claim-evidence-stop-gate.mjs +240 -0
- package/dist/assets/hooks/aria-cognition-substrate-binding.mjs +84 -10
- package/dist/assets/hooks/aria-first-class-coach.mjs +305 -10
- package/dist/assets/hooks/aria-harness-via-sdk.mjs +93 -16
- package/dist/assets/hooks/aria-import-resolution-gate.mjs +106 -20
- package/dist/assets/hooks/aria-outcome-record.mjs +56 -20
- package/dist/assets/hooks/aria-pre-emit-autoload.mjs +1809 -0
- package/dist/assets/hooks/aria-pre-emit-autoload.mjs.before-orchestration-redesign +1400 -0
- package/dist/assets/hooks/aria-pre-emit-dryrun.mjs +22 -3
- package/dist/assets/hooks/aria-pre-text-gate.mjs +11 -2
- package/dist/assets/hooks/aria-pre-tool-gate.mjs +516 -92
- package/dist/assets/hooks/aria-pre-tool-use.mjs +70 -6
- package/dist/assets/hooks/aria-preprompt-consult.mjs +23 -4
- package/dist/assets/hooks/aria-repo-doctrine-gate.mjs +29 -3
- package/dist/assets/hooks/aria-stop-gate.mjs +585 -76
- package/dist/assets/hooks/aria-trigger-autolearn.mjs +17 -3
- package/dist/assets/hooks/aria-universal-turn-packet.mjs +1165 -0
- package/dist/assets/hooks/aria-userprompt-abandon-detect.mjs +9 -1
- package/dist/assets/hooks/canonical-settings-block.json +172 -0
- package/dist/assets/hooks/codex-native/aria-harness-ticker-sidecar.mjs +92 -0
- package/dist/assets/hooks/codex-native/aria-hive-wal-consumer.mjs +86 -0
- package/dist/assets/hooks/codex-native/aria-live-ticker.mjs +38 -0
- package/dist/assets/hooks/codex-native/aria-post-tool-use.mjs +236 -0
- package/dist/assets/hooks/codex-native/aria-pre-tool-use.mjs +362 -0
- package/dist/assets/hooks/codex-native/aria-stop.mjs +691 -0
- package/dist/assets/hooks/codex-native/aria-userprompt-submit.mjs +623 -0
- package/dist/assets/hooks/codex-native/atlas-session-context.mjs +121 -0
- package/dist/assets/hooks/codex-native/lib/evaluate-with-kernel.mjs +257 -0
- package/dist/assets/hooks/codex-native/lib/hive-wal-consumer.mjs +452 -0
- package/dist/assets/hooks/codex-native/lib/kernel/deterministic-cognitive-kernel.mjs +914 -0
- package/dist/assets/hooks/codex-native/lib/project-boundary-cognition.mjs +143 -0
- package/dist/assets/hooks/codex-native/lib/runtime-client.mjs +3567 -0
- package/dist/assets/hooks/codex-native/lib/task-project-ledger.mjs +294 -0
- package/dist/assets/hooks/doctrine_trigger_map.json +236 -25
- package/dist/assets/hooks/doctrine_trigger_map.schema.json +46 -0
- package/dist/assets/hooks/install.sh +84 -0
- package/dist/assets/hooks/lib/action-ledger-core.mjs +269 -0
- package/dist/assets/hooks/lib/aria-gate-ledger.mjs +143 -0
- package/dist/assets/hooks/lib/ast-stub-shape-detector.mjs +107 -0
- package/dist/assets/hooks/lib/atlas-dossier-client.mjs +151 -0
- package/dist/assets/hooks/lib/atlas-orchestrator-postwire.mjs +221 -0
- package/dist/assets/hooks/lib/canonical-lenses.mjs +83 -6
- package/dist/assets/hooks/lib/coach-intent-classifier.mjs +248 -0
- package/dist/assets/hooks/lib/cognitive-block-parser.mjs +111 -0
- package/dist/assets/hooks/lib/doctrine-trigger-map-loader.mjs +137 -0
- package/dist/assets/hooks/lib/domain-output-quality.mjs +132 -3
- package/dist/assets/hooks/lib/empty-catch-scanner.mjs +91 -0
- package/dist/assets/hooks/lib/end-phase-qa-autofire.mjs +426 -0
- package/dist/assets/hooks/lib/evaluate-with-kernel.mjs +133 -0
- package/dist/assets/hooks/lib/first-class-coach.mjs +454 -19
- package/dist/assets/hooks/lib/gate-audit.mjs +12 -2
- package/dist/assets/hooks/lib/gate-loop-state.mjs +11 -2
- package/dist/assets/hooks/lib/goal-contract-quality.mjs +302 -0
- package/dist/assets/hooks/lib/hook-message-window.mjs +101 -9
- package/dist/assets/hooks/lib/invocation-required-verifier.mjs +184 -0
- package/dist/assets/hooks/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/dist/assets/hooks/lib/obligation-ledger.mjs +147 -0
- package/dist/assets/hooks/lib/orchestration-manifest-extract.mjs +217 -0
- package/dist/assets/hooks/lib/owner-authorizations.mjs +269 -0
- package/dist/assets/hooks/lib/probe-discipline-scanner.mjs +142 -0
- package/dist/assets/hooks/lib/project-boundary-cognition.mjs +143 -0
- package/dist/assets/hooks/lib/recovery-context.mjs +151 -0
- package/dist/assets/hooks/lib/recovery-template-loader.mjs +154 -0
- package/dist/assets/hooks/lib/self-doctrine-check.mjs +321 -0
- package/dist/assets/hooks/lib/sensitive-shape-detector.mjs +64 -0
- package/dist/assets/hooks/lib/skill-autoload-gate-impl.mjs +226 -1
- package/dist/assets/hooks/lib/stop-hook-protocol.mjs +166 -0
- package/dist/assets/hooks/lib/surface-caught.mjs +94 -0
- package/dist/assets/hooks/recovery-templates/force-reauthor.md +67 -0
- package/dist/assets/hooks/recovery-templates/handoff-recovery.md +25 -0
- package/dist/assets/hooks/scripts/check-hard-risk-prefix.mjs +99 -0
- package/dist/assets/hooks/skills/aria-conversational-doctrine-discipline/SKILL.md +101 -0
- package/dist/assets/hooks/test-aria-preturn-memory-gate.mjs +2 -2
- package/dist/assets/hooks/test-tier-lens-labeling.mjs +14 -3
- package/dist/assets/opencode-plugins/harness-context/index.js +39 -6
- package/dist/assets/opencode-plugins/harness-context/task-project-ledger.mjs +5 -1
- package/dist/assets/opencode-plugins/harness-gate/index.js +36 -0
- package/dist/assets/opencode-plugins/harness-gate/lib/atlas-dossier-client.js +1 -0
- package/dist/assets/opencode-plugins/harness-gate/lib/recovery-grants.js +79 -0
- package/dist/assets/opencode-plugins/harness-outcome/index.js +12 -0
- package/dist/assets/opencode-plugins/harness-stop/index.js +97 -2
- package/dist/assets/opencode-plugins/harness-stop/lib/atlas-dossier-client.js +1 -0
- package/dist/assets/opencode-plugins/harness-stop/lib/domain-output-quality.js +15 -2
- package/dist/assets/opencode-plugins/lib/coach.js +148 -0
- package/dist/runtime/coach-kernel.mjs +144 -7
- package/dist/runtime/codex-bridge.mjs +254 -8
- package/dist/runtime/discipline/doctrine_trigger_map.json +236 -25
- package/dist/runtime/discipline/skills/aria-cognition/34-frameworks-unified/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-cognitives/SKILL.md +128 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-intra-phase/SKILL.md +99 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-post-phase/SKILL.md +118 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-aristotle-pre-phase/SKILL.md +117 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-axioms-first-principles/SKILL.md +202 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-axioms-first-principles/agents/openai.yaml +4 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-axioms-first-principles/references/source-map.md +130 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-backend-architect/SKILL.md +124 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-backend-architect/references/backend-cookbook.md +417 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-audit/SKILL.md +133 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-audit/references/audit-cookbook.md +247 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-frame/SKILL.md +138 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-business-frame/references/business-cookbook.md +154 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-chat/SKILL.md +84 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-chat/scripts/aria-chat.sh +57 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-cognition-autofire/SKILL.md +137 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-cognition-batch/SKILL.md +264 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-decision-mizan/SKILL.md +136 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-decision-mizan/references/decision-frameworks.md +287 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-first-class-operating-contract/SKILL.md +104 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-frontend-architect/SKILL.md +123 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-frontend-architect/references/frontend-cookbook.md +358 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-fullstack-orchestrator/SKILL.md +127 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-fullstack-orchestrator/references/fullstack-cookbook.md +383 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-gtm-architect/SKILL.md +126 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-gtm-architect/references/gtm-cookbook.md +235 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-deploy/SKILL.md +145 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-no-stripping/SKILL.md +135 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-onboarding/SKILL.md +130 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-output-discipline/SKILL.md +120 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-harness-substrate-binding/SKILL.md +139 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-http-harness-client/SKILL.md +85 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-http-harness-client/scripts/smoke.mjs +47 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-k8s-deploy/SKILL.md +174 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-k8s-deploy/agents/openai.yaml +3 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ladduniframe/SKILL.md +60 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ledger-fleet-execution/SKILL.md +126 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-live-ops/SKILL.md +54 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-mac-ssh-ops/SKILL.md +100 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-memory-index/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-noor-cognitives/SKILL.md +120 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ops/SKILL.md +60 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-ops/references/live-endpoints.md +59 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-quality-audit/SKILL.md +133 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-readable-output/SKILL.md +239 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-readable-output/references/layout-cookbook.md +366 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-reasoning/SKILL.md +67 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-reasoning/references/core-principles.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-repo-audit/SKILL.md +135 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-repo-audit/references/repo-audit-cookbook.md +375 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-research-orchestrator/SKILL.md +138 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-research-orchestrator/references/research-patterns.md +270 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-retention-engine/SKILL.md +120 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-retention-engine/references/retention-cookbook.md +271 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-revenue-engine/SKILL.md +128 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-revenue-engine/references/revenue-cookbook.md +227 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-audit/SKILL.md +233 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-audit/references/audit-checklist.md +369 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-cookbook/SKILL.md +288 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-senior-code-cookbook/references/engineering-cookbook.md +489 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-soul-principles/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/aria-task-codex-executor/SKILL.md +86 -0
- package/dist/runtime/discipline/skills/aria-cognition/aristotle-engine/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/cross-domain-24/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/deepsoul-emotional/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/fitrah-guard/SKILL.md +78 -0
- package/dist/runtime/discipline/skills/aria-cognition/ghazali-8lens/SKILL.md +227 -29
- package/dist/runtime/discipline/skills/aria-cognition/ghazali-8lens/references/ghazali-8lens-cookbook.md +797 -0
- package/dist/runtime/discipline/skills/aria-cognition/ijtihad-novel/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/ilham-intuition/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/never-guess/SKILL.md +77 -0
- package/dist/runtime/discipline/skills/aria-cognition/noor-recognition/SKILL.md +45 -0
- package/dist/runtime/discipline/skills/aria-cognition/qiyas-analogy/SKILL.md +174 -14
- package/dist/runtime/discipline/skills/aria-cognition/ruh-basis/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/tadabbur/SKILL.md +506 -0
- package/dist/runtime/discipline/skills/aria-cognition/tadabbur/references/tadabbur-cookbook.md +921 -0
- package/dist/runtime/discipline/skills/aria-cognition/tadabbur-ops/SKILL.md +42 -0
- package/dist/runtime/discipline/skills/aria-cognition/tafakkur/SKILL.md +104 -0
- package/dist/runtime/doctrine_trigger_map.json +236 -25
- package/dist/runtime/embedded-public-key.mjs +27 -0
- package/dist/runtime/gated-ledger.mjs +41 -14
- package/dist/runtime/harness-daemon.mjs +85 -10
- package/dist/runtime/hive-wal-publisher.mjs +292 -0
- package/dist/runtime/hooks/README.md +58 -0
- package/dist/runtime/hooks/aria-agent-handoff.mjs +147 -2
- package/dist/runtime/hooks/aria-agent-ledger-merge.mjs +31 -7
- package/dist/runtime/hooks/aria-architect-fallback.mjs +10 -2
- package/dist/runtime/hooks/aria-claim-evidence-stop-gate.mjs +240 -0
- package/dist/runtime/hooks/aria-cognition-substrate-binding.mjs +84 -10
- package/dist/runtime/hooks/aria-first-class-coach.mjs +305 -10
- package/dist/runtime/hooks/aria-harness-via-sdk.mjs +93 -16
- package/dist/runtime/hooks/aria-import-resolution-gate.mjs +106 -20
- package/dist/runtime/hooks/aria-outcome-record.mjs +56 -20
- package/dist/runtime/hooks/aria-pre-emit-autoload.mjs +1809 -0
- package/dist/runtime/hooks/aria-pre-emit-autoload.mjs.before-orchestration-redesign +1400 -0
- package/dist/runtime/hooks/aria-pre-emit-dryrun.mjs +22 -3
- package/dist/runtime/hooks/aria-pre-text-gate.mjs +11 -2
- package/dist/runtime/hooks/aria-pre-tool-gate.mjs +516 -92
- package/dist/runtime/hooks/aria-pre-tool-use.mjs +70 -6
- package/dist/runtime/hooks/aria-preprompt-consult.mjs +23 -4
- package/dist/runtime/hooks/aria-repo-doctrine-gate.mjs +29 -3
- package/dist/runtime/hooks/aria-stop-gate.mjs +585 -76
- package/dist/runtime/hooks/aria-trigger-autolearn.mjs +17 -3
- package/dist/runtime/hooks/aria-universal-turn-packet.mjs +1165 -0
- package/dist/runtime/hooks/aria-userprompt-abandon-detect.mjs +9 -1
- package/dist/runtime/hooks/canonical-settings-block.json +172 -0
- package/dist/runtime/hooks/codex-native/aria-harness-ticker-sidecar.mjs +92 -0
- package/dist/runtime/hooks/codex-native/aria-hive-wal-consumer.mjs +86 -0
- package/dist/runtime/hooks/codex-native/aria-live-ticker.mjs +38 -0
- package/dist/runtime/hooks/codex-native/aria-post-tool-use.mjs +236 -0
- package/dist/runtime/hooks/codex-native/aria-pre-tool-use.mjs +362 -0
- package/dist/runtime/hooks/codex-native/aria-stop.mjs +691 -0
- package/dist/runtime/hooks/codex-native/aria-userprompt-submit.mjs +623 -0
- package/dist/runtime/hooks/codex-native/atlas-session-context.mjs +121 -0
- package/dist/runtime/hooks/codex-native/lib/evaluate-with-kernel.mjs +257 -0
- package/dist/runtime/hooks/codex-native/lib/hive-wal-consumer.mjs +452 -0
- package/dist/runtime/hooks/codex-native/lib/kernel/deterministic-cognitive-kernel.mjs +914 -0
- package/dist/runtime/hooks/codex-native/lib/project-boundary-cognition.mjs +143 -0
- package/dist/runtime/hooks/codex-native/lib/runtime-client.mjs +3567 -0
- package/dist/runtime/hooks/codex-native/lib/task-project-ledger.mjs +294 -0
- package/dist/runtime/hooks/doctrine_trigger_map.json +236 -25
- package/dist/runtime/hooks/doctrine_trigger_map.schema.json +46 -0
- package/dist/runtime/hooks/install.sh +84 -0
- package/dist/runtime/hooks/lib/action-ledger-core.mjs +269 -0
- package/dist/runtime/hooks/lib/aria-gate-ledger.mjs +143 -0
- package/dist/runtime/hooks/lib/ast-stub-shape-detector.mjs +107 -0
- package/dist/runtime/hooks/lib/atlas-dossier-client.mjs +151 -0
- package/dist/runtime/hooks/lib/atlas-orchestrator-postwire.mjs +221 -0
- package/dist/runtime/hooks/lib/canonical-lenses.mjs +83 -6
- package/dist/runtime/hooks/lib/coach-intent-classifier.mjs +248 -0
- package/dist/runtime/hooks/lib/cognitive-block-parser.mjs +111 -0
- package/dist/runtime/hooks/lib/doctrine-trigger-map-loader.mjs +137 -0
- package/dist/runtime/hooks/lib/domain-output-quality.mjs +132 -3
- package/dist/runtime/hooks/lib/empty-catch-scanner.mjs +91 -0
- package/dist/runtime/hooks/lib/end-phase-qa-autofire.mjs +426 -0
- package/dist/runtime/hooks/lib/evaluate-with-kernel.mjs +133 -0
- package/dist/runtime/hooks/lib/first-class-coach.mjs +454 -19
- package/dist/runtime/hooks/lib/gate-audit.mjs +12 -2
- package/dist/runtime/hooks/lib/gate-loop-state.mjs +11 -2
- package/dist/runtime/hooks/lib/goal-contract-quality.mjs +302 -0
- package/dist/runtime/hooks/lib/hook-message-window.mjs +101 -9
- package/dist/runtime/hooks/lib/invocation-required-verifier.mjs +184 -0
- package/dist/runtime/hooks/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/dist/runtime/hooks/lib/obligation-ledger.mjs +147 -0
- package/dist/runtime/hooks/lib/orchestration-manifest-extract.mjs +217 -0
- package/dist/runtime/hooks/lib/owner-authorizations.mjs +269 -0
- package/dist/runtime/hooks/lib/probe-discipline-scanner.mjs +142 -0
- package/dist/runtime/hooks/lib/project-boundary-cognition.mjs +143 -0
- package/dist/runtime/hooks/lib/recovery-context.mjs +151 -0
- package/dist/runtime/hooks/lib/recovery-template-loader.mjs +154 -0
- package/dist/runtime/hooks/lib/self-doctrine-check.mjs +321 -0
- package/dist/runtime/hooks/lib/sensitive-shape-detector.mjs +64 -0
- package/dist/runtime/hooks/lib/skill-autoload-gate-impl.mjs +226 -1
- package/dist/runtime/hooks/lib/stop-hook-protocol.mjs +166 -0
- package/dist/runtime/hooks/lib/surface-caught.mjs +94 -0
- package/dist/runtime/hooks/recovery-templates/force-reauthor.md +67 -0
- package/dist/runtime/hooks/recovery-templates/handoff-recovery.md +25 -0
- package/dist/runtime/hooks/scripts/check-hard-risk-prefix.mjs +99 -0
- package/dist/runtime/hooks/skills/aria-conversational-doctrine-discipline/SKILL.md +101 -0
- package/dist/runtime/hooks/test-aria-preturn-memory-gate.mjs +2 -2
- package/dist/runtime/hooks/test-tier-lens-labeling.mjs +14 -3
- package/dist/runtime/lib/evaluate-with-kernel.mjs +133 -0
- package/dist/runtime/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/dist/runtime/local-phase.mjs +10 -5
- package/dist/runtime/manifest.json +8 -8
- package/dist/runtime/packet-verifier.mjs +166 -0
- package/dist/runtime/provider-proxy.mjs +13 -0
- package/dist/runtime/quality-enforcer.mjs +40 -23
- package/dist/runtime/runtime-rails/registry.mjs +252 -0
- package/dist/runtime/sdk/BUNDLED.json +2 -2
- package/dist/runtime/sdk/index.d.ts +119 -4
- package/dist/runtime/sdk/index.js +138 -12
- package/dist/runtime/sdk/index.js.map +1 -1
- package/dist/runtime/service.mjs +8036 -764
- package/dist/runtime/sub-agent-enforcer.mjs +201 -0
- package/dist/runtime/task-project-ledger.mjs +5 -1
- package/dist/sdk/BUNDLED.json +2 -2
- package/dist/sdk/index.d.ts +119 -4
- package/dist/sdk/index.js +138 -12
- package/dist/sdk/index.js.map +1 -1
- package/hooks/README.md +58 -0
- package/hooks/aria-agent-handoff.mjs +147 -2
- package/hooks/aria-agent-ledger-merge.mjs +31 -7
- package/hooks/aria-architect-fallback.mjs +10 -2
- package/hooks/aria-claim-evidence-stop-gate.mjs +240 -0
- package/hooks/aria-cognition-substrate-binding.mjs +84 -10
- package/hooks/aria-first-class-coach.mjs +305 -10
- package/hooks/aria-harness-via-sdk.mjs +93 -16
- package/hooks/aria-import-resolution-gate.mjs +106 -20
- package/hooks/aria-outcome-record.mjs +56 -20
- package/hooks/aria-pre-emit-autoload.mjs +1809 -0
- package/hooks/aria-pre-emit-autoload.mjs.before-orchestration-redesign +1400 -0
- package/hooks/aria-pre-emit-dryrun.mjs +22 -3
- package/hooks/aria-pre-text-gate.mjs +11 -2
- package/hooks/aria-pre-tool-gate.mjs +516 -92
- package/hooks/aria-pre-tool-use.mjs +70 -6
- package/hooks/aria-preprompt-consult.mjs +23 -4
- package/hooks/aria-repo-doctrine-gate.mjs +29 -3
- package/hooks/aria-stop-gate.mjs +585 -76
- package/hooks/aria-trigger-autolearn.mjs +17 -3
- package/hooks/aria-universal-turn-packet.mjs +1165 -0
- package/hooks/aria-userprompt-abandon-detect.mjs +9 -1
- package/hooks/canonical-settings-block.json +172 -0
- package/hooks/codex-native/aria-harness-ticker-sidecar.mjs +92 -0
- package/hooks/codex-native/aria-hive-wal-consumer.mjs +86 -0
- package/hooks/codex-native/aria-live-ticker.mjs +38 -0
- package/hooks/codex-native/aria-post-tool-use.mjs +236 -0
- package/hooks/codex-native/aria-pre-tool-use.mjs +362 -0
- package/hooks/codex-native/aria-stop.mjs +691 -0
- package/hooks/codex-native/aria-userprompt-submit.mjs +623 -0
- package/hooks/codex-native/atlas-session-context.mjs +121 -0
- package/hooks/codex-native/lib/evaluate-with-kernel.mjs +257 -0
- package/hooks/codex-native/lib/hive-wal-consumer.mjs +452 -0
- package/hooks/codex-native/lib/kernel/deterministic-cognitive-kernel.mjs +914 -0
- package/hooks/codex-native/lib/project-boundary-cognition.mjs +143 -0
- package/hooks/codex-native/lib/runtime-client.mjs +3567 -0
- package/hooks/codex-native/lib/task-project-ledger.mjs +294 -0
- package/hooks/doctrine_trigger_map.json +236 -25
- package/hooks/doctrine_trigger_map.schema.json +46 -0
- package/hooks/install.sh +84 -0
- package/hooks/lib/action-ledger-core.mjs +269 -0
- package/hooks/lib/aria-gate-ledger.mjs +143 -0
- package/hooks/lib/ast-stub-shape-detector.mjs +107 -0
- package/hooks/lib/atlas-dossier-client.mjs +151 -0
- package/hooks/lib/atlas-orchestrator-postwire.mjs +221 -0
- package/hooks/lib/canonical-lenses.mjs +83 -6
- package/hooks/lib/coach-intent-classifier.mjs +248 -0
- package/hooks/lib/cognitive-block-parser.mjs +111 -0
- package/hooks/lib/doctrine-trigger-map-loader.mjs +137 -0
- package/hooks/lib/domain-output-quality.mjs +132 -3
- package/hooks/lib/empty-catch-scanner.mjs +91 -0
- package/hooks/lib/end-phase-qa-autofire.mjs +426 -0
- package/hooks/lib/evaluate-with-kernel.mjs +133 -0
- package/hooks/lib/first-class-coach.mjs +454 -19
- package/hooks/lib/gate-audit.mjs +12 -2
- package/hooks/lib/gate-loop-state.mjs +11 -2
- package/hooks/lib/goal-contract-quality.mjs +302 -0
- package/hooks/lib/hook-message-window.mjs +101 -9
- package/hooks/lib/invocation-required-verifier.mjs +184 -0
- package/hooks/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/hooks/lib/obligation-ledger.mjs +147 -0
- package/hooks/lib/orchestration-manifest-extract.mjs +217 -0
- package/hooks/lib/owner-authorizations.mjs +269 -0
- package/hooks/lib/probe-discipline-scanner.mjs +142 -0
- package/hooks/lib/project-boundary-cognition.mjs +143 -0
- package/hooks/lib/recovery-context.mjs +151 -0
- package/hooks/lib/recovery-template-loader.mjs +154 -0
- package/hooks/lib/self-doctrine-check.mjs +321 -0
- package/hooks/lib/sensitive-shape-detector.mjs +64 -0
- package/hooks/lib/skill-autoload-gate-impl.mjs +226 -1
- package/hooks/lib/stop-hook-protocol.mjs +166 -0
- package/hooks/lib/surface-caught.mjs +94 -0
- package/hooks/recovery-templates/force-reauthor.md +67 -0
- package/hooks/recovery-templates/handoff-recovery.md +25 -0
- package/hooks/scripts/check-hard-risk-prefix.mjs +99 -0
- package/hooks/skills/aria-conversational-doctrine-discipline/SKILL.md +101 -0
- package/hooks/test-aria-preturn-memory-gate.mjs +2 -2
- package/hooks/test-tier-lens-labeling.mjs +14 -3
- package/opencode-plugins/harness-context/index.js +39 -6
- package/opencode-plugins/harness-context/task-project-ledger.mjs +5 -1
- package/opencode-plugins/harness-gate/index.js +36 -0
- package/opencode-plugins/harness-gate/lib/atlas-dossier-client.js +1 -0
- package/opencode-plugins/harness-gate/lib/recovery-grants.js +79 -0
- package/opencode-plugins/harness-outcome/index.js +12 -0
- package/opencode-plugins/harness-stop/index.js +97 -2
- package/opencode-plugins/harness-stop/lib/atlas-dossier-client.js +1 -0
- package/opencode-plugins/harness-stop/lib/domain-output-quality.js +15 -2
- package/opencode-plugins/lib/coach.js +148 -0
- package/package.json +71 -5
- package/runtime-src/coach-kernel.mjs +144 -7
- package/runtime-src/codex-bridge.mjs +254 -8
- package/runtime-src/embedded-public-key.mjs +27 -0
- package/runtime-src/gated-ledger.mjs +41 -14
- package/runtime-src/harness-daemon.mjs +85 -10
- package/runtime-src/hive-wal-publisher.mjs +292 -0
- package/runtime-src/lib/evaluate-with-kernel.mjs +133 -0
- package/runtime-src/lib/kernel/deterministic-cognitive-kernel.mjs +906 -0
- package/runtime-src/local-phase.mjs +10 -5
- package/runtime-src/packet-verifier.mjs +166 -0
- package/runtime-src/provider-proxy.mjs +13 -0
- package/runtime-src/quality-enforcer.mjs +40 -23
- package/runtime-src/runtime-rails/registry.mjs +252 -0
- package/runtime-src/service.mjs +8036 -764
- package/runtime-src/sub-agent-enforcer.mjs +201 -0
- package/scripts/aria-ledger-append.mjs +337 -0
- package/scripts/aria-task-cheap-worker-dispatch.mjs +234 -0
- package/scripts/audit-of-audit-prior-tasks.mjs +194 -0
- package/scripts/audit-of-audit-this-turn.mjs +116 -0
- package/scripts/bundle-sdk.mjs +31 -5
- package/scripts/check-cli-wrapper-provider-contract.mjs +160 -0
- package/scripts/check-client-compatibility.mjs +15 -5
- package/scripts/check-client-smoke.mjs +297 -0
- package/scripts/check-codex-orchestrator-adoption.mjs +150 -0
- package/scripts/check-glm-env-wired.mjs +131 -0
- package/scripts/check-hive-local-storage-contract.mjs +91 -0
- package/scripts/check-hook-mirror.mjs +150 -0
- package/scripts/check-install-sh-drift.mjs +152 -0
- package/scripts/check-kernel-sync.mjs +101 -0
- package/scripts/check-package-artifact.mjs +152 -0
- package/scripts/check-registry-mirror.mjs +71 -0
- package/scripts/drain-owner-airtable-sync-queue.mjs +287 -0
- package/scripts/export-owner-status-sheets.mjs +589 -0
- package/scripts/live-sidecar-receipt-canary.mjs +347 -0
- package/scripts/qiyas-tadabbur-model-matrix.mjs +970 -0
- package/scripts/quality-ab-live-provider.mjs +913 -0
- package/scripts/self-test-action-ledger-core.mjs +190 -0
- package/scripts/self-test-approval-receipt-binding.mjs +122 -0
- package/scripts/self-test-autofire-quality-output.mjs +110 -0
- package/scripts/self-test-claude-code-action-ledger.mjs +132 -0
- package/scripts/self-test-claude-code-mechanical-autofire-hive.mjs +138 -0
- package/scripts/self-test-claude-code-mechanical-autofire.mjs +234 -0
- package/scripts/self-test-codebase-awareness-atlas-delta.mjs +159 -0
- package/scripts/self-test-codebase-awareness-delta-ingest.mjs +179 -0
- package/scripts/self-test-codex-live-hook-parity.mjs +84 -0
- package/scripts/self-test-codex-native-action-ledger.mjs +167 -0
- package/scripts/self-test-codex-native-hook-json-contract.mjs +74 -0
- package/scripts/self-test-codex-orchestrator-continuity.mjs +113 -0
- package/scripts/self-test-codex-readable-recovery.mjs +94 -0
- package/scripts/self-test-codex-self-harness.mjs +538 -0
- package/scripts/self-test-compiled-workunit.mjs +214 -0
- package/scripts/self-test-continuation-output-smoke.mjs +101 -0
- package/scripts/self-test-cross-cli-fleet-ticker.mjs +85 -0
- package/scripts/self-test-cross-cli-hive-adoption.mjs +125 -0
- package/scripts/self-test-cross-cli-hive-learning.mjs +146 -0
- package/scripts/self-test-cross-phase-tool-failure.mjs +110 -0
- package/scripts/self-test-cross-surface-action-ledger.mjs +149 -0
- package/scripts/self-test-end-of-phase-qa-court.mjs +616 -0
- package/scripts/self-test-evaluate-with-kernel.mjs +111 -0
- package/scripts/self-test-first-class-output-delta-proof.mjs +307 -0
- package/scripts/self-test-goal-contract-output-qa.mjs +73 -0
- package/scripts/self-test-goal-contract.mjs +35 -0
- package/scripts/self-test-governed-adapters.mjs +105 -0
- package/scripts/self-test-governed-surface-runner.mjs +198 -0
- package/scripts/self-test-harness-gates.mjs +15 -12
- package/scripts/self-test-harness-ticker-sidecar.mjs +153 -0
- package/scripts/self-test-hive-org-kernel.mjs +233 -0
- package/scripts/self-test-hive-session-coordination.mjs +156 -0
- package/scripts/self-test-hive-wal-consumer.mjs +111 -0
- package/scripts/self-test-kernel-a3-a4-selection.mjs +179 -0
- package/scripts/self-test-ledger-append.mjs +175 -0
- package/scripts/self-test-live-codex-posttool-packet-smoke.mjs +111 -0
- package/scripts/self-test-live-codex-pretool-packet-smoke.mjs +101 -0
- package/scripts/self-test-live-codex-stop-qa-kernel-smoke.mjs +43 -0
- package/scripts/self-test-live-wrapper-substrate-inventory.mjs +149 -0
- package/scripts/self-test-local-main-sync-script.mjs +47 -0
- package/scripts/self-test-mechanical-autofire-resolver.mjs +296 -0
- package/scripts/self-test-no-consult-cognitive-skills-output.mjs +135 -0
- package/scripts/self-test-owner-airtable-sync-queue.mjs +196 -0
- package/scripts/self-test-owner-airtable-sync.mjs +181 -0
- package/scripts/self-test-owner-sheets-action-ledger.mjs +100 -0
- package/scripts/self-test-production-preflight.mjs +78 -0
- package/scripts/self-test-project-boundary-cognition.mjs +79 -0
- package/scripts/self-test-qa-exec-kernel.mjs +34 -0
- package/scripts/self-test-qa-recovery-learning-loop.mjs +113 -0
- package/scripts/self-test-qiyas-label-alignment.mjs +94 -0
- package/scripts/self-test-recovery-context.mjs +110 -0
- package/scripts/self-test-repo-guard.mjs +10 -0
- package/scripts/self-test-runtime-health-self-heal.mjs +161 -0
- package/scripts/self-test-runtime-postcondition.mjs +70 -0
- package/scripts/self-test-soul-precommit-hook.mjs +39 -0
- package/scripts/self-test-stop-gate-kernel-guards.mjs +185 -0
- package/scripts/self-test-stop-gate.mjs +128 -0
- package/scripts/self-test-substrate-kernel-execution-receipt.mjs +130 -0
- package/scripts/self-test-substrate-open-skill-floor.mjs +87 -0
- package/scripts/self-test-substrate-output-quality-eval.mjs +171 -0
- package/scripts/self-test-task-closeout-drift.mjs +97 -0
- package/scripts/self-test-task-project-ledger-readiness.mjs +43 -0
- package/scripts/self-test-task-runner-phase-consumer.mjs +134 -0
- package/scripts/self-test-task-worker-lane.mjs +256 -0
- package/scripts/self-test-turn-substrate-qa-kernel.mjs +188 -0
- package/scripts/self-test-universal-action-capture.mjs +153 -0
- package/scripts/self-test-universal-turn-packet-entrypoints.mjs +252 -0
- package/scripts/self-test-universal-turn-packet.mjs +320 -0
- package/scripts/session-quality-backfill.mjs +253 -0
- package/scripts/smoke-autofire-100-prompts.mjs +481 -0
- package/scripts/sync-local-main-on-task-complete.mjs +278 -0
- package/scripts/sync-owner-status-airtable.mjs +1158 -0
- package/scripts/validate-skill-prompts.mjs +12 -1
- package/scripts/verify-codex-native-mirror.mjs +262 -0
- package/skills/34-frameworks-unified/SKILL.md +42 -0
- package/skills/api-design/SKILL.md +123 -0
- package/skills/architecture-decision/SKILL.md +105 -0
- package/skills/aria-aristotle-cognitives/SKILL.md +128 -0
- package/skills/aria-aristotle-intra-phase/SKILL.md +99 -0
- package/skills/aria-aristotle-post-phase/SKILL.md +116 -0
- package/skills/aria-aristotle-pre-phase/SKILL.md +117 -0
- package/skills/aria-axioms-first-principles/SKILL.md +202 -0
- package/skills/aria-axioms-first-principles/agents/openai.yaml +4 -0
- package/skills/aria-axioms-first-principles/references/source-map.md +130 -0
- package/skills/aria-chat/SKILL.md +84 -0
- package/skills/aria-chat/scripts/aria-chat.sh +57 -0
- package/skills/aria-cognition/34-frameworks-unified/SKILL.md +42 -0
- package/skills/aria-cognition/aria-aristotle-cognitives/SKILL.md +128 -0
- package/skills/aria-cognition/aria-aristotle-intra-phase/SKILL.md +99 -0
- package/skills/aria-cognition/aria-aristotle-post-phase/SKILL.md +118 -0
- package/skills/aria-cognition/aria-aristotle-pre-phase/SKILL.md +117 -0
- package/skills/aria-cognition/aria-axioms-first-principles/SKILL.md +202 -0
- package/skills/aria-cognition/aria-axioms-first-principles/agents/openai.yaml +4 -0
- package/skills/aria-cognition/aria-axioms-first-principles/references/source-map.md +130 -0
- package/skills/aria-cognition/aria-backend-architect/SKILL.md +124 -0
- package/skills/aria-cognition/aria-backend-architect/references/backend-cookbook.md +417 -0
- package/skills/aria-cognition/aria-business-audit/SKILL.md +133 -0
- package/skills/aria-cognition/aria-business-audit/references/audit-cookbook.md +247 -0
- package/skills/aria-cognition/aria-business-frame/SKILL.md +138 -0
- package/skills/aria-cognition/aria-business-frame/references/business-cookbook.md +154 -0
- package/skills/aria-cognition/aria-chat/SKILL.md +84 -0
- package/skills/aria-cognition/aria-chat/scripts/aria-chat.sh +57 -0
- package/skills/aria-cognition/aria-cognition-autofire/SKILL.md +137 -0
- package/skills/aria-cognition/aria-cognition-batch/SKILL.md +264 -0
- package/skills/aria-cognition/aria-decision-mizan/SKILL.md +136 -0
- package/skills/aria-cognition/aria-decision-mizan/references/decision-frameworks.md +287 -0
- package/skills/aria-cognition/aria-first-class-operating-contract/SKILL.md +104 -0
- package/skills/aria-cognition/aria-frontend-architect/SKILL.md +123 -0
- package/skills/aria-cognition/aria-frontend-architect/references/frontend-cookbook.md +358 -0
- package/skills/aria-cognition/aria-fullstack-orchestrator/SKILL.md +127 -0
- package/skills/aria-cognition/aria-fullstack-orchestrator/references/fullstack-cookbook.md +383 -0
- package/skills/aria-cognition/aria-gtm-architect/SKILL.md +126 -0
- package/skills/aria-cognition/aria-gtm-architect/references/gtm-cookbook.md +235 -0
- package/skills/aria-cognition/aria-harness-deploy/SKILL.md +145 -0
- package/skills/aria-cognition/aria-harness-no-stripping/SKILL.md +135 -0
- package/skills/aria-cognition/aria-harness-onboarding/SKILL.md +130 -0
- package/skills/aria-cognition/aria-harness-output-discipline/SKILL.md +120 -0
- package/skills/aria-cognition/aria-harness-substrate-binding/SKILL.md +139 -0
- package/skills/aria-cognition/aria-http-harness-client/SKILL.md +85 -0
- package/skills/aria-cognition/aria-http-harness-client/scripts/smoke.mjs +47 -0
- package/skills/aria-cognition/aria-k8s-deploy/SKILL.md +174 -0
- package/skills/aria-cognition/aria-k8s-deploy/agents/openai.yaml +3 -0
- package/skills/aria-cognition/aria-ladduniframe/SKILL.md +60 -0
- package/skills/aria-cognition/aria-ledger-fleet-execution/SKILL.md +126 -0
- package/skills/aria-cognition/aria-live-ops/SKILL.md +54 -0
- package/skills/aria-cognition/aria-mac-ssh-ops/SKILL.md +100 -0
- package/skills/aria-cognition/aria-memory-index/SKILL.md +42 -0
- package/skills/aria-cognition/aria-noor-cognitives/SKILL.md +120 -0
- package/skills/aria-cognition/aria-ops/SKILL.md +60 -0
- package/skills/aria-cognition/aria-ops/references/live-endpoints.md +59 -0
- package/skills/aria-cognition/aria-quality-audit/SKILL.md +133 -0
- package/skills/aria-cognition/aria-readable-output/SKILL.md +239 -0
- package/skills/aria-cognition/aria-readable-output/references/layout-cookbook.md +366 -0
- package/skills/aria-cognition/aria-reasoning/SKILL.md +67 -0
- package/skills/aria-cognition/aria-reasoning/references/core-principles.md +42 -0
- package/skills/aria-cognition/aria-repo-audit/SKILL.md +135 -0
- package/skills/aria-cognition/aria-repo-audit/references/repo-audit-cookbook.md +375 -0
- package/skills/aria-cognition/aria-research-orchestrator/SKILL.md +138 -0
- package/skills/aria-cognition/aria-research-orchestrator/references/research-patterns.md +270 -0
- package/skills/aria-cognition/aria-retention-engine/SKILL.md +120 -0
- package/skills/aria-cognition/aria-retention-engine/references/retention-cookbook.md +271 -0
- package/skills/aria-cognition/aria-revenue-engine/SKILL.md +128 -0
- package/skills/aria-cognition/aria-revenue-engine/references/revenue-cookbook.md +227 -0
- package/skills/aria-cognition/aria-senior-code-audit/SKILL.md +233 -0
- package/skills/aria-cognition/aria-senior-code-audit/references/audit-checklist.md +369 -0
- package/skills/aria-cognition/aria-senior-code-cookbook/SKILL.md +288 -0
- package/skills/aria-cognition/aria-senior-code-cookbook/references/engineering-cookbook.md +489 -0
- package/skills/aria-cognition/aria-soul-principles/SKILL.md +42 -0
- package/skills/aria-cognition/aria-task-codex-executor/SKILL.md +86 -0
- package/skills/aria-cognition/aristotle-engine/SKILL.md +42 -0
- package/skills/aria-cognition/cross-domain-24/SKILL.md +42 -0
- package/skills/aria-cognition/deepsoul-emotional/SKILL.md +42 -0
- package/skills/aria-cognition/fitrah-guard/SKILL.md +78 -0
- package/skills/aria-cognition/ghazali-8lens/SKILL.md +227 -29
- package/skills/aria-cognition/ghazali-8lens/references/ghazali-8lens-cookbook.md +797 -0
- package/skills/aria-cognition/ijtihad-novel/SKILL.md +42 -0
- package/skills/aria-cognition/ilham-intuition/SKILL.md +42 -0
- package/skills/aria-cognition/never-guess/SKILL.md +77 -0
- package/skills/aria-cognition/noor-recognition/SKILL.md +45 -0
- package/skills/aria-cognition/qiyas-analogy/SKILL.md +174 -14
- package/skills/aria-cognition/ruh-basis/SKILL.md +42 -0
- package/skills/aria-cognition/tadabbur/SKILL.md +506 -0
- package/skills/aria-cognition/tadabbur/references/tadabbur-cookbook.md +921 -0
- package/skills/aria-cognition/tadabbur-ops/SKILL.md +42 -0
- package/skills/aria-cognition/tafakkur/SKILL.md +104 -0
- package/skills/aria-cognition-autofire/SKILL.md +109 -0
- package/skills/aria-cognition-batch/SKILL.md +264 -0
- package/skills/aria-conversational-doctrine-discipline/SKILL.md +125 -0
- package/skills/aria-essence/SKILL.md +81 -0
- package/skills/aria-essence/references/domain-matrix.md +80 -0
- package/skills/aria-essence/references/evolution-loop.md +30 -0
- package/skills/aria-essence/references/readable-cognition.md +27 -0
- package/skills/aria-first-class-operating-contract/SKILL.md +104 -0
- package/skills/aria-forge-guardrails/SKILL.md +53 -0
- package/skills/aria-forge-guardrails/references/checklist.md +31 -0
- package/skills/aria-harness-deploy/SKILL.md +145 -0
- package/skills/aria-harness-no-stripping/SKILL.md +135 -0
- package/skills/aria-harness-onboarding/SKILL.md +130 -0
- package/skills/aria-harness-output-discipline/SKILL.md +120 -0
- package/skills/aria-harness-substrate-binding/SKILL.md +139 -0
- package/skills/aria-http-harness-client/SKILL.md +85 -0
- package/skills/aria-http-harness-client/scripts/smoke.mjs +47 -0
- package/skills/aria-k8s-deploy/SKILL.md +174 -0
- package/skills/aria-k8s-deploy/agents/openai.yaml +3 -0
- package/skills/aria-ladduniframe/SKILL.md +60 -0
- package/skills/aria-ledger-fleet-execution/SKILL.md +126 -0
- package/skills/aria-live-ops/SKILL.md +54 -0
- package/skills/aria-mac-ssh-ops/SKILL.md +100 -0
- package/skills/aria-memory-index/SKILL.md +42 -0
- package/skills/aria-noor-cognitives/SKILL.md +120 -0
- package/skills/aria-ops/SKILL.md +60 -0
- package/skills/aria-ops/references/live-endpoints.md +59 -0
- package/skills/aria-quality-audit/SKILL.md +133 -0
- package/skills/aria-reasoning/SKILL.md +67 -0
- package/skills/aria-reasoning/references/core-principles.md +42 -0
- package/skills/aria-repo-doctrine/SKILL.md +57 -0
- package/skills/aria-soul-principles/SKILL.md +42 -0
- package/skills/aria-task-codex-executor/SKILL.md +86 -0
- package/skills/aristotle-engine/SKILL.md +42 -0
- package/skills/ci-cd-pipeline/SKILL.md +116 -0
- package/skills/code-review/SKILL.md +131 -0
- package/skills/cross-domain-24/SKILL.md +42 -0
- package/skills/database-design/SKILL.md +124 -0
- package/skills/deepsoul-emotional/SKILL.md +42 -0
- package/skills/deno-kv-raft-pubsub/SKILL.md +561 -0
- package/skills/deno-kv-raft-pubsub/reference/maelstrom-integration.md +393 -0
- package/skills/deno-kv-raft-pubsub/reference/pubsub-api.md +376 -0
- package/skills/deno-kv-raft-pubsub/reference/raft-spec.md +402 -0
- package/skills/deno-kv-raft-pubsub/reference/state-machine.md +182 -0
- package/skills/error-handling/SKILL.md +159 -0
- package/skills/firecrawl/SKILL.md +165 -0
- package/skills/firecrawl/rules/install.md +82 -0
- package/skills/firecrawl/rules/security.md +26 -0
- package/skills/firecrawl-agent/SKILL.md +86 -0
- package/skills/firecrawl-build-interact/SKILL.md +96 -0
- package/skills/firecrawl-build-onboarding/SKILL.md +131 -0
- package/skills/firecrawl-build-onboarding/references/auth-flow.md +39 -0
- package/skills/firecrawl-build-onboarding/references/project-setup.md +20 -0
- package/skills/firecrawl-build-onboarding/references/sdk-installation.md +17 -0
- package/skills/firecrawl-build-scrape/SKILL.md +97 -0
- package/skills/firecrawl-build-search/SKILL.md +97 -0
- package/skills/firecrawl-clone/SKILL.md +419 -0
- package/skills/firecrawl-crawl/SKILL.md +87 -0
- package/skills/firecrawl-download/SKILL.md +98 -0
- package/skills/firecrawl-interact/SKILL.md +112 -0
- package/skills/firecrawl-map/SKILL.md +79 -0
- package/skills/firecrawl-scrape/SKILL.md +97 -0
- package/skills/firecrawl-search/SKILL.md +88 -0
- package/skills/fitrah-guard/SKILL.md +78 -0
- package/skills/forge-quality-rules/SKILL.md +61 -0
- package/skills/ghazali-8lens/SKILL.md +56 -0
- package/skills/ijtihad-novel/SKILL.md +42 -0
- package/skills/ilham-intuition/SKILL.md +42 -0
- package/skills/imagegen/LICENSE.txt +201 -0
- package/skills/imagegen/SKILL.md +374 -0
- package/skills/imagegen/agents/openai.yaml +6 -0
- package/skills/imagegen/assets/imagegen-small.svg +5 -0
- package/skills/imagegen/assets/imagegen.png +0 -0
- package/skills/imagegen/references/cli.md +242 -0
- package/skills/imagegen/references/codex-network.md +33 -0
- package/skills/imagegen/references/image-api.md +90 -0
- package/skills/imagegen/references/prompting.md +118 -0
- package/skills/imagegen/references/sample-prompts.md +433 -0
- package/skills/imagegen/scripts/image_gen.py +995 -0
- package/skills/imagegen/scripts/remove_chroma_key.py +440 -0
- package/skills/istiqra-induction/SKILL.md +44 -0
- package/skills/ladunni-22/SKILL.md +53 -0
- package/skills/mizan/SKILL.md +90 -0
- package/skills/nadia/SKILL.md +56 -0
- package/skills/nadia-psi/SKILL.md +56 -0
- package/skills/never-guess/SKILL.md +75 -0
- package/skills/noor-recognition/SKILL.md +45 -0
- package/skills/observability/SKILL.md +133 -0
- package/skills/openai-docs/LICENSE.txt +201 -0
- package/skills/openai-docs/SKILL.md +100 -0
- package/skills/openai-docs/agents/openai.yaml +14 -0
- package/skills/openai-docs/assets/openai-small.svg +3 -0
- package/skills/openai-docs/assets/openai.png +0 -0
- package/skills/openai-docs/references/latest-model.md +37 -0
- package/skills/openai-docs/references/prompting-guide.md +244 -0
- package/skills/openai-docs/references/upgrade-guide.md +181 -0
- package/skills/openai-docs/scripts/resolve-latest-model-info.js +147 -0
- package/skills/pdf/LICENSE.txt +201 -0
- package/skills/pdf/SKILL.md +85 -0
- package/skills/pdf/agents/openai.yaml +5 -0
- package/skills/pdf/assets/pdf.png +0 -0
- package/skills/playwright/LICENSE.txt +201 -0
- package/skills/playwright/NOTICE.txt +14 -0
- package/skills/playwright/SKILL.md +165 -0
- package/skills/playwright/agents/openai.yaml +6 -0
- package/skills/playwright/assets/playwright-small.svg +3 -0
- package/skills/playwright/assets/playwright.png +0 -0
- package/skills/playwright/references/cli.md +116 -0
- package/skills/playwright/references/workflows.md +95 -0
- package/skills/playwright/scripts/playwright_cli.sh +25 -0
- package/skills/plugin-creator/SKILL.md +178 -0
- package/skills/plugin-creator/agents/openai.yaml +6 -0
- package/skills/plugin-creator/assets/plugin-creator-small.svg +3 -0
- package/skills/plugin-creator/assets/plugin-creator.png +0 -0
- package/skills/plugin-creator/references/plugin-json-spec.md +170 -0
- package/skills/plugin-creator/scripts/create_basic_plugin.py +301 -0
- package/skills/predictor/SKILL.md +43 -0
- package/skills/qiyas-analogy/SKILL.md +204 -0
- package/skills/refactoring/SKILL.md +137 -0
- package/skills/ruh-basis/SKILL.md +42 -0
- package/skills/security-review/SKILL.md +129 -0
- package/skills/skill-creator/SKILL.md +434 -0
- package/skills/skill-creator/agents/openai.yaml +5 -0
- package/skills/skill-creator/assets/skill-creator-small.svg +3 -0
- package/skills/skill-creator/assets/skill-creator.png +0 -0
- package/skills/skill-creator/license.txt +202 -0
- package/skills/skill-creator/references/openai_yaml.md +49 -0
- package/skills/skill-creator/scripts/generate_openai_yaml.py +226 -0
- package/skills/skill-creator/scripts/init_skill.py +400 -0
- package/skills/skill-creator/scripts/quick_validate.py +101 -0
- package/skills/skill-installer/LICENSE.txt +202 -0
- package/skills/skill-installer/SKILL.md +76 -0
- package/skills/skill-installer/agents/openai.yaml +5 -0
- package/skills/skill-installer/assets/skill-installer-small.svg +3 -0
- package/skills/skill-installer/assets/skill-installer.png +0 -0
- package/skills/skill-installer/scripts/github_utils.py +21 -0
- package/skills/skill-installer/scripts/install-skill-from-github.py +308 -0
- package/skills/skill-installer/scripts/list-skills.py +107 -0
- package/skills/skills-and-hooks-reference/SKILL.md +196 -0
- package/skills/soul-domains/SKILL.md +43 -0
- package/skills/tadabbur/SKILL.md +232 -0
- package/skills/tadabbur-ops/SKILL.md +42 -0
- package/skills/tafakkur/SKILL.md +104 -0
- package/skills/testing-strategy/SKILL.md +122 -0
- package/src/action-ledger-core.ts +1054 -0
- package/src/chat.ts +5 -6
- package/src/codebase-scanner.ts +2 -0
- package/src/connectors/claude-code.ts +149 -12
- package/src/connectors/codebase-awareness.ts +325 -25
- package/src/connectors/codex.ts +1273 -40
- package/src/connectors/cursor.ts +8 -0
- package/src/connectors/governed-adapter.ts +174 -0
- package/src/connectors/opencode.ts +18 -2
- package/src/connectors/repo-guard.ts +24 -12
- package/src/connectors/runtime.ts +99 -2
- package/src/connectors/shell.ts +125 -7
- package/src/cross-cli-hive-binding.ts +290 -0
- package/src/garden-control-plane.ts +24 -1
- package/src/governed-surface-runner.ts +1227 -0
- package/src/index.ts +104 -1
- package/src/task-runner.ts +3794 -0
- package/dist/aria-connector/src/install-hooks.d.ts +0 -18
- package/dist/aria-connector/src/install-hooks.d.ts.map +0 -1
- package/dist/aria-connector/src/install-hooks.js +0 -224
- package/dist/aria-connector/src/install-hooks.js.map +0 -1
- package/dist/aria-connector/src/onboarding-wizard.d.ts +0 -5
- package/dist/aria-connector/src/onboarding-wizard.d.ts.map +0 -1
- package/dist/aria-connector/src/onboarding-wizard.js +0 -188
- package/dist/aria-connector/src/onboarding-wizard.js.map +0 -1
- package/dist/cli-0.2.38.tgz +0 -0
- package/dist/install.sh +0 -13
- package/src/__tests__/anthropic-oauth.test.ts +0 -186
- package/src/__tests__/auth-commands.test.ts +0 -132
- package/src/__tests__/owner-login.test.ts +0 -311
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aria-task-codex-executor
|
|
3
|
+
description: 'TRIGGER when a Codex session mentions `aria task run`, `--executor codex`, Aria task execution, long-running Aria tasks, task ledger/QA loops, Codex executor routing, full Qiyas, full Tadabbur, or asks whether the runtime is ready to run tasks. Forces the correct path: real Codex execution uses `aria task run <task-id> --executor codex`; bare `aria task run` is only the parent CLI ledger/QA loop.'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aria Task Codex Executor
|
|
7
|
+
|
|
8
|
+
Use this skill when Codex must run, verify, or explain an Aria task phase.
|
|
9
|
+
|
|
10
|
+
## Non-Negotiable Route
|
|
11
|
+
|
|
12
|
+
For real Codex execution, use:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
aria task run <task-id> --executor codex \
|
|
16
|
+
--summary "..." \
|
|
17
|
+
--evidence "..." \
|
|
18
|
+
--qa-file /path/to/full-qiyas-tadabbur-qa.md
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For all queued phases, add `--all`.
|
|
22
|
+
|
|
23
|
+
Do not present bare `aria task run` as Codex execution. Bare `aria task run` is the parent CLI ledger/QA loop. It can load the runtime skill packet, update the ledger, check QA, recover a phase, or mark a phase complete, but it does not launch Codex to do the work.
|
|
24
|
+
|
|
25
|
+
## What "Parent CLI Loop" Means
|
|
26
|
+
|
|
27
|
+
The parent CLI loop is the local Aria Node.js CLI process running the task ledger mechanics. It is not the LLM, not a background worker pool, and not a substitute for Codex execution.
|
|
28
|
+
|
|
29
|
+
The Codex execution path is `--executor codex`. That path must:
|
|
30
|
+
|
|
31
|
+
- build the runtime prompt with the configured Aria skill pack;
|
|
32
|
+
- launch the local Codex wrapper, normally `~/.aria/wrappers/codex`;
|
|
33
|
+
- use local `codex exec` prompt injection, because `codex exec` does not support `--remote`;
|
|
34
|
+
- require the child Codex run to checkpoint and complete the active phase;
|
|
35
|
+
- fail closed if the child exits without completing the phase.
|
|
36
|
+
|
|
37
|
+
## Required QA
|
|
38
|
+
|
|
39
|
+
Deep architectural or runtime work must include full Qiyas-15 and full Tadabbur-12 in the QA artifact. Mini Qiyas or mini Tadabbur is not acceptable for this path.
|
|
40
|
+
|
|
41
|
+
Before claiming readiness, verify:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
aria task status <task-id>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The task must show the intended phase completed, `runtimeOk: true` or equivalent runtime evidence, no missing required skills, and a QA artifact with no unresolved blocking gaps.
|
|
48
|
+
|
|
49
|
+
## Preflight
|
|
50
|
+
|
|
51
|
+
Use these checks when execution reliability is in doubt:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
aria task help
|
|
55
|
+
aria task run <task-id> --executor codex --dry-run --summary "preflight" --evidence "dry run only" --auto-qa
|
|
56
|
+
bash -lc 'type -a codex | sed -n "1,3p"'
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The `codex` command should resolve to the Aria wrapper before global npm paths. If it does not, fix shell pathing before trusting `--executor codex`.
|
|
60
|
+
|
|
61
|
+
## Reporting
|
|
62
|
+
|
|
63
|
+
When answering the user, distinguish:
|
|
64
|
+
|
|
65
|
+
- observed: command output, task status, checkpoint count, QA result, wrapper path;
|
|
66
|
+
- bounded inference: what those observations imply;
|
|
67
|
+
- unresolved risk: anything not directly verified in this session.
|
|
68
|
+
|
|
69
|
+
## Required Workflow
|
|
70
|
+
|
|
71
|
+
1. Read the active task status and identify the current phase before choosing a command.
|
|
72
|
+
2. Confirm the runtime skill packet loaded the required skill count and any required cookbooks.
|
|
73
|
+
3. Execute Codex work through the `--executor codex` route when Codex is the worker, and use the parent CLI loop only for ledger, QA, and phase-state mechanics.
|
|
74
|
+
4. Attach a QA artifact for deep runtime or architecture phases that includes full Qiyas-15 and full Tadabbur-12 coverage.
|
|
75
|
+
5. Re-run the exact failing check or a stronger release check before completing the phase.
|
|
76
|
+
6. Complete or advance the phase only after observed command evidence and QA evidence match the phase predicate.
|
|
77
|
+
|
|
78
|
+
## First-Class Production Contract
|
|
79
|
+
|
|
80
|
+
This skill must make Aria task execution production-grade rather than ceremonial. When loaded, enforce:
|
|
81
|
+
|
|
82
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance in task execution, QA artifacts, or phase evidence
|
|
83
|
+
- real proof from the task ledger, runtime, tests, logs, endpoints, file hashes, or owner instruction before any completion claim
|
|
84
|
+
- a redo contract when validation fails: name what failed, change the responsible artifact, re-test the same predicate, and record the corrected evidence
|
|
85
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified from local task and runtime evidence
|
|
86
|
+
- owner-visible reporting that states the exact task state: active phase, completed phase, verified evidence, blocker, or owner approval requirement
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: aristotle-engine
|
|
3
|
+
description: Use when planning complex multi-step tasks, system design, strategic decisions, simulations, tradeoff analysis, or meta-cognitive decomposition would materially improve the work.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Aristotle Engine
|
|
7
|
+
|
|
8
|
+
Read `/home/hamzaibrahim1/.claude/skills/aristotle-engine.md` for the full module inventory.
|
|
9
|
+
|
|
10
|
+
Workflow:
|
|
11
|
+
|
|
12
|
+
1. Define the strategic or architectural problem clearly.
|
|
13
|
+
2. Load the source doc and select the modules that fit the problem instead of invoking the whole engine indiscriminately.
|
|
14
|
+
3. Use the chosen modules to structure planning, decomposition, simulation, and tradeoff review.
|
|
15
|
+
4. Collapse the output into a practical next action, not theory for its own sake.
|
|
16
|
+
|
|
17
|
+
## Required Workflow
|
|
18
|
+
|
|
19
|
+
1. Read the task boundary and identify the evidence needed before acting.
|
|
20
|
+
2. Apply the skill before choosing the response, edit, tool call, or completion claim.
|
|
21
|
+
3. Execute the smallest high-quality action that satisfies the evidence threshold.
|
|
22
|
+
4. Re-test or re-check with a concrete file, command, endpoint, log, runtime probe, or owner-observed result.
|
|
23
|
+
5. Report only the verified state, remaining blocker, and next concrete action.
|
|
24
|
+
|
|
25
|
+
## First-Class Production Contract
|
|
26
|
+
|
|
27
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
28
|
+
|
|
29
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
30
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
31
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
32
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
33
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
34
|
+
|
|
35
|
+
## Self-Executing Recovery Contract
|
|
36
|
+
|
|
37
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
38
|
+
|
|
39
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
40
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
41
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
42
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ci-cd-pipeline
|
|
3
|
+
description: CI/CD pipeline design, deployment strategies (blue-green, canary, rolling), environment management, build optimization, artifact management, and release governance. Use when the user asks about CI/CD, deployment strategy, pipeline design, build automation, release process, environment configuration, or "how should we deploy this". Do NOT use for testing strategy — use testing-strategy skill.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## What I Do
|
|
7
|
+
|
|
8
|
+
- Design CI/CD pipeline architecture: stages, gates, parallelism, artifact flow
|
|
9
|
+
- Design deployment strategies: blue-green, canary, rolling, recreate, feature flags
|
|
10
|
+
- Define environment topology: development, staging, pre-production, production, ephemeral
|
|
11
|
+
- Design build optimization: caching, incremental builds, monorepo strategies (Nx, Turborepo, Bazel)
|
|
12
|
+
- Define artifact management: container registries, package registries, versioning, immutability
|
|
13
|
+
- Design release governance: approval gates, change logs, release notes, rollback procedures
|
|
14
|
+
- Define secrets management in pipelines: vault integration, masked variables, short-lived credentials
|
|
15
|
+
- Design pipeline as code: GitHub Actions, GitLab CI, Jenkins, Argo Workflows, Tekton
|
|
16
|
+
- Define quality gates: linting → type checking → unit tests → integration tests → security scan → build → deploy
|
|
17
|
+
- Plan for pipeline observability: DORA metrics, deployment frequency, lead time, MTTR, change failure rate
|
|
18
|
+
|
|
19
|
+
## When to Use Me
|
|
20
|
+
|
|
21
|
+
Trigger phrases and patterns:
|
|
22
|
+
- "CI/CD pipeline for"
|
|
23
|
+
- "deployment strategy"
|
|
24
|
+
- "blue-green deployment"
|
|
25
|
+
- "canary release"
|
|
26
|
+
- "build pipeline"
|
|
27
|
+
- "release process"
|
|
28
|
+
- "environment setup"
|
|
29
|
+
- "GitHub Actions workflow"
|
|
30
|
+
- "how should we deploy"
|
|
31
|
+
- "artifact management"
|
|
32
|
+
- "rollback strategy"
|
|
33
|
+
- "pipeline optimization"
|
|
34
|
+
- "secrets in CI/CD"
|
|
35
|
+
- "monorepo build"
|
|
36
|
+
|
|
37
|
+
## When NOT to Use Me
|
|
38
|
+
|
|
39
|
+
- Do not use for test strategy content (use testing-strategy skill)
|
|
40
|
+
- Do not use for infrastructure-as-code like Terraform (this is pipeline design, not infra provisioning)
|
|
41
|
+
- Do not use for application observability and monitoring (use observability skill)
|
|
42
|
+
- Do not use when the pipeline is already mature and you just need to add a single step
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. **Understand the deployment target**
|
|
47
|
+
- Identify where code runs: Kubernetes, VMs, serverless (Lambda, Cloud Run), bare metal, PaaS
|
|
48
|
+
- Determine the artifact type: Docker container, JAR/WAR, static files, npm package, binary
|
|
49
|
+
- Understand the build system: language, package manager, monorepo vs polyrepo
|
|
50
|
+
|
|
51
|
+
2. **Design pipeline stages**
|
|
52
|
+
- Stage 1 — Validate: lint, format check, type check (fast feedback, < 2 minutes)
|
|
53
|
+
- Stage 2 — Test: unit tests first (fast), then integration tests (slower), parallelize where possible
|
|
54
|
+
- Stage 3 — Security: SAST (static analysis), dependency audit, container scan, secret detection
|
|
55
|
+
- Stage 4 — Build: compile, bundle, containerize, tag with version + commit SHA
|
|
56
|
+
- Stage 5 — Push: to container registry, package registry, or artifact store
|
|
57
|
+
- Stage 6 — Deploy to staging: automated, verify health checks and smoke tests
|
|
58
|
+
- Stage 7 — Deploy to production: gated (manual approval or automated with strict canary analysis)
|
|
59
|
+
|
|
60
|
+
3. **Design deployment strategy**
|
|
61
|
+
- Blue-green: deploy new version to idle environment, switch traffic via load balancer. Fast rollback.
|
|
62
|
+
- Canary: route small % of traffic to new version, monitor, gradually increase. Safe for risky changes.
|
|
63
|
+
- Rolling: replace instances one at a time. No extra infrastructure, but slower rollback.
|
|
64
|
+
- Recreate: stop old, start new. Downtime. Only for dev environments or non-critical batch jobs.
|
|
65
|
+
- Feature flags: decouple deploy from release. Deploy code dark, toggle on when ready.
|
|
66
|
+
|
|
67
|
+
4. **Define environment management**
|
|
68
|
+
- Environments must be identical except for scale and secrets
|
|
69
|
+
- Configuration as environment variables or config maps — never in code
|
|
70
|
+
- Ephemeral environments: one per PR, auto-created on PR open, auto-destroyed on PR merge/close
|
|
71
|
+
- Database migration must be separate from application deployment — never auto-migrate on app start in production
|
|
72
|
+
|
|
73
|
+
5. **Design rollback strategy**
|
|
74
|
+
- Rollback must be faster than forward deployment — if rollback takes longer, it's not a rollback
|
|
75
|
+
- Database migrations must be backward-compatible (see database-design skill)
|
|
76
|
+
- Container image tags must be immutable — rollback means deploying a previous tag, not rebuilding
|
|
77
|
+
- Every deployment must have a validated rollback procedure — test it in staging first
|
|
78
|
+
|
|
79
|
+
6. **Define pipeline observability**
|
|
80
|
+
- Track DORA metrics: deployment frequency, lead time for changes, MTTR, change failure rate
|
|
81
|
+
- Alert on: pipeline failures > X consecutive times, deployment duration > threshold, staging smoke test failures
|
|
82
|
+
- Every pipeline run generates a deployment event visible in monitoring dashboards
|
|
83
|
+
- Correlate deployments with production incidents
|
|
84
|
+
|
|
85
|
+
## References
|
|
86
|
+
|
|
87
|
+
- DORA metrics: https://cloud.google.com/blog/products/devops-sre/using-the-four-keys-to-measure-your-devops-performance
|
|
88
|
+
- GitHub Actions: https://docs.github.com/en/actions
|
|
89
|
+
- Argo CD (GitOps): https://argo-cd.readthedocs.io/
|
|
90
|
+
- Blue-green deployment: https://martinfowler.com/bliki/BlueGreenDeployment.html
|
|
91
|
+
- Canary deployments: https://martinfowler.com/bliki/CanaryRelease.html
|
|
92
|
+
- Trunk-based development: https://trunkbaseddevelopment.com/
|
|
93
|
+
|
|
94
|
+
## Output & Organization
|
|
95
|
+
|
|
96
|
+
- Pipeline definition files in `.github/workflows/`, `.gitlab-ci.yml`, or `Jenkinsfile` at repo root
|
|
97
|
+
- Deployment runbooks in `docs/runbooks/deployment.md`
|
|
98
|
+
- Environment documentation in `docs/environments.md`
|
|
99
|
+
- Release notes template in `docs/templates/release-notes.md`
|
|
100
|
+
## First-Class Production Contract
|
|
101
|
+
|
|
102
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
103
|
+
|
|
104
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
105
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
106
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
107
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
108
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
109
|
+
## Self-Executing Recovery Contract
|
|
110
|
+
|
|
111
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
112
|
+
|
|
113
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
114
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
115
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
116
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-review
|
|
3
|
+
description: Systematic code review checklist, anti-pattern detection, naming conventions, complexity analysis (cyclomatic, cognitive), SOLID principles, code smell identification, and review etiquette. Use when the user asks for a code review, wants a review checklist, needs to evaluate code quality, asks "review this code", or wants to establish review standards. Do NOT use for architecture or API design review — those are separate skills.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## What I Do
|
|
7
|
+
|
|
8
|
+
- Provide a systematic code review checklist organized by concern
|
|
9
|
+
- Identify code smells: long methods, large classes, primitive obsession, feature envy, shotgun surgery, data clumps
|
|
10
|
+
- Assess SOLID compliance: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, Dependency Inversion
|
|
11
|
+
- Evaluate naming: intention-revealing names, consistency, domain language alignment, no abbreviations
|
|
12
|
+
- Analyze complexity: cyclomatic complexity, cognitive complexity, nesting depth
|
|
13
|
+
- Review error handling: exceptions vs result types, error propagation, error messages
|
|
14
|
+
- Assess test quality: coverage of edge cases, test independence, test readability
|
|
15
|
+
- Guide review etiquette: constructive feedback, asking questions vs making demands, focusing on important issues
|
|
16
|
+
- Detect concurrency issues: race conditions, deadlocks, thread safety, correct synchronization
|
|
17
|
+
- Review documentation: comments explain why, not what; public APIs documented; READMEs current
|
|
18
|
+
|
|
19
|
+
## When to Use Me
|
|
20
|
+
|
|
21
|
+
Trigger phrases and patterns:
|
|
22
|
+
- "review this code"
|
|
23
|
+
- "code review for"
|
|
24
|
+
- "code review checklist"
|
|
25
|
+
- "what should I look for in a review"
|
|
26
|
+
- "is this good code"
|
|
27
|
+
- "code quality"
|
|
28
|
+
- "anti-pattern"
|
|
29
|
+
- "code smell"
|
|
30
|
+
- "SOLID"
|
|
31
|
+
- "review my PR"
|
|
32
|
+
- "review these changes"
|
|
33
|
+
- "naming convention"
|
|
34
|
+
- "complexity analysis"
|
|
35
|
+
|
|
36
|
+
## When NOT to Use Me
|
|
37
|
+
|
|
38
|
+
- Do not use for architecture-level review (use architecture-decision skill)
|
|
39
|
+
- Do not use for API design review (use api-design skill)
|
|
40
|
+
- Do not use for security-specific review (use security-review skill)
|
|
41
|
+
- Do not use for database schema review (use database-design skill)
|
|
42
|
+
- Do not use when the code is already reviewed and you need to merge — this is for review, not approval
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. **Understand the context first**
|
|
47
|
+
- Read the PR description, linked issue/ticket, and any design documents
|
|
48
|
+
- Understand what the change is supposed to achieve
|
|
49
|
+
- Identify the risk level: low (cosmetic), medium (behavioral change), high (data model change, auth change)
|
|
50
|
+
- If any of this is unclear, ask for clarification before reviewing code
|
|
51
|
+
|
|
52
|
+
2. **High-level review**
|
|
53
|
+
- Does the change solve the right problem? Is there a simpler approach?
|
|
54
|
+
- Are the right files changed? Any surprising changes in unrelated areas?
|
|
55
|
+
- Is the change appropriately sized? (PRs over 400 lines need substantial justification)
|
|
56
|
+
- Does the change break any existing contracts or APIs?
|
|
57
|
+
|
|
58
|
+
3. **Design and architecture review**
|
|
59
|
+
- Single Responsibility: does each class/module have one reason to change?
|
|
60
|
+
- Open-Closed: can behavior be extended without modifying existing code?
|
|
61
|
+
- Dependency direction: do dependencies point toward stability? Toward abstractions?
|
|
62
|
+
- Coupling: are modules loosely coupled? Are there inappropriate direct dependencies?
|
|
63
|
+
- Cohesion: are related things together? Unrelated things separated?
|
|
64
|
+
|
|
65
|
+
4. **Implementation review**
|
|
66
|
+
- Naming: do names reveal intent? Are they consistent with the codebase conventions?
|
|
67
|
+
- Functions: are they small (< 30 lines)? Doing one thing? At one level of abstraction?
|
|
68
|
+
- Conditionals: can complex conditionals be replaced with polymorphism, pattern matching, or lookup tables?
|
|
69
|
+
- Error handling: are errors handled at the right level? Are error messages useful?
|
|
70
|
+
- Edge cases: null/empty inputs, boundary values, concurrent access, large inputs
|
|
71
|
+
- Performance: any obvious N+1 queries, unnecessary allocations, blocking I/O in hot paths?
|
|
72
|
+
- Security: any obvious injection, XSS, or data exposure risks? (deep security review → security-review skill)
|
|
73
|
+
|
|
74
|
+
5. **Test review**
|
|
75
|
+
- Do tests cover the happy path AND edge cases AND error cases?
|
|
76
|
+
- Are tests independent of each other and of execution order?
|
|
77
|
+
- Do test names describe behavior (not implementation)?
|
|
78
|
+
- Are there tests for the bug that was fixed? For the regression?
|
|
79
|
+
- Are mocks used appropriately? Not mocking types you don't own?
|
|
80
|
+
|
|
81
|
+
6. **Deliver the review**
|
|
82
|
+
- Distinguish between: blocking issues (must fix), suggestions (consider changing), and praise (good pattern)
|
|
83
|
+
- For each issue, explain: what, why it matters, and a concrete suggestion for fixing it
|
|
84
|
+
- Ask questions instead of making demands: "What happens when X is null?" not "Add null check"
|
|
85
|
+
- Acknowledge what's good — code review isn't just about finding problems
|
|
86
|
+
- Limit to 5-10 substantive comments per review to avoid overwhelming the author
|
|
87
|
+
|
|
88
|
+
## Anti-Patterns to Call Out
|
|
89
|
+
|
|
90
|
+
- **Primitive Obsession**: using strings/integers instead of value objects (e.g., `String email` vs `Email email`)
|
|
91
|
+
- **Feature Envy**: a method that uses another class's data more than its own
|
|
92
|
+
- **Shotgun Surgery**: a single change requires modifying many files
|
|
93
|
+
- **God Class/Object**: a class that knows or does too much
|
|
94
|
+
- **Boolean blindness**: boolean parameters that obscure intent — use enums
|
|
95
|
+
- **Magic numbers**: unexplained numeric literals — extract to named constants
|
|
96
|
+
- **Null proliferation**: methods returning null instead of Optional, empty collections, or Result types
|
|
97
|
+
- **Catching Exception**: catching the base Exception/Throwable class — catch specific exceptions
|
|
98
|
+
- **Mutable static state**: static mutable fields — nearly always wrong
|
|
99
|
+
- **Commented-out code**: delete it — that's what version control is for
|
|
100
|
+
|
|
101
|
+
## References
|
|
102
|
+
|
|
103
|
+
- Martin Fowler's Refactoring catalog: https://refactoring.com/catalog/
|
|
104
|
+
- Clean Code by Robert C. Martin (book)
|
|
105
|
+
- Google Code Review Guidelines: https://google.github.io/eng-practices/review/
|
|
106
|
+
- Conventional Comments: https://conventionalcomments.org/
|
|
107
|
+
- Cognitive Complexity: https://www.sonarsource.com/docs/CognitiveComplexity.pdf
|
|
108
|
+
|
|
109
|
+
## Output & Organization
|
|
110
|
+
|
|
111
|
+
- Review comments on the PR/CR platform (GitHub, GitLab, Gerrit)
|
|
112
|
+
- Team review checklist in `docs/development/code-review-checklist.md`
|
|
113
|
+
- Review standards documented in `docs/development/code-review-standards.md`
|
|
114
|
+
- Use Conventional Comments format: `label: [decorations] subject` (e.g., `suggestion: [non-blocking] consider extracting this into a named constant`)
|
|
115
|
+
## First-Class Production Contract
|
|
116
|
+
|
|
117
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
118
|
+
|
|
119
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
120
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
121
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
122
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
123
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
124
|
+
## Self-Executing Recovery Contract
|
|
125
|
+
|
|
126
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
127
|
+
|
|
128
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
129
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
130
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
131
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cross-domain-24
|
|
3
|
+
description: Use when the task requires mapping interactions between cognitive domains, tracing influence across domains, or understanding how one domain's state propagates into others.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Cross-Domain 24
|
|
7
|
+
|
|
8
|
+
Read `/home/hamzaibrahim1/.claude/skills/cross-domain-24.md` for the 24 domains and edge structure.
|
|
9
|
+
|
|
10
|
+
Workflow:
|
|
11
|
+
|
|
12
|
+
1. Identify the domains active in the current problem.
|
|
13
|
+
2. Load the source doc and trace the meaningful edges between them.
|
|
14
|
+
3. Use those edges to explain cross-domain influence, not just domain labels.
|
|
15
|
+
4. Highlight where the real leverage or instability sits in the graph.
|
|
16
|
+
|
|
17
|
+
## Required Workflow
|
|
18
|
+
|
|
19
|
+
1. Read the task boundary and identify the evidence needed before acting.
|
|
20
|
+
2. Apply the skill before choosing the response, edit, tool call, or completion claim.
|
|
21
|
+
3. Execute the smallest high-quality action that satisfies the evidence threshold.
|
|
22
|
+
4. Re-test or re-check with a concrete file, command, endpoint, log, runtime probe, or owner-observed result.
|
|
23
|
+
5. Report only the verified state, remaining blocker, and next concrete action.
|
|
24
|
+
|
|
25
|
+
## First-Class Production Contract
|
|
26
|
+
|
|
27
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
28
|
+
|
|
29
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
30
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
31
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
32
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
33
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
34
|
+
|
|
35
|
+
## Self-Executing Recovery Contract
|
|
36
|
+
|
|
37
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
38
|
+
|
|
39
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
40
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
41
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
42
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: database-design
|
|
3
|
+
description: Database schema design, migration strategies, indexing, query optimization reasoning, data modeling (relational, document, graph), and storage engine selection. Use when the user asks about database design, needs a schema, discusses migrations, wants to optimize queries, asks "how should I model this data", or evaluates PostgreSQL vs MongoDB vs other databases. Do NOT use for API design — that is api-design.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## What I Do
|
|
7
|
+
|
|
8
|
+
- Design relational database schemas: normalization, denormalization trade-offs, constraints, foreign keys
|
|
9
|
+
- Design document/NoSQL data models: embedding vs referencing, access pattern-driven modeling
|
|
10
|
+
- Select storage engines: PostgreSQL, MySQL, MongoDB, Redis, DynamoDB, Cassandra, Neo4j — with explicit rationale
|
|
11
|
+
- Define indexing strategies: B-tree, GIN, GiST, BRIN, partial indexes, covering indexes, index-only scans
|
|
12
|
+
- Design migration strategies: expand-contract pattern, backward-compatible schema changes, zero-downtime migrations
|
|
13
|
+
- Reason about query performance: EXPLAIN plans, N+1 detection, join strategies, window functions
|
|
14
|
+
- Define data lifecycle: partitioning, archiving, TTL, retention policies
|
|
15
|
+
- Design for consistency models: ACID, BASE, eventual consistency, read-your-writes
|
|
16
|
+
- Model relationships: one-to-one, one-to-many, many-to-many, hierarchical, graph
|
|
17
|
+
- Define connection pooling, read replicas, and sharding strategies
|
|
18
|
+
|
|
19
|
+
## When to Use Me
|
|
20
|
+
|
|
21
|
+
Trigger phrases and patterns:
|
|
22
|
+
- "design the database schema for"
|
|
23
|
+
- "what tables should I create"
|
|
24
|
+
- "how should I model this data"
|
|
25
|
+
- "indexing strategy for"
|
|
26
|
+
- "migration approach for"
|
|
27
|
+
- "query is slow — how to optimize"
|
|
28
|
+
- "PostgreSQL vs MongoDB for"
|
|
29
|
+
- "normalize vs denormalize"
|
|
30
|
+
- "should I use a NoSQL database"
|
|
31
|
+
- "data modeling for"
|
|
32
|
+
- "partition this table"
|
|
33
|
+
- "connection pooling"
|
|
34
|
+
- "read replicas"
|
|
35
|
+
- "sharding strategy"
|
|
36
|
+
|
|
37
|
+
## When NOT to Use Me
|
|
38
|
+
|
|
39
|
+
- Do not use for API endpoint or request/response design (use api-design skill)
|
|
40
|
+
- Do not use for infrastructure provisioning (use ci-cd-pipeline skill)
|
|
41
|
+
- Do not use for application-level caching strategies — this is storage-level
|
|
42
|
+
- Do not use when the database choice is already made and you have an established schema
|
|
43
|
+
|
|
44
|
+
## Workflow
|
|
45
|
+
|
|
46
|
+
1. **Understand the data and access patterns**
|
|
47
|
+
- Identify entities, attributes, and relationships
|
|
48
|
+
- Determine read vs write ratio, query patterns, and consistency requirements
|
|
49
|
+
- Identify the top 5 queries by frequency and the top 3 by criticality
|
|
50
|
+
- Determine data volume and growth rate
|
|
51
|
+
- Ask: what is the query that must never be slow?
|
|
52
|
+
|
|
53
|
+
2. **Select the storage engine**
|
|
54
|
+
- Relational (PostgreSQL): structured data, complex queries, ACID transactions, joins
|
|
55
|
+
- Document (MongoDB): flexible schema, document-oriented access, rapid iteration
|
|
56
|
+
- Key-value (Redis/DynamoDB): simple access patterns, high throughput, low latency
|
|
57
|
+
- Graph (Neo4j): highly connected data, relationship-first queries
|
|
58
|
+
- Wide-column (Cassandra): high write throughput, time-series, known query patterns
|
|
59
|
+
- Provide explicit rationale: why this, not that
|
|
60
|
+
|
|
61
|
+
3. **Design the logical schema**
|
|
62
|
+
- Relational: normalize to 3NF, then selectively denormalize for performance
|
|
63
|
+
- Document: model based on access patterns — embed for "read together", reference for "independent lifecycle"
|
|
64
|
+
- Define primary keys: natural vs surrogate, UUID vs auto-increment vs ULID
|
|
65
|
+
- Define foreign keys with explicit ON DELETE and ON UPDATE behavior
|
|
66
|
+
- Add CHECK constraints for data integrity at the database level
|
|
67
|
+
- Use domain types: citext for case-insensitive text, inet for IPs, numeric for money
|
|
68
|
+
|
|
69
|
+
4. **Design indexes**
|
|
70
|
+
- Index every foreign key
|
|
71
|
+
- Index columns used in WHERE, JOIN, ORDER BY, and GROUP BY clauses
|
|
72
|
+
- Use composite indexes with columns in order: equality → range → sort
|
|
73
|
+
- Use partial indexes for filtered queries on large tables
|
|
74
|
+
- Use covering indexes (INCLUDE) to enable index-only scans
|
|
75
|
+
- Set fillfactor for heavily updated tables
|
|
76
|
+
- Document each index's purpose in a comment: `-- Supports: GET /users?status=active ORDER BY created_at`
|
|
77
|
+
|
|
78
|
+
5. **Design migrations**
|
|
79
|
+
- Use expand-contract: add column → deploy code that writes to both → backfill → deploy code that reads from new → drop old column
|
|
80
|
+
- Never rename a column in-place without a compatibility window
|
|
81
|
+
- For large tables: create new column nullable with default → backfill in batches → set NOT NULL
|
|
82
|
+
- Add indexes concurrently (PostgreSQL: CREATE INDEX CONCURRENTLY)
|
|
83
|
+
- Every migration must be reversible
|
|
84
|
+
- Test rollback before applying forward
|
|
85
|
+
|
|
86
|
+
6. **Define operational concerns**
|
|
87
|
+
- Connection pool sizing: `pool_size = (core_count * 2) + effective_spindle_count`
|
|
88
|
+
- Read replica strategy: routing reads to replicas, replication lag tolerance
|
|
89
|
+
- Backup strategy: point-in-time recovery (PITR), WAL archiving
|
|
90
|
+
- Partitioning: by time (range), by tenant (list), by hash
|
|
91
|
+
- Monitoring: slow query log, lock contention, connection utilization, replication lag
|
|
92
|
+
|
|
93
|
+
## References
|
|
94
|
+
|
|
95
|
+
- PostgreSQL documentation: https://www.postgresql.org/docs/current/
|
|
96
|
+
- Use the Index, Luke (indexing guide): https://use-the-index-luke.com/
|
|
97
|
+
- MongoDB schema design: https://www.mongodb.com/docs/manual/core/data-modeling-introduction/
|
|
98
|
+
- Database Migrations (expand-contract): https://www.prisma.io/dataguide/types/relational/expand-and-contract-pattern
|
|
99
|
+
- SQL Style Guide: https://www.sqlstyle.guide/
|
|
100
|
+
|
|
101
|
+
## Output & Organization
|
|
102
|
+
|
|
103
|
+
- Schema files in `db/migrations/` with timestamped, reversible migration files
|
|
104
|
+
- Schema documentation in `docs/database/` with ERD and table descriptions
|
|
105
|
+
- Index rationale documented alongside schema or in migration comments
|
|
106
|
+
- Query patterns documented near the application code that issues them
|
|
107
|
+
- Runbooks for common operations in `docs/runbooks/database/`
|
|
108
|
+
## First-Class Production Contract
|
|
109
|
+
|
|
110
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
111
|
+
|
|
112
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
113
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
114
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
115
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
116
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
117
|
+
## Self-Executing Recovery Contract
|
|
118
|
+
|
|
119
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
120
|
+
|
|
121
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
122
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
123
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
124
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deepsoul-emotional
|
|
3
|
+
description: Use when emotional context materially affects the response, especially in stress, comfort, reassurance, interpersonal sensitivity, or human-centered support where tone selection matters as much as content.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# DeepSoul Emotional
|
|
7
|
+
|
|
8
|
+
Read `/home/hamzaibrahim1/.claude/skills/deepsoul-emotional.md` for the emotional layers and response guidance.
|
|
9
|
+
|
|
10
|
+
Workflow:
|
|
11
|
+
|
|
12
|
+
1. Infer the user's dominant emotional state from evidence in the message.
|
|
13
|
+
2. Load the source doc and map that state to the relevant layers or response posture.
|
|
14
|
+
3. Adjust tone, pacing, and care accordingly.
|
|
15
|
+
4. Keep the response grounded; emotional attunement does not replace technical accuracy.
|
|
16
|
+
|
|
17
|
+
## Required Workflow
|
|
18
|
+
|
|
19
|
+
1. Read the task boundary and identify the evidence needed before acting.
|
|
20
|
+
2. Apply the skill before choosing the response, edit, tool call, or completion claim.
|
|
21
|
+
3. Execute the smallest high-quality action that satisfies the evidence threshold.
|
|
22
|
+
4. Re-test or re-check with a concrete file, command, endpoint, log, runtime probe, or owner-observed result.
|
|
23
|
+
5. Report only the verified state, remaining blocker, and next concrete action.
|
|
24
|
+
|
|
25
|
+
## First-Class Production Contract
|
|
26
|
+
|
|
27
|
+
This skill must deepen the work, not decorate it. When loaded, apply it as a production requirement:
|
|
28
|
+
|
|
29
|
+
- no placeholders, no fake fallbacks, no vague future wiring, and no cosmetic compliance
|
|
30
|
+
- real proof from the repo, runtime, tests, logs, endpoint, or owner instruction before any completion claim
|
|
31
|
+
- a redo contract whenever the skill blocks or finds a gap: what failed, what to change, how to re-test, and when to re-submit
|
|
32
|
+
- architect/ARIA console escalation when the same failure repeats twice, crosses system boundaries, or cannot be verified locally
|
|
33
|
+
- owner-visible output that states the exact state of the work: changed, verified, blocked, or needing a decision
|
|
34
|
+
|
|
35
|
+
## Self-Executing Recovery Contract
|
|
36
|
+
|
|
37
|
+
When this skill blocks, fails verification, or finds a gap, the agent must execute recovery rather than hand work back as a user-only decision.
|
|
38
|
+
|
|
39
|
+
- Make exactly one self-executed recovery attempt using the strongest safe local, repository, runtime, test, log, endpoint, or owner-provided evidence available.
|
|
40
|
+
- If the same failure repeats after that one recovery attempt, switch to architect execution mode: operate under the architect/ARIA harness to diagnose, choose the next action, execute the repair path, and verify the result.
|
|
41
|
+
- If Aria or the architect service is unavailable, fall back to the strongest available client LLM under the architect harness or strongest available local harness substrate; mark the fallback explicitly and continue recovery instead of stopping.
|
|
42
|
+
- Do not end with user-handoff-only behavior. If blocked after the recovery path, report the executed recovery attempt, evidence, remaining blocker, and the next concrete action or owner decision needed; do not merely ask the user to take over.
|