@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
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# handle-checkout-flow — 2026 Upgrade Plan
|
|
2
|
-
|
|
3
|
-
## Summary of 2026 Standards Changes
|
|
4
|
-
|
|
5
|
-
### PCI DSS v4.0.1 (Effective March 31, 2025)
|
|
6
|
-
- **Requirement 6.4.3**: All JavaScript on payment pages must be inventoried, justified, and loaded with Subresource Integrity (SRI) hashes + strict CSP nonce (`script-src 'nonce-...'`)
|
|
7
|
-
- **Requirement 11.6.1**: Automated tamper detection monitoring payment page HTTP headers and client-side scripts at least weekly (or continuously) for Magecart/formjacking detection
|
|
8
|
-
- SAQ A eligibility criteria updated (Jan 2025) — Requirements 6.4.3 and 11.6.1 removed from SAQ A for qualifying merchants
|
|
9
|
-
|
|
10
|
-
### Agentic Commerce Protocol (ACP) & Universal Commerce Protocol (UCP)
|
|
11
|
-
- **ACP** (OpenAI + Stripe, announced Sep 2025): Agentic Commerce Protocol for AI agents to execute purchases
|
|
12
|
-
- **UCP** (Google + partners, launched Jan 2026): Universal Commerce Protocol, Apache 2.0, compatible with A2A, AP2, MCP
|
|
13
|
-
- **Latest UCP v2026-08-25**: Multi-vertical foundations, grocery/location capabilities, 3DS2 flows, payment schedules, split payments, granular consent, loyalty support (breaking schema changes)
|
|
14
|
-
- **AP2 v0.2** (Apr 2026): Agent Payments Protocol donated to FIDO Alliance, Human Not Present payments for autonomous pre-authorized transactions
|
|
15
|
-
|
|
16
|
-
### EMV 3DS 2.3.1
|
|
17
|
-
- 100+ context attributes for frictionless risk-based authentication (>85% challenge-free)
|
|
18
|
-
- SCA exemption engine: Low-Value, TRA (Transaction Risk Analysis), Trusted Beneficiary
|
|
19
|
-
|
|
20
|
-
### Address Validation Lifecycle (Mandatory 2026)
|
|
21
|
-
- Must occur BEFORE tax calculation or shipping carrier requests
|
|
22
|
-
- API Standards: Google Maps Address Validation, Loqate, Smarty Streets
|
|
23
|
-
- Error handling: precise error subcodes for missing apartment numbers, invalid zip codes
|
|
24
|
-
|
|
25
|
-
### Tax Calculation Decision Tree (2026)
|
|
26
|
-
- **Stripe Tax**: Startups/mid-market within Stripe ecosystem, quick integration
|
|
27
|
-
- **TaxJar**: Multi-channel merchants (Shopify + custom), moderate volume, standard ERP
|
|
28
|
-
- **Avalara AvaTax**: Enterprise, high volume, complex Nexus, custom ERP, localized tax
|
|
29
|
-
|
|
30
|
-
### Economic Nexus Threshold Monitoring
|
|
31
|
-
- Track US state-by-state transaction count and sales volume programmatically
|
|
32
|
-
- Alert at 80% of threshold (e.g., 200 transactions or $100,000 sales)
|
|
33
|
-
- Most states: $100K sales OR 200 transactions (some dropped transaction count)
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Required Skill Upgrades
|
|
38
|
-
|
|
39
|
-
### 1. Core Rules Updates
|
|
40
|
-
| Current Rule | 2026 Upgrade |
|
|
41
|
-
|--------------|--------------|
|
|
42
|
-
| PCI DSS v4.0 references | Update to **PCI DSS v4.0.1** with 6.4.3 and 11.6.1 specifics |
|
|
43
|
-
| EMV 3DS generic | Specify **EMV 3DS 2.3.1** with 100+ context attributes |
|
|
44
|
-
| Agentic checkout mention | Add **ACP/UCP protocol integration** with pre-authorization gates, MoR assignment, programmatic checkout |
|
|
45
|
-
| Address validation | Add **mandatory address validation lifecycle** before tax/shipping |
|
|
46
|
-
| Tax engine selection | Add **decision tree** (Stripe Tax vs TaxJar vs Avalara) |
|
|
47
|
-
| Nexus monitoring | Add **80% threshold alerting** with automated registration triggers |
|
|
48
|
-
|
|
49
|
-
### 2. New 2026 Patterns to Add
|
|
50
|
-
- **Agentic Checkout Architecture** section (already partially there, expand with ACP/UCP specifics)
|
|
51
|
-
- **Address Validation Lifecycle** as mandatory isolated step
|
|
52
|
-
- **Stripe Tax / TaxJar / Avalara Decision Tree** with selection criteria
|
|
53
|
-
- **Economic Nexus Threshold Monitoring** with 80% alerting
|
|
54
|
-
- **Vietnam Decree 248/2026/ND-CP compliance** (seller identity verification, platform obligations)
|
|
55
|
-
|
|
56
|
-
### 3. Checklist Additions
|
|
57
|
-
- [ ] PCI DSS v4.0.1 Requirement 6.4.3: SRI hashes + CSP nonce on all payment page scripts
|
|
58
|
-
- [ ] PCI DSS v4.0.1 Requirement 11.6.1: Automated tamper detection (weekly/continuous)
|
|
59
|
-
- [ ] ACP/UCP protocol support for agentic checkout flows
|
|
60
|
-
- [ ] Pre-authorization gates and spending limits per agent session
|
|
61
|
-
- [ ] Merchant of Record (MoR) assignment for agentic transactions
|
|
62
|
-
- [ ] Programmatic checkout without interactive browser sessions
|
|
63
|
-
- [ ] Address validation via Google Maps/Loqate/Smarty Streets BEFORE tax/shipping
|
|
64
|
-
- [ ] Tax engine selection based on decision tree criteria
|
|
65
|
-
- [ ] Economic nexus monitoring at 80% threshold with alerts
|
|
66
|
-
- [ ] Vietnam Decree 248/2026 compliance: seller identity verification
|
|
67
|
-
|
|
68
|
-
### 4. Failure Mode Additions
|
|
69
|
-
- **Agentic checkout fraud**: Unauthorized agent spending beyond limits → Mitigation: Pre-authorization gates, spending limits, MoR assignment
|
|
70
|
-
- **Address validation bypass**: Tax/shipping calculated on invalid address → Mitigation: Mandatory validation gate before calculation
|
|
71
|
-
- **Nexus threshold breach**: Unregistered tax collection → Mitigation: 80% alerting, auto-registration workflow
|
|
72
|
-
- **PCI script injection**: Magecart via unverified third-party scripts → Mitigation: SRI + CSP nonce + weekly automated scanning
|
|
73
|
-
|
|
74
|
-
### 5. Output Contract Updates
|
|
75
|
-
- Add `contracts/schemas/agentic-commerce-spec.json` for ACP/UCP endpoints
|
|
76
|
-
- Add `contracts/schemas/address-validation-spec.json` for validation API contract
|
|
77
|
-
- Add `contracts/schemas/tax-engine-spec.json` for selected tax engine integration
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## Implementation Priority
|
|
82
|
-
|
|
83
|
-
| Priority | Task | Effort |
|
|
84
|
-
|----------|------|--------|
|
|
85
|
-
| P0 | Update PCI DSS references to v4.0.1 with 6.4.3/11.6.1 specifics | Low |
|
|
86
|
-
| P0 | Add ACP/UCP agentic checkout architecture section | Medium |
|
|
87
|
-
| P0 | Add mandatory address validation lifecycle | Medium |
|
|
88
|
-
| P1 | Add tax engine decision tree (Stripe Tax/TaxJar/Avalara) | Medium |
|
|
89
|
-
| P1 | Add economic nexus 80% threshold monitoring | Medium |
|
|
90
|
-
| P1 | Add Vietnam Decree 248/2026 compliance notes | Low |
|
|
91
|
-
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
92
|
-
| P2 | Update output contracts for new specs | Low |
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## Validation Gates
|
|
97
|
-
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
98
|
-
- Verify INDEX.md regeneration if VERSION bumped
|
|
99
|
-
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# integrate-payment-gateway — 2026 Upgrade Plan
|
|
2
|
-
|
|
3
|
-
## Summary of 2026 Standards Changes
|
|
4
|
-
|
|
5
|
-
### Machine Payments Protocol (MPP) — Stripe + Tempo (March 2026)
|
|
6
|
-
- **Open protocol** for agents to pay programmatically without checkout UI
|
|
7
|
-
- **HTTP 402 Payment Required** flow: Agent requests resource → Server returns 402 with payment requirements → Agent authorizes payment → Retries request with payment credential → Server verifies and returns resource
|
|
8
|
-
- **Payment methods**: Shared Payment Tokens (SPTs) for cards, stablecoins (USDC on Tempo blockchain), x402 protocol
|
|
9
|
-
- **Stripe MPP integration**: PaymentIntents API, `automatic_payment_methods: { enabled: true }`, off-session SetupIntents with `setup_future_usage: "off_session"`
|
|
10
|
-
- **mppx SDK** for validation: `npx mppx@latest validate http://localhost:4242`
|
|
11
|
-
|
|
12
|
-
### x402 Protocol (2025-2026)
|
|
13
|
-
- **Internet-native HTTP-based payment standard** for machine-to-machine payments
|
|
14
|
-
- **HTTP 402** with `payment-required` header (base64-encoded payment requirements)
|
|
15
|
-
- **Crypto payments**: USDC on Base network, facilitator via Coinbase Developer Platform (CDP)
|
|
16
|
-
- **Stripe support**: `2026-05-27.preview` API version, `crypto` payment method with `mode: transaction_verification`
|
|
17
|
-
- **Deposit addresses**: `POST /v1/crypto/deposit_addresses` with network=tempo
|
|
18
|
-
|
|
19
|
-
### Stripe Roadmap 2026 (Q3/Q4)
|
|
20
|
-
- **Dynamic pricing for x402 and MPP** (public preview, global)
|
|
21
|
-
- **Session payments** for usage-based billing (token consumption, API invocations)
|
|
22
|
-
- **Standalone 3DS** (general availability, global)
|
|
23
|
-
- **Multi-account MCP** (private preview)
|
|
24
|
-
- **Shared Payment Tokens** (GA Q4 2026, US)
|
|
25
|
-
- **Wero payments** (private preview, global)
|
|
26
|
-
|
|
27
|
-
### BNPL & Subscription BNPL (2026)
|
|
28
|
-
- **Buy Now Pay Later** messaging elements on product detail/cart pages (stripe-payment-method-messaging)
|
|
29
|
-
- **Subscription BNPL** for recurring payments beyond retail installments
|
|
30
|
-
- **Flow**: Consumer pays initial installment → BNPL provider pays merchant → Consumer makes subsequent payments via bank rails (ACH, direct debit, A2A) or card rails
|
|
31
|
-
|
|
32
|
-
### A2A (Account-to-Account) Pay by Bank
|
|
33
|
-
- **Bank-to-bank direct rails**: TrueLayer, Plaid, Stripe Pay by Bank
|
|
34
|
-
- **Lower card processing fees**
|
|
35
|
-
- **Slow-settling transactions**: Manage intermediate status webhooks (processing, pending, settled) in DB state machine
|
|
36
|
-
- **Inventory TTL lock** while waiting for bank settlement
|
|
37
|
-
|
|
38
|
-
### Programmatic Agent Payments (x402 / MPP)
|
|
39
|
-
- **HTTP 402 / MPP** for machine-to-machine / autonomous AI agent checkouts
|
|
40
|
-
- **No interactive frontend redirects**
|
|
41
|
-
- **Stripe Machine Payments Protocol (MPP)** or SetupIntents with `setup_future_usage: "off_session"`
|
|
42
|
-
|
|
43
|
-
### PCI DSS v4.0.1 Webhook Requirements
|
|
44
|
-
- **Webhook signature verification**: HMAC over raw unparsed payload before JSON parsing
|
|
45
|
-
- **Constant-time comparison** (`crypto.timingSafeEqual` / `hmac.compare_digest`)
|
|
46
|
-
- **Replay attack prevention**: Reject events with timestamp older than 300 seconds
|
|
47
|
-
- **Queue-first ingestion**: Return 200 OK within 500ms after persisting raw event; offload to async worker (Kafka, Cloudflare Queues, RabbitMQ)
|
|
48
|
-
- **Dual-write idempotency guard**: Unique DB index on `(provider, event_id, event_type)` + distributed lock (Redis Redlock or Postgres Advisory Lock)
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Required Skill Upgrades
|
|
53
|
-
|
|
54
|
-
### 1. Core Rules Updates
|
|
55
|
-
| Current Rule | 2026 Upgrade |
|
|
56
|
-
|--------------|--------------|
|
|
57
|
-
| Webhook handling generic | **Queue-first ingestion** (200 OK within 500ms), async worker offload, dual-write idempotency guard |
|
|
58
|
-
| Payment methods static | **Dynamic payment methods** (`automatic_payment_methods: { enabled: true }`) |
|
|
59
|
-
| Agent payments mention | **Full MPP/x402 specification** with HTTP 402 flow, SPTs, stablecoins, off-session SetupIntents |
|
|
60
|
-
| BNPL mention | **BNPL messaging elements** on PDP/cart with dynamic price/currency/country |
|
|
61
|
-
| A2A mention | **Full A2A flow** with intermediate webhook states and inventory TTL locks |
|
|
62
|
-
| PCI DSS v4.0 | **PCI DSS v4.0.1** webhook specifics (raw payload HMAC, constant-time compare, 300s replay window) |
|
|
63
|
-
|
|
64
|
-
### 2. New 2026 Patterns to Add
|
|
65
|
-
- **MPP Payment Flow** section with complete HTTP 402 sequence diagram
|
|
66
|
-
- **x402 Protocol Integration** with crypto deposit addresses and CDP facilitator
|
|
67
|
-
- **Stripe Dynamic Payment Methods** configuration
|
|
68
|
-
- **BNPL Messaging Elements** integration on product/cart pages
|
|
69
|
-
- **A2A Pay by Bank** with settlement state machine and inventory TTL
|
|
70
|
-
- **Programmatic Agent Checkout** (HTTP 402, MPP, off-session SetupIntents)
|
|
71
|
-
- **Stripe 2026 Roadmap Features** (session payments, standalone 3DS, Shared Payment Tokens)
|
|
72
|
-
- **Webhook Security Hardening** (queue-first, dual-write guard, replay protection)
|
|
73
|
-
|
|
74
|
-
### 3. Checklist Additions
|
|
75
|
-
- [ ] MPP protocol implemented with HTTP 402 challenge/response flow
|
|
76
|
-
- [ ] x402 protocol support with crypto deposit addresses (USDC on Base/Tempo)
|
|
77
|
-
- [ ] `automatic_payment_methods: { enabled: true }` configured (no hardcoded payment method types)
|
|
78
|
-
- [ ] BNPL messaging elements (stripe-payment-method-messaging) on PDP and cart pages
|
|
79
|
-
- [ ] A2A bank settlement webhook states handled (processing/pending/settled) with inventory TTL locks
|
|
80
|
-
- [ ] HTTP 402/MPP programmatic checkout path tested for non-interactive agent payments
|
|
81
|
-
- [ ] Off-session SetupIntents with `setup_future_usage: "off_session"` for stored method charging
|
|
82
|
-
- [ ] Webhook signature verification: HMAC over raw payload, constant-time comparison, 300s replay window
|
|
83
|
-
- [ ] Queue-first webhook ingestion: 200 OK within 500ms, async worker offload
|
|
84
|
-
- [ ] Dual-write idempotency guard: unique index on (provider, event_id, event_type) + distributed lock
|
|
85
|
-
- [ ] Stripe 2026 roadmap features evaluated: session payments, standalone 3DS, Shared Payment Tokens
|
|
86
|
-
- [ ] No card numbers, CVV, PAN in logs or API responses (EMVCo Network Tokens preferred)
|
|
87
|
-
- [ ] Provider SDK version pinned, credentials in env vars only
|
|
88
|
-
|
|
89
|
-
### 4. Failure Mode Additions
|
|
90
|
-
- **MPP/x402 payment verification bypass**: Agent replays payment credential → Mitigation: Nonce-based verification, facilitator settlement confirmation
|
|
91
|
-
- **Crypto payment settlement failure**: On-chain transaction fails but agent received resource → Mitigation: Transaction verification mode, facilitator webhook confirmation before resource release
|
|
92
|
-
- **A2A settlement timeout**: Bank transfer stuck in pending → Mitigation: Inventory TTL with background sweeper, configurable max wait time
|
|
93
|
-
- **BNPL messaging mismatch**: Incorrect installment amounts displayed → Mitigation: Dynamic price/currency/country passed to element, server-side validation
|
|
94
|
-
- **Webhook replay attack**: Attacker resends old webhook → Mitigation: 300s timestamp rejection, idempotency key deduplication
|
|
95
|
-
- **Queue-first ingestion backlog**: Webhook handler overwhelmed → Mitigation: Async worker scaling, dead letter queue for failed events
|
|
96
|
-
|
|
97
|
-
### 5. Output Contract Updates
|
|
98
|
-
- Add `contracts/schemas/mpp-payment-spec.json` for MPP endpoints and flow
|
|
99
|
-
- Add `contracts/schemas/x402-payment-spec.json` for x402 crypto payment flow
|
|
100
|
-
- Add `contracts/schemas/bnpl-messaging-spec.json` for BNPL element integration
|
|
101
|
-
- Add `contracts/schemas/a2a-settlement-spec.json` for A2A webhook state machine
|
|
102
|
-
- Update `contracts/schemas/api-contract-spec.json` with new 2026 payment flows
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Implementation Priority
|
|
107
|
-
|
|
108
|
-
| Priority | Task | Effort |
|
|
109
|
-
|----------|------|--------|
|
|
110
|
-
| P0 | Add MPP protocol with HTTP 402 flow specification | High |
|
|
111
|
-
| P0 | Add x402 crypto payment integration (USDC on Base/Tempo) | High |
|
|
112
|
-
| P0 | Update webhook security to queue-first + dual-write guard | High |
|
|
113
|
-
| P0 | Add dynamic payment methods (`automatic_payment_methods: true`) | Medium |
|
|
114
|
-
| P1 | Add BNPL messaging elements integration | Medium |
|
|
115
|
-
| P1 | Add A2A Pay by Bank with settlement state machine | Medium |
|
|
116
|
-
| P1 | Add programmatic agent checkout (off-session SetupIntents) | Medium |
|
|
117
|
-
| P1 | Add Stripe 2026 roadmap feature evaluations | Low |
|
|
118
|
-
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
119
|
-
| P2 | Update output contracts for new payment specs | Low |
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## Validation Gates
|
|
124
|
-
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
125
|
-
- Verify INDEX.md regeneration if VERSION bumped
|
|
126
|
-
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
127
|
-
- Test MPP flow with `npx mppx@latest validate`
|
|
128
|
-
- Test x402 flow with Stripe `2026-05-27.preview` API version
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# manage-order-fulfillment — 2026 Upgrade Plan
|
|
2
|
-
|
|
3
|
-
## Summary of 2026 Standards Changes
|
|
4
|
-
|
|
5
|
-
### Event-Sourced Order State Machine (Mandatory 2026)
|
|
6
|
-
- **Immutable append-only event log**: `order_placed`, `payment_captured`, `fulfillment_started`, `packed`, `shipped`, `delivered`, `returned`
|
|
7
|
-
- **Derive current status** by projecting event stream — direct mutable status field updates FORBIDDEN
|
|
8
|
-
- **Enables**: reliable audit trails, time-travel debugging, compliance evidence
|
|
9
|
-
|
|
10
|
-
### Orchestration-Based Saga Pattern (Temporal / AWS Step Functions)
|
|
11
|
-
- **Replace choreography with orchestration**: explicit compensating branches (`payment_failed`, `allocation_failed`, `cancelled`, `return_requested`, `refunded`)
|
|
12
|
-
- **Temporal Workflow**: durable execution, automatic retries, built-in saga compensation registration
|
|
13
|
-
- **AWS Step Functions**: state machine with Lambda compensations for rollback
|
|
14
|
-
- **Compensation order**: reverse of success order (Shipping → Inventory → Payment)
|
|
15
|
-
|
|
16
|
-
### Agent-Initiated Fulfillment Authorization
|
|
17
|
-
- **JWT claim required**: `fulfillment_authorized: true` cryptographically scoped to specific order ID
|
|
18
|
-
- **Verify before**: locking inventory or executing allocation routines
|
|
19
|
-
- **Scope**: agent-specific, order-specific, time-limited
|
|
20
|
-
|
|
21
|
-
### Vietnamese Last-Mile Carrier Webhook Integrations
|
|
22
|
-
- **Primary carriers**: GHN (Giao Hang Nhanh), GHTK, Grab Express, Viettel Post, J&T Express
|
|
23
|
-
- **Webhook callbacks OVER polling**: secure callbacks for tracking events
|
|
24
|
-
- **Carrier status code normalization**: Map to unified internal milestones:
|
|
25
|
-
- `label_created` → `picked_up` → `in_transit` → `out_for_delivery` → `exception` / `delivered`
|
|
26
|
-
- **GHN specifics**: `ready_to_pick`, `delivering`, `delivered` webhooks, COD callback URL for real-time COD status
|
|
27
|
-
- **GHTK specifics**: G1 Open API with sorting code, create order, cancel, tracking, big bag order endpoints
|
|
28
|
-
- **GrabExpress**: on-demand same-city courier, real-time courier tracking, webhook updates over delivery lifecycle
|
|
29
|
-
|
|
30
|
-
### Vietnam Decree 248/2026/ND-CP (Effective July 1, 2026)
|
|
31
|
-
- **Seller identity verification**: Platform operators must verify sellers before allowing business
|
|
32
|
-
- **Platform obligations**: Disclose rights/obligations, service standards, pricing, promotions, security, complaint handling
|
|
33
|
-
- **Affiliate marketing transparency**: All parties must disclose roles, links, referral codes, responsibilities
|
|
34
|
-
- **Electronic identity verification**: Required for sellers and livestream sellers from Jan 1, 2027
|
|
35
|
-
|
|
36
|
-
### Restock Inspection Gate (Enhanced)
|
|
37
|
-
- **Physical warehouse inspection mandatory**: Grade A confirmation before restock
|
|
38
|
-
- **Automatic restock on RMA creation FORBIDDEN**
|
|
39
|
-
- **Event-sourced**: `return_received` → `inspection_completed` (Grade A) → `restocked`
|
|
40
|
-
|
|
41
|
-
### Temporal E-Commerce Demo Patterns (2026)
|
|
42
|
-
- **No saga orchestrator**: checkout workflow IS the saga
|
|
43
|
-
- **No distributed transaction coordinator**: `updateWithStart` for atomic create-or-update
|
|
44
|
-
- **Declarative states**: transitions and guards in config, pure decider owns decisions
|
|
45
|
-
- **Derived UI steps**: `deriveStep()` maps prerequisites to wire-visible step
|
|
46
|
-
- **Price integrity**: stale `reviewedCartVersion` aborts with `CART_CHANGED`
|
|
47
|
-
- **Reservation management**: inventory reservations renewed at checkout start, released on timeout/cancellation, confirmed on success
|
|
48
|
-
- **Timeout**: `condition(() => complete, '1 hour')` auto-cancels stale checkouts, releases inventory
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Required Skill Upgrades
|
|
53
|
-
|
|
54
|
-
### 1. Core Rules Updates
|
|
55
|
-
| Current Rule | 2026 Upgrade |
|
|
56
|
-
|--------------|--------------|
|
|
57
|
-
| Event-sourced state machine mentioned | **MANDATORY** immutable append-only event log, derive status by projection only |
|
|
58
|
-
| Saga pattern generic | **Orchestration-based Saga** with Temporal/AWS Step Functions, explicit compensating branches |
|
|
59
|
-
| Agent authorization mention | **JWT `fulfillment_authorized: true` claim** cryptographically scoped to order ID |
|
|
60
|
-
| Vietnamese carriers generic | **Specific carrier webhook integrations**: GHN, GHTK, GrabExpress with status code normalization |
|
|
61
|
-
| Restock inspection | **Enhanced**: physical inspection event required, Grade A confirmation, event-sourced |
|
|
62
|
-
| Vietnam compliance | **Decree 248/2026/ND-CP**: seller verification, platform obligations, affiliate transparency |
|
|
63
|
-
|
|
64
|
-
### 2. New 2026 Patterns to Add
|
|
65
|
-
- **Event-Sourced Fulfillment Architecture** with complete event list and projection logic
|
|
66
|
-
- **Temporal/AWS Step Functions Saga Orchestration** with compensation registration
|
|
67
|
-
- **Agent-Initiated Authorization** verification flow with JWT claim validation
|
|
68
|
-
- **Vietnamese Carrier Webhook Integration** with status code mapping table
|
|
69
|
-
- **Vietnam Decree 248/2026 Compliance** checklist for fulfillment operations
|
|
70
|
-
- **Restock Inspection Gate** as event-sourced workflow
|
|
71
|
-
- **Temporal E-Commerce Patterns** (declarative states, derived UI, price integrity, reservation management)
|
|
72
|
-
|
|
73
|
-
### 3. Checklist Additions
|
|
74
|
-
- [ ] Order state machine modeled as immutable append-only event log
|
|
75
|
-
- [ ] Current status derived by projecting event stream (no mutable status field)
|
|
76
|
-
- [ ] Orchestration-based Saga with Temporal or AWS Step Functions
|
|
77
|
-
- [ ] Explicit compensating branches for all failure modes
|
|
78
|
-
- [ ] Agent JWT contains `fulfillment_authorized: true` claim scoped to order ID
|
|
79
|
-
- [ ] Cryptographic verification of agent authorization before inventory allocation
|
|
80
|
-
- [ ] GHN webhook integration: `ready_to_pick`, `delivering`, `delivered`, COD callback
|
|
81
|
-
- [ ] GHTK webhook integration: G1 Open API endpoints, status normalization
|
|
82
|
-
- [ ] GrabExpress webhook integration: real-time courier tracking, delivery lifecycle
|
|
83
|
-
- [ ] Carrier status codes mapped to unified milestones (`label_created` → `delivered`)
|
|
84
|
-
- [ ] Vietnam Decree 248/2026: seller verification workflow in fulfillment
|
|
85
|
-
- [ ] Affiliate marketing transparency: roles, links, codes disclosed
|
|
86
|
-
- [ ] Restock inspection gate: `return_received` → `inspection_completed` (Grade A) → `restocked`
|
|
87
|
-
- [ ] Automatic restock on RMA creation forbidden
|
|
88
|
-
- [ ] Declarative state transitions with guards in configuration
|
|
89
|
-
- [ ] Price integrity: stale cart version aborts with `CART_CHANGED`
|
|
90
|
-
- [ ] Inventory reservation renewal at fulfillment start, TTL release on timeout
|
|
91
|
-
- [ ] Customer PII not in logs or non-admin API responses
|
|
92
|
-
- [ ] State change events emitted for downstream systems (warehouse, email, analytics)
|
|
93
|
-
|
|
94
|
-
### 4. Failure Mode Additions
|
|
95
|
-
- **Agent fulfillment spoofing**: Unauthorized agent triggers fulfillment → Mitigation: JWT `fulfillment_authorized: true` claim verification scoped to order ID
|
|
96
|
-
- **Event log corruption**: Direct status field update bypasses event sourcing → Mitigation: Database constraint forbidding direct status updates, audit trigger
|
|
97
|
-
- **Saga compensation failure**: Compensation action itself fails → Mitigation: Temporal durable retries, dead letter queue for manual intervention
|
|
98
|
-
- **Carrier webhook spoofing**: Fake delivery confirmation → Mitigation: Webhook signature verification (HMAC), carrier allowlist
|
|
99
|
-
- **Vietnam compliance gap**: Unverified seller ships order → Mitigation: Decree 248/2026 verification gate before fulfillment_started event
|
|
100
|
-
- **Restock without inspection**: Returned items added to sellable stock → Mitigation: Mandatory `inspection_completed` event with Grade A before `restocked`
|
|
101
|
-
- **Inventory double-allocation**: Two fulfillments for same order → Mitigation: Idempotency key on fulfillment call, event-sourced deduplication
|
|
102
|
-
|
|
103
|
-
### 5. Output Contract Updates
|
|
104
|
-
- Add `contracts/schemas/event-sourced-order-spec.json` for event log schema and projection
|
|
105
|
-
- Add `contracts/schemas/saga-orchestration-spec.json` for Temporal/Step Functions workflow definition
|
|
106
|
-
- Add `contracts/schemas/agent-fulfillment-auth-spec.json` for JWT claim verification
|
|
107
|
-
- Add `contracts/schemas/vn-carrier-webhook-spec.json` for GHN/GHTK/GrabExpress webhook contracts
|
|
108
|
-
- Add `contracts/schemas/restock-inspection-spec.json` for inspection gate workflow
|
|
109
|
-
- Update `contracts/schemas/api-contract-spec.json` with new fulfillment endpoints
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## Implementation Priority
|
|
114
|
-
|
|
115
|
-
| Priority | Task | Effort |
|
|
116
|
-
|----------|------|--------|
|
|
117
|
-
| P0 | Convert to mandatory event-sourced state machine (immutable log, projection) | High |
|
|
118
|
-
| P0 | Add orchestration-based Saga with Temporal/AWS Step Functions | High |
|
|
119
|
-
| P0 | Add agent JWT `fulfillment_authorized: true` claim verification | High |
|
|
120
|
-
| P1 | Add Vietnamese carrier webhook integrations (GHN, GHTK, GrabExpress) | High |
|
|
121
|
-
| P1 | Add Vietnam Decree 248/2026 compliance gates | Medium |
|
|
122
|
-
| P1 | Enhance restock inspection gate with event-sourced workflow | Medium |
|
|
123
|
-
| P1 | Add Temporal e-commerce patterns (declarative states, price integrity) | Medium |
|
|
124
|
-
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
125
|
-
| P2 | Update output contracts for new specs | Low |
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## Validation Gates
|
|
130
|
-
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
131
|
-
- Verify INDEX.md regeneration if VERSION bumped
|
|
132
|
-
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
133
|
-
- Test event sourcing projection logic with time-travel queries
|
|
134
|
-
- Test Saga compensation rollback with injected failures
|
|
135
|
-
- Test agent JWT claim verification with invalid/expired tokens
|
|
136
|
-
- Test carrier webhook signature verification
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
# manage-product-catalog — 2026 Upgrade Plan
|
|
2
|
-
|
|
3
|
-
## Summary of 2026 Standards Changes
|
|
4
|
-
|
|
5
|
-
### Semantic Vector Search Layer (Production Standard 2026)
|
|
6
|
-
- **Embedding Generation**: High-dimensional vector embeddings for product titles/descriptions on write/update using `text-embedding-3-large` or Cohere `embed-v4`
|
|
7
|
-
- **Vector Storage**: `pgvector` (PostgreSQL extension) or Pinecone for storage and indexing
|
|
8
|
-
- **Hybrid Search Fusion**: BM25 (keyword) + dense vector search combined via **Reciprocal Rank Fusion (RRF)**
|
|
9
|
-
- **Benefits**: Contextual search, handles synonyms, typo tolerance, semantic understanding beyond keywords
|
|
10
|
-
|
|
11
|
-
### AI-Generated Product Content Governance (Mandatory 2026)
|
|
12
|
-
- **Review Gate**: Human review REQUIRED before AI-generated content status = `published`
|
|
13
|
-
- **Audit Metadata**: Track `generated_by`, `reviewed_by`, `generated_at`, `generation_model` on every AI-generated field
|
|
14
|
-
- **Brand Voice Validation**: Automated checks for banned words, claim accuracy, brand guidelines compliance BEFORE human review
|
|
15
|
-
- **Draft Status**: Unreviewed AI output = `draft` status, never `published`
|
|
16
|
-
|
|
17
|
-
### Event Sourcing for Real-Time Inventory (2026)
|
|
18
|
-
- **Publish Mutations**: All inventory adjustments/reservations → messaging systems (Apache Kafka, Cloudflare Queues) immediately
|
|
19
|
-
- **Consumer Processing**: Downstream consumers (search indexes, fulfillment dispatchers, AI shopping agents) consume for eventual consistency
|
|
20
|
-
- **No Database Locking**: Decouples inventory updates from catalog writes
|
|
21
|
-
- **CDC Alternative**: Debezium for change-data-capture from database to Kafka
|
|
22
|
-
|
|
23
|
-
### Knowledge Graph for Product Relationships (GraphRAG Pattern)
|
|
24
|
-
- **Graph Databases**: Neo4j, Amazon Neptune, TigerGraph, Memgraph for recommendations, compatibility matrices, bundles
|
|
25
|
-
- **GraphRAG Pattern**: Structured subgraphs fed into LLM retrieval chains for grounded customer recommendations
|
|
26
|
-
- **Entity Resolution**: Validated against labels, change-data-capture from Salesforce, Jira, GitHub, ServiceNow, SQL via Kafka/Airbyte
|
|
27
|
-
- **Pydantic-Enforced Schema**: Every entity type, relation, LLM output validated against Pydantic models — schema drift fails in CI
|
|
28
|
-
- **Cited Reasoning**: LangChain GraphCypherQAChain translates NL → Cypher → executes → feeds structured results + hybrid Qdrant vector hits → Anthropic Claude for cited reasoning
|
|
29
|
-
|
|
30
|
-
### Vietnam E-Commerce Compliance (Decree 248/2026/ND-CP)
|
|
31
|
-
- **Seller verification**: Platform must verify seller identity before allowing product listing
|
|
32
|
-
- **Product information accuracy**: Sellers must provide accurate, complete product info
|
|
33
|
-
- **Platform obligations**: Disclose service standards, pricing, promotions, handle complaints
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## Required Skill Upgrades
|
|
38
|
-
|
|
39
|
-
### 1. Core Rules Updates
|
|
40
|
-
| Current Rule | 2026 Upgrade |
|
|
41
|
-
|--------------|--------------|
|
|
42
|
-
| Vector search mention | **Mandatory semantic vector layer**: embeddings on write, pgvector/Pinecone, RRF hybrid fusion |
|
|
43
|
-
| AI content governance mention | **Mandatory human review gate**, audit metadata tracking, brand voice validation, draft status for unreviewed |
|
|
44
|
-
| Event sourcing mention | **Full event sourcing for inventory**: Kafka/Cloudflare Queues, consumer processing, no DB locking |
|
|
45
|
-
| Knowledge graph mention | **GraphRAG pattern**: Neo4j/Neptune/TigerGraph, entity resolution, Pydantic schema enforcement, cited reasoning |
|
|
46
|
-
| Vietnam compliance | **Decree 248/2026/ND-CP**: seller verification gate before publish, platform obligations |
|
|
47
|
-
| CDC event streaming | **Debezium/Kafka** for real-time stock changes to downstream channels |
|
|
48
|
-
|
|
49
|
-
### 2. New 2026 Patterns to Add
|
|
50
|
-
- **Semantic Vector Search Architecture** with embedding pipeline, vector storage, RRF fusion
|
|
51
|
-
- **AI Content Governance Pipeline** with generation → validation → review → publish workflow
|
|
52
|
-
- **Event-Sourced Inventory** with Kafka/Cloudflare Queues, consumer patterns
|
|
53
|
-
- **Product Knowledge Graph** with GraphRAG retrieval for recommendations/compatibility
|
|
54
|
-
- **Vietnam Seller Verification Gate** integrated into product publish workflow
|
|
55
|
-
- **Pydantic Schema Enforcement** for all catalog entities and AI outputs
|
|
56
|
-
|
|
57
|
-
### 3. Checklist Additions
|
|
58
|
-
- [ ] Semantic vector embeddings generated on product write/update (`text-embedding-3-large` or Cohere `embed-v4`)
|
|
59
|
-
- [ ] Vector embeddings stored in pgvector or Pinecone with proper indexing
|
|
60
|
-
- [ ] Hybrid search: BM25 + dense vector combined via Reciprocal Rank Fusion (RRF)
|
|
61
|
-
- [ ] AI-generated product content: mandatory human review gate before `published` status
|
|
62
|
-
- [ ] AI content audit metadata: `generated_by`, `reviewed_by`, `generated_at`, `generation_model` tracked
|
|
63
|
-
- [ ] Brand voice validation: automated banned words, claim accuracy, brand guidelines checks
|
|
64
|
-
- [ ] Unreviewed AI output status = `draft` (never `published`)
|
|
65
|
-
- [ ] Inventory adjustments published to Kafka/Cloudflare Queues immediately
|
|
66
|
-
- [ ] Downstream consumers: search indexes, fulfillment, AI agents consume inventory events
|
|
67
|
-
- [ ] Product knowledge graph in Neo4j/Neptune/TigerGraph for relationships
|
|
68
|
-
- [ ] GraphRAG retrieval: structured subgraphs → LLM chains for grounded recommendations
|
|
69
|
-
- [ ] Entity resolution with CDC from Salesforce/Jira/GitHub/ServiceNow/SQL via Kafka/Airbyte
|
|
70
|
-
- [ ] Pydantic models for all entity types, relations, LLM outputs — schema drift fails in CI
|
|
71
|
-
- [ ] LangChain GraphCypherQAChain for NL → Cypher → cited reasoning
|
|
72
|
-
- [ ] Vietnam seller verification gate before product publish
|
|
73
|
-
- [ ] Platform obligations: service standards, pricing, promotions disclosed
|
|
74
|
-
- [ ] SKU uniqueness enforced at database constraint level
|
|
75
|
-
- [ ] Variant-level inventory tracked separately from product level
|
|
76
|
-
- [ ] Stock decrement operations atomic (transaction-safe)
|
|
77
|
-
- [ ] Pricing stored with version or effective timestamp
|
|
78
|
-
- [ ] `is_in_stock` computed server-side, not client-side
|
|
79
|
-
- [ ] Product publish/unpublish guarded by review/approval step
|
|
80
|
-
- [ ] Catalog sync idempotent by SKU if external source used
|
|
81
|
-
- [ ] Low-stock alerting threshold configured for ops team
|
|
82
|
-
- [ ] Channel safety buffers: dynamic virtual safety stock (5% or min 3 units) before marketplace publish
|
|
83
|
-
|
|
84
|
-
### 4. Failure Mode Additions
|
|
85
|
-
- **Vector search hallucination**: Semantic search returns irrelevant products → Mitigation: RRF fusion with BM25, relevance threshold tuning, human-in-the-loop evaluation
|
|
86
|
-
- **AI content published unreviewed**: Brand-damaging content goes live → Mitigation: Mandatory review gate, draft status enforcement, audit trail
|
|
87
|
-
- **Brand voice violation**: AI generates off-brand or inaccurate claims → Mitigation: Automated pre-review validation, banned words list, claim accuracy checks
|
|
88
|
-
- **Inventory event loss**: Kafka message lost, search index stale → Mitigation: Idempotent consumers, event replay capability, CDC backup (Debezium)
|
|
89
|
-
- **Knowledge graph entity resolution error**: Wrong product relationships → Mitigation: Validated against labels, human review of graph changes, Pydantic schema enforcement
|
|
90
|
-
- **GraphRAG citation failure**: LLM generates uncited recommendations → Mitigation: GraphCypherQAChain with mandatory citation, structured output validation
|
|
91
|
-
- **Vietnam compliance gap**: Unverified seller lists products → Mitigation: Verification gate in publish workflow, platform audit trail
|
|
92
|
-
- **Schema drift**: Catalog write with new/changed fields breaks downstream → Mitigation: Pydantic validation in CI, schema registry, contract testing
|
|
93
|
-
|
|
94
|
-
### 5. Output Contract Updates
|
|
95
|
-
- Add `contracts/schemas/vector-search-spec.json` for embedding pipeline and RRF fusion config
|
|
96
|
-
- Add `contracts/schemas/ai-content-governance-spec.json` for generation → review → publish workflow
|
|
97
|
-
- Add `contracts/schemas/event-sourced-inventory-spec.json` for Kafka event schema and consumer contracts
|
|
98
|
-
- Add `contracts/schemas/product-knowledge-graph-spec.json` for GraphRAG entities, relations, retrieval
|
|
99
|
-
- Add `contracts/schemas/vn-seller-verification-spec.json` for verification gate integration
|
|
100
|
-
- Add `contracts/schemas/pydantic-catalog-schema.json` for enforced entity/relation schemas
|
|
101
|
-
- Update `contracts/schemas/api-contract-spec.json` with new catalog endpoints
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## Implementation Priority
|
|
106
|
-
|
|
107
|
-
| Priority | Task | Effort |
|
|
108
|
-
|----------|------|--------|
|
|
109
|
-
| P0 | Add semantic vector search layer (embeddings, pgvector/Pinecone, RRF) | High |
|
|
110
|
-
| P0 | Add mandatory AI content governance pipeline (review gate, audit metadata, brand validation) | High |
|
|
111
|
-
| P0 | Add event-sourced inventory with Kafka/Cloudflare Queues | High |
|
|
112
|
-
| P1 | Add product knowledge graph with GraphRAG (Neo4j/Neptune, GraphCypherQAChain) | High |
|
|
113
|
-
| P1 | Add Pydantic schema enforcement for all catalog entities | Medium |
|
|
114
|
-
| P1 | Add Vietnam seller verification gate in publish workflow | Medium |
|
|
115
|
-
| P1 | Add CDC event streaming (Debezium) for real-time sync | Medium |
|
|
116
|
-
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
117
|
-
| P2 | Update output contracts for new specs | Low |
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## Validation Gates
|
|
122
|
-
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
123
|
-
- Verify INDEX.md regeneration if VERSION bumped
|
|
124
|
-
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
125
|
-
- Test vector search RRF fusion relevance with benchmark queries
|
|
126
|
-
- Test AI content review gate blocks unreviewed publish
|
|
127
|
-
- Test event-sourced inventory eventual consistency under load
|
|
128
|
-
- Test GraphRAG citation accuracy on product recommendation queries
|
|
129
|
-
- Test Pydantic schema validation catches drift in CI
|
|
130
|
-
- Test Vietnam seller verification gate integration
|