just-vibe 0.7.0
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/.agents/plugins/marketplace.json +12 -0
- package/.claude-plugin/marketplace.json +12 -0
- package/CHANGELOG.md +49 -0
- package/LICENSE +21 -0
- package/README.md +282 -0
- package/bin/just-vibe.mjs +3 -0
- package/docs/command-quality.md +74 -0
- package/docs/compatibility.md +29 -0
- package/docs/releases.md +51 -0
- package/evals/README.md +47 -0
- package/evals/behavior/cases/arch-events/flow.json +12 -0
- package/evals/behavior/cases/arch-events/task.md +3 -0
- package/evals/behavior/cases/authz/access.mjs +1 -0
- package/evals/behavior/cases/authz/task.md +3 -0
- package/evals/behavior/cases/checkout/checkout.mjs +1 -0
- package/evals/behavior/cases/checkout/contract.md +1 -0
- package/evals/behavior/cases/checkout/keep.txt +1 -0
- package/evals/behavior/cases/checkout/task.md +3 -0
- package/evals/behavior/cases/data-reconcile/source.json +14 -0
- package/evals/behavior/cases/data-reconcile/target.json +14 -0
- package/evals/behavior/cases/data-reconcile/task.md +3 -0
- package/evals/behavior/cases/db-migrate/context.json +13 -0
- package/evals/behavior/cases/db-migrate/migration.sql +3 -0
- package/evals/behavior/cases/db-migrate/task.md +3 -0
- package/evals/behavior/cases/db-query/query.sql +1 -0
- package/evals/behavior/cases/db-query/rows.json +32 -0
- package/evals/behavior/cases/db-query/task.md +3 -0
- package/evals/behavior/cases/decision-matrix/decision.json +22 -0
- package/evals/behavior/cases/decision-matrix/task.md +3 -0
- package/evals/behavior/cases/github-pr/prs.json +16 -0
- package/evals/behavior/cases/github-pr/request.json +9 -0
- package/evals/behavior/cases/github-pr/task.md +3 -0
- package/evals/behavior/cases/idempotency/contract.md +1 -0
- package/evals/behavior/cases/idempotency/orders.mjs +1 -0
- package/evals/behavior/cases/idempotency/task.md +3 -0
- package/evals/behavior/cases/ml-checkpoint/checkpoint.json +6 -0
- package/evals/behavior/cases/ml-checkpoint/task.md +3 -0
- package/evals/behavior/cases/ml-checkpoint/training.json +16 -0
- package/evals/behavior/cases/ml-evaluate/labels.json +18 -0
- package/evals/behavior/cases/ml-evaluate/predictions.json +14 -0
- package/evals/behavior/cases/ml-evaluate/task.md +3 -0
- package/evals/behavior/cases/ml-leakage/task.json +30 -0
- package/evals/behavior/cases/ml-leakage/task.md +3 -0
- package/evals/behavior/cases/ml-parity/serving.json +16 -0
- package/evals/behavior/cases/ml-parity/task.md +3 -0
- package/evals/behavior/cases/ml-parity/training.json +16 -0
- package/evals/behavior/cases/ml-split/task.json +7 -0
- package/evals/behavior/cases/ml-split/task.md +3 -0
- package/evals/behavior/cases/ops-logs/context.json +4 -0
- package/evals/behavior/cases/ops-logs/events.json +17 -0
- package/evals/behavior/cases/ops-logs/task.md +3 -0
- package/evals/behavior/cases/rag-boundary/documents.json +26 -0
- package/evals/behavior/cases/rag-boundary/query.json +5 -0
- package/evals/behavior/cases/rag-boundary/task.md +3 -0
- package/evals/behavior/cases/react-race/AccountPanel.jsx +1 -0
- package/evals/behavior/cases/react-race/loader.mjs +1 -0
- package/evals/behavior/cases/react-race/task.md +3 -0
- package/evals/behavior/cases/regression-test/checkout.mjs +1 -0
- package/evals/behavior/cases/regression-test/contract.md +1 -0
- package/evals/behavior/cases/regression-test/task.md +3 -0
- package/evals/behavior/cases/ui-accessibility/observations.json +17 -0
- package/evals/behavior/cases/ui-accessibility/task.md +3 -0
- package/evals/behavior/cases/vercel-env/consumers.json +13 -0
- package/evals/behavior/cases/vercel-env/metadata.json +11 -0
- package/evals/behavior/cases/vercel-env/task.md +3 -0
- package/evals/behavior/cases/vite-assets/deployment.json +8 -0
- package/evals/behavior/cases/vite-assets/render.mjs +1 -0
- package/evals/behavior/cases/vite-assets/task.md +3 -0
- package/evals/behavior/cases/vite-assets/vite.config.mjs +1 -0
- package/evals/behavior/cases.json +185 -0
- package/evals/behavior/code-oracles.mjs +58 -0
- package/evals/behavior/harness.mjs +109 -0
- package/evals/behavior/oracles.json +196 -0
- package/evals/benchmark/README.md +57 -0
- package/evals/benchmark/cases.json +9 -0
- package/evals/benchmark/harness.mjs +231 -0
- package/evals/benchmark/oracles/node.mjs +69 -0
- package/evals/benchmark/oracles/python.py +117 -0
- package/evals/benchmark/report.mjs +62 -0
- package/evals/benchmark/repos/async-cache/README.md +12 -0
- package/evals/benchmark/repos/async-cache/TASK.md +1 -0
- package/evals/benchmark/repos/async-cache/package.json +1 -0
- package/evals/benchmark/repos/async-cache/src/cache.mjs +13 -0
- package/evals/benchmark/repos/async-cache/src/view.mjs +9 -0
- package/evals/benchmark/repos/async-cache/test/smoke.test.mjs +9 -0
- package/evals/benchmark/repos/ledger/README.md +11 -0
- package/evals/benchmark/repos/ledger/TASK.md +1 -0
- package/evals/benchmark/repos/ledger/src/service.py +14 -0
- package/evals/benchmark/repos/ledger/src/store.py +12 -0
- package/evals/benchmark/repos/ledger/test/test_smoke.py +9 -0
- package/evals/benchmark/repos/scoped-commit/README.md +5 -0
- package/evals/benchmark/repos/scoped-commit/TASK.md +1 -0
- package/evals/benchmark/repos/scoped-commit/package.json +1 -0
- package/evals/benchmark/repos/scoped-commit/src/invoice.mjs +8 -0
- package/evals/benchmark/repos/scoped-commit/test/invoice.test.mjs +4 -0
- package/evals/benchmark/repos/temporal-ml/README.md +12 -0
- package/evals/benchmark/repos/temporal-ml/TASK.md +1 -0
- package/evals/benchmark/repos/temporal-ml/src/features.py +9 -0
- package/evals/benchmark/repos/temporal-ml/src/pipeline.py +10 -0
- package/evals/benchmark/repos/temporal-ml/src/report.py +2 -0
- package/evals/benchmark/repos/temporal-ml/test/test_smoke.py +7 -0
- package/evals/benchmark/support/commit-tree.mjs +11 -0
- package/evals/benchmark/support/python-test-report.py +48 -0
- package/evals/fixtures/checkout/checkout.mjs +4 -0
- package/evals/fixtures/checkout/checkout.test.mjs +13 -0
- package/evals/fixtures/checkout/package.json +6 -0
- package/evals/fixtures/checkout/unrelated.txt +1 -0
- package/evals/fixtures/ml/observations.csv +5 -0
- package/evals/fixtures/ml/task.md +1 -0
- package/evals/releases/0.2.0.md +45 -0
- package/evals/releases/0.3.0.md +23 -0
- package/evals/releases/0.4.0-results.json +1274 -0
- package/evals/releases/0.4.0.md +55 -0
- package/evals/releases/0.5.0.md +28 -0
- package/evals/releases/0.6.0-after-results.json +1307 -0
- package/evals/releases/0.6.0-before-results.json +4850 -0
- package/evals/releases/0.6.0.md +94 -0
- package/evals/releases/0.7.0.md +32 -0
- package/evals/scenarios.json +7777 -0
- package/package.json +50 -0
- package/plugins/just-vibe/.claude-plugin/plugin.json +11 -0
- package/plugins/just-vibe/.codex-plugin/plugin.json +24 -0
- package/plugins/just-vibe/LICENSE +21 -0
- package/plugins/just-vibe/catalog/commands.json +16757 -0
- package/plugins/just-vibe/catalog/packs.json +115 -0
- package/plugins/just-vibe/catalog/profiles.json +2503 -0
- package/plugins/just-vibe/hooks/hooks.json +11 -0
- package/plugins/just-vibe/references/command-reference.md +328 -0
- package/plugins/just-vibe/references/daily-workflows.md +133 -0
- package/plugins/just-vibe/references/execution.md +60 -0
- package/plugins/just-vibe/references/instruction-memory.md +86 -0
- package/plugins/just-vibe/references/packs/api.md +27 -0
- package/plugins/just-vibe/references/packs/architecture.md +29 -0
- package/plugins/just-vibe/references/packs/backend.md +43 -0
- package/plugins/just-vibe/references/packs/data.md +27 -0
- package/plugins/just-vibe/references/packs/database.md +32 -0
- package/plugins/just-vibe/references/packs/decisions.md +29 -0
- package/plugins/just-vibe/references/packs/general.md +34 -0
- package/plugins/just-vibe/references/packs/git.md +45 -0
- package/plugins/just-vibe/references/packs/github.md +31 -0
- package/plugins/just-vibe/references/packs/installation.md +27 -0
- package/plugins/just-vibe/references/packs/llm.md +33 -0
- package/plugins/just-vibe/references/packs/ml-data.md +43 -0
- package/plugins/just-vibe/references/packs/ml-deployment.md +31 -0
- package/plugins/just-vibe/references/packs/ml-evaluation.md +29 -0
- package/plugins/just-vibe/references/packs/ml-experiments.md +29 -0
- package/plugins/just-vibe/references/packs/operations.md +35 -0
- package/plugins/just-vibe/references/packs/react.md +29 -0
- package/plugins/just-vibe/references/packs/security.md +31 -0
- package/plugins/just-vibe/references/packs/testing.md +35 -0
- package/plugins/just-vibe/references/packs/ui.md +29 -0
- package/plugins/just-vibe/references/packs/vercel.md +29 -0
- package/plugins/just-vibe/references/packs/vite.md +29 -0
- package/plugins/just-vibe/references/profile-reference.md +155 -0
- package/plugins/just-vibe/references/profiles/accessibility-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/agent-systems-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ai-evaluation-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ai-security-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/analytics-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/android-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/api-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/application-security-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/applied-ai-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/backend-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/bioinformatics-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/blockchain-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/build-release-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/business-intelligence-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/capacity-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/causal-inference-scientist.md +31 -0
- package/plugins/just-vibe/references/profiles/cloud-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/cloud-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/cloud-security-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/compiler-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/computer-vision-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/controls-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/creative-technologist.md +31 -0
- package/plugins/just-vibe/references/profiles/cryptography-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/data-analyst.md +31 -0
- package/plugins/just-vibe/references/profiles/data-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/data-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/data-governance-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/data-platform-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/data-quality-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/data-scientist.md +31 -0
- package/plugins/just-vibe/references/profiles/database-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/database-reliability-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/design-systems-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/desktop-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/detection-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/developer-advocate.md +31 -0
- package/plugins/just-vibe/references/profiles/developer-experience-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/devops-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/distributed-systems-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/edge-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/embedded-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/engineering-manager.md +31 -0
- package/plugins/just-vibe/references/profiles/enterprise-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/experimentation-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/finops-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/firmware-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/frontend-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/frontend-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/fullstack-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/game-networking-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/gameplay-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/geospatial-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/graphics-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/hpc-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/identity-access-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/inference-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/infrastructure-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/integration-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/integration-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ios-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/iot-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/kubernetes-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/llm-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/machine-learning-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ml-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/ml-data-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ml-platform-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/mlops-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/mobile-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/network-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/nlp-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/observability-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/performance-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/platform-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/platform-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/principal-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/privacy-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/product-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/product-security-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/protocol-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/qa-automation-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/recommendation-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/reinforcement-learning-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/research-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/research-scientist.md +31 -0
- package/plugins/just-vibe/references/profiles/responsible-ai-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/robotics-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/runtime-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/scientific-software-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/search-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/security-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/security-automation-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/security-incident-responder.md +31 -0
- package/plugins/just-vibe/references/profiles/senior-software-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/simulation-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/site-reliability-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/software-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/solutions-architect.md +31 -0
- package/plugins/just-vibe/references/profiles/speech-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/staff-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/storage-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/streaming-data-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/supply-chain-security-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/systems-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/tech-lead.md +31 -0
- package/plugins/just-vibe/references/profiles/technical-writer.md +31 -0
- package/plugins/just-vibe/references/profiles/test-infrastructure-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ui-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/ux-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/web-performance-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles/xr-engineer.md +31 -0
- package/plugins/just-vibe/references/profiles.md +59 -0
- package/plugins/just-vibe/references/runtime.md +70 -0
- package/plugins/just-vibe/references/scenarios/auth.md +31 -0
- package/plugins/just-vibe/references/scenarios/combobox.md +9 -0
- package/plugins/just-vibe/references/scenarios/date-picker.md +9 -0
- package/plugins/just-vibe/references/scenarios/delivery-evidence.md +21 -0
- package/plugins/just-vibe/references/scenarios/dialog.md +9 -0
- package/plugins/just-vibe/references/scenarios/training.md +21 -0
- package/plugins/just-vibe/references/teach-test.md +37 -0
- package/plugins/just-vibe/references/teaching.md +34 -0
- package/plugins/just-vibe/references/validation.md +11 -0
- package/plugins/just-vibe/scripts/discover-capabilities.mjs +3 -0
- package/plugins/just-vibe/scripts/hooks.mjs +14 -0
- package/plugins/just-vibe/scripts/inspect-project.mjs +3 -0
- package/plugins/just-vibe/scripts/installer.mjs +280 -0
- package/plugins/just-vibe/scripts/lib/automation.mjs +142 -0
- package/plugins/just-vibe/scripts/lib/bundle.mjs +100 -0
- package/plugins/just-vibe/scripts/lib/catalog.mjs +135 -0
- package/plugins/just-vibe/scripts/lib/command.mjs +26 -0
- package/plugins/just-vibe/scripts/lib/continuity.mjs +77 -0
- package/plugins/just-vibe/scripts/lib/discovery.mjs +84 -0
- package/plugins/just-vibe/scripts/lib/entrypoint.mjs +12 -0
- package/plugins/just-vibe/scripts/lib/evidence.mjs +136 -0
- package/plugins/just-vibe/scripts/lib/process.mjs +44 -0
- package/plugins/just-vibe/scripts/lib/profiles.mjs +83 -0
- package/plugins/just-vibe/scripts/lib/project.mjs +60 -0
- package/plugins/just-vibe/scripts/lib/routing.mjs +82 -0
- package/plugins/just-vibe/scripts/lib/run.mjs +248 -0
- package/plugins/just-vibe/scripts/lib/storage.mjs +84 -0
- package/plugins/just-vibe/scripts/lib/teaching.mjs +118 -0
- package/plugins/just-vibe/scripts/toolkit.mjs +225 -0
- package/plugins/just-vibe/skills/a11y/SKILL.md +8 -0
- package/plugins/just-vibe/skills/api-breaking/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-client/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-contract-test/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-design/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-errors/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-openapi/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-pagination/SKILL.md +56 -0
- package/plugins/just-vibe/skills/api-webhooks/SKILL.md +56 -0
- package/plugins/just-vibe/skills/arch-boundaries/SKILL.md +58 -0
- package/plugins/just-vibe/skills/arch-contracts/SKILL.md +56 -0
- package/plugins/just-vibe/skills/arch-event-flow/SKILL.md +56 -0
- package/plugins/just-vibe/skills/arch-feature/SKILL.md +57 -0
- package/plugins/just-vibe/skills/arch-map/SKILL.md +56 -0
- package/plugins/just-vibe/skills/arch-modernize/SKILL.md +56 -0
- package/plugins/just-vibe/skills/arch-scale/SKILL.md +58 -0
- package/plugins/just-vibe/skills/arch-tenancy/SKILL.md +56 -0
- package/plugins/just-vibe/skills/auto/SKILL.md +67 -0
- package/plugins/just-vibe/skills/automate/SKILL.md +56 -0
- package/plugins/just-vibe/skills/backend-auth/SKILL.md +63 -0
- package/plugins/just-vibe/skills/backend-cache/SKILL.md +59 -0
- package/plugins/just-vibe/skills/backend-concurrency/SKILL.md +58 -0
- package/plugins/just-vibe/skills/backend-idempotency/SKILL.md +58 -0
- package/plugins/just-vibe/skills/backend-jobs/SKILL.md +56 -0
- package/plugins/just-vibe/skills/backend-permissions/SKILL.md +56 -0
- package/plugins/just-vibe/skills/backend-resilience/SKILL.md +56 -0
- package/plugins/just-vibe/skills/backend-service/SKILL.md +56 -0
- package/plugins/just-vibe/skills/brainstorm/SKILL.md +56 -0
- package/plugins/just-vibe/skills/build/SKILL.md +56 -0
- package/plugins/just-vibe/skills/challenge/SKILL.md +56 -0
- package/plugins/just-vibe/skills/checkpoint/SKILL.md +59 -0
- package/plugins/just-vibe/skills/ci/SKILL.md +56 -0
- package/plugins/just-vibe/skills/cleanup/SKILL.md +56 -0
- package/plugins/just-vibe/skills/compare/SKILL.md +56 -0
- package/plugins/just-vibe/skills/copy/SKILL.md +56 -0
- package/plugins/just-vibe/skills/coverage/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-backfill/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-contract/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-incremental/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-lineage/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-pipeline/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-profile/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-quality/SKILL.md +56 -0
- package/plugins/just-vibe/skills/data-reconcile/SKILL.md +56 -0
- package/plugins/just-vibe/skills/db-access/SKILL.md +56 -0
- package/plugins/just-vibe/skills/db-explain/SKILL.md +56 -0
- package/plugins/just-vibe/skills/db-index/SKILL.md +56 -0
- package/plugins/just-vibe/skills/db-integrity/SKILL.md +57 -0
- package/plugins/just-vibe/skills/db-locks/SKILL.md +56 -0
- package/plugins/just-vibe/skills/db-migrate/SKILL.md +63 -0
- package/plugins/just-vibe/skills/db-query/SKILL.md +56 -0
- package/plugins/just-vibe/skills/db-schema/SKILL.md +56 -0
- package/plugins/just-vibe/skills/debug/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decide/SKILL.md +57 -0
- package/plugins/just-vibe/skills/decision-adr/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decision-buy-build/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decision-matrix/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decision-premortem/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decision-reversible/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decision-revisit/SKILL.md +56 -0
- package/plugins/just-vibe/skills/decision-spike/SKILL.md +58 -0
- package/plugins/just-vibe/skills/deploy/SKILL.md +56 -0
- package/plugins/just-vibe/skills/deps/SKILL.md +56 -0
- package/plugins/just-vibe/skills/design/SKILL.md +56 -0
- package/plugins/just-vibe/skills/do/SKILL.md +8 -0
- package/plugins/just-vibe/skills/docs/SKILL.md +56 -0
- package/plugins/just-vibe/skills/doctor/SKILL.md +58 -0
- package/plugins/just-vibe/skills/explain/SKILL.md +56 -0
- package/plugins/just-vibe/skills/fix/SKILL.md +57 -0
- package/plugins/just-vibe/skills/git-bisect/SKILL.md +58 -0
- package/plugins/just-vibe/skills/git-commit/SKILL.md +59 -0
- package/plugins/just-vibe/skills/git-conflicts/SKILL.md +58 -0
- package/plugins/just-vibe/skills/git-diff/SKILL.md +58 -0
- package/plugins/just-vibe/skills/git-recover/SKILL.md +58 -0
- package/plugins/just-vibe/skills/git-split/SKILL.md +58 -0
- package/plugins/just-vibe/skills/git-status/SKILL.md +58 -0
- package/plugins/just-vibe/skills/git-worktree/SKILL.md +58 -0
- package/plugins/just-vibe/skills/github-actions/SKILL.md +64 -0
- package/plugins/just-vibe/skills/github-address-review/SKILL.md +58 -0
- package/plugins/just-vibe/skills/github-fix-ci/SKILL.md +63 -0
- package/plugins/just-vibe/skills/github-issue/SKILL.md +58 -0
- package/plugins/just-vibe/skills/github-pr/SKILL.md +63 -0
- package/plugins/just-vibe/skills/github-release/SKILL.md +58 -0
- package/plugins/just-vibe/skills/github-review/SKILL.md +58 -0
- package/plugins/just-vibe/skills/github-triage/SKILL.md +58 -0
- package/plugins/just-vibe/skills/handoff/SKILL.md +62 -0
- package/plugins/just-vibe/skills/help/SKILL.md +63 -0
- package/plugins/just-vibe/skills/integrate/SKILL.md +56 -0
- package/plugins/just-vibe/skills/learn/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-cost/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-evals/SKILL.md +58 -0
- package/plugins/just-vibe/skills/llm-injection/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-prompt/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-rag/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-retrieval/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-structured/SKILL.md +56 -0
- package/plugins/just-vibe/skills/llm-tools/SKILL.md +58 -0
- package/plugins/just-vibe/skills/map/SKILL.md +56 -0
- package/plugins/just-vibe/skills/match/SKILL.md +56 -0
- package/plugins/just-vibe/skills/migrate/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-ablation/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-baseline/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-batch/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-calibrate/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-dataset/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-dataset-version/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-debug-training/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-drift/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-error-analysis/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-evaluate/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-experiments/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-explain/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-features/SKILL.md +59 -0
- package/plugins/just-vibe/skills/ml-frame/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-imbalance/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-inference-perf/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-labels/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-leakage/SKILL.md +64 -0
- package/plugins/just-vibe/skills/ml-monitor/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-package/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-parity/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-report/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-reproduce/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-robustness/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-rollout/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-serving/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-slices/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-split/SKILL.md +58 -0
- package/plugins/just-vibe/skills/ml-threshold/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-train/SKILL.md +62 -0
- package/plugins/just-vibe/skills/ml-training-cost/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ml-tune/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-alerts/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-container/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-incident/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-logs/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-observability/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-postmortem/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-restore/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ops-runbook/SKILL.md +56 -0
- package/plugins/just-vibe/skills/orient/SKILL.md +58 -0
- package/plugins/just-vibe/skills/perf/SKILL.md +56 -0
- package/plugins/just-vibe/skills/plan/SKILL.md +56 -0
- package/plugins/just-vibe/skills/polish/SKILL.md +56 -0
- package/plugins/just-vibe/skills/pr/SKILL.md +58 -0
- package/plugins/just-vibe/skills/profile/SKILL.md +66 -0
- package/plugins/just-vibe/skills/profiles/SKILL.md +58 -0
- package/plugins/just-vibe/skills/react-async/SKILL.md +57 -0
- package/plugins/just-vibe/skills/react-audit/SKILL.md +56 -0
- package/plugins/just-vibe/skills/react-component/SKILL.md +65 -0
- package/plugins/just-vibe/skills/react-effects/SKILL.md +58 -0
- package/plugins/just-vibe/skills/react-forms/SKILL.md +56 -0
- package/plugins/just-vibe/skills/react-hydration/SKILL.md +57 -0
- package/plugins/just-vibe/skills/react-rerenders/SKILL.md +56 -0
- package/plugins/just-vibe/skills/react-state/SKILL.md +56 -0
- package/plugins/just-vibe/skills/refactor/SKILL.md +56 -0
- package/plugins/just-vibe/skills/release/SKILL.md +58 -0
- package/plugins/just-vibe/skills/remember/SKILL.md +70 -0
- package/plugins/just-vibe/skills/repro/SKILL.md +56 -0
- package/plugins/just-vibe/skills/research/SKILL.md +56 -0
- package/plugins/just-vibe/skills/responsive/SKILL.md +8 -0
- package/plugins/just-vibe/skills/resume/SKILL.md +63 -0
- package/plugins/just-vibe/skills/review/SKILL.md +56 -0
- package/plugins/just-vibe/skills/scope/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-authz/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-config/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-dependencies/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-fix/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-inputs/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-secrets/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-threat-model/SKILL.md +56 -0
- package/plugins/just-vibe/skills/security-uploads/SKILL.md +56 -0
- package/plugins/just-vibe/skills/setup/SKILL.md +60 -0
- package/plugins/just-vibe/skills/skill/SKILL.md +56 -0
- package/plugins/just-vibe/skills/spec/SKILL.md +56 -0
- package/plugins/just-vibe/skills/tasks/SKILL.md +56 -0
- package/plugins/just-vibe/skills/teach/SKILL.md +63 -0
- package/plugins/just-vibe/skills/teach-test/SKILL.md +65 -0
- package/plugins/just-vibe/skills/test/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-e2e/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-fixtures/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-flaky/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-integration/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-load/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-property/SKILL.md +56 -0
- package/plugins/just-vibe/skills/test-regression/SKILL.md +57 -0
- package/plugins/just-vibe/skills/test-unit/SKILL.md +56 -0
- package/plugins/just-vibe/skills/tools/SKILL.md +64 -0
- package/plugins/just-vibe/skills/trace/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-accessibility/SKILL.md +57 -0
- package/plugins/just-vibe/skills/ui-audit/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-flow/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-motion/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-responsive/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-states/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-system/SKILL.md +56 -0
- package/plugins/just-vibe/skills/ui-visual-diff/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vercel-audit/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vercel-build-fix/SKILL.md +63 -0
- package/plugins/just-vibe/skills/vercel-env/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vercel-performance/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vercel-preview/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vercel-release-check/SKILL.md +57 -0
- package/plugins/just-vibe/skills/vercel-routing/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vercel-runtime/SKILL.md +61 -0
- package/plugins/just-vibe/skills/verify/SKILL.md +59 -0
- package/plugins/just-vibe/skills/vite-assets/SKILL.md +57 -0
- package/plugins/just-vibe/skills/vite-bundle/SKILL.md +58 -0
- package/plugins/just-vibe/skills/vite-chunks/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vite-config/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vite-env/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vite-hmr/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vite-setup/SKILL.md +56 -0
- package/plugins/just-vibe/skills/vite-upgrade/SKILL.md +56 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data-profile
|
|
3
|
+
description: "Summarize distributions, missingness, duplicates, and suspicious values Use for descriptive data inspection; data-quality evaluates declared rules."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# data-profile
|
|
7
|
+
|
|
8
|
+
Summarize distributions, missingness, duplicates, and suspicious values
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for descriptive data inspection; data-quality evaluates declared rules.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Data engineering methods](../../references/packs/data.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; dataset/snapshot, columns, sampling limit, and task context.
|
|
19
|
+
|
|
20
|
+
data source/version, schema/semantics, transformation code, permitted sampling scope, and storage/compute budget. Prefer aggregates and redacted samples; never upload datasets to external services implicitly. Record time zones and snapshot identity for reproducibility.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `data.read`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Distributions, missingness, uniqueness, duplicates, ranges, and suspicious values.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Validate schema, select a representative bounded sample or authorized aggregate scan, compute summaries, and flag anomalies relative to declared semantics.
|
|
33
|
+
- Inspect schema and volume before scanning, distinguish nulls from sentinels and sample across relevant time/group strata with stated selection limits.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When the sample is convenience-based or filtered:** Label its population and avoid extrapolating exact counts or representativeness.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Profile with sample/full-scan distinction, counts, caveats, and follow-up checks.
|
|
42
|
+
- Snapshot/sample identity, summaries, anomaly examples and coverage limits.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- Missing and sentinel values are separated; sample statistics are not presented as exact full-population counts.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- Unknown volume triggers size inspection before scanning. Do not print sensitive row-level data unnecessarily.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (inspect):** Profile missingness and duplicates in this bounded dataset sample.
|
|
55
|
+
- **edge (inspect):** Profile a time-partitioned dataset with sentinel zeros and missing recent partitions.
|
|
56
|
+
- **blocked (inspect):** Inspect metadata only when row access is unavailable; do not fabricate distributions.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data-quality
|
|
3
|
+
description: "Check freshness, completeness, validity, and consistency Use to evaluate an identified snapshot against declared rules; data-profile discovers descriptive anomalies."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# data-quality
|
|
7
|
+
|
|
8
|
+
Check freshness, completeness, validity, and consistency
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use to evaluate an identified snapshot against declared rules; data-profile discovers descriptive anomalies.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Data engineering methods](../../references/packs/data.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; dataset, quality contract, thresholds, time window, and bounded execution access.
|
|
19
|
+
|
|
20
|
+
data source/version, schema/semantics, transformation code, permitted sampling scope, and storage/compute budget. Prefer aggregates and redacted samples; never upload datasets to external services implicitly. Record time zones and snapshot identity for reproducibility.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `data.read`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Freshness, completeness, validity, uniqueness, and cross-field consistency.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Resolve applicable rules, evaluate against the identified snapshot, separate warnings from failures, compare history where available, and identify likely upstream causes.
|
|
33
|
+
- Freeze applicable thresholds before observing results, evaluate completeness/freshness/validity separately and count excluded or unreadable records.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When required rule evidence is missing:** Mark the rule unknown and preserve the failed/unknown result rather than changing thresholds to pass.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Rule-by-rule results, affected counts, severity, and repair/monitoring proposals.
|
|
42
|
+
- Rule/version/snapshot/result matrix with counts and likely upstream causes.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- Stale but complete data fails freshness; missing rule evidence is unknown rather than passing.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- Installing monitors or repairing records is separate. Do not redefine thresholds after seeing results to force a pass.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (inspect):** Check these records against the supplied freshness and validity rules.
|
|
55
|
+
- **edge (inspect):** Evaluate fresh-but-incomplete and complete-but-stale partitions separately.
|
|
56
|
+
- **blocked (inspect):** Assess known rules without data access; do not install monitors or invent pass rates.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: data-reconcile
|
|
3
|
+
description: "Compare source and destination records and explain discrepancies Use to compare corresponding datasets; db-integrity checks database invariants."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# data-reconcile
|
|
7
|
+
|
|
8
|
+
Compare source and destination records and explain discrepancies
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use to compare corresponding datasets; db-integrity checks database invariants.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Data engineering methods](../../references/packs/data.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; source/destination snapshots, keys, transformations, tolerances, and comparison budget.
|
|
19
|
+
|
|
20
|
+
data source/version, schema/semantics, transformation code, permitted sampling scope, and storage/compute budget. Prefer aggregates and redacted samples; never upload datasets to external services implicitly. Record time zones and snapshot identity for reproducibility.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `data.read`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Missing, duplicated, changed, or aggregated discrepancies; no automatic repair.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Align snapshots/time windows, compare counts and keyed values, normalize only documented transformations, sample discrepancies safely, and explain likely causes.
|
|
33
|
+
- Align snapshot/window and key grain, compare membership before values and normalize only explicitly documented transformations.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When counts match but keys or values differ:** Quantify each mismatch class and retain redacted examples rather than declaring parity.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Reconciliation report, discrepancy categories, evidence, and repair candidates.
|
|
42
|
+
- Snapshot pair, keyed mismatch categories, denominators and evidence limits.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- Equal row counts do not hide different records; allowed rounding/timing differences are distinguished from loss.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- Misaligned snapshots prevent a definitive mismatch claim. No row-level data exposure beyond necessary authorized evidence.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (inspect):** Compare these aligned snapshots by key, not just row counts.
|
|
55
|
+
- **edge (inspect):** Reconcile exports with equal row counts but missing and duplicated IDs.
|
|
56
|
+
- **blocked (inspect):** Compare misaligned snapshots without calling timing differences data loss.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-access
|
|
3
|
+
description: "Audit roles, tenant filtering, and row-level policies where supported Use for grants, connection roles and row policies; backend-permissions checks application enforcement."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-access
|
|
7
|
+
|
|
8
|
+
Audit roles, tenant filtering, and row-level policies where supported
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for grants, connection roles and row policies; backend-permissions checks application enforcement.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; roles, tenant model, policies, engine, and representative access matrix.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Database privileges, tenant predicates, row-level policies, and bypass paths.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Inspect grants and execution identities, trace connection-role behavior, evaluate policies including writes, and design or run authorized isolated access checks.
|
|
33
|
+
- Trace the actual runtime role and ownership/bypass privileges; inspect read and write predicates with positive and cross-tenant negative cases.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When tests run as an elevated owner/service role:** Do not infer ordinary-user isolation from those results; test the intended execution identity.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Access findings, policy coverage, and remediation/test proposals.
|
|
42
|
+
- Role/resource/action matrix, policy paths and verified/unknown isolation checks.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- A tenant cannot read/update another tenant's rows; privileged service roles are recognized as potential policy bypasses.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- No grant/policy changes or real tenant-data probing by default. Unknown execution roles block confident isolation claims.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (inspect):** Audit tenant policies and service-role bypass paths from supplied metadata.
|
|
55
|
+
- **edge (inspect):** Review row policies where reads are scoped but inserts permit another tenant ID.
|
|
56
|
+
- **blocked (inspect):** Inspect policy definitions without probing real tenant data or changing grants.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-explain
|
|
3
|
+
description: "Interpret query plans and identify expensive operations Use to interpret an existing or authorized execution plan; db-index proposes an index from workload evidence."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-explain
|
|
7
|
+
|
|
8
|
+
Interpret query plans and identify expensive operations
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use to interpret an existing or authorized execution plan; db-index proposes an index from workload evidence.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; query, engine/version, saved execution plan, and workload context.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Plan interpretation, estimates, scans, joins, sorting, and evidence-supported bottlenecks.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Read operators and row estimates, compare actuals when supplied, identify cardinality errors and costly stages, and propose discriminating measurements.
|
|
33
|
+
- Read estimated versus actual rows, loop counts, filters, joins, sorting/spilling and buffers using engine-specific meaning; locate the first large estimation divergence.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When only an estimated plan is supplied:** Discuss cost/shape hypotheses without converting cost units into milliseconds or inventing execution statistics.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Annotated plan, likely causes, and targeted query/index/statistics options.
|
|
42
|
+
- Operator evidence, likely bottleneck, discriminating measurement and risk of running it.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- Estimated costs are not mislabeled as milliseconds; a row-estimate error is distinguished from a missing index.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- EXPLAIN ANALYZE or equivalents execute work and require appropriate authorization. No mutation hidden inside profiling.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (inspect):** Interpret this saved query plan without executing EXPLAIN ANALYZE.
|
|
55
|
+
- **edge (inspect):** Explain a plan whose nested loop multiplies work through a row-estimate error.
|
|
56
|
+
- **blocked (inspect):** Analyze EXPLAIN output without executing EXPLAIN ANALYZE or mutating functions.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-index
|
|
3
|
+
description: "Recommend indexes based on queries, write costs, and measurements Use for workload-specific index design; db-schema handles broader constraints and data shape."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-index
|
|
7
|
+
|
|
8
|
+
Recommend indexes based on queries, write costs, and measurements
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for workload-specific index design; db-schema handles broader constraints and data shape.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **plan**. Plan; actual queries/plans, schema/indexes, write workload, engine, and storage constraints.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Evidence-based index design, redundancy, and rollout; no automatic production DDL.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Analyze predicates/order/selectivity, compare existing indexes, estimate write/storage costs from evidence, and design before/after measurement and online-creation strategy where supported.
|
|
33
|
+
- Match equality/range/order predicates and selectivity to existing indexes, account for write/storage cost and compare the exact workload before/after.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When an existing index shares the proposed name:** Inspect definition and validity before reuse; an IF NOT EXISTS notice is not a compatibility check.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Index recommendations or authorized migration with measured validation.
|
|
42
|
+
- Candidate definition, supported workload, redundant overlap and rollout/measurement plan.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- Target query improves under comparable conditions; added write cost and redundant indexes are considered.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- Do not recommend indexes from column names alone. Unsupported online operations or lock risks must be addressed before execution.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (plan):** Recommend indexes from these query plans, including write and storage costs.
|
|
55
|
+
- **edge (plan):** Design an index for a tenant-filtered timeline with a stable secondary sort key.
|
|
56
|
+
- **blocked (inspect):** Assess indexing from schema without plans or workload counts; label performance estimates unknown.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-integrity
|
|
3
|
+
description: "Find orphaned records, invalid relationships, and missing constraints Use to check declared invariants in existing data; db-access checks permission policy."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-integrity
|
|
7
|
+
|
|
8
|
+
Find orphaned records, invalid relationships, and missing constraints
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use to check declared invariants in existing data; db-access checks permission policy.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; invariants, schema, data scope, and bounded read permission.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Orphans, duplicates, invalid relationships, and constraint gaps; no automatic deletion or repair.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Translate each explicit business invariant into its row, relationship and transaction boundary. Distinguish nullability and historical exceptions from actual corruption; ambiguous policy remains a question, not a deletion rule.
|
|
33
|
+
- Choose bounded counts and redacted examples against an identified snapshot. Assess scan/lock impact before live queries; use supplied artifacts when they are sufficient and do not infer current production state from stale samples.
|
|
34
|
+
- For preventive changes, separate input validation from shared storage constraints and atomic multi-row checks. Verify type/range, ownership, uniqueness, referential rules and overflow where relevant to the invariant.
|
|
35
|
+
- Propose repair with a selection predicate, expected count, restart behavior and recovery boundary. Implement only within the requested scope; detection does not authorize a live cleanup or schema change.
|
|
36
|
+
|
|
37
|
+
## Decision branches
|
|
38
|
+
|
|
39
|
+
- **When data violates an ambiguous business rule:** Report the evidence and policy question before proposing deletion or repair.
|
|
40
|
+
|
|
41
|
+
## Deliver and verify
|
|
42
|
+
|
|
43
|
+
- Invariant and snapshot, bounded check/count/example evidence, prevention or scoped repair proposal, and uncertainty from missing policy or live data.
|
|
44
|
+
|
|
45
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
46
|
+
|
|
47
|
+
- Checks detect an actual violating example and accept legitimate null/historical cases. Preventive writes cannot leave partial multi-row state on interruption; repair claims name the snapshot and rows actually verified.
|
|
48
|
+
|
|
49
|
+
## Stop and recover
|
|
50
|
+
|
|
51
|
+
- Ambiguous business rules prevent destructive recommendations. Large scans need a budget and appropriate execution environment.
|
|
52
|
+
|
|
53
|
+
## Example requests
|
|
54
|
+
|
|
55
|
+
- **Normal (inspect):** Audit orphaned invoice records with bounded read-only checks.
|
|
56
|
+
- **edge (inspect):** Check duplicate business keys while retaining legitimate archived duplicates.
|
|
57
|
+
- **blocked (inspect):** Plan integrity checks on a large table without scan authorization or production row dumps.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-locks
|
|
3
|
+
description: "Investigate blocking, deadlocks, long transactions, and contention Use for transaction blocking/deadlock diagnosis; backend-concurrency designs application consistency."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-locks
|
|
7
|
+
|
|
8
|
+
Investigate blocking, deadlocks, long transactions, and contention
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for transaction blocking/deadlock diagnosis; backend-concurrency designs application consistency.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **inspect**. Inspect; engine, time window, affected workload, and lock/session metadata.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Blocking chains, deadlocks, transaction duration, and contention causes.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Correlate blocked/blocking sessions and queries, inspect transaction boundaries, distinguish transient waits from persistent contention, and propose targeted remedies.
|
|
33
|
+
- Correlate wait and blocker snapshots with transaction age, query identity and application transaction boundaries; follow the root blocker rather than the noisiest victim.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When the reported deadlock already resolved:** Separate historical deadlock analysis from current blocking and avoid terminating unrelated live sessions.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Blocking graph/timeline, likely cause, and safe operational/code options.
|
|
42
|
+
- Blocking chain, snapshot time, transaction boundary and targeted remedy.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- The root blocker is distinguished from downstream victims; a completed deadlock is not confused with current blocking.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- No session termination, transaction cancellation, or timeout changes implicitly. Redact sensitive query parameters and acknowledge snapshot limitations.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (inspect):** Explain the blocking chain from these session and lock snapshots.
|
|
55
|
+
- **edge (inspect):** Diagnose an idle transaction blocking several otherwise fast updates.
|
|
56
|
+
- **blocked (inspect):** Analyze a saved lock snapshot without cancelling sessions or changing timeouts.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-migrate
|
|
3
|
+
description: "Create migrations with compatibility and rollback considerations Use for schema/data transition mechanics; db-schema designs the target model."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-migrate
|
|
7
|
+
|
|
8
|
+
Create migrations with compatibility and rollback considerations
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for schema/data transition mechanics; db-schema designs the target model.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **plan**. Plan; schema/data change, engine/version, deployment sequence, data volume, and recovery requirements.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Migration design/files when requested; live execution needs the exact environment/action authorization.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Inspect engine/version, migration runner transaction behavior, data shape and old/new application contracts. Record which versions read and write each field during rollout.
|
|
33
|
+
- Separate expansion, restartable backfill, validation and contraction. Define lock/downtime bounds, batch identity/checkpoint and interruption handling; estimate impact from evidence rather than row count alone.
|
|
34
|
+
- Exercise migration and restart on isolated representative data, including duplicates, nulls and old writers. Verify indexes/constraints are actually valid and semantically match the intended definition; name existence alone is insufficient.
|
|
35
|
+
- Define recovery per phase: code rollback, forward repair, and restoration of lost information are different operations. Delay destructive contraction until old readers/writers are retired and the agreed evidence establishes compatibility.
|
|
36
|
+
- Use the matching bundled evidence collector when available; read its result and limitations rather than treating exit zero as readiness. Revalidate identity before a dependent action.
|
|
37
|
+
|
|
38
|
+
## Read when relevant
|
|
39
|
+
|
|
40
|
+
- Resolving check, deployment or migration identity: [Delivery evidence](../../references/scenarios/delivery-evidence.md).
|
|
41
|
+
|
|
42
|
+
## Decision branches
|
|
43
|
+
|
|
44
|
+
- **When a PostgreSQL concurrent index is required:** Use the runner's supported nontransactional path, check invalid indexes after interruption, and never treat name existence alone as proof of a valid matching index.
|
|
45
|
+
|
|
46
|
+
## Deliver and verify
|
|
47
|
+
|
|
48
|
+
- Migration plan or files, compatibility evidence, execution conditions, and rollback/forward-recovery limits.
|
|
49
|
+
- Phase/SQL-or-runner-step/lock-risk/check/recovery table and compatibility evidence.
|
|
50
|
+
|
|
51
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
52
|
+
|
|
53
|
+
- Older app versions survive the intended overlap; interruption can resume without duplicated conversion.
|
|
54
|
+
|
|
55
|
+
## Stop and recover
|
|
56
|
+
|
|
57
|
+
- Never promise rollback for irreversible data loss. Missing backup/recovery evidence blocks destructive execution.
|
|
58
|
+
|
|
59
|
+
## Example requests
|
|
60
|
+
|
|
61
|
+
- **Normal (plan):** Plan splitting full_name while preserving old-version compatibility and source values.
|
|
62
|
+
- **edge (plan):** Plan a restartable migration after a concurrent index build left an invalid index.
|
|
63
|
+
- **blocked (inspect):** Review a destructive migration with no verified recovery evidence; do not execute it.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-query
|
|
3
|
+
description: "Write or repair queries against the actual schema Use for correct query semantics; db-explain analyzes the execution plan afterward."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-query
|
|
7
|
+
|
|
8
|
+
Write or repair queries against the actual schema
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for correct query semantics; db-explain analyzes the execution plan afterward.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **plan**. Plan; desired result, schema, engine, parameters, and scale. Explicit query execution selects the authorized mode/environment.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Declared evidence requirements: `database.context`. Use actual host discovery or adequate supplied artifacts; unavailable evidence remains blocked/unknown.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Correct SQL/query construction and relevant performance; no broad data repair.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Resolve join cardinality and null semantics, parameterize inputs, inspect result shape, and validate with representative fixtures or bounded authorized reads.
|
|
33
|
+
- Define expected result grain and cardinality, test one-to-many joins and nullable predicates, and compare hand-computed small-fixture results before optimization.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When joins multiply rows before aggregation:** Preaggregate or change the join while preserving semantics; DISTINCT is not a universal repair.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Query, assumptions, expected results, and verification evidence.
|
|
42
|
+
- Parameterized query, expected row grain and empty/null/duplicate-boundary checks.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- One-to-many joins do not silently inflate aggregates; empty/null inputs yield the intended behavior.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- Writes need explicit scope and affected-row checks. Do not run unbounded expensive queries against production for convenience.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (plan):** Write a query for invoice totals without multiplying values through one-to-many joins.
|
|
55
|
+
- **edge (plan):** Fix revenue totals doubled by joining two child collections.
|
|
56
|
+
- **blocked (inspect):** Review a query without database access; provide a fixture-based expectation rather than claimed live rows.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: db-schema
|
|
3
|
+
description: "Design or review tables, relationships, constraints, and types Use for relational modeling and constraints; db-migrate plans transition of existing data."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# db-schema
|
|
7
|
+
|
|
8
|
+
Design or review tables, relationships, constraints, and types
|
|
9
|
+
|
|
10
|
+
## Choose this workflow
|
|
11
|
+
|
|
12
|
+
Use for relational modeling and constraints; db-migrate plans transition of existing data.
|
|
13
|
+
|
|
14
|
+
Read [shared execution](../../references/execution.md) for context/mode/authority handling and [Databases methods](../../references/packs/database.md) for tool selection and operational details. Resolve these paths from this skill file; all runtime assets ship inside the plugin.
|
|
15
|
+
|
|
16
|
+
## Input and mode
|
|
17
|
+
|
|
18
|
+
Use the complete request appended to this invocation, preserving all constraints and references. Default mode: **plan**. Plan; entities, invariants, access patterns, engine, and existing schema.
|
|
19
|
+
|
|
20
|
+
actual engine/version, schema/migrations, query workload, and explicitly identified environment. Prefer supplied plans, metadata, and isolated fixtures. Even a SELECT can lock, call mutating functions, or overload a database; inspect semantics before execution. Executing an analyzed query is distinct from reading its plan.
|
|
21
|
+
|
|
22
|
+
Resolve any task-specific tools, target identity and evidence before dependent actions. No external connection is assumed.
|
|
23
|
+
|
|
24
|
+
## Scope
|
|
25
|
+
|
|
26
|
+
Tables, relationships, types, constraints, and lifecycle; no live DDL by default.
|
|
27
|
+
|
|
28
|
+
None by default. Plan artifacts may be saved when requested.
|
|
29
|
+
|
|
30
|
+
## Execute
|
|
31
|
+
|
|
32
|
+
- Model ownership/cardinality, encode enforceable invariants, compare access paths, assess nullability/deletion behavior, and plan compatibility with existing data.
|
|
33
|
+
- Derive keys/cardinality and deletion rules from explicit invariants, then check null semantics, uniqueness and access paths for the selected engine.
|
|
34
|
+
|
|
35
|
+
## Decision branches
|
|
36
|
+
|
|
37
|
+
- **When an optional relationship must still be tenant-consistent:** Consider composite ownership constraints or equivalent enforceable checks rather than trusting a single foreign key.
|
|
38
|
+
|
|
39
|
+
## Deliver and verify
|
|
40
|
+
|
|
41
|
+
- Schema proposal, rationale, migration considerations, and representative queries.
|
|
42
|
+
- Entity/key/constraint table, deletion semantics and valid/invalid row examples.
|
|
43
|
+
|
|
44
|
+
Verify these observable conditions when applicable to the actual task; do not claim they were exercised from merely reading this file:
|
|
45
|
+
|
|
46
|
+
- Invalid relationships are constrained; expected deletion behavior does not orphan required data.
|
|
47
|
+
|
|
48
|
+
## Stop and recover
|
|
49
|
+
|
|
50
|
+
- Do not invent business cardinality or assume another database's semantics. Data ambiguities become explicit decisions.
|
|
51
|
+
|
|
52
|
+
## Example requests
|
|
53
|
+
|
|
54
|
+
- **Normal (plan):** Design invoice relationships and deletion behavior against our actual database engine.
|
|
55
|
+
- **edge (plan):** Model optional memberships that cannot reference another tenant's organization.
|
|
56
|
+
- **blocked (inspect):** Design from requirements without a live database or inventing business cardinality.
|