@vesviet/agent-skills 5.8.0 → 5.11.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/INDEX.md +35 -22
- package/README.md +7 -18
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +40 -142
- package/adapters/antigravity/INDEX_TIER1.json +174 -146
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/antigravity-tools.md +25 -0
- package/adapters/antigravity/role-skill-index.json +175 -58
- package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
- package/adapters/claude/settings.template.json +18 -3
- package/adapters/cursor/README.md +1 -5
- package/adapters/cursor/hooks.template.json +4 -2
- package/core/contracts/README.md +0 -20
- package/core/contracts/schemas/compact-working-state.json +42 -1
- package/core/contracts/schemas/ui-component-spec.json +28 -2
- package/core/policies/README.md +0 -20
- package/core/policies/action-boundaries.yaml +10 -1
- package/core/policies/execution-sandbox.md +0 -12
- package/core/policies/mcp-tool-map.yaml +28 -0
- package/core/roles/3d-graphics-engineer.md +144 -208
- package/core/roles/README.md +1 -23
- package/core/roles/agent-coordinator.md +28 -147
- package/core/roles/agent-discovery-engineer.md +46 -39
- package/core/roles/ai-systems-engineer.md +2 -0
- package/core/roles/backend-developer.md +22 -117
- package/core/roles/cloudflare-engineer.md +1 -1
- package/core/roles/data-engineer.md +3 -1
- package/core/roles/devops-engineer.md +4 -3
- package/core/roles/ecommerce-engineer.md +18 -6
- package/core/roles/frontend-developer.md +146 -317
- package/core/roles/game-developer.md +2 -1
- package/core/roles/mobile-engineer.md +18 -204
- package/core/roles/product-manager.md +3 -3
- package/core/roles/project-manager.md +5 -5
- package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
- package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
- package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
- package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
- package/core/roles/references/backend-developer-responsibilities.md +47 -0
- package/core/roles/references/backend-developer-review-checklist.md +15 -0
- package/core/roles/references/business-analyst-responsibilities.md +2 -2
- package/core/roles/references/frontend-developer-responsibilities.md +14 -6
- package/core/roles/references/frontend-developer-review-checklist.md +13 -6
- package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
- package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
- package/core/roles/references/reviewer-review-checklist.md +54 -0
- package/core/roles/references/sdet-review-checklist.md +53 -0
- package/core/roles/references/solution-architect-responsibilities.md +134 -0
- package/core/roles/references/sre-review-checklist.md +81 -0
- package/core/roles/references/system-engineer-responsibilities.md +124 -0
- package/core/roles/references/technical-architect-responsibilities.md +192 -0
- package/core/roles/references/technical-architect-review-checklist.md +58 -0
- package/core/roles/references/technical-lead-review-checklist.md +65 -0
- package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
- package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
- package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
- package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +6 -6
- package/core/roles/researcher.md +3 -3
- package/core/roles/reviewer.md +2 -2
- package/core/roles/role-standard.md +79 -205
- package/core/roles/sdet.md +5 -6
- package/core/roles/security-engineer.md +4 -3
- package/core/roles/solution-architect.md +9 -130
- package/core/roles/sre.md +1 -0
- package/core/roles/system-engineer.md +15 -155
- package/core/roles/task-planner.md +1 -1
- package/core/roles/technical-architect.md +15 -244
- package/core/roles/technical-lead.md +1 -0
- package/core/roles/technical-writer.md +3 -3
- package/core/roles/ui-ux-designer.md +158 -303
- package/core/roles/vietnam-accounting-specialist.md +20 -20
- package/core/rules/README.md +0 -22
- package/core/rules/code.md +11 -6
- package/core/skills/README.md +12 -25
- package/core/skills/agent/agent-delegation/SKILL.md +11 -0
- package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
- package/core/skills/agent/agent-memory-compaction/SKILL.md +79 -82
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
- package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
- package/core/skills/agent/agent-observability/SKILL.md +12 -6
- package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
- package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
- package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
- package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
- package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
- package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
- package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
- package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
- package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
- package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
- package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
- package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
- package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
- package/core/skills/ai/openrouter-task/SKILL.md +5 -5
- package/core/skills/ai-agent/context-optimization/SKILL.md +2 -0
- package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
- package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
- package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
- package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
- package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
- package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
- package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
- package/core/skills/backend/add-event-handler/SKILL.md +12 -1
- package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
- package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
- package/core/skills/backend/add-service-client/SKILL.md +2 -0
- package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
- package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
- package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
- package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
- package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
- package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
- package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
- package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
- package/core/skills/backend/implement-auth/SKILL.md +9 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
- package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
- package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
- package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
- package/core/skills/business/elicit-requirements/SKILL.md +2 -0
- package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
- package/core/skills/business/write-use-cases/SKILL.md +1 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +18 -66
- package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
- package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +22 -58
- package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
- package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +17 -50
- package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
- package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +5 -1
- package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
- package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
- package/core/skills/content/write-article/SKILL.md +1 -1
- package/core/skills/document/docx/SKILL.md +1 -0
- package/core/skills/document/pdf/SKILL.md +2 -0
- package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
- package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
- package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
- package/core/skills/document/xlsx/SKILL.md +1 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +3 -0
- package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
- package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
- package/core/skills/documentation/write-documentation/SKILL.md +4 -1
- package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
- package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
- package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
- package/core/skills/education/create-exercises/SKILL.md +1 -0
- package/core/skills/education/design-learning-plan/SKILL.md +1 -0
- package/core/skills/education/grade-and-review/SKILL.md +1 -0
- package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +4 -5
- package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
- package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
- package/core/skills/foundation/conduct-research/SKILL.md +2 -2
- package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
- package/core/skills/foundation/create-migration/SKILL.md +10 -0
- package/core/skills/foundation/design-review/SKILL.md +9 -10
- package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
- package/core/skills/foundation/discernment-nudge/SKILL.md +2 -0
- package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
- package/core/skills/foundation/incident-report/SKILL.md +1 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +3 -1
- package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
- package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
- package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
- package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
- package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
- package/core/skills/foundation/release-notes/SKILL.md +3 -3
- package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
- package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +15 -0
- package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
- package/core/skills/foundation/write-tests/SKILL.md +9 -0
- package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
- package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
- package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
- package/core/skills/frontend/INDEX.json +16 -0
- package/core/skills/frontend/add-page-route/SKILL.md +10 -8
- package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
- package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +4 -1
- package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
- package/core/skills/frontend/component-composition/SKILL.md +12 -1
- package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +4 -1
- package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
- package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +119 -0
- package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +7 -4
- package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
- package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +12 -12
- package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
- package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
- package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
- package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +6 -3
- package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
- package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +8 -5
- package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
- package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
- package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
- package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
- package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
- package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
- package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
- package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
- package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
- package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
- package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
- package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
- package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
- package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
- package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
- package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +14 -10
- package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +72 -0
- package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
- package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
- package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
- package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
- package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
- package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
- package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +3 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +3 -0
- package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
- package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
- package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
- package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
- package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
- package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
- package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
- package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
- package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
- package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
- package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
- package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
- package/core/skills/platform/agents-sdk/SKILL.md +1 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
- package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
- package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
- package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
- package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
- package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
- package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
- package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
- package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
- package/core/skills/platform/durable-objects/SKILL.md +1 -0
- package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
- package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
- package/core/skills/platform/setup-deployment/SKILL.md +6 -2
- package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
- package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
- package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
- package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
- package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
- package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
- package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
- package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +3 -2
- package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
- package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
- package/core/skills/platform/web-perf/SKILL.md +2 -2
- package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
- package/core/skills/platform/wrangler/SKILL.md +1 -0
- package/core/skills/product/build-story-map/SKILL.md +3 -0
- package/core/skills/product/define-product-strategy/SKILL.md +1 -0
- package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
- package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
- package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
- package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
- package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
- package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
- package/core/skills/repo-ops/review-code/SKILL.md +12 -2
- package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
- package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
- package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
- package/core/skills/repo-ops/review-service/SKILL.md +4 -1
- package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
- package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
- package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
- package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
- package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +8 -7
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
- package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
- package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +3 -0
- package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
- package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
- package/core/skills/security-data/security-audit/SKILL.md +3 -1
- package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
- package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +3 -0
- package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
- package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
- package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
- package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
- package/core/workflows/README.md +0 -20
- package/overlays/README.md +2 -22
- package/overlays/astro-cloudflare/README.md +0 -20
- package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
- package/overlays/b2b-catalog-golf/README.md +0 -20
- package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
- package/overlays/b2b-factory-catalog/README.md +0 -20
- package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
- package/overlays/b2b-sport-catalog/README.md +0 -20
- package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
- package/overlays/cad-projection/README.md +0 -20
- package/overlays/cad-projection/rules/cad-conventions.md +0 -20
- package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
- package/overlays/data-analyst-stack/README.md +0 -20
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
- package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
- package/overlays/data-warehouse/README.md +0 -22
- package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
- package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
- package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
- package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
- package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
- package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
- package/overlays/ecommerce-microservices/README.md +22 -35
- package/overlays/ecommerce-microservices/config/README.md +3 -1
- package/overlays/ecommerce-microservices/rules/README.md +2 -1
- package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
- package/overlays/ecommerce-microservices/skills/README.md +1 -1
- package/overlays/ecommerce-microservices/workflows/README.md +3 -1
- package/overlays/fintech-compliance/README.md +0 -20
- package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
- package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
- package/overlays/go-microservices/README.md +1 -21
- package/overlays/go-microservices/rules/go-conventions.md +0 -31
- package/overlays/hugo-authority-content/README.md +0 -20
- package/overlays/hugo-authority-content/roles/README.md +0 -20
- package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
- package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
- package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
- package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
- package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
- package/overlays/hugo-authority-content/workflows/README.md +0 -20
- package/overlays/hvac-authority-content/README.md +0 -20
- package/overlays/hvac-authority-content/config/collections.md +0 -22
- package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
- package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
- package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
- package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
- package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
- package/overlays/laravel-ecommerce/README.md +0 -20
- package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
- package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
- package/overlays/laravel-filament/README.md +0 -20
- package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
- package/overlays/livestream-web/README.md +0 -20
- package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
- package/overlays/obj-configurator/README.md +0 -20
- package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
- package/overlays/r3f-stack/README.md +0 -20
- package/overlays/r3f-stack/rules/stub.md +0 -31
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
- package/overlays/real-estate-content/README.md +0 -20
- package/overlays/real-estate-content/roles/README.md +0 -20
- package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
- package/overlays/real-estate-content/rules/content-schema.md +0 -31
- package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
- package/overlays/real-estate-content/workflows/README.md +0 -20
- package/overlays/security-research/README.md +0 -20
- package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
- package/overlays/seo-publishing/README.md +1 -21
- package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
- package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
- package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
- package/overlays/ui-design-system/README.md +0 -20
- package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
- package/package.json +2 -2
- package/packs/README.md +3 -9
- package/packs/ecommerce-team/manifest.yaml +1 -1
- package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
- package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
- package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
- package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
- package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
- package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
- package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
- package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
- package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
- package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
- package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
- package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
- package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
- package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
- package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
- package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
- package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
- package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
- package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
- package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
- package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
- package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
- package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
- package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Production GenAI System Risk Register: Autonomous Support Agent
|
|
2
|
+
|
|
3
|
+
```yaml
|
|
4
|
+
system_id: "agentic-support-v2"
|
|
5
|
+
system_name: "Customer Operations Autonomous Support Agent"
|
|
6
|
+
assessment_date: "2026-11-08"
|
|
7
|
+
assessor: "security-engineer"
|
|
8
|
+
review_due: "2027-02-08"
|
|
9
|
+
|
|
10
|
+
governance:
|
|
11
|
+
owner: "Director of Platform Engineering"
|
|
12
|
+
policy_profile: "restricted-agentic"
|
|
13
|
+
human_oversight_mechanism: "Dual-operator HITL modal for refunds > $50 and account changes"
|
|
14
|
+
review_cadence: "quarterly"
|
|
15
|
+
escalation_path: "VP Engineering & Legal Compliance"
|
|
16
|
+
|
|
17
|
+
eu_ai_act:
|
|
18
|
+
risk_tier: "limited-risk"
|
|
19
|
+
classification_rationale: "Customer support conversational interface; does not evaluate credit, safety-critical systems, or recruitment."
|
|
20
|
+
conformity_assessment_required: false
|
|
21
|
+
audit_logging_required: true
|
|
22
|
+
hitl_required: true
|
|
23
|
+
bias_assessment_required: false
|
|
24
|
+
target_compliance_date: "2026-08-02"
|
|
25
|
+
transparency_art_50:
|
|
26
|
+
disclosure_banner: "You are chatting with an AI assistant."
|
|
27
|
+
c2pa_metadata_tagging: true
|
|
28
|
+
|
|
29
|
+
nist_600_1_risks:
|
|
30
|
+
hallucination_threshold: "< 1.5% ungrounded assertions on golden evaluation benchmark"
|
|
31
|
+
model_degradation_signal: "Drop in semantic similarity below 0.88 over 7-day rolling window"
|
|
32
|
+
bias_exposure: "Multi-lingual queries in non-English locales"
|
|
33
|
+
data_privacy_classification: "Restricted - customer PII sanitized via presidio before LLM ingestion"
|
|
34
|
+
ip_risk: "Low - model inference only, no fine-tuning on proprietary customer contracts"
|
|
35
|
+
|
|
36
|
+
owasp_asi_alignment:
|
|
37
|
+
- asi_id: "ASI01"
|
|
38
|
+
threat: "Direct prompt injection via user support query"
|
|
39
|
+
mitigation: "Strict XML delimiter encapsulation + secondary classifier check"
|
|
40
|
+
- asi_id: "ASI03"
|
|
41
|
+
threat: "Agent executing unauthenticated customer refund tool"
|
|
42
|
+
mitigation: "Task-scoped JWT with max $50 refund limit; higher amounts require HITL token"
|
|
43
|
+
- asi_id: "ASI06"
|
|
44
|
+
threat: "Customer injecting malicious instructions into persistent chat memory"
|
|
45
|
+
mitigation: "OWASP ASI06 memory hygiene sanitization; rejection of system-prompt overrides"
|
|
46
|
+
- asi_id: "ASI08"
|
|
47
|
+
threat: "Tool timeout causing support agent infinite retry storm"
|
|
48
|
+
mitigation: "Exponential backoff with circuit breaker trip at 5 failures"
|
|
49
|
+
|
|
50
|
+
autonomy_and_reversibility:
|
|
51
|
+
autonomy_tier: "semi-autonomous"
|
|
52
|
+
reversible_actions:
|
|
53
|
+
- "search_knowledge_base"
|
|
54
|
+
- "draft_ticket_reply"
|
|
55
|
+
- "get_order_status"
|
|
56
|
+
irreversible_actions:
|
|
57
|
+
- "process_refund"
|
|
58
|
+
- "cancel_subscription"
|
|
59
|
+
- "update_customer_email"
|
|
60
|
+
irreversible_action_policy: "Mandatory human confirmation gate"
|
|
61
|
+
|
|
62
|
+
residual_risks:
|
|
63
|
+
- risk: "Edge case refund fraud under $50 limit"
|
|
64
|
+
accepted_by: "Risk & Finance Committee"
|
|
65
|
+
accepted_date: "2026-10-15"
|
|
66
|
+
review_date: "2027-04-15"
|
|
67
|
+
```
|
package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# NIST AI RMF 1.0 & EU AI Act Risk Taxonomy (2026)
|
|
2
|
+
|
|
3
|
+
## 1. Overview & Dual Governance Framework
|
|
4
|
+
|
|
5
|
+
Governing production AI/ML systems requires harmonizing the NIST AI Risk Management Framework (NIST AI RMF 1.0 / NIST AI 600-1) with statutory mandates under the EU AI Act (Regulation EU 2024/1689).
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌────────────────────────────────────────────────────────┐
|
|
9
|
+
│ NIST AI RMF 1.0 │
|
|
10
|
+
│ GOVERN ──────► MAP ──────► MEASURE ──────► MANAGE │
|
|
11
|
+
└───────────────────────────┬────────────────────────────┘
|
|
12
|
+
│
|
|
13
|
+
▼
|
|
14
|
+
┌────────────────────────────────────────────────────────┐
|
|
15
|
+
│ EU AI ACT TIERS │
|
|
16
|
+
│ Unacceptable ──► High-Risk ──► Limited ──► Minimal │
|
|
17
|
+
│ (Prohibited) (Conformity) (Art. 50) (Codes) │
|
|
18
|
+
└────────────────────────────────────────────────────────┘
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 2. NIST AI 600-1 Generative AI Profile (12 Risk Dimensions)
|
|
22
|
+
|
|
23
|
+
1. **Confabulation / Hallucination**: Ungrounded, fabricated factual assertions. Measurable via hallucination rate benchmarks and factuality metrics.
|
|
24
|
+
2. **CBRN Information Hazards**: Proliferation of chemical, biological, radiological, or nuclear weapons blueprints.
|
|
25
|
+
3. **Cyberattacks / Malicious Code**: Autonomous vulnerability generation, automated exploitation payloads, and unverified code execution.
|
|
26
|
+
4. **Data Privacy Violations**: PII extraction via model inversion, membership inference, and training data memorization.
|
|
27
|
+
5. **Environmental Impacts**: Carbon emissions and energy footprint during training and inference lifecycle.
|
|
28
|
+
6. **Harmful Bias & Homogenization**: Algorithmic discrimination, stereotyping, and lack of representation.
|
|
29
|
+
7. **Human-AI Configuration Failures**: Overreliance (automation bias), underreliance, and cognitive degradation.
|
|
30
|
+
8. **Information Integrity**: Machine-generated synthetic disinformation, deepfakes, and societal manipulation.
|
|
31
|
+
9. **Intellectual Property Infringement**: Copyrighted training corpus reproduction and patent infringement.
|
|
32
|
+
10. **Obscene / Harmful Content**: Hate speech, harassment, self-harm, and CSAM generation.
|
|
33
|
+
11. **Value Chain & Component Risks**: Vulnerabilities in upstream foundational models, tokenizer poison, and model supply chain drift.
|
|
34
|
+
12. **Societal & Macro-Level Harms**: Labor market disruption, critical infrastructure dependencies, and democratic system degradation.
|
|
35
|
+
|
|
36
|
+
## 3. EU AI Act Statutory Classifications & Deadlines
|
|
37
|
+
|
|
38
|
+
- **Prohibited Systems (Art. 5)**: Real-time biometric identification in public spaces, social scoring, behavioral manipulation causing harm.
|
|
39
|
+
- **High-Risk Systems (Annex III)**: Autonomous hiring/recruitment tools, credit scoring algorithms, essential public benefit allocation, autonomous critical infrastructure.
|
|
40
|
+
- *Obligations*: Formal Fundamental Rights Impact Assessment (FRIA), continuous quality management system (QMS), automated audit logging for 6+ months, mandatory human-in-the-loop (HITL) kill switches.
|
|
41
|
+
- *Deadlines*: Standalone high-risk systems: 2 December 2027; products embedded under Union harmonization legislation: 2 August 2028.
|
|
42
|
+
- **Limited-Risk Systems (Art. 50)**: User-facing chatbots, synthetic audio/video, AI-generated text.
|
|
43
|
+
- *Obligations (Enforceable from August 2026)*: Conspicuous machine-readable labeling and watermarking (C2PA standard).
|
|
44
|
+
|
|
45
|
+
## 4. Agentic Autonomy & Reversibility Analysis
|
|
46
|
+
|
|
47
|
+
For multi-agent systems, risk classification must evaluate action irreversibility:
|
|
48
|
+
- **Reversible Actions**: Read operations, draft generations, internal cache mutations. Supervised autonomy permitted.
|
|
49
|
+
- **Irreversible Actions**: Financial transactions, permanent database mutations, external email/notification transmissions. Mandatory HITL confirmation gate before execution.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: combinatorial-testing
|
|
3
3
|
description: Design pairwise and n-way combinatorial test suites using orthogonal arrays and covering parameter matrices to prevent combinatorial explosion. Use when testing multi-parameter workflows, distributed configurations, or cross-service API contracts.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: conduct-research
|
|
3
|
-
description: Execute iterative, deeply-verified research to discover, validate, and synthesize complex information. Use
|
|
3
|
+
description: Execute iterative, deeply-verified research to discover, validate, and synthesize complex information applying AI-era source discipline, Citation DAG topology, and Chain-of-Verification. Use when conducting deep (10+ round) or scoped (3+ round with waiver) investigations before architecture, product, or content decisions. Primary skill for the Researcher role.
|
|
4
4
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
5
|
version: "2.0.0"
|
|
6
6
|
taxonomy: foundation
|
|
@@ -32,7 +32,7 @@ Use this skill when a task requires deep discovery before architectural, product
|
|
|
32
32
|
- enforce quantitative **Information Density**: calculate $\text{ID} = \frac{\text{Named Entities} + \text{Quantified Metrics}}{\text{Total Words}} \ge 0.12$; strip conversational filler
|
|
33
33
|
- populate `recommended_next_roles` in JSON handoffs — do not author feature-ticket.json or architecture decisions
|
|
34
34
|
|
|
35
|
-
### AI-Era Source Discipline
|
|
35
|
+
### AI-Era Source Discipline
|
|
36
36
|
For the full reference architecture, see [`references/sota-deep-research-architecture.md`](references/sota-deep-research-architecture.md) and [`references/ai-era-source-discipline.md`](references/ai-era-source-discipline.md).
|
|
37
37
|
- AI-generated answers (Perplexity, ChatGPT, Google AI Overviews, Gemini) are **never** citable; use only to formulate queries (`ZERO-AI-PRIMARY-CITATION-LOCK`).
|
|
38
38
|
- Treat every URL, statistic, or quote from an AI tool as unverified until the original document is read.
|
|
@@ -4,7 +4,7 @@ Deep material extracted from `SKILL.md` to keep the main file under 200 lines.
|
|
|
4
4
|
Load this file when the research touches AI-era source discipline, YMYL topics,
|
|
5
5
|
or when a handoff requires detailed CoVe logging.
|
|
6
6
|
|
|
7
|
-
## AI-Era Source Discipline
|
|
7
|
+
## AI-Era Source Discipline
|
|
8
8
|
|
|
9
9
|
### Source Hierarchy
|
|
10
10
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: create-migration
|
|
3
3
|
description: Create safe schema or data migrations by following the repo's local migration tool, naming rules, rollout constraints, and rollback expectations. Use when adding, changing, backfilling, cleaning, or repairing persisted data structures.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -142,6 +143,15 @@ backfill, and the data classification of any new column.
|
|
|
142
143
|
- **PII column added without classification**: a new column stores customer PII but is not classified. Mitigation: classify every new column with `data-classification.yaml`; surface restricted columns in the migration report.
|
|
143
144
|
- **Permanent flag without cleanup**: a feature flag is introduced to gate the migration but has no cleanup target. Mitigation: every flag must carry an ISO 8601 cleanup target.
|
|
144
145
|
|
|
146
|
+
## Red Flags
|
|
147
|
+
|
|
148
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
149
|
+
| :--- | :--- | :--- |
|
|
150
|
+
| "Just rename/drop the column directly in one migration — the table is small today." | Running old app pods crash during rolling deploys on missing columns. | Use 3-phase Expand-Contract across separate safe deployments. |
|
|
151
|
+
| "`CREATE INDEX` without `CONCURRENTLY` is fine for a quick fix." | Acquires write-blocking locks and stalls production traffic behind DDL wait queues. | Declare `SET lock_timeout = '2s';` and build indexes `CONCURRENTLY`. |
|
|
152
|
+
| "I'll backfill all rows in one `UPDATE` query." | Massive WAL bloat, replication lag, and long-held row locks crash replicas. | Batch backfills in `500–2000` keyset rows with throttling pauses. |
|
|
153
|
+
| "Rollback isn't needed if forward migration looks clean." | Partial failures leave unrecoverable corrupt production schemas. | Author explicit down-scripts or document partial-rollback limits honestly. |
|
|
154
|
+
|
|
145
155
|
## Security Guardrails (OWASP ASI)
|
|
146
156
|
|
|
147
157
|
- **ASI03 Identity & Privilege Abuse**: the migration's privileged database role must be scoped to the minimum required grants; reject migrations that run under a superuser role when a scoped role would suffice.
|
|
@@ -22,9 +22,10 @@ Use this skill with **UI/UX Designer** or **Reviewer** when the deliverable is d
|
|
|
22
22
|
- consume `ux-flow-spec.json` and `ui-component-spec.json` when present; do not invent missing states
|
|
23
23
|
- separate blocking UX defects from polish or preference; classify findings as blocking | should-fix | suggestion
|
|
24
24
|
- every screen spec must define all 5 critical UI states: Empty, Loading/Skeleton, Populated, Error (with actionable recovery), and Unauthorized/Permission — specs missing any of these states are incomplete
|
|
25
|
-
- verify design-system tokens — all styles must reference tokens; zero hardcoded hex colors, magic spacing numbers, or raw typography values are acceptable (DTCG Design Tokens Format Module 2025.10, `$value`/`$type` syntax)
|
|
26
|
-
- for AI-generated UI (v0.dev, Galileo, Builder.io, Copilot): run token conformance check (no hardcoded values), axe-core accessibility scan, and style namespace pollution check before development handoff
|
|
27
|
-
- require interactive Figma prototype
|
|
25
|
+
- verify design-system tokens — all styles must reference Two-Tier semantic tokens (`DESIGN.md` `MASTER` + page overrides); zero hardcoded hex colors, magic spacing numbers, or raw typography values are acceptable (DTCG Design Tokens Format Module 2025.10, `$value`/`$type` syntax)
|
|
26
|
+
- for AI-generated UI (v0.dev, Galileo, Builder.io, Copilot): run token conformance check (no hardcoded values), composition hygiene (`<= 2` stylistic booleans, compound anatomy), axe-core accessibility scan, and style namespace pollution check before development handoff
|
|
27
|
+
- require an interactive Figma prototype link OR an `interactive-component-workbench` scratch-route verification for flows with more than 2 screens before Frontend implementation begins
|
|
28
|
+
- apply **Web Interface Micro-Craft checks (`web-design-guidelines`)** during UI/spec audits and emit concise `file:line` findings when reviewing UI markup/specs: URL-as-state persistence, hydration-safe inputs (no paste blocking, valid `autocomplete`), focus restoration + `Esc` close on dialogs, `overscroll-behavior: contain` on scrollable overlays, `scroll-margin-top` under sticky headers, true Unicode ellipsis (`…`) on `"Action…"` / `"Loading…"` labels, `tabular-nums` on comparable/live figures, `min-w-0` flex truncation safety, and `color-scheme: dark` on dark surfaces
|
|
28
29
|
- do not implement UI; emit findings for Frontend or UI/UX to fix
|
|
29
30
|
- route code-level bugs to `review-code`; route a11y conformance gaps to `accessibility-review`
|
|
30
31
|
- treat AI-generated UI outputs (v0.dev, Galileo, Builder.io, Copilot) as untrusted artifacts: validate tokens, accessibility, and namespace conformance before any handoff to Frontend
|
|
@@ -91,13 +92,11 @@ Note spec gaps (missing state, missing api_field, ambiguous transition).
|
|
|
91
92
|
- Review transitions, timing animations, and edge-case state responses (such as validation errors and loading loops) inside the interactive prototype.
|
|
92
93
|
- Verify that touch targets and hover states behave as expected across various screen dimensions.
|
|
93
94
|
|
|
94
|
-
### 2026:
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
- Audit Section Variety & Bento Grids: verify at least 4 layout families across 8 sections; verify no more than 2 consecutive alternating zigzag sections; verify bento grids have no blank filler tiles.
|
|
100
|
-
- Audit CTA & Copy Discipline: verify unified CTA labels per intent; verify primary desktop CTAs do not wrap; verify zero em-dashes in UI copy.
|
|
95
|
+
### 2026: Domain Aesthetic & Web Interface Micro-Craft Audit
|
|
96
|
+
- **Anti-Monoculture Aesthetic Check**: verify the spec provides a domain-grounded Design Read and Archetype-calibrated Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`) — flag both legacy AI tropes (purple glow, `Fraunces`/`Instrument_Serif`, `Inter`/`Space Grotesk` unprompted) and unprompted Linear-dark-Geist-Emerald cloning when the domain calls for daylight/editorial/enterprise craft.
|
|
97
|
+
- **Mode A vs Mode B Check**: for Mode A (In-App Product UI), verify surface selection (Inline/Drawer/Modal/Route), URL-as-state, destructive confirmation tiers, and `composition_anatomy` (`<= 2` stylistic booleans). For Mode B (Landing/Showcase), verify hero `<= 100dvh` (`headline <= 2 lines`, `subtext <= 20 words`, `pt-24` max), `<= 1` eyebrow per 3 sections, `>= 4` layout families per 8 sections, and zero blank bento tiles.
|
|
98
|
+
- **Web Interface Micro-Craft (`web-design-guidelines`)**: check unicode `…` (never `...`), `"Action…"` on dialog triggers, `tabular-nums` on numeric tables, `color-scheme: dark` on dark themes, `overscroll-behavior: contain` inside modals/drawers, `scroll-margin-top` on anchor targets, focus restoration on modal close, hydration-safe inputs without paste blocking, `min-w-0` truncation, unified CTA labels, and zero em-dashes (`—`).
|
|
99
|
+
- **Terse Findings Format**: when auditing UI files or specs, emit actionable `file:line` (or `spec_path#field`) findings grouped by `blocking | should-fix | suggestion`.
|
|
101
100
|
|
|
102
101
|
## Checklist
|
|
103
102
|
|
|
@@ -29,7 +29,10 @@ Use this skill with the **UI/UX Designer** role when user-facing behavior must b
|
|
|
29
29
|
- do not implement production UI — hand off specs to Frontend Developer
|
|
30
30
|
- apply progressive disclosure to hide secondary options until primary actions are taken
|
|
31
31
|
- design agent UX flows to include delegation confirmations, progress indicators, and recoverable interrupts — users must always have a cancel/undo path for agent-initiated state changes
|
|
32
|
-
-
|
|
32
|
+
- classify every scope as **Mode A (In-App Product UI)** or **Mode B (Landing & Showcase)** before layouting; never impose Mode B marketing hero/zigzag rules onto Mode A operational tools
|
|
33
|
+
- select interaction surfaces deliberately (**Inline** vs **Popover** vs **Drawer/Sheet** vs **Modal Dialog** vs **Dedicated Route**) and serialize filter, tab, pagination, and drawer state into URL query params (`URL-as-state`)
|
|
34
|
+
- specify composition-ready component contracts (`composition_anatomy`: compound subcomponents `Root/Trigger/Content`, slots, explicit variants, `<= 2` stylistic booleans) aligned with `component-composition`
|
|
35
|
+
- use Figma Variables (linked to DTCG Design Tokens Format Module 2025.10 tokens via Tokens Studio, `$value`/`$type` syntax) OR an `interactive-component-workbench` scratch route to validate dynamic real-data states (long names, empty states, errors); require an interactive prototype or workbench verification for any flow with more than 2 screens
|
|
33
36
|
- design dual-audience operability when AI agents operate the UI alongside human users: declare `agent_operability` (agent entry points, machine-readable affordances, agent courtesy rules) in ux-flow-spec.json (Agents-as-Users, NN/g 2026)
|
|
34
37
|
- run a dark-pattern compliance review on every flow: check nagging, obstruction, sneaking, forced action, confirmshaming, and trick questions against DSA Art 25/26 and FTC standards; record findings in ux-flow-spec.json `dark_pattern_review`
|
|
35
38
|
|
|
@@ -98,13 +101,12 @@ Publish UX handoff manifest (flow path + component paths) for Frontend and QA.
|
|
|
98
101
|
- Disclose advanced options, settings, and complex configuration contextually after the primary action is selected.
|
|
99
102
|
- Avoid cognitive overload by grouping advanced settings into collapsible panels or secondary screens.
|
|
100
103
|
|
|
101
|
-
### 2026:
|
|
104
|
+
### 2026: Domain-Grounded Aesthetic Direction & Dual-Mode Flow Governance
|
|
102
105
|
|
|
103
|
-
-
|
|
104
|
-
- Calibrate the Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`)
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
- Unify CTA labels per user intent across all screens in the flow.
|
|
106
|
+
- Select the **Domain Archetype** (`Fintech`, `Healthcare`, `B2B Ops`, `DevTool`, `Editorial`, `Luxury`, `E-Commerce`, `AI Workspace`, `Public Sector`, `General SaaS`) from `core/roles/references/ui-ux-designer-anti-slop-standards.md` and emit a 1-line Design Read committing to a distinct aesthetic pole (avoiding both legacy purple-glow slop and unprompted Linear-dark-Geist-Emerald cloning).
|
|
107
|
+
- Calibrate the Three Dials (`DESIGN_VARIANCE`, `MOTION_INTENSITY`, `VISUAL_DENSITY`) from the Domain Archetype Matrix.
|
|
108
|
+
- **Mode A (In-App Product UI)**: define navigation topology, URL-persisted state, surface selection (Inline/Popover/Drawer/Modal/Route), destructive action tiers (Undo Toast vs Named Confirm vs Typed Confirm), and `tabular-nums` for numeric columns.
|
|
109
|
+
- **Mode B (Landing & Showcase)**: enforce hero viewport containment (`min-h-[100dvh]`, headline `<= 2` lines, subtext `<= 20` words, primary CTA above fold, `pt-24` max top padding), `<= 1` eyebrow per 3 sections, `>= 4` layout families per 8 sections, and unified CTA labels per intent.
|
|
108
110
|
|
|
109
111
|
## Output Format
|
|
110
112
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: discernment-nudge
|
|
3
3
|
description: "Use when evaluating high-stakes architectural plans, financial projections, or critical code reviews, appending 2 to 3 sharp Socratic follow-up questions to probe unstated assumptions, verify critical facts, and surface missing context."
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -17,6 +18,7 @@ allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_
|
|
|
17
18
|
- **Reasoning Probing:** Hidden assumptions regarding concurrency, distributed state, or single points of failure.
|
|
18
19
|
- **Missing Context:** Environmental variables, legacy edge cases, or client quirks assumed by the proposal.
|
|
19
20
|
5. **Concise & Non-Preachy Posture:** Keep each question under 30 words. Focus strictly on actionable engineering risks.
|
|
21
|
+
6. **Repo-First Lookup & Decision Frontier:** Never ask questions already answered in repository docs, schemas, or source code; inspect local truth first and target only the unresolved decision frontier.
|
|
20
22
|
|
|
21
23
|
## Suggested Process
|
|
22
24
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hostile-component-stress-testing
|
|
3
3
|
description: Use when subjecting UI components to hostile edge-case inputs across 6 scenario axes on an isolated scratch route and checking removed regression signals.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: incident-report
|
|
3
3
|
description: Capture, structure, and communicate an incident from triage through resolution and prevention. Use when a production failure, degradation, or security event requires a formal timeline, impact assessment, root cause analysis, and follow-up action items.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plan-technical-delivery
|
|
3
3
|
description: Turn architecture decisions and requirements into a delivery-ready technical plan with slices, quality gates, impact radius, and rollout notes. Use when Technical Lead breaks down implementation work for developers, QA, and release.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -18,7 +19,8 @@ Use with the **Technical Lead** role after requirements and architecture inputs
|
|
|
18
19
|
## Core Rules
|
|
19
20
|
|
|
20
21
|
- **Spec-driven contract freeze**: interface contracts (OpenAPI 3.1, JSON Schema, Protobuf) must be validated and frozen before dispatching any implementation slice; slices must explicitly declare preserved invariants
|
|
21
|
-
- **Vertical thin slicing**: decompose features into thin vertical slices (
|
|
22
|
+
- **Vertical thin slicing (Tracer Bullets & DAG Frontier)**: decompose features into thin vertical tracer-bullet slices (schema → API → UI → tests) delivering independent user value — sized for a single context window (≤400 lines diff); declare explicit `Blocked by` DAG dependencies to expose the parallelizable execution frontier; horizontal layer slicing is prohibited
|
|
23
|
+
- **Expand-Contract Refactoring**: execute breaking interface or schema migrations via 3 safe phases (*Expand* parallel surface → *Migrate* callers in slices → *Contract* legacy surface) rather than big-bang rewrites
|
|
22
24
|
- **Blast radius & regression risk matrix**: evaluate consumer fanout (High/Medium/Low), failure domain isolation, mutation vulnerability hotspots, and zero-downtime data migration rollback safety for every slice
|
|
23
25
|
- **Sequential milestone gates**: progression between dependent slices requires passing automated gates: Gate 1 (Contract Freeze), Gate 2 (Red Test in Sandbox), Gate 3 (Green Impl in Sandbox), and Gate 4 (Mutation Score ≥75–80% & Blast Radius Check)
|
|
24
26
|
- **Execution sandbox tier mapping**: map every slice to its required execution sandbox tier (Tier 1 Process, Tier 2 Docker container with `--network=none`, Tier 3 gVisor/MicroVM) per `core/policies/execution-sandbox.md`
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: playwright-evidence-qa
|
|
3
3
|
description: Use when diagnosing Playwright test failures using tripartite evidence triage (screenshot, DOM snapshot, console logs) to classify root causes into application defects, selector drift, or timing flakiness.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactor-legacy-code
|
|
3
|
+
description: Refactor legacy modules safely using Strangler Fig seams, characterization tests, dependency-inversion decoupling, and small verifiable commits without mixing behavior changes. Use when splitting monolithic files, isolating global state or external dependencies, or migrating legacy patterns cleanly.
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Refactor Legacy Code
|
|
9
|
+
|
|
10
|
+
Use this skill when restructuring existing code, breaking monoliths via Strangler Fig seams, or decouple legacy modules while guaranteeing 100% behavioral preservation.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- extracting pure domain logic from bloated controllers, singletons, or god classes
|
|
15
|
+
- writing golden characterization tests before altering untested legacy behavior
|
|
16
|
+
- executing safe incremental Strangler Fig migrations or Expand-Contract interface swaps
|
|
17
|
+
- isolating static globals, clock calls, or side effects behind injectable seams
|
|
18
|
+
|
|
19
|
+
## Core Rules
|
|
20
|
+
|
|
21
|
+
- **Strict Behavior-Preservation Separation**: Never mix structural refactoring with bug fixes or new feature logic in the same diff — land behavior changes in an independent PR/slice before or after cleanup.
|
|
22
|
+
- **Characterization Safety Net First**: Before moving or splitting untested code, pin current observed outputs (including edge cases and quirk behavior) in characterization tests and confirm green baseline exit code 0.
|
|
23
|
+
- **Seam-Driven Extraction**: Extract time (`Clock`), randomness, filesystem, and network/DB adapters behind thin parameter/constructor interfaces before reorganizing business flow.
|
|
24
|
+
- **Smallest Reversibly Verifiable Steps**: Proceed in atomic steps (`rename -> extract pure helper -> introduce interface seam -> swap caller -> delete dead code`), running target tests after each step.
|
|
25
|
+
- **Contract Parity Under Refactors**: When refactoring touches HTTP, gRPC, or event serializers, assert byte/JSON schema parity against golden fixtures and run `check_refactor_blast_radius.py`.
|
|
26
|
+
|
|
27
|
+
## Suggested Process
|
|
28
|
+
|
|
29
|
+
### 1. Map Callers & Freeze Behavioral Baseline
|
|
30
|
+
Use skill: `navigate-service`. Locate every caller, global state dependency, and external side effect touching the target module.
|
|
31
|
+
|
|
32
|
+
### 2. Write Characterization Tests
|
|
33
|
+
Pin current external inputs -> outputs and side effects (database rows, emitted events, error codes) BEFORE editing production code.
|
|
34
|
+
|
|
35
|
+
### 3. Introduce Seams & Extract Pure Core
|
|
36
|
+
Isolate side effects (clock, UUID, HTTP, SQL) via explicit dependencies so core decision logic becomes deterministic and fast to test.
|
|
37
|
+
|
|
38
|
+
### 4. Reorganize, Verify Parity & Prune Dead Code
|
|
39
|
+
Move extracted units cleanly, run full unit/contract tests + `check_refactor_blast_radius.py`, and remove obsolete shims only after all callers migrate.
|
|
40
|
+
|
|
41
|
+
## Checklist
|
|
42
|
+
|
|
43
|
+
- [ ] target scope separated strictly from feature changes or opportunistic bug fixes
|
|
44
|
+
- [ ] all callers and shared side effects mapped via `navigate-service`
|
|
45
|
+
- [ ] characterization tests authored and green BEFORE structural edits
|
|
46
|
+
- [ ] global state / clock / I/O isolated behind explicit seams
|
|
47
|
+
- [ ] API/event wire formats verified unchanged via contract/golden fixtures
|
|
48
|
+
- [ ] full tests and linters rerun cleanly after final dead-code cleanup
|
|
49
|
+
|
|
50
|
+
## Red Flags
|
|
51
|
+
|
|
52
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
53
|
+
| :--- | :--- | :--- |
|
|
54
|
+
| "I noticed a small logic bug mid-refactor — let me fix it in the same commit." | Masks behavior regressions and makes bisecting/reverting impossible. | Preserve exact legacy behavior now; log and fix the bug in its own slice. |
|
|
55
|
+
| "This function is obvious, no need for characterization tests first." | Subtle caller-dependent edge cases break silently when moving branches. | Write characterization tests locking current outputs before moving code. |
|
|
56
|
+
| "Refactor the whole 15-file subsystem at once so types line up." | Unreviewable mega-diff introduces hidden N+1 queries or race regressions. | Work in small single-responsibility slices, testing after every move. |
|
|
57
|
+
| "Delete legacy wrappers immediately before checking dynamic callers." | Breaks reflection, webhook routes, or external consumers still calling old path. | Search callers + runtime metrics and retire shims in a clean final commit. |
|
|
58
|
+
|
|
59
|
+
## Output Contracts
|
|
60
|
+
|
|
61
|
+
When refactoring spans multiple slices or cross-role boundaries, emit:
|
|
62
|
+
|
|
63
|
+
- **`contracts/schemas/implementation-result.json`** capturing changed vs preserved behavior, characterization tests added, and blast-radius metrics.
|
|
64
|
+
|
|
65
|
+
## Failure Modes
|
|
66
|
+
|
|
67
|
+
- **Silent semantic drift**: subtle ordering/rounding changes alter billing or auth outcomes. Mitigation: pin outputs with characterization golden assertions before editing.
|
|
68
|
+
- **Scope creep mega-PR**: opportunistic cleanup pulls 30 unrelated files into diff. Mitigation: enforce file blast-radius budget (`check_refactor_blast_radius.py`).
|
|
69
|
+
- **Deleted seam breaks reflection caller**: dynamic/cron caller missed by static type check. Mitigation: grep config, cron, and DI bindings before pruning shims.
|
|
70
|
+
|
|
71
|
+
## Security Guardrails (OWASP ASI)
|
|
72
|
+
|
|
73
|
+
- **ASI03 Identity & Privilege Abuse**: never bypass or relocate auth checks downward without re-verifying every caller preserves authorization invariants.
|
|
74
|
+
- **ASI05 RCE Guard**: never refactor explicit static dispatch into dynamic `eval`/`getattr` lookup tables.
|
|
75
|
+
- **ASI09 Human-Agent Trust Exploitation**: surface behavior-altering bugs noticed during refactoring instead of fixing them silently under a "refactor" label.
|
|
76
|
+
|
|
77
|
+
## Related Skills
|
|
78
|
+
|
|
79
|
+
- **navigate-service**: Map callers, entrypoints, and blast radius before editing
|
|
80
|
+
- **write-tests**: Author characterization and contract-parity suites
|
|
81
|
+
- **review-code**: Validate zero behavioral drift and clean architecture boundaries
|
|
82
|
+
- **commit-code**: Package small atomic refactor steps cleanly
|
|
83
|
+
- Companion reference: [`references/strangler-fig-seams-and-characterization-tests.md`](references/strangler-fig-seams-and-characterization-tests.md)
|
|
84
|
+
- Companion example: [`examples/characterization-test-seam-extraction.py`](examples/characterization-test-seam-extraction.py)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Worked example: extracting a pure pricing seam covered by a characterization test."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from dataclasses import dataclass
|
|
6
|
+
from datetime import datetime, timezone
|
|
7
|
+
from typing import Callable
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@dataclass(frozen=True)
|
|
11
|
+
class DiscountInput:
|
|
12
|
+
subtotal_minor: int
|
|
13
|
+
is_vip: bool
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def legacy_compute_discount(item: DiscountInput, *, now_fn: Callable[[], datetime] | None = None) -> int:
|
|
17
|
+
"""Extracted pure core with injectable clock seam preserving exact legacy truncation rules."""
|
|
18
|
+
clock = now_fn or (lambda: datetime.now(timezone.utc))
|
|
19
|
+
now = clock()
|
|
20
|
+
rate = 15 if (item.is_vip and now.weekday() == 4) else (10 if item.is_vip else 0)
|
|
21
|
+
return (item.subtotal_minor * rate) // 100
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def test_characterization_friday_vip_discount_preserved() -> None:
|
|
25
|
+
friday = lambda: datetime(2026, 11, 27, 12, 0, tzinfo=timezone.utc) # Friday
|
|
26
|
+
monday = lambda: datetime(2026, 11, 23, 12, 0, tzinfo=timezone.utc) # Monday
|
|
27
|
+
assert legacy_compute_discount(DiscountInput(1999, True), now_fn=friday) == 299
|
|
28
|
+
assert legacy_compute_discount(DiscountInput(1999, True), now_fn=monday) == 199
|
|
29
|
+
assert legacy_compute_discount(DiscountInput(1999, False), now_fn=friday) == 0
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
if __name__ == "__main__":
|
|
33
|
+
test_characterization_friday_vip_discount_preserved()
|
|
34
|
+
print("Characterization test passed.")
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Strangler Fig Seams & Characterization Testing Guide
|
|
2
|
+
|
|
3
|
+
Normative reference for `refactor-legacy-code`: Working Effectively with Legacy Code seam patterns, golden-master pinning, and blast-radius bounds.
|
|
4
|
+
|
|
5
|
+
## 1. Characterization Testing Protocol
|
|
6
|
+
|
|
7
|
+
Unlike feature TDD (which specifies *desired* behavior), a characterization test records *actual* current behavior of a legacy unit before any edits:
|
|
8
|
+
|
|
9
|
+
1. Invoke target function across representative nominal + boundary + null inputs (including odd legacy rounding or status quirks).
|
|
10
|
+
2. Assert exact outputs/side effects and run the suite to confirm 100% baseline PASS.
|
|
11
|
+
3. Freeze assertions until structural extraction is complete; never alter assertion expectations mid-refactor.
|
|
12
|
+
|
|
13
|
+
## 2. Three Primary Seam Techniques
|
|
14
|
+
|
|
15
|
+
- **Parameter / Clock Seam**: Inject `now_fn` / `Clock` instead of calling `datetime.now()` inside pricing or expiration logic.
|
|
16
|
+
- **Adapter Interface Seam**: Wrap legacy raw SQL / HTTP calls behind a minimal repository/client protocol so domain calculation becomes pure and memory-testable.
|
|
17
|
+
- **Strangler Fig Facade**: Route new callers through `v2` clean module while keeping `v1` delegating through an adapter until 100% caller cutover is verified.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Check refactor slice blast radius and ensure test coverage accompanies production moves."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def assess_refactor_slice(
|
|
11
|
+
prod_files_changed: list[str],
|
|
12
|
+
test_files_changed: list[str],
|
|
13
|
+
*,
|
|
14
|
+
max_prod_files: int = 12,
|
|
15
|
+
includes_behavior_fix: bool = False,
|
|
16
|
+
) -> list[str]:
|
|
17
|
+
errors: list[str] = []
|
|
18
|
+
if len(prod_files_changed) > max_prod_files:
|
|
19
|
+
errors.append(
|
|
20
|
+
f"Blast radius exceeded: {len(prod_files_changed)} prod files > limit {max_prod_files}; split into smaller slices."
|
|
21
|
+
)
|
|
22
|
+
if prod_files_changed and not test_files_changed:
|
|
23
|
+
errors.append("No characterization or regression tests modified alongside refactored production files.")
|
|
24
|
+
if includes_behavior_fix:
|
|
25
|
+
errors.append("Behavior bug fixes must be separated from structural refactors.")
|
|
26
|
+
return errors
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def run_self_test() -> int:
|
|
30
|
+
ok = assess_refactor_slice(["src/billing/core.py"], ["tests/test_billing_char.py"])
|
|
31
|
+
assert ok == [], f"Expected clean slice, got {ok}"
|
|
32
|
+
|
|
33
|
+
no_tests = assess_refactor_slice(["src/billing/core.py"], [])
|
|
34
|
+
assert len(no_tests) == 1
|
|
35
|
+
too_big = assess_refactor_slice([f"src/m{i}.py" for i in range(15)], ["tests/t.py"])
|
|
36
|
+
assert len(too_big) == 1
|
|
37
|
+
mixed = assess_refactor_slice(["src/a.py"], ["tests/t.py"], includes_behavior_fix=True)
|
|
38
|
+
assert len(mixed) == 1
|
|
39
|
+
print("check_refactor_blast_radius self-test PASSED")
|
|
40
|
+
return 0
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def main() -> int:
|
|
44
|
+
parser = argparse.ArgumentParser(description="Validate refactor slice blast radius constraints.")
|
|
45
|
+
parser.add_argument("--self-test", action="store_true")
|
|
46
|
+
parser.add_argument("--prod", nargs="*", default=[])
|
|
47
|
+
parser.add_argument("--tests", nargs="*", default=[])
|
|
48
|
+
parser.add_argument("--max-files", type=int, default=12)
|
|
49
|
+
args = parser.parse_args()
|
|
50
|
+
|
|
51
|
+
if args.self_test:
|
|
52
|
+
return run_self_test()
|
|
53
|
+
errs = assess_refactor_slice(args.prod, args.tests, max_prod_files=args.max_files)
|
|
54
|
+
if errs:
|
|
55
|
+
for e in errs:
|
|
56
|
+
print(f"ERROR: {e}", file=sys.stderr)
|
|
57
|
+
return 1
|
|
58
|
+
print("OK: refactor blast radius within threshold")
|
|
59
|
+
return 0
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
if __name__ == "__main__":
|
|
63
|
+
sys.exit(main())
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: release-notes
|
|
3
3
|
description: Draft, structure, and review release notes for a software change so that users, operators, and downstream consumers understand what changed, what broke compatibility, and what action they must take. Use when shipping a feature, fix, or breaking change that requires external communication.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -158,6 +159,8 @@ Before publishing, verify:
|
|
|
158
159
|
- **commit-code**: Prepare the release commit and tag
|
|
159
160
|
- **review-service**: Confirm release readiness before communication goes out
|
|
160
161
|
- **write-tech-radar**: Document longer-term technology direction changes
|
|
162
|
+
- Companion reference: `references/keep-a-changelog-and-semver-governance.md`
|
|
163
|
+
- Companion example: `examples/enterprise-platform-release-notes.md`
|
|
161
164
|
|
|
162
165
|
## Output Contracts
|
|
163
166
|
|
|
@@ -187,6 +190,3 @@ Skip emission for internal-only release notes that are never consumed by another
|
|
|
187
190
|
- **ASI04 Supply Chain**: when a release bundles third-party dependencies, the notes must list behavioral changes that affect users; treat undisclosed upstream changes as a release-blocking issue.
|
|
188
191
|
- **ASI07 Inter-Agent Communication**: release notes are consumed by downstream agents (adoption trackers, migration bots, customer comms); emit a structured contract so each consumer can validate.
|
|
189
192
|
- **ASI09 Human-Agent Trust Exploitation**: do not soften a breaking change or omit a known regression to obtain a faster publish; surface every material risk honestly.
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Release Notes — Core Commerce Platform v3.0.0 (2026-11-08)
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
version: "3.0.0"
|
|
5
|
+
release_date: "2026-11-08"
|
|
6
|
+
breaking_changes:
|
|
7
|
+
- id: "BC-301"
|
|
8
|
+
summary: "Sunset of legacy v1 checkout REST endpoints in favor of UCP v2026-08-25"
|
|
9
|
+
migration_guide_url: "https://docs.example.com/migrations/v3-checkout"
|
|
10
|
+
new_features:
|
|
11
|
+
- id: "FEAT-881"
|
|
12
|
+
summary: "Support for Machine Payments Protocol (MPP) and x402 V2 settlement"
|
|
13
|
+
security_fixes:
|
|
14
|
+
- cve: "CVE-2026-4401"
|
|
15
|
+
severity: "High"
|
|
16
|
+
advisory: "Patched timing discrepancy in webhook signature validation"
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## ⚠️ Breaking Changes
|
|
20
|
+
|
|
21
|
+
- **[API]** Deprecated `/api/v1/checkout` endpoints have been removed. All client SDKs must migrate to Universal Commerce Protocol (`/api/ucp/v1/sessions`). See [Migration Guide](https://docs.example.com/migrations/v3-checkout).
|
|
22
|
+
- **[Operator]** Database migration `0042_add_spiffe_workload_id.sql` must be executed before deploying v3.0.0 container pods.
|
|
23
|
+
|
|
24
|
+
## ✨ New Features
|
|
25
|
+
|
|
26
|
+
- **[Commerce]** Native support for **Machine Payments Protocol (MPP)** and **x402 V2** payment negotiation for autonomous agents.
|
|
27
|
+
- **[Platform]** SPIFFE/SPIRE workload attestation for all internal service-to-service communication.
|
|
28
|
+
|
|
29
|
+
## 🐛 Defect Fixes
|
|
30
|
+
|
|
31
|
+
- **[Checkout]** Resolved race condition in inventory reservation locking under high concurrency.
|
|
32
|
+
- **[Telemetry]** Corrected OpenTelemetry trace context propagation across async Kafka worker consumers.
|
|
33
|
+
|
|
34
|
+
## 🔒 Security
|
|
35
|
+
|
|
36
|
+
- **[Auth]** Upgraded webhook signature verification to constant-time comparison, mitigating timing attack risks (advisory CVE-2026-4401).
|
|
37
|
+
|
|
38
|
+
## 📋 Operator & Infrastructure Notes
|
|
39
|
+
|
|
40
|
+
- **Environment Variables**: Added mandatory `SPIFFE_ENDPOINT_SOCKET` configuration.
|
|
41
|
+
- **Database Migrations**: Zero-downtime migration tested on PostgreSQL 17; run `migrate up` during rolling upgrade.
|
|
42
|
+
- **Rollback Runbook**: If deployment is aborted, rollback deployment image to `v2.14.2`; migration `0042` is backwards-compatible.
|