@vesviet/agent-skills 5.10.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 +31 -19
- package/README.md +6 -18
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +40 -142
- package/adapters/antigravity/INDEX_TIER1.json +142 -121
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/antigravity-tools.md +25 -0
- package/adapters/antigravity/role-skill-index.json +156 -48
- package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
- package/adapters/claude/settings.template.json +11 -0
- package/adapters/cursor/README.md +1 -5
- package/adapters/cursor/hooks.template.json +1 -1
- 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/execution-sandbox.md +0 -12
- package/core/roles/3d-graphics-engineer.md +144 -208
- package/core/roles/README.md +0 -22
- 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 +145 -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/researcher.md +3 -3
- package/core/roles/reviewer.md +2 -2
- package/core/roles/role-standard.md +79 -213
- 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 -245
- 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/rules/README.md +0 -22
- package/core/skills/README.md +10 -24
- 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 +69 -99
- 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-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/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/backend/add-api-endpoint/SKILL.md +9 -0
- package/core/skills/backend/add-event-handler/SKILL.md +11 -0
- 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/business/elicit-requirements/SKILL.md +1 -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 +15 -65
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +19 -57
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +14 -49
- package/core/skills/commerce/manage-product-catalog/SKILL.md +2 -0
- package/core/skills/document/docx/SKILL.md +1 -0
- package/core/skills/document/pdf/SKILL.md +1 -0
- package/core/skills/document/xlsx/SKILL.md +1 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +1 -0
- package/core/skills/documentation/write-documentation/SKILL.md +1 -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 +1 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
- package/core/skills/foundation/conduct-research/SKILL.md +1 -1
- 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 +1 -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 +1 -0
- 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 +1 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +10 -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/frontend/add-page-route/SKILL.md +7 -7
- package/core/skills/frontend/add-ui-component/SKILL.md +1 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +2 -2
- package/core/skills/frontend/component-composition/SKILL.md +10 -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 +1 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +25 -24
- package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +4 -3
- package/core/skills/frontend/integrate-api-client/SKILL.md +9 -11
- 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 +3 -2
- package/core/skills/frontend/setup-visual-regression/SKILL.md +5 -4
- 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/render-webgl-threejs/SKILL.md +12 -10
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +21 -5
- 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/deploy-mmo-infrastructure/SKILL.md +1 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +1 -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/agents-sdk/SKILL.md +1 -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 +2 -2
- 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 +1 -2
- 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 +1 -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 +10 -0
- package/core/skills/repo-ops/review-service/SKILL.md +3 -0
- 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/manage-vietnam-accounting/SKILL.md +1 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +1 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +1 -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,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-caching-and-locking
|
|
3
|
+
description: Design distributed caching tiers, atomic Redis 7.4+ Lua fencing-token locks, cache-stampede protection (singleflight / XFetch), and hot-spot key mitigation without split-brain or race conditions. Use when building distributed locks, inventory reservations, rate limiters, session/JTI caches, or flash-sale hot-key pipelines.
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Design Caching and Locking
|
|
9
|
+
|
|
10
|
+
Use this skill when implementing distributed locks, atomic Redis Lua state transitions, flash-sale hot-spot caching, or stampede-resistant cache invalidation.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- protecting inventory reservations, payment webhooks, or leader leases with Redis Lua fencing tokens
|
|
15
|
+
- eliminating thundering-herd cache stampedes via `singleflight` or probabilistic early expiration (XFetch)
|
|
16
|
+
- preventing Redis hot-key CPU saturation under flash-sale traffic (local L1 + sharded counters)
|
|
17
|
+
- storing security revocation state (JWT JTI denylists) with bounded TTLs and fail-closed policies
|
|
18
|
+
|
|
19
|
+
## Core Rules
|
|
20
|
+
|
|
21
|
+
- **Fencing Tokens Required on Distributed Locks**: Mutual-exclusion locks MUST issue a monotonically increasing fencing token (`INCR lock:fence:<resource>`) validated by downstream storage before committing writes — plain `SET NX PX` without storage fencing permits split-brain overwrites after GC/network pauses.
|
|
22
|
+
- **Lua Script Atomicity & Determinism**: Keep check-and-mutate operations inside one Redis Lua script (`EVALSHA`); avoid `TIME`, `RANDOMKEY`, `math.random`, and unbounded key scans (`KEYS *`).
|
|
23
|
+
- **Explicit TTL on Every Ephemeral Key**: Every lock, reservation, idempotency cache, and JTI denylist entry MUST specify an explicit finite TTL (`EX`/`PX`); never leave orphan locks without expiration.
|
|
24
|
+
- **Anti-Stampede Invalidation**: Guard cache-miss rebuilds with per-process `singleflight` coalescing + short jittered negative caching + early XFetch refresh before hard expiry.
|
|
25
|
+
- **Fail-Closed vs Fail-Open Separation**: Security revocation checks (`jti` denylist, rate limits on auth/payment) MUST fail closed if cache state is unreachable; read-through product caches may degrade cleanly to rate-limited DB replicas.
|
|
26
|
+
|
|
27
|
+
## Suggested Process
|
|
28
|
+
|
|
29
|
+
### 1. Classify Cache vs Lock Invariant
|
|
30
|
+
Determine consistency bar: eventual read cache (bounded staleness) vs linearizable state transition (fenced lock or atomic Lua reservation).
|
|
31
|
+
|
|
32
|
+
### 2. Design Keyspace, Shard Strategy & TTLs
|
|
33
|
+
Define deterministic key prefixes (`resv:{sku_id}`, `fence:{sku_id}`), compute memory budget ($N_{\text{keys}} \times (\text{key\_bytes} + \text{val\_bytes} + \text{overhead})$), and shard hot SKUs when single-shard ops exceed $50\text{k ops/s}$.
|
|
34
|
+
|
|
35
|
+
### 3. Implement Atomic Lua Transition & Storage Fencing
|
|
36
|
+
Write the Lua script in `examples/` or service repo, attach `EX`/`PEXPIRE` on every new key, return `[ok, fencing_token, remaining]`, and persist the `WHERE last_fence < $token` guard in SQL/storage. Run `verify_lua_atomicity.py` on Lua files before merging.
|
|
37
|
+
|
|
38
|
+
### 4. Verify Under Concurrency & Failover
|
|
39
|
+
Use skill: `write-tests`. Simulate parallel checkout bursts, expired lease takeover, and cache unavailability to verify zero oversell and fail-closed security behavior.
|
|
40
|
+
|
|
41
|
+
## Checklist
|
|
42
|
+
|
|
43
|
+
- [ ] distributed lock returns a monotonically increasing fencing token checked at downstream storage
|
|
44
|
+
- [ ] check-and-mutate executes inside one deterministic Redis Lua script (no `KEYS *`, `TIME`, or `math.random`)
|
|
45
|
+
- [ ] every lock, reservation, and denylist key enforces an explicit finite TTL (`EX` / `PX`)
|
|
46
|
+
- [ ] cache rebuild paths apply `singleflight` / XFetch stampede protection
|
|
47
|
+
- [ ] hot-spot traffic uses L1 LRU or sharded sub-keys with parity tests under concurrency
|
|
48
|
+
|
|
49
|
+
## Red Flags
|
|
50
|
+
|
|
51
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
52
|
+
| :--- | :--- | :--- |
|
|
53
|
+
| "`GET` then `DECR` in app code is fast enough in Redis." | Concurrent requests interleave and oversell negative inventory under load. | Move check + decrement + TTL inside one atomic Lua script. |
|
|
54
|
+
| "`SET NX EX 30` is all we need for mutual exclusion." | Process pause > 30s lets stale holder overwrite newer lock holder's write. | Issue monotonic fencing token and enforce `fence >= current` in storage. |
|
|
55
|
+
| "Skip TTL on permanent deny keys or let eviction handle it." | Unbounded key growth exhausts Redis `maxmemory` and evicts active locks. | Set explicit TTL equal to token/reservation lifetime plus skew margin. |
|
|
56
|
+
| "Let all 5,000 misses query PostgreSQL directly when cache expires." | Stampede saturates DB connections and cascades into full outage. | Coalesce misses via `singleflight`, stagger TTL jitter, and pre-warm hot keys. |
|
|
57
|
+
|
|
58
|
+
## Output Contracts
|
|
59
|
+
|
|
60
|
+
When caching or locking alters cross-service contracts or rollout configuration, emit:
|
|
61
|
+
|
|
62
|
+
- **`contracts/schemas/implementation-result.json`** documenting Lua scripts, key prefixes, TTLs, and concurrency test results.
|
|
63
|
+
|
|
64
|
+
## Failure Modes
|
|
65
|
+
|
|
66
|
+
- **Split-brain stale writer**: lock expires during GC pause and stale worker writes anyway. Mitigation: validate monotonic fencing token inside DB conditional update.
|
|
67
|
+
- **Hot-key shard saturation**: single flash-sale SKU pins one Redis CPU core at 100%. Mitigation: L1 local micro-cache (50-200ms) + $K$-sharded counters.
|
|
68
|
+
- **Out-of-memory lock eviction**: cache bloat under `allkeys-lru` evicts active locks. Mitigation: separate Redis cluster/namespace (`noeviction`) for locks/idempotency vs `allkeys-lru` cache.
|
|
69
|
+
|
|
70
|
+
## Security Guardrails (OWASP ASI)
|
|
71
|
+
|
|
72
|
+
- **ASI02 Tool Misuse**: Lua scripts must never `cjson`/eval untrusted user strings into Redis commands.
|
|
73
|
+
- **ASI03 Identity & Privilege Abuse**: JTI denylists and session locks must fail closed when Redis is unreachable.
|
|
74
|
+
- **ASI05 RCE Guard**: validate numeric TTL/quantity arguments strictly as bounded integers before `EVALSHA`.
|
|
75
|
+
|
|
76
|
+
## Related Skills
|
|
77
|
+
|
|
78
|
+
- **add-api-endpoint**: Wire idempotency keys and rate limits at HTTP handlers
|
|
79
|
+
- **handle-checkout-flow**: Apply TTL reservations and ATP fencing during checkout
|
|
80
|
+
- **optimize-postgres**: Guard storage updates paired with distributed fencing tokens
|
|
81
|
+
- **write-tests**: Author concurrent race-condition verification suites
|
|
82
|
+
- Companion reference: [`references/redis-lua-fencing-and-stampede-specs.md`](references/redis-lua-fencing-and-stampede-specs.md)
|
|
83
|
+
- Companion example: [`examples/redis-lua-atomic-reservation-fencing.lua`](examples/redis-lua-atomic-reservation-fencing.lua)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
-- KEYS[1] = stock key (e.g., inv:stock:{sku_123})
|
|
2
|
+
-- KEYS[2] = reservation hash/key (e.g., inv:hold:{order_456})
|
|
3
|
+
-- KEYS[3] = monotonic fence sequence key (e.g., inv:fence:{sku_123})
|
|
4
|
+
-- ARGV[1] = requested quantity (> 0)
|
|
5
|
+
-- ARGV[2] = hold TTL seconds (> 0)
|
|
6
|
+
-- Returns: {status_code (1=OK, 0=INSUFFICIENT, -1=ALREADY_HELD), fence_token, remaining_stock}
|
|
7
|
+
|
|
8
|
+
local qty = tonumber(ARGV[1])
|
|
9
|
+
local ttl = tonumber(ARGV[2])
|
|
10
|
+
|
|
11
|
+
if not qty or qty <= 0 or not ttl or ttl <= 0 then
|
|
12
|
+
return redis.error_reply("INVALID_ARGS: qty and ttl must be positive integers")
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
if redis.call("EXISTS", KEYS[2]) == 1 then
|
|
16
|
+
local existing_fence = tonumber(redis.call("GET", KEYS[2])) or 0
|
|
17
|
+
local rem = tonumber(redis.call("GET", KEYS[1])) or 0
|
|
18
|
+
return { -1, existing_fence, rem }
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
local available = tonumber(redis.call("GET", KEYS[1])) or 0
|
|
22
|
+
if available < qty then
|
|
23
|
+
return { 0, 0, available }
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
local remaining = redis.call("DECRBY", KEYS[1], qty)
|
|
27
|
+
local fence_token = redis.call("INCR", KEYS[3])
|
|
28
|
+
redis.call("SET", KEYS[2], tostring(fence_token), "EX", ttl)
|
|
29
|
+
|
|
30
|
+
return { 1, fence_token, remaining }
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Redis 7.4+ Lua Fencing Tokens, Sharded Hot Keys & Stampede Protection
|
|
2
|
+
|
|
3
|
+
Normative reference for `design-caching-and-locking`.
|
|
4
|
+
|
|
5
|
+
## 1. Fencing Token State Model
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Worker A acquires lock -> token = 41 -> pauses 35s (lease 30s expires)
|
|
9
|
+
Worker B acquires lock -> token = 42 -> DB UPDATE ... WHERE fence_token < 42 (SUCCEEDS, sets fence=42)
|
|
10
|
+
Worker A wakes up -> sends token=41 -> DB UPDATE ... WHERE fence_token < 41 (0 ROWS AFFECTED, REJECTED)
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- Always separate **`noeviction`** Redis instance (locks, idempotency, JTI revocation) from **`allkeys-lfu`** Redis instance (read-through cache).
|
|
14
|
+
|
|
15
|
+
## 2. XFetch Probabilistic Early Expiration
|
|
16
|
+
|
|
17
|
+
Refresh cached values probabilistically before hard TTL $T_{\text{ttl}}$ ends:
|
|
18
|
+
|
|
19
|
+
$$t_{\text{now}} - \Delta \cdot \beta \cdot \ln(\text{rand}(0, 1]) \ge t_{\text{expiry}}$$
|
|
20
|
+
|
|
21
|
+
Where $\Delta$ is last recompute duration and $\beta \ge 1.0$ controls aggressiveness, preventing synchronized cache misses across replicas.
|
|
22
|
+
|
|
23
|
+
## 3. Hot-Key Sharding (Alipay 610k TPS Pattern)
|
|
24
|
+
|
|
25
|
+
Split single flash-sale SKU key `stock:{sku}` into $K$ shards (`stock:{sku}:0` .. `stock:{sku}:K-1`) hashed per request, backed by L1 in-memory read cache (50–250ms TTL) on storefront reads.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Static verifier for Redis Lua atomicity, determinism, TTL discipline, and fencing tokens."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import re
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
FORBIDDEN_COMMANDS = (
|
|
12
|
+
("KEYS", re.compile(r'redis\.call\(\s*["\']KEYS["\']', re.I)),
|
|
13
|
+
("TIME", re.compile(r'redis\.call\(\s*["\']TIME["\']', re.I)),
|
|
14
|
+
("RANDOMKEY", re.compile(r'redis\.call\(\s*["\']RANDOMKEY["\']', re.I)),
|
|
15
|
+
("math.random", re.compile(r'\bmath\.random\b')),
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
TTL_PATTERN = re.compile(r'(["\']EX["\']|["\']PX["\']|["\']EXPIRE["\']|["\']PEXPIRE["\']|SETEX)', re.I)
|
|
19
|
+
FENCE_PATTERN = re.compile(r'redis\.call\(\s*["\']INCR["\']', re.I)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
def verify_lua_source(source: str, *, require_fence: bool = True) -> list[str]:
|
|
23
|
+
"""Return list of safety/atomicity violations for a Redis Lua script."""
|
|
24
|
+
errors: list[str] = []
|
|
25
|
+
for label, pat in FORBIDDEN_COMMANDS:
|
|
26
|
+
if pat.search(source):
|
|
27
|
+
errors.append(f"Non-deterministic or blocking Redis call forbidden in Lua: {label}")
|
|
28
|
+
if "SET" in source and not TTL_PATTERN.search(source):
|
|
29
|
+
errors.append("Lua script mutates keys via SET without explicit TTL (EX/PX/EXPIRE)")
|
|
30
|
+
if require_fence and not FENCE_PATTERN.search(source):
|
|
31
|
+
errors.append("Distributed reservation/lock Lua script must generate a monotonic INCR fencing token")
|
|
32
|
+
return errors
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def run_self_test() -> int:
|
|
36
|
+
example_path = Path(__file__).resolve().parent.parent / "examples" / "redis-lua-atomic-reservation-fencing.lua"
|
|
37
|
+
good = example_path.read_text(encoding="utf-8")
|
|
38
|
+
assert verify_lua_source(good) == [], f"Example Lua script failed: {verify_lua_source(good)}"
|
|
39
|
+
|
|
40
|
+
bad_time = 'redis.call("SET", KEYS[1], ARGV[1])\nredis.call("TIME")'
|
|
41
|
+
errs = verify_lua_source(bad_time)
|
|
42
|
+
assert len(errs) == 3, f"Expected 3 errors (TIME + missing TTL + missing INCR), got {errs}"
|
|
43
|
+
print("verify_lua_atomicity self-test PASSED")
|
|
44
|
+
return 0
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def main() -> int:
|
|
48
|
+
parser = argparse.ArgumentParser(description="Verify Redis Lua script atomicity & TTL invariants.")
|
|
49
|
+
parser.add_argument("path", nargs="?", help="Path to .lua script")
|
|
50
|
+
parser.add_argument("--self-test", action="store_true")
|
|
51
|
+
parser.add_argument("--no-fence", action="store_true")
|
|
52
|
+
args = parser.parse_args()
|
|
53
|
+
|
|
54
|
+
if args.self_test:
|
|
55
|
+
return run_self_test()
|
|
56
|
+
if not args.path:
|
|
57
|
+
parser.error("Provide a .lua path or --self-test")
|
|
58
|
+
errs = verify_lua_source(Path(args.path).read_text(encoding="utf-8"), require_fence=not args.no_fence)
|
|
59
|
+
if errs:
|
|
60
|
+
for e in errs:
|
|
61
|
+
print(f"ERROR: {e}", file=sys.stderr)
|
|
62
|
+
return 1
|
|
63
|
+
print(f"OK: {args.path}")
|
|
64
|
+
return 0
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
if __name__ == "__main__":
|
|
68
|
+
sys.exit(main())
|
|
@@ -82,6 +82,15 @@ When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
|
82
82
|
- **ASI05 RCE Guard**: never interpolate user identifiers directly into raw SQL or session keys; use parameterized statements and validated types.
|
|
83
83
|
- **ASI07 Inter-Agent Communication**: emit structured `api-contract-spec.json` documenting authentication scopes and error behaviors.
|
|
84
84
|
|
|
85
|
+
## Red Flags
|
|
86
|
+
|
|
87
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
88
|
+
| :--- | :--- | :--- |
|
|
89
|
+
| "`code_challenge_method=plain` or omitting PKCE simplifies client SDK setup." | Authorization code interception leaks session grants to malicious apps. | Enforce PKCE with `S256` and high-entropy `code_verifier` (`43–128` chars). |
|
|
90
|
+
| "Old refresh tokens just expire naturally — family revocation is overkill." | Stolen refresh token replay goes undetected alongside legitimate sessions. | Rotate single-use refresh tokens and revoke the entire family on reuse. |
|
|
91
|
+
| "Filtering `WHERE tenant_id = ?` in ORM code makes RLS unnecessary." | One missed raw query or job helper exposes cross-tenant production PII. | Enforce `FORCE ROW LEVEL SECURITY` with transactional `set_config(..., true)`. |
|
|
92
|
+
| "Storing auth user context on a container singleton is fast in FrankenPHP/ASGI." | Persistent worker runtimes bleed User A's session into User B's request. | Use `contextvars` / request-scoped containers flushed on request termination. |
|
|
93
|
+
|
|
85
94
|
## Related Skills
|
|
86
95
|
|
|
87
96
|
- **add-api-endpoint**: Wire authenticated handlers and boundary validators
|
|
@@ -93,3 +93,5 @@ When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
|
93
93
|
- **add-api-endpoint**: Integrate validated LLM output payloads into service endpoints and domain flows
|
|
94
94
|
- **write-tests**: Create test suites covering schema validation, constraint failures, and retry logic
|
|
95
95
|
- **review-code**: Verify schema strictness, error boundaries, and absence of regex parsing
|
|
96
|
+
- Companion reference: [`references/constrained-decoding-and-double-validation.md`](references/constrained-decoding-and-double-validation.md)
|
|
97
|
+
- Companion example: [`examples/python-pydantic-structured-output.py`](examples/python-pydantic-structured-output.py)
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
from typing import Callable, Literal
|
|
5
|
+
from pydantic import BaseModel, ConfigDict, Field, TypeAdapter, ValidationError
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InvoiceExtraction(BaseModel):
|
|
9
|
+
model_config = ConfigDict(extra="forbid")
|
|
10
|
+
|
|
11
|
+
thought_process: str = Field(description="Scratchpad verification stripped before returning.")
|
|
12
|
+
invoice_number: str = Field(pattern=r"^INV-[0-9]{6,12}$")
|
|
13
|
+
currency: Literal["VND", "USD", "EUR"]
|
|
14
|
+
total_minor: int = Field(ge=0)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class PublicInvoiceResult(BaseModel):
|
|
18
|
+
model_config = ConfigDict(extra="forbid")
|
|
19
|
+
invoice_number: str
|
|
20
|
+
currency: Literal["VND", "USD", "EUR"]
|
|
21
|
+
total_minor: int
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class StructuredOutputError(RuntimeError):
|
|
25
|
+
"""Raised when bounded constrained-decoding + repair loop fails closed."""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def extract_with_bounded_repair(
|
|
29
|
+
call_gateway: Callable[[str, dict], str],
|
|
30
|
+
document_text: str,
|
|
31
|
+
max_retries: int = 2,
|
|
32
|
+
) -> PublicInvoiceResult:
|
|
33
|
+
adapter = TypeAdapter(InvoiceExtraction)
|
|
34
|
+
schema = InvoiceExtraction.model_json_schema()
|
|
35
|
+
prompt = f"Extract invoice fields strictly as JSON from:\n{document_text}"
|
|
36
|
+
|
|
37
|
+
last_error = ""
|
|
38
|
+
for attempt in range(max_retries + 1):
|
|
39
|
+
raw_payload = call_gateway(prompt, schema)
|
|
40
|
+
try:
|
|
41
|
+
parsed = adapter.validate_json(raw_payload)
|
|
42
|
+
return PublicInvoiceResult(
|
|
43
|
+
invoice_number=parsed.invoice_number,
|
|
44
|
+
currency=parsed.currency,
|
|
45
|
+
total_minor=parsed.total_minor,
|
|
46
|
+
)
|
|
47
|
+
except ValidationError as exc:
|
|
48
|
+
last_error = exc.json()
|
|
49
|
+
if attempt >= max_retries:
|
|
50
|
+
break
|
|
51
|
+
prompt = (
|
|
52
|
+
f"Previous JSON failed validation:\n{last_error}\n"
|
|
53
|
+
f"Correct only invalid fields for source:\n{document_text}"
|
|
54
|
+
)
|
|
55
|
+
raise StructuredOutputError(f"Exceeded {max_retries} repair retries: {last_error}")
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
if __name__ == "__main__":
|
|
59
|
+
sample = json.dumps({
|
|
60
|
+
"thought_process": "Checked subtotal and ISO currency.",
|
|
61
|
+
"invoice_number": "INV-202601",
|
|
62
|
+
"currency": "VND",
|
|
63
|
+
"total_minor": 450000,
|
|
64
|
+
})
|
|
65
|
+
print(extract_with_bounded_repair(lambda _p, _s: sample, "Invoice INV-202601 450000 VND"))
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Constrained Decoding & Double-Validation Specifications
|
|
2
|
+
|
|
3
|
+
Normative reference for `implement-structured-outputs`: grammar/JSON-Schema token masking, dual-layer runtime validation, format-tax mitigation, and bounded repair loops.
|
|
4
|
+
|
|
5
|
+
## 1. Constrained Decoding Matrix
|
|
6
|
+
|
|
7
|
+
| Deployment Stack | Grammar / Schema Mechanism | Guarantee Scope |
|
|
8
|
+
| :--- | :--- | :--- |
|
|
9
|
+
| OpenAI / Gemini API | `response_format: { type: "json_schema", strict: true }` / `responseSchema` | Syntax + declared field types + closed `additionalProperties: false` |
|
|
10
|
+
| Self-Hosted vLLM / SGLang | `--guided-decoding-backend xgrammar` / `outlines` | Finite-state / pushdown CFG logit masking at decode step |
|
|
11
|
+
| Application Runtime | Pydantic v2 `TypeAdapter.validate_json()` / Zod `safeParse()` | Cross-field invariants, business ranges, regex/domain enums |
|
|
12
|
+
|
|
13
|
+
## 2. Double-Validation & Bounded Repair Protocol
|
|
14
|
+
|
|
15
|
+
1. Emit `thought_process` / `reasoning` field **first** in schema to neutralize reasoning-quality drop ("format tax"), then strip it before returning to callers.
|
|
16
|
+
2. Check provider safety/refusal fields **before** running JSON parsing.
|
|
17
|
+
3. Validate raw decoded JSON via Pydantic/Zod; on `ValidationError`, inject the exact validation error JSON into at most **2** repair attempts.
|
|
18
|
+
4. On retry exhaustion (`attempts > 2`), fail closed with a typed `StructuredOutputError` — NEVER fall back to regex or heuristic string slicing.
|
|
@@ -81,6 +81,15 @@ When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
|
81
81
|
- **ASI05 RCE Guard**: never interpolate untrusted identifiers into DDL statements or query analyzer strings.
|
|
82
82
|
- **ASI07 Inter-Agent Communication**: emit structured `schema-migration.json` detailing locking behavior and rollout safety.
|
|
83
83
|
|
|
84
|
+
## Red Flags
|
|
85
|
+
|
|
86
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
87
|
+
| :--- | :--- | :--- |
|
|
88
|
+
| "Query looks fast on 100 local dev rows, so `EXPLAIN (ANALYZE, BUFFERS)` isn't needed." | Production table sizes hit seq-scan cliffs and `external merge Disk` spills. | Capture buffer-verified `EXPLAIN (ANALYZE, BUFFERS)` plans before merging. |
|
|
89
|
+
| "Increase `max_connections` to 500 instead of tuning pool sizes." | Context-switching and memory exhaustion tank database throughput under load. | Use transaction-mode pooling (`6543`, `statement_cache_size=0`) bounded by cores. |
|
|
90
|
+
| "Skip `lock_timeout` so the migration finishes reliably." | Queued `ACCESS EXCLUSIVE` DDL blocks every subsequent read/write on the pool. | Prepend `SET lock_timeout = '2s';` and use two-phase `NOT VALID` constraints. |
|
|
91
|
+
| "Leave a failed `CREATE INDEX CONCURRENTLY` alone; we'll fix it next sprint." | `indisvalid=false` indexes consume disk and slow every `INSERT`/`UPDATE`. | Inspect `WHERE NOT indisvalid` and drop/rebuild failed indexes immediately. |
|
|
92
|
+
|
|
84
93
|
## Related Skills
|
|
85
94
|
|
|
86
95
|
- **create-migration**: Author additive schema migrations and rollback scripts
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: elicit-requirements
|
|
3
3
|
description: Elicit business requirements from stakeholders using Funnel Questioning (Open, Probing, Closed), the Colombo Method, and the 9 BABOK v3 requirement quality criteria. Use when scoping ambiguous business needs, conducting stakeholder interviews, uncovering tacit domain knowledge, or validating requirement quality before architecture handoff.
|
|
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: trace-requirements-impact
|
|
3
3
|
description: Build Requirements Traceability Matrices (RTM), run BFS change-request impact analysis across requirements to test cases, and prioritize backlogs using BABOK v3 models (MoSCoW, WSJF, Impact/Effort, Timeboxing). Use when assessing change requests, evaluating regression blast radiuses, prioritizing sprint scope, or maintaining end-to-end compliance audit trails.
|
|
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: write-use-cases
|
|
3
3
|
description: Scope, structure, and document production-grade Use Cases using Karl Wiegers 13-field template, Alistair Cockburn goal levels and scoping tests, and 20-point quality validation. Use when detailing user interactions, specifying normal and alternative courses, defining system boundaries, or converting high-level business goals into engineering specifications.
|
|
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: handle-checkout-flow
|
|
3
3
|
description: Design and implement the end-to-end checkout flow including cart management, tax and shipping calculation, discount/coupon application, and order confirmation. Use when building or fixing any step in the purchase funnel from cart to payment confirmation.
|
|
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, fetch]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -79,75 +80,24 @@ Define the full funnel before building:
|
|
|
79
80
|
- on failure: release inventory lock, surface payment error, allow retry without re-entering non-payment data
|
|
80
81
|
- **agentic checkout**: headless execution, structured responses, spending limit enforcement
|
|
81
82
|
|
|
82
|
-
##
|
|
83
|
+
## Red Flags
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
-
|
|
89
|
-
|
|
90
|
-
- **Authorization & Limits**: Pre-authorization gates and spending limits per agent session or customer ID
|
|
91
|
-
- **Merchant of Record (MoR)**: Clear MoR assignments for fraud liability, chargebacks, regional taxes
|
|
92
|
-
- **Programmatic Checkout**: Headless execution without interactive browser sessions, standardized structured responses
|
|
93
|
-
|
|
94
|
-
### 2026: Address Validation Lifecycle (Mandatory)
|
|
95
|
-
|
|
96
|
-
Validating the shipping address is a mandatory, isolated step that must occur BEFORE tax calculation or shipping carrier requests:
|
|
97
|
-
|
|
98
|
-
- **API Standards**: Google Maps Address Validation, Loqate, Smarty Streets
|
|
99
|
-
- **Error Handling**: Precise subcodes for missing apartment number, invalid zip codes
|
|
100
|
-
- **Gate**: Reject tax/shipping calls if validation fails
|
|
101
|
-
|
|
102
|
-
### 2026: Stripe Tax Integration and Decision Tree
|
|
103
|
-
|
|
104
|
-
Selecting the correct tax calculation service depends on the merchant's scale, transaction volume, and operational context:
|
|
105
|
-
|
|
106
|
-
- **Stripe Tax**: Startups/mid-market within Stripe ecosystem, quick integration
|
|
107
|
-
- **TaxJar**: Multi-channel merchants (Shopify + Custom Web App), moderate volume, standard ERP
|
|
108
|
-
- **Avalara AvaTax**: Enterprise, high volume, complex Nexus, custom ERP, localized tax
|
|
109
|
-
|
|
110
|
-
### 2026: Economic Nexus Threshold Monitoring
|
|
111
|
-
|
|
112
|
-
Merchants must actively track regional sales thresholds to ensure compliance with local tax registration laws:
|
|
113
|
-
|
|
114
|
-
- **Nexus Monitoring**: Track US state-by-state transaction count and sales volume programmatically
|
|
115
|
-
- **Alerting**: Alert at 80% of any state's economic nexus threshold (e.g., 200 transactions or $100,000 sales)
|
|
116
|
-
- **Most states**: $100K sales OR 200 transactions (many dropped transaction count)
|
|
117
|
-
- **Auto-registration**: Stripe Tax / TaxJar offer automated registration workflows
|
|
118
|
-
|
|
119
|
-
### 2026: Vietnam Decree 248/2026/ND-CP Compliance
|
|
120
|
-
|
|
121
|
-
Effective July 1, 2026 (electronic ID verification from Jan 1, 2027):
|
|
122
|
-
|
|
123
|
-
- **Seller Verification**: Platform must verify seller identity before allowing transactions
|
|
124
|
-
- **Platform Obligations**: Disclose rights/obligations, service standards, pricing, promotions, security, complaints
|
|
125
|
-
- **Affiliate Transparency**: All parties disclose roles, links, referral codes, responsibilities
|
|
126
|
-
- **Electronic ID Verification**: Sellers and livestream sellers from Jan 1, 2027
|
|
85
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
86
|
+
| :--- | :--- | :--- |
|
|
87
|
+
| "Client cart payload already contains discounted total; re-querying is duplicate work." | Trivial request tampering enables \$0.01 purchases by humans or compromised agents. | Recalculate prices, taxes, coupons, and shipping strictly server-side before charge. |
|
|
88
|
+
| "Skip address validation for fast digital/quick-buy paths." | Wrong tax jurisdiction calculation, carrier surcharge fees, and failed deliveries. | Run mandatory address validation before any tax/shipping API call on physical orders. |
|
|
89
|
+
| "Decrement stock at add-to-cart or ignore race locks on coupon usage." | Denial-of-inventory attacks and `SELECT`-then-`UPDATE` coupon over-redemption races. | Use TTL reservations and transactional `SELECT ... FOR UPDATE` / Redis Lua fencing. |
|
|
90
|
+
| "Skip SRI hashes on payment scripts because CSP is already configured." | Violates PCI DSS v4.0.1 Req 6.4.3 / 11.6.1 against Magecart script injection. | Enforce SRI hashes, strict CSP nonces, and automated tamper detection monitoring. |
|
|
127
91
|
|
|
128
92
|
## Checklist
|
|
129
93
|
|
|
130
|
-
- [ ] cart totals recalculated server-side
|
|
131
|
-
- [ ]
|
|
132
|
-
- [ ]
|
|
133
|
-
- [ ]
|
|
134
|
-
- [ ]
|
|
135
|
-
- [ ]
|
|
136
|
-
- [ ]
|
|
137
|
-
- [ ] guest and authenticated paths tested independently
|
|
138
|
-
- [ ] agentic checkout spending limits and pre-authorization gates enforced
|
|
139
|
-
- [ ] Merchant of Record (MoR) assigned for agentic transactions
|
|
140
|
-
- [ ] ACP/UCP programmatic checkout supported (headless, structured responses)
|
|
141
|
-
- [ ] address validation performed via verified API (Google Maps/Loqate/Smarty) BEFORE tax/shipping
|
|
142
|
-
- [ ] address validation errors caught with precise subcodes (missing apartment, invalid ZIP)
|
|
143
|
-
- [ ] tax engine selected per decision tree (Stripe Tax / TaxJar / Avalara)
|
|
144
|
-
- [ ] economic nexus threshold monitoring at 80% with alerts configured
|
|
145
|
-
- [ ] economic nexus auto-registration workflow implemented
|
|
146
|
-
- [ ] PCI DSS v4.0.1 req 6.4.3: SRI hashes + CSP nonce on all payment page scripts
|
|
147
|
-
- [ ] PCI DSS v4.0.1 req 11.6.1: automated tamper detection (weekly/continuous)
|
|
148
|
-
- [ ] Vietnam Decree 248/2026: seller verification gate before transactions
|
|
149
|
-
- [ ] Vietnam Decree 248/2026: platform obligations disclosed (rights, standards, pricing, affiliate transparency)
|
|
150
|
-
- [ ] Vietnam electronic ID verification for sellers/livestreamers (from Jan 1, 2027)
|
|
94
|
+
- [ ] cart totals, coupons (`SELECT ... FOR UPDATE`), tax, and shipping recalculated server-side after mandatory address validation
|
|
95
|
+
- [ ] checkout submission idempotent (`Idempotency-Key`); atomic two-phase TTL inventory reservation commits on charge / releases on failure
|
|
96
|
+
- [ ] guest checkout secured via HMAC-signed tokens + strict BOLA checks; EMV 3DS 2.3.1 + SCA exemptions wired
|
|
97
|
+
- [ ] agentic checkout (ACP/UCP) enforces pre-authorization limits, MoR declaration, and headless structured responses
|
|
98
|
+
- [ ] tax engine selected per scale (Stripe Tax / TaxJar / Avalara); 80% US economic nexus threshold alerts + auto-registration active
|
|
99
|
+
- [ ] PCI DSS v4.0.1 Req 6.4.3 (SRI + CSP nonce) and Req 11.6.1 (script/header tamper alerts) verified on payment pages
|
|
100
|
+
- [ ] Vietnam Decree 248/2026/ND-CP seller identity verification, disclosures, affiliate rules, and e-ID checks enforced
|
|
151
101
|
|
|
152
102
|
## Failure Modes
|
|
153
103
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: integrate-payment-gateway
|
|
3
3
|
description: Integrate or extend a payment gateway (Stripe, VNPay, PayPal, Momo, etc.) into an e-commerce application. Use when adding, replacing, or auditing a payment provider's checkout, refund, or webhook flow.
|
|
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, fetch]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -31,7 +32,7 @@ Use this skill when a task requires connecting an application to a payment provi
|
|
|
31
32
|
- support **HTTP 402 / MPP** programmatic machine payment challenges and off-session `SetupIntents` for autonomous agent checkout flows
|
|
32
33
|
- handle asynchronous clearing states (A2A bank transfers) via webhook state machine with inventory TTL lock during settlement pending
|
|
33
34
|
- **MPP Protocol** (Stripe + Tempo, Mar 2026): HTTP 402 flow — Request → 402 with payment requirements → Agent authorizes → Retry with credential → Verify → Return resource; Payment methods: Shared Payment Tokens (SPTs) for cards, stablecoins (USDC on Tempo), x402; Stripe integration: PaymentIntents API, `automatic_payment_methods: { enabled: true }`, off-session SetupIntents with `setup_future_usage: "off_session"`
|
|
34
|
-
- **x402 Protocol
|
|
35
|
+
- **x402 Protocol**: Internet-native HTTP-based payment standard for machine-to-machine; HTTP 402 with `payment-required` header (base64-encoded); Crypto: USDC on Base network, CDP facilitator (Coinbase Developer Platform); Stripe support: `2026-05-27.preview` API, `crypto` payment method, `mode: transaction_verification`; Deposit addresses: `POST /v1/crypto/deposit_addresses` (network=tempo)
|
|
35
36
|
- **BNPL & Subscription BNPL**: Messaging elements on PDP/cart (`stripe-payment-method-messaging`) with dynamic price/currency/country; Subscription BNPL for recurring payments; Flow: Initial installment → BNPL pays merchant → Subsequent payments via bank rails (ACH, A2A) or card rails
|
|
36
37
|
- **A2A Pay by Bank**: TrueLayer, Plaid, Stripe Pay by Bank; Lower fees than cards; Settlement state machine: `processing` → `pending` → `settled` webhooks; Inventory TTL lock during slow bank settlement
|
|
37
38
|
- **Stripe 2026 Roadmap**: Dynamic pricing for x402/MPP (Q3 public preview), Session payments for usage-based billing (Q3 public preview), Standalone 3DS (Q3 GA), Multi-account MCP (Q3 private preview), Shared Payment Tokens (Q4 GA US), Wero payments (Q4 private preview)
|
|
@@ -78,68 +79,29 @@ Answer before building:
|
|
|
78
79
|
- **MPP/x402 errors**: payment verification failure, crypto settlement timeout, facilitator errors
|
|
79
80
|
- **A2A errors**: settlement timeout, bank rejection, webhook state machine corruption
|
|
80
81
|
|
|
81
|
-
### 5. 2026
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
- Configure `automatic_payment_methods: { enabled: true }` when creating payment intent. Avoid hardcoded payment method types.
|
|
85
|
-
- Allows payment elements UI to render and prioritize available methods (cards, BNPL, bank transfers) dynamically based on client location, currency, dashboard settings.
|
|
86
|
-
|
|
87
|
-
#### Buy Now Pay Later (BNPL) Messaging
|
|
88
|
-
- Integrate BNPL messaging elements (e.g., `stripe-payment-method-messaging`) early in purchase funnel (PDP, cart pages).
|
|
89
|
-
- Pass item price, currency, consumer country dynamically for accurate Klarna/Affirm split calculations (e.g., "4 payments of $25").
|
|
90
|
-
- **Subscription BNPL**: Recurring payments beyond retail installments.
|
|
91
|
-
|
|
92
|
-
#### Account-to-Account (A2A) Pay by Bank
|
|
93
|
-
- Use bank-to-bank direct rails (TrueLayer, Plaid, Stripe Pay by Bank) to lower card processing fees.
|
|
94
|
-
- Manage intermediate status webhooks (`processing`, `pending`, `settled`) in DB state machine.
|
|
95
|
-
- Keep order state as payment pending; lock inventory with TTL while waiting for bank settlement.
|
|
96
|
-
|
|
97
|
-
#### Programmatic Agent Payments (x402 / MPP)
|
|
98
|
-
- For machine-to-machine / autonomous AI agent checkouts, avoid interactive frontend redirects.
|
|
99
|
-
- Respond to unauthorized agent requests with HTTP 402 Payment Required + payment headers.
|
|
100
|
-
- Support programmatic card and A2A billing via Stripe MPP or SetupIntents with `setup_future_usage: "off_session"`.
|
|
101
|
-
|
|
102
|
-
#### Stripe 2026 Roadmap Features (Evaluate for Integration)
|
|
103
|
-
- **Dynamic pricing for x402/MPP** (Q3 2026 public preview, global): Pay-as-you-go transactions on x402/MPP
|
|
104
|
-
- **Session payments** (Q3 2026 public preview, global): Usage-based billing at token consumption/API invocation granularity
|
|
105
|
-
- **Standalone 3DS** (Q3 2026 GA, global): Thin event destinations for all Stripe API resources
|
|
106
|
-
- **Multi-account MCP** (Q3 2026 private preview): Charge connected accounts for Stripe fees
|
|
107
|
-
- **Shared Payment Tokens** (Q4 2026 GA, US): Cross-merchant token sharing
|
|
108
|
-
- **Wero payments** (Q4 2026 private preview, global): European instant payment scheme
|
|
82
|
+
### 5. 2026 Payment Paradigms (Dynamic Methods, BNPL, A2A, MPP/x402)
|
|
83
|
+
- Enable `automatic_payment_methods: { enabled: true }` (no hardcoded method lists) and `stripe-payment-method-messaging` BNPL splits on PDP/cart.
|
|
84
|
+
- Manage A2A Pay by Bank webhooks (`processing` -> `pending` -> `settled`) with inventory TTL locks; answer non-interactive agent calls via HTTP `402` MPP/x402 (`npx mppx@latest validate`) or off-session `SetupIntents`.
|
|
109
85
|
|
|
110
86
|
### 6. Test and Validate
|
|
87
|
+
- Test against provider sandbox + Stripe CLI / `npx mppx@latest validate`, replay webhooks to prove idempotency, verify A2A/x402 state transitions, and confirm zero PAN/CVV leakage in logs.
|
|
88
|
+
|
|
89
|
+
## Red Flags
|
|
111
90
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
-
|
|
117
|
-
|
|
118
|
-
- **BNPL testing**: messaging element renders correct splits for various price/currency/country combos
|
|
119
|
-
- **A2A testing**: settlement state machine transitions, inventory TTL lock/release, webhook replay
|
|
91
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
92
|
+
| :--- | :--- | :--- |
|
|
93
|
+
| "Skip HMAC verification in dev/staging webhooks to move faster." | Unsigned handlers ship to prod and allow spoofed `payment_succeeded` events. | Verify raw-body HMAC with constant-time compare and `< 300s` replay window. |
|
|
94
|
+
| "Process fulfillment synchronously inside the webhook HTTP handler." | Gateway timeouts (`> 500ms`) trigger retry storms and duplicate order states. | Persist raw event idempotently, return `200 OK` within `500ms`, offload to queue. |
|
|
95
|
+
| "Retry POST capture automatically without an idempotency key." | Duplicate network attempts double-charge customers during transient blips. | Attach UUID idempotency keys per transaction attempt and DB unique guards. |
|
|
96
|
+
| "Store full PAN temporarily in Redis to help retry flows." | Immediately expands PCI DSS CDE scope and leaks `restricted` cardholder data. | Use hosted SDK tokenization / EMVCo Network Tokens; never touch PAN/CVV. |
|
|
120
97
|
|
|
121
98
|
## Checklist
|
|
122
99
|
|
|
123
|
-
- [ ] provider SDK
|
|
124
|
-
- [ ]
|
|
125
|
-
- [ ] idempotency keys
|
|
126
|
-
- [ ]
|
|
127
|
-
- [ ]
|
|
128
|
-
- [ ] **dual-write idempotency guard**: unique index on (provider, event_id, event_type) + distributed lock (Redis Redlock/Postgres Advisory Lock)
|
|
129
|
-
- [ ] error codes mapped to safe user-facing messages
|
|
130
|
-
- [ ] refund flow implemented with audit trail
|
|
131
|
-
- [ ] no card numbers, CVV, or PAN in logs or API responses (EMVCo Network Tokens preferred)
|
|
132
|
-
- [ ] sandbox tested end-to-end including failure cases
|
|
133
|
-
- [ ] webhook replay tested for idempotency
|
|
134
|
-
- [ ] dynamic payment methods enabled (`automatic_payment_methods: true`)
|
|
135
|
-
- [ ] BNPL messaging elements integrated on PDP and cart pages with dynamic price/currency/country
|
|
136
|
-
- [ ] A2A bank settlement webhook states handled (`processing`/`pending`/`settled`) with inventory TTL locks
|
|
137
|
-
- [ ] HTTP 402/MPP programmatic checkout path supported and tested for non-interactive agent payments
|
|
138
|
-
- [ ] off-session SetupIntents with `setup_future_usage: "off_session"` for stored method charging
|
|
139
|
-
- [ ] MPP protocol: HTTP 402 flow, SPTs for cards, stablecoins (USDC on Tempo), x402 support
|
|
140
|
-
- [ ] x402 protocol: crypto deposit addresses (USDC on Base/Tempo), CDP facilitator, `2026-05-27.preview` API
|
|
141
|
-
- [ ] Stripe 2026 roadmap features evaluated: dynamic pricing, session payments, standalone 3DS, Shared Payment Tokens, Wero
|
|
142
|
-
- [ ] MPP validation tested with `npx mppx@latest validate`
|
|
100
|
+
- [ ] official provider SDK pinned, keys stored in env/vault, and `automatic_payment_methods: true` configured
|
|
101
|
+
- [ ] raw-payload HMAC webhook verification (constant-time, 300s replay check), `< 500ms` queue-first `200 OK`, and `(provider, event_id, event_type)` DB unique + distributed lock guard
|
|
102
|
+
- [ ] idempotency keys on all charge/capture calls, safe error mapping, and refund validation against original charge ID
|
|
103
|
+
- [ ] zero PAN/CVV in logs or responses (EMVCo Network Tokens + sandbox replay tested)
|
|
104
|
+
- [ ] BNPL messaging, A2A settlement webhooks + inventory TTL, and HTTP 402 MPP/x402 validated (`npx mppx@latest validate`) + webhook replay tested
|
|
143
105
|
|
|
144
106
|
## Failure Modes
|
|
145
107
|
|