@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,141 +0,0 @@
|
|
|
1
|
-
# grade-and-review — 2026 Upgrade Plan
|
|
2
|
-
|
|
3
|
-
## Summary of 2026 Standards Changes
|
|
4
|
-
|
|
5
|
-
### EU AI Act High-Risk AI Grading Systems (2026)
|
|
6
|
-
- **AI-enabled grade calculators = High-Risk** (Annex III, 3a): Process assessment/test grades → determine final grades
|
|
7
|
-
- **Human oversight mandatory**: HITL (Human-in-the-loop), HOTL (Human-on-the-loop), or HIC (Human-in-command)
|
|
8
|
-
- **Automation bias mitigation** (Article 14(4)(b)): Built-in measures to prevent over-reliance on AI outputs
|
|
9
|
-
- **Conformity assessment**: Internal (Annex VI) or third-party (Annex VII) before deployment (from Dec 2027)
|
|
10
|
-
- **Record-keeping** (Article 12): Automatic logging of grading events, decisions, human interventions
|
|
11
|
-
- **Transparency** (Article 13): Deployers must understand and appropriately use system outputs
|
|
12
|
-
- **Accuracy & robustness** (Article 15): Known variations across population groups, foreseeable misuse scenarios
|
|
13
|
-
- **Deployer obligations** (Article 26): Assign competent human oversight, monitor operation, report incidents, keep logs ≥6 months
|
|
14
|
-
|
|
15
|
-
### Anti-Hallucination Grading (2026 Advances)
|
|
16
|
-
- **Line Citation Protocol**: Every deduction requires verbatim quote + line number from submission
|
|
17
|
-
- **Anti-Superficial Fluency Filter**: Cap eloquent but non-rigorous work at Level 2 (Developing)
|
|
18
|
-
- **Executable Proof Verification**: Code must pass tests; prose must have concrete derivations
|
|
19
|
-
- **ES-LLMs Grading Architecture**: Specialized agents (assessment, feedback, ethics) + deterministic orchestrator with constraint enforcement
|
|
20
|
-
- **StanBKT Uncertainty Quantification**: Bayesian posterior distributions for grading confidence intervals
|
|
21
|
-
|
|
22
|
-
### Cognitive Error Taxonomy (2026)
|
|
23
|
-
- **4-Tier Taxonomy**: Conceptual Misunderstanding, Procedural Execution Error, Boundary Blindspot, Cognitive Overload
|
|
24
|
-
- **AI-Mediated Error Patterns**: Hallucination acceptance, automation bias, prompt dependency, verification skipping
|
|
25
|
-
- **BKT-Informed Diagnosis**: Mastery posteriors per skill identify specific knowledge gaps vs. performance errors
|
|
26
|
-
- **Growth Mindset Integration**: Dweck's "not-yet" framing + metacognitive strategy training (not just effort praise)
|
|
27
|
-
|
|
28
|
-
### Growth Mindset Evidence (2026)
|
|
29
|
-
- **False growth mindset critique** (Dweck, 2015+): Posters/language alone insufficient
|
|
30
|
-
- **Effective components**: Metacognitive strategies (+7 months EEF), specific feedback, safe error culture, quality feedback
|
|
31
|
-
- **AI-mediated engagement**: Growth mindset → engagement in AI writing (β = 0.244, p < 0.001)
|
|
32
|
-
- **AI literacy → Growth mindset**: Perceived affordances mediate relationship
|
|
33
|
-
- **Process praise specificity**: "Your argument needs counter-example in paragraph two" > "try harder"
|
|
34
|
-
|
|
35
|
-
### Rule of One + Socratic Feedback (2026)
|
|
36
|
-
- **Exactly one actionable step** per evaluation cycle — prevents cognitive overload
|
|
37
|
-
- **Socratic hint ladder**: Level 1 Constraint Focus → Level 2 Conceptual Prompt → Level 3 Isomorphic Mini-Problem
|
|
38
|
-
- **AI Tutor Socratic Mode**: Zero direct answers, single guiding question, graduated escalation
|
|
39
|
-
|
|
40
|
-
### Learning Analytics & Assessment Contracts (2026)
|
|
41
|
-
- **Pseudonymous student tokens**: `STU-8f2e-2027` format, no PII
|
|
42
|
-
- **Assessment metadata**: `graded_by_ai`, `reviewed_by`, `verification_status`, `conformity_assessment_ref`
|
|
43
|
-
- **Cognitive diagnostic output**: Error category, BKT mastery posterior, ZPD progression
|
|
44
|
-
- **Cross-agent handoff**: `learning-assessment-report.json` + `learning-handoff.json`
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
## Required Skill Upgrades
|
|
49
|
-
|
|
50
|
-
### 1. Core Rules Updates
|
|
51
|
-
| Current Rule | 2026 Upgrade |
|
|
52
|
-
|--------------|--------------|
|
|
53
|
-
| 4-Tier Analytic Rubrics | **BKT-Informed Rubrics**: Mastery posteriors per skill inform criterion weighting, dynamic thresholds |
|
|
54
|
-
| Anti-Hallucination Line Citation | **Executable Verification + Citation**: Code tests + prose derivations + verbatim line citations |
|
|
55
|
-
| Anti-Superficial Fluency Filter | **AI-Mediated Fluency Detection**: Detect LLM-generated patterns (coherence without rigor, hallucinated citations) |
|
|
56
|
-
| Cognitive Error Taxonomy (4-tier) | **Extended Taxonomy**: Add AI-mediated errors (hallucination acceptance, automation bias, prompt dependency) |
|
|
57
|
-
| Growth Mindset Feedback | **Evidence-Based Growth Mindset**: Metacognitive strategies, specific feedback, safe culture — not posters |
|
|
58
|
-
| Rule of One | **Rule of One + Socratic Ladder**: Single step + 3-level hint escalation for AI tutor interactions |
|
|
59
|
-
| EU AI Act Compliance | **High-Risk Grading System**: Conformity assessment, HITL/HOTL/HIC oversight, Article 12 logging, Article 26 deployer duties |
|
|
60
|
-
|
|
61
|
-
### 2. New 2026 Patterns to Add
|
|
62
|
-
- **EU AI Act High-Risk Grading Compliance**: Conformity assessment evidence, human oversight model, automation bias mitigation, record-keeping
|
|
63
|
-
- **BKT-Informed Grading**: Mastery posteriors per skill provide confidence intervals for score reliability
|
|
64
|
-
- **Executable Verification Pipeline**: Sandbox code execution, test suite validation, derivation checking
|
|
65
|
-
- **AI Fluency Detection**: Linguistic markers of LLM generation (excessive coherence, missing citations, hallucination patterns)
|
|
66
|
-
- **Socratic AI Tutor Integration**: Zero-direct-answer, 3-level hint ladder, attempt-before-hint constraint
|
|
67
|
-
- **StanBKT Uncertainty Quantification**: Bayesian posteriors for grading confidence, model comparison
|
|
68
|
-
- **Cognitive Diagnostic Dashboard**: Per-skill mastery, error category, ZPD progression, growth mindset indicators
|
|
69
|
-
- **Cross-Agent Assessment Contracts**: Schema-validated handoffs with full audit trail
|
|
70
|
-
|
|
71
|
-
### 3. Checklist Additions
|
|
72
|
-
- [ ] EU AI Act High-Risk classification confirmed for grading system
|
|
73
|
-
- [ ] Conformity assessment completed (internal Annex VI or third-party Annex VII)
|
|
74
|
-
- [ ] Human oversight model specified: HITL / HOTL / HIC with competent personnel
|
|
75
|
-
- [ ] Automation bias mitigation: verification steps, override/stop mechanisms, bias awareness training
|
|
76
|
-
- [ ] Article 12 record-keeping: automatic logging of all grading events, human interventions, decisions
|
|
77
|
-
- [ ] Article 13 transparency: Deployer instructions for use, known limitations, accuracy variations
|
|
78
|
-
- [ ] Article 26 deployer compliance: Human oversight assignment, monitoring, incident reporting, 6-month log retention
|
|
79
|
-
- [ ] BKT-informed rubrics: Mastery posteriors weight criteria, dynamic thresholds per skill
|
|
80
|
-
- [ ] Executable verification: Code sandbox execution, test suite pass/fail, derivation validation
|
|
81
|
-
- [ ] AI fluency detection: LLM pattern markers (coherence without rigor, hallucinated citations, missing derivations)
|
|
82
|
-
- [ ] Extended cognitive error taxonomy: + AI-mediated errors (hallucination acceptance, automation bias, prompt dependency, verification skipping)
|
|
83
|
-
- [ ] Evidence-based growth mindset: Metacognitive strategy training, specific feedback, safe error culture
|
|
84
|
-
- [ ] Rule of One + Socratic Ladder: Single actionable step + 3-level hint escalation
|
|
85
|
-
- [ ] StanBKT uncertainty: Bayesian posteriors for score confidence intervals
|
|
86
|
-
- [ ] Pseudonymous student tokens: `STU-...` format, no PII in assessment outputs
|
|
87
|
-
- [ ] Conformity assessment reference: CE marking, EU Declaration of Conformity, technical documentation
|
|
88
|
-
- [ ] Human educator verification gate: `reviewed_by`, `verification_status: "verified_and_approved"` mandatory
|
|
89
|
-
- [ ] Cross-agent contracts: `learning-assessment-report.json` + `learning-handoff.json` schema-validated
|
|
90
|
-
|
|
91
|
-
### 4. Failure Mode Additions
|
|
92
|
-
- **EU AI Act deployment violation**: Grading system used without conformity assessment → Mitigation: Deployment gate, CE marking check, technical documentation validation
|
|
93
|
-
- **Automation bias in human review**: Educator over-trusts AI grading → Mitigation: HITL design, explicit disagreement workflow, bias awareness training
|
|
94
|
-
- **BKT grading miscalibration**: Mastery posteriors don't match actual performance → Mitigation: StanBKT posterior predictive checks, periodic recalibration
|
|
95
|
-
- **AI fluency false positive**: Human work flagged as AI-generated → Mitigation: Multi-marker detection, human review override, false positive rate monitoring
|
|
96
|
-
- **Executable verification gap**: Code passes tests but has conceptual errors → Mitigation: Hybrid verification (tests + conceptual rubric + derivation check)
|
|
97
|
-
- **Record-keeping failure**: Missing logs for audit → Mitigation: Automatic immutable logging, tamper-evident storage, Article 12 compliance
|
|
98
|
-
- **Growth mindset superficiality**: "Not yet" language without strategy training → Mitigation: Metacognitive strategy integration, specific feedback templates
|
|
99
|
-
- **Socratic ladder bypass**: AI tutor gives direct answers → Mitigation: Prompt locking, single-question enforcement, escalation monitoring
|
|
100
|
-
|
|
101
|
-
### 5. Output Contract Updates
|
|
102
|
-
- Add `contracts/schemas/eu-ai-act-grading-spec.json` for high-risk compliance metadata
|
|
103
|
-
- Add `contracts/schemas/bkt-grading-spec.json` for mastery-informed assessment
|
|
104
|
-
- Add `contracts/schemas/executable-verification-spec.json` for code/prose validation
|
|
105
|
-
- Add `contracts/schemas/ai-fluency-detection-spec.json` for LLM pattern markers
|
|
106
|
-
- Add `contracts/schemas/socratic-tutor-spec.json` for hint ladder and constraints
|
|
107
|
-
- Add `contracts/schemas/stanbkt-uncertainty-spec.json` for Bayesian confidence intervals
|
|
108
|
-
- Add `contracts/schemas/cognitive-diagnostic-dashboard-spec.json` for per-skill diagnostics
|
|
109
|
-
- Update `contracts/schemas/learning-assessment-report.json` with 2026 fields
|
|
110
|
-
- Update `contracts/schemas/learning-handoff.json` with 2026 fields
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## Implementation Priority
|
|
115
|
-
|
|
116
|
-
| Priority | Task | Effort |
|
|
117
|
-
|----------|------|--------|
|
|
118
|
-
| P0 | EU AI Act High-Risk compliance (conformity assessment, human oversight, logging) | High |
|
|
119
|
-
| P0 | BKT-informed grading with mastery posteriors and dynamic thresholds | High |
|
|
120
|
-
| P0 | Executable verification pipeline (sandbox + tests + derivations) | High |
|
|
121
|
-
| P0 | AI fluency detection for LLM-generated content | High |
|
|
122
|
-
| P1 | Extended cognitive error taxonomy (+ AI-mediated errors) | Medium |
|
|
123
|
-
| P1 | Evidence-based growth mindset integration (metacognition, specific feedback) | Medium |
|
|
124
|
-
| P1 | Socratic AI tutor with 3-level hint ladder and attempt-before-hint | Medium |
|
|
125
|
-
| P1 | StanBKT uncertainty quantification for grading confidence | Medium |
|
|
126
|
-
| P1 | Cognitive diagnostic dashboard with per-skill mastery | Medium |
|
|
127
|
-
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
128
|
-
| P2 | Update output contracts for new schemas | Low |
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## Validation Gates
|
|
133
|
-
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
134
|
-
- Verify INDEX.md regeneration if VERSION bumped
|
|
135
|
-
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
136
|
-
- Test EU AI Act compliance metadata completeness and conformity assessment evidence
|
|
137
|
-
- Validate BKT grading with StanBKT posterior predictive checks
|
|
138
|
-
- Test executable verification pipeline with sandboxed code execution
|
|
139
|
-
- Validate AI fluency detection false positive/negative rates
|
|
140
|
-
- Test Socratic tutor constraint enforcement (zero direct answers, hint ladder)
|
|
141
|
-
- Verify Article 12 automatic logging and Article 26 deployer obligations
|
|
@@ -1,345 +0,0 @@
|
|
|
1
|
-
# 2026 Frontend Standards & Patterns — Consolidated Research Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
Deep research conducted September 2026 across React 19, TanStack ecosystem, CSS View Transitions, WebMCP, and AI-driven UI governance.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 1. React 19 + RSC (Server Components) Architecture (2026)
|
|
9
|
-
|
|
10
|
-
### React 19.2 Stable (June 2026 with Expo SDK 56)
|
|
11
|
-
- **Server Components**: Render components ahead of time, separate environment from client
|
|
12
|
-
- **Full-stack React Architecture**: Libraries target React 19 with `react-server` export condition
|
|
13
|
-
- **Stable APIs**: RSC features stable, but bundler/framework APIs may break between minors
|
|
14
|
-
|
|
15
|
-
### New Hooks (2026)
|
|
16
|
-
| Hook | Purpose | Replaces |
|
|
17
|
-
|------|---------|----------|
|
|
18
|
-
| **`use()`** | Read promises directly in Server Components; RSC streaming + lazy data resolution | `useEffect` fetches in RSC |
|
|
19
|
-
| **`useActionState`** | Form actions with pending state, error handling, progressive enhancement | `useFormState` (deprecated) |
|
|
20
|
-
| **`useOptimistic`** | Optimistic updates for data mutations | Manual optimistic UI |
|
|
21
|
-
| **`useFormStatus`** | Form submission status in nested components | Manual form state |
|
|
22
|
-
|
|
23
|
-
### Form Actions (2026)
|
|
24
|
-
```tsx
|
|
25
|
-
// React 19 form actions - automatic form management
|
|
26
|
-
<form action={submitAction}>
|
|
27
|
-
<input name="name" />
|
|
28
|
-
<button disabled={isPending}>Save</button>
|
|
29
|
-
</form>
|
|
30
|
-
|
|
31
|
-
// useActionState for stateful forms
|
|
32
|
-
const [error, submitAction, isPending] = useActionState(
|
|
33
|
-
async (prevState, formData) => { /* server action */ },
|
|
34
|
-
initialState
|
|
35
|
-
);
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 2. Data Fetching Architecture (2026)
|
|
41
|
-
|
|
42
|
-
### RSC + TanStack Query Hybrid Pattern
|
|
43
|
-
```
|
|
44
|
-
┌─────────────────────────────────────────────────────┐
|
|
45
|
-
│ Server Components (RSC) │
|
|
46
|
-
│ ├── use() for initial data fetching │
|
|
47
|
-
│ │ └── RSC streaming + lazy resolution │
|
|
48
|
-
│ └── Server Functions (createServerFn) for data │
|
|
49
|
-
└─────────────────────────────────────────────────────┘
|
|
50
|
-
↓
|
|
51
|
-
┌─────────────────────────────────────────────────────┐
|
|
52
|
-
│ Client Components ("use client") │
|
|
53
|
-
│ ├── TanStack Query v5 for interactivity │
|
|
54
|
-
│ │ ├── Cache invalidation, background refetching │
|
|
55
|
-
│ │ ├── Request deduplication │
|
|
56
|
-
│ │ └── Optimistic mutations │
|
|
57
|
-
│ └── useActionState for form mutations │
|
|
58
|
-
└─────────────────────────────────────────────────────┘
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### TanStack Query v5 Patterns (2026)
|
|
62
|
-
- **Centralized `queryOptions` factories**: No scattered magic string keys
|
|
63
|
-
- **`queryOptions` pattern**: Reusable, type-safe query configs across components
|
|
64
|
-
- **Optimistic mutations full lifecycle**: `onMutate` (cancel + snapshot + update), `onError` (rollback), `onSettled` (invalidate)
|
|
65
|
-
- **Functional updater syntax**: `setQueryData((old) => ...)` — no stale captures
|
|
66
|
-
- **Server state in query cache only**: Never duplicate in `useState`
|
|
67
|
-
|
|
68
|
-
### OpenAPI Codegen Pipeline: Orval (2026)
|
|
69
|
-
- **Single pipeline**: OpenAPI spec → TanStack Query v5 hooks + MSW v2 mocks + TypeScript types
|
|
70
|
-
- **Auto-updated MSW mocks** in test/dev environments
|
|
71
|
-
- **Generated types as source of truth**: No manual API contract types
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## 3. Streaming AI Responses (2026)
|
|
76
|
-
|
|
77
|
-
```tsx
|
|
78
|
-
// Token-by-token UI updates without re-render storms
|
|
79
|
-
const [state, dispatch] = useReducer(reducer, initialState);
|
|
80
|
-
|
|
81
|
-
// ReadableStream + TextDecoderStream
|
|
82
|
-
const reader = response.body.getReader();
|
|
83
|
-
const decoder = new TextDecoderStream();
|
|
84
|
-
for await (const chunk of reader.pipeThrough(decoder)) {
|
|
85
|
-
dispatch({ type: 'TOKEN', payload: chunk });
|
|
86
|
-
// Batched via React.startTransition for non-urgent
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Cancellation hooks
|
|
90
|
-
const abortController = new AbortController();
|
|
91
|
-
<button onClick={() => abortController.abort()}>Stop</button>
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
## 4. CSS View Transitions API (2026)
|
|
97
|
-
|
|
98
|
-
### Native Browser Support
|
|
99
|
-
- **`::view-transition-old` / `::view-transition-new`** pseudo-elements
|
|
100
|
-
- **Composited motion only**: `transform` and `opacity` ONLY; never layout geometry (`width`, `height`, `top`, `left`, `margin`, `padding`)
|
|
101
|
-
|
|
102
|
-
### React 19 `<ViewTransition>` (2026)
|
|
103
|
-
```tsx
|
|
104
|
-
<ViewTransition name={`hero-${id}`} share="morph" default="none">
|
|
105
|
-
<HeroImage src={image} />
|
|
106
|
-
</ViewTransition>
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
### Performance Budgets (2026)
|
|
110
|
-
| Interaction Type | Budget |
|
|
111
|
-
|------------------|--------|
|
|
112
|
-
| Hotkeys (`Cmd+K`) | 0ms (instant) |
|
|
113
|
-
| Micro-interactions | 100-150ms |
|
|
114
|
-
| Overlays/Drawers | 150-250ms |
|
|
115
|
-
| Route transitions | ≤ 400ms |
|
|
116
|
-
| **INP** | **< 200ms** (DOM mutation < 50ms) |
|
|
117
|
-
|
|
118
|
-
### Spring Physics (2026)
|
|
119
|
-
- **Mass**: m = 1.0
|
|
120
|
-
- **Damping**: ζ ≈ 0.75-0.85 (near-critical)
|
|
121
|
-
- **Forbidden**: Underdamped ζ < 0.6 (cartoonish bouncing)
|
|
122
|
-
|
|
123
|
-
### App Shell Isolation
|
|
124
|
-
- Persistent headers/sidebars: unique `viewTransitionName`, suppress animations
|
|
125
|
-
- **Single smooth-scroll engine**: Exactly one (Lenis or native CSS); no Lenis + Locomotive
|
|
126
|
-
|
|
127
|
-
### Reduced Motion (WCAG 2.2 AA)
|
|
128
|
-
- **Mandatory**: `@media (prefers-reduced-motion: reduce)` disables/instant-fades all animations
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## 5. WebMCP (2026)
|
|
133
|
-
|
|
134
|
-
### Core Requirements
|
|
135
|
-
- **Feature detection**: `'modelContext' in document` guards for SSR/polyfill
|
|
136
|
-
- **State synchronization**: Sanitized app state (Redux/Zustand) → WebMCP context; sensitive fields stripped
|
|
137
|
-
- **Action allowlist (default deny)**: Explicit registration required; no runtime broadening
|
|
138
|
-
- **Strict input schema**: Every tool declares explicit property types, enums, required fields
|
|
139
|
-
- **Security context**: HttpOnly cookies stay outside JS runtime WebMCP can read
|
|
140
|
-
- **HITL gate**: Non-idempotent/financial actions require explicit user confirmation; fail-safe on dismiss/timeout
|
|
141
|
-
- **Background sync**: Service Workers + Push API for async HITL callbacks
|
|
142
|
-
- **Structured error payloads**: `{ error: { code: 'OUT_OF_STOCK', message: '...' } }` — never raw stack traces
|
|
143
|
-
|
|
144
|
-
### MCP Registry Integration
|
|
145
|
-
- Backend MCP server cards registered; browser WebMCP discovers via registry
|
|
146
|
-
- Permission parity: Agent actions cannot bypass UI permission rules
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
## 6. Component Architecture (2026)
|
|
151
|
-
|
|
152
|
-
### React 19 Idioms (Mandatory)
|
|
153
|
-
- **No `forwardRef`**: Pass `ref` as standard prop
|
|
154
|
-
- **`use(Context)`**: Instead of `useContext()`
|
|
155
|
-
- **`<Context value={...}>`**: Instead of `<Context.Provider>`
|
|
156
|
-
- **`useId()`**: Deterministic IDs for label/description/error linking (Server Actions compatible)
|
|
157
|
-
|
|
158
|
-
### shadcn v4 Form Architecture
|
|
159
|
-
- **`FieldGroup` + `Field`**: Replace legacy v3 `FormItem`/`FormControl` boilerplate
|
|
160
|
-
- **React 19 `useId()`**: Deterministic label, description, error linking
|
|
161
|
-
- **`InputGroup`**: Prefix/suffix addons, action buttons, dropdowns with `:focus-within` rings
|
|
162
|
-
|
|
163
|
-
### Compound Components & Slot Delegation
|
|
164
|
-
| Pattern | Use Case |
|
|
165
|
-
|---------|----------|
|
|
166
|
-
| **Base UI `render` prop** | Children need internal headless state injection or polymorphic tags |
|
|
167
|
-
| **Radix `asChild` (`Slot`)** | Single-child prop delegation without state projection |
|
|
168
|
-
|
|
169
|
-
### Headless Hooks (Standardized)
|
|
170
|
-
```tsx
|
|
171
|
-
const { state, actions, triggerProps, contentProps } = useDialog();
|
|
172
|
-
// Returns: keyboard bindings (Escape, Enter, Arrows) + ARIA attributes
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### Anti-Boolean Prop Sprawl (2026)
|
|
176
|
-
- **Max 2 booleans for purely stylistic states**
|
|
177
|
-
- **Layout-altering booleans banned**: `isThread`, `hasBadge`, `isHeader`, `withIcon`, `isLoadingModal`
|
|
178
|
-
- **Replace with**: Compound components (`Component.Root`, `Component.Trigger`, `Component.Content`) or explicit pre-composed variants (`ThreadComposer`, `ChannelComposer`)
|
|
179
|
-
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
## 7. Design System & GenUI Governance (2026)
|
|
183
|
-
|
|
184
|
-
### Tailwind v4 CSS-First Configuration
|
|
185
|
-
- **`@theme` in CSS entrypoints**: Define all tokens inside `@theme` — NO `tailwind.config.js`
|
|
186
|
-
- **OKLCH perceptual color space**: Uniform contrast, predictable lightness across light/dark
|
|
187
|
-
- **CSS variable dark mode**: FORBID manual `dark:bg-*` / `dark:text-*` overrides; dark mode exclusively via `:root` / `.dark` CSS variable mapping
|
|
188
|
-
|
|
189
|
-
### W3C DTCG Token Format
|
|
190
|
-
- **`{ "$value": ..., "$type": ... }` JSON** for Figma Variables, Style Dictionary, AI tools interop
|
|
191
|
-
- **Functional naming**: `primary-500`, `text-foreground`, `border-border` — NOT `light-blue`, `#...`
|
|
192
|
-
|
|
193
|
-
### GenUI Pipeline (Mandatory CI Gates)
|
|
194
|
-
1. **Token conformance check**: Consumes design tokens, forwards refs, includes ARIA, no duplicate classes
|
|
195
|
-
2. **axe-devtools scan**: Color contrast, screen reader labels, keyboard navigation
|
|
196
|
-
3. **CSS pollution prevention**: Strip custom/inline/non-repo CSS files and rules
|
|
197
|
-
4. **Chromatic/TurboSnap baseline**: Visual regression baseline required before merge
|
|
198
|
-
5. **Peer review mandatory**: All AI-generated components reviewed for code style and safety
|
|
199
|
-
|
|
200
|
-
### Storybook 8+ Requirements
|
|
201
|
-
- **`a11y` + `chromatic` addons**: Mandatory CI gates
|
|
202
|
-
- **TurboSnap**: Only re-tests changed component stories
|
|
203
|
-
|
|
204
|
-
---
|
|
205
|
-
|
|
206
|
-
## 8. Visual Regression (2026)
|
|
207
|
-
|
|
208
|
-
### Containerized Baselines (Mandatory)
|
|
209
|
-
- **Official Playwright Docker only**: `mcr.microsoft.com/playwright` matching CI environment
|
|
210
|
-
- Local macOS/Windows vs Linux CI = guaranteed false failures
|
|
211
|
-
|
|
212
|
-
### Technical Standards
|
|
213
|
-
- **Animation suppression**: `animations: 'disabled'`
|
|
214
|
-
- **Dynamic content masking**: `mask: [page.locator('...')]` for timestamps, avatars, IDs, ads
|
|
215
|
-
- **Explicit tolerance**: `maxDiffPixelRatio: 0.01`, `threshold: 0.2`
|
|
216
|
-
- **Component isolation**: Storybook + Chromatic TurboSnap + full-page Playwright
|
|
217
|
-
- **Cross-browser matrix**: Chromium, WebKit, Firefox at mobile/desktop
|
|
218
|
-
- **Hard CI gate**: Visual failures block merges unless `ui-ux-designer`/`frontend-developer` explicitly approves
|
|
219
|
-
- **Network mocking**: MSW for deterministic fixtures — live external API = non-deterministic
|
|
220
|
-
|
|
221
|
-
### Bounded Self-QA
|
|
222
|
-
- **Max 2 passes** post-authoring for agent self-QA
|
|
223
|
-
- Desktop + Mobile simultaneously
|
|
224
|
-
- Edits triggered by deterministic defects only (overflow, fold clipping, broken markup, `< 44x44px` touch targets, contrast failures)
|
|
225
|
-
|
|
226
|
-
### Negative Asset Constraints
|
|
227
|
-
- **Fabricated inline SVG logos prohibited**: "NovaCorp" style synthetic logos banned
|
|
228
|
-
- **Synthetic customer testimonials banned**: Unverified metrics prohibited
|
|
229
|
-
- **Authentic typography mandated**: System monograms, verified Simple Icons marks, honest structural placeholders
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
## 9. Frontend Testing (2026)
|
|
234
|
-
|
|
235
|
-
### Playwright v1.48+ (Mandatory)
|
|
236
|
-
- **Web-first auto-waiting**: `expect(locator).toBeVisible()`, `toBeEnabled()` — ban `sleep()`, `waitForTimeout()`
|
|
237
|
-
- **Trace Viewer**: `trace: 'retain-on-failure'` with console, network, DOM
|
|
238
|
-
- **HAR replay**: `page.routeFromHAR()` for deterministic external APIs
|
|
239
|
-
- **Component Testing**: `@playwright/experimental-ct-*` or Vitest Browser Mode
|
|
240
|
-
|
|
241
|
-
### MSW v2 Transport-Level
|
|
242
|
-
- **`setupServer` (Node/Vitest) / `setupWorker` (browser/Playwright)**
|
|
243
|
-
- **Typed `HttpResponse.json()`**: Standard fetch `http.*` methods
|
|
244
|
-
- **`onUnhandledRequest: 'error'`**: Catch unmocked requests, prevent live backend leakage
|
|
245
|
-
- **Network variation simulation**: Latency, 4xx/5xx, disconnection, malformed payloads
|
|
246
|
-
|
|
247
|
-
### WCAG 2.2 AA (Zero Violations CI Gate)
|
|
248
|
-
- **`@axe-core/playwright`**: `AxeBuilder.withTags(['wcag2a', 'wcag2aa', 'wcag22aa']).analyze()`
|
|
249
|
-
- **Keyboard focus containment**: Tab trapped in modals, flyouts, drawers
|
|
250
|
-
- **Focus restoration**: Escape dismisses overlay, restores focus to trigger
|
|
251
|
-
- **ARIA snapshots**: `expect(locator).toMatchAriaSnapshot()`
|
|
252
|
-
|
|
253
|
-
### AI/LLM UI Resilience Testing
|
|
254
|
-
- **Empty, truncated, streaming, malformed LLM responses**: Explicit test cases
|
|
255
|
-
- **Visual baselines before AI merge**: Catch missing active/hover/focus states
|
|
256
|
-
- **Axe-core on AI UI**: Catch syntactically valid but semantically broken ARIA
|
|
257
|
-
|
|
258
|
-
### Pairwise & Systematic Testing
|
|
259
|
-
- **`combinatorial-testing`**: Pairwise covering arrays across viewports × permissions × states
|
|
260
|
-
- **`systematic-debugging`**: 4-phase isolation (Reproduce → Isolate → Diagnose → Verify)
|
|
261
|
-
- **Mutation testing**: Stryker ≥ 75-80% for critical UI logic
|
|
262
|
-
|
|
263
|
-
---
|
|
264
|
-
|
|
265
|
-
## 10. Cross-Skill Integration: Frontend → Backend → Mobile
|
|
266
|
-
|
|
267
|
-
```
|
|
268
|
-
add-page-route
|
|
269
|
-
├── RSC leaf pattern ("use client" depth)
|
|
270
|
-
├── Loader pattern mandatory (no useEffect fetches)
|
|
271
|
-
├── Zod validateSearch with .catch() fallbacks
|
|
272
|
-
├── AI route audit (auth, loader, cache, URL)
|
|
273
|
-
├── CSS View Transitions integration
|
|
274
|
-
↓
|
|
275
|
-
add-ui-component
|
|
276
|
-
├── RSC/client boundary classification
|
|
277
|
-
├── React 19 useActionState + useOptimistic
|
|
278
|
-
├── Anti-slop mechanics (min-h-[100dvh], motion/react, :active, CTA no-wrap, approved icons)
|
|
279
|
-
├── AI governance (token, axe, CSS strip, review, baseline)
|
|
280
|
-
├── Lit v3 @lit/react wrapper
|
|
281
|
-
├── shadcn v4 FieldGroup/Field + useId()
|
|
282
|
-
↓
|
|
283
|
-
component-composition
|
|
284
|
-
├── React 19 idioms (no forwardRef, use(Context), useId())
|
|
285
|
-
├── shadcn v4 FieldGroup/Field + useId()
|
|
286
|
-
├── Base UI render prop vs Radix asChild decision
|
|
287
|
-
├── Headless hooks (useDialog, useDropdown)
|
|
288
|
-
├── Anti-boolean prop sprawl (max 2 stylistic)
|
|
289
|
-
↓
|
|
290
|
-
integrate-api-client
|
|
291
|
-
├── Orval: OpenAPI → TanStack Query v5 + MSW v2 + TS types
|
|
292
|
-
├── queryOptions factories (no magic string keys)
|
|
293
|
-
├── React 19 use() for RSC + TanStack Query client
|
|
294
|
-
├── useActionState for forms + useMutation for complex
|
|
295
|
-
├── Streaming: ReadableStream + useReducer + cancellation
|
|
296
|
-
↓
|
|
297
|
-
frontend-testing
|
|
298
|
-
├── Playwright v1.48+ web-first + Trace Viewer + HAR
|
|
299
|
-
├── MSW v2 transport-level + onUnhandledRequest: 'error'
|
|
300
|
-
├── WCAG 2.2 AA zero-violations CI gate
|
|
301
|
-
├── Font-stabilized visual regression in containerized Linux
|
|
302
|
-
├── Playwright Component Testing / Vitest Browser Mode
|
|
303
|
-
├── ARIA snapshots + AI LLM response matrix
|
|
304
|
-
├── Pairwise combinatorial + systematic debugging 4-phase
|
|
305
|
-
├── Mutation score ≥ 75-80% (Stryker)
|
|
306
|
-
↓
|
|
307
|
-
implement-view-transitions
|
|
308
|
-
├── Composited motion only (transform/opacity)
|
|
309
|
-
├── Frequency-based animation budget
|
|
310
|
-
├── React 19 ViewTransition with default="none"
|
|
311
|
-
├── Shared element morphing (dynamic unique names)
|
|
312
|
-
├── INP < 200ms with 50ms DOM mutation limit
|
|
313
|
-
↓
|
|
314
|
-
implement-webmcp
|
|
315
|
-
├── Feature detection ('modelContext' in document)
|
|
316
|
-
├── Default deny action allowlist
|
|
317
|
-
├── Strict input schema validation
|
|
318
|
-
├── HITL gate for non-idempotent/financial
|
|
319
|
-
├── Service Worker + Push API for async HITL
|
|
320
|
-
├── MCP Registry coordination
|
|
321
|
-
├── Permission parity (agent = UI permissions)
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
---
|
|
325
|
-
|
|
326
|
-
## 11. Key References
|
|
327
|
-
|
|
328
|
-
- **React 19**: https://react.dev/blog/2024/12/05/react-19
|
|
329
|
-
- **TanStack Query v5**: https://tanstack.com/query/v5/docs
|
|
330
|
-
- **TanStack Start RSC**: https://tanstack.com/blog/react-server-components
|
|
331
|
-
- **Orval**: https://orval.dev
|
|
332
|
-
- **CSS View Transitions**: https://developer.mozilla.org/en-US/docs/Web/API/View_Transitions_API
|
|
333
|
-
- **React 19 ViewTransition**: https://react.dev/reference/react/ViewTransition
|
|
334
|
-
- **WebMCP**: https://webmcp.dev
|
|
335
|
-
- **Playwright v1.48+**: https://playwright.dev/docs/release-notes
|
|
336
|
-
- **MSW v2**: https://mswjs.io/docs/getting-started
|
|
337
|
-
- **axe-core/playwright**: https://github.com/dequelabs/axe-core-npm
|
|
338
|
-
- **Storybook 8**: https://storybook.js.org/blog/storybook-8
|
|
339
|
-
- **Tailwind v4**: https://tailwindcss.com/blog/tailwindcss-v4
|
|
340
|
-
- **OKLCH**: https://oklch.com
|
|
341
|
-
- **W3C DTCG**: https://design-tokens.github.io/community-group/format
|
|
342
|
-
- **shadcn/ui v4**: https://ui.shadcn.com
|
|
343
|
-
- **Reanimated 4**: https://docs.swmansion.com/react-native-reanimated
|
|
344
|
-
- **FlashList**: https://shopify.github.io/flash-list
|
|
345
|
-
- **Expo Router**: https://docs.expo.dev/router/introduction
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# add-page-route — 2026 Upgrade Plan
|
|
2
|
-
|
|
3
|
-
## Summary of 2026 Standards Changes
|
|
4
|
-
|
|
5
|
-
### React 19 / RSC Integration (2026)
|
|
6
|
-
- **React 19.2 stable** (June 2026 with Expo SDK 56): Server Components, `use()`, `useActionState`, `useOptimistic`, `<form> Actions`
|
|
7
|
-
- **RSC Leaf Pattern**: Push `"use client"` as deep as possible; RSC at top, interactive client components as children
|
|
8
|
-
- **TanStack Start RSC**: `createServerFn`, Flight streams, `renderToReadableStream`, composite components with slots
|
|
9
|
-
- **React 19 `use()` hook**: Read promises directly in Server-rendered components for RSC streaming
|
|
10
|
-
- **React 19 `useActionState`**: Form actions with pending state, error handling, progressive enhancement
|
|
11
|
-
|
|
12
|
-
### Routing Evolution (2026)
|
|
13
|
-
- **TanStack Router v2** / **React Router v7**: Type-safe routing, `validateSearch` with Zod `.catch()` fallbacks
|
|
14
|
-
- **Expo Router v4+**: File-based routing replacing React Navigation; nested layouts, route groups, `useLocalSearchParams`
|
|
15
|
-
- **Next.js 15 App Router**: Server Actions, `use cache`, `unstable_cache`, streaming with Suspense
|
|
16
|
-
- **Loader pattern mandatory**: Hoist data loading to loader functions — no `useEffect` fetches after mount (layout shift waterfalls)
|
|
17
|
-
|
|
18
|
-
### Type-Safe Navigation (2026)
|
|
19
|
-
- **Type-safe primitives only**: `<Link to="..." />`, `navigate({ to: '...' })` — never untyped string concatenation
|
|
20
|
-
- **URL search params validation**: Zod schemas with `.catch()` fallbacks in `validateSearch`
|
|
21
|
-
- **AI-generated route validation**: Auth guard completeness, data loading pattern match, cache invalidation, URL param validation
|
|
22
|
-
|
|
23
|
-
### View Transitions (2026)
|
|
24
|
-
- **CSS View Transitions API**: Native, `::view-transition-old/new`, composited properties only (`transform`, `opacity`)
|
|
25
|
-
- **React 19 `ViewTransition`**: `default="none"`, wrap before DOM nodes, unique names with dynamic IDs
|
|
26
|
-
- **INP budget < 200ms**: DOM mutation callback < 50ms; `React.startTransition` + `scheduler.yield()`
|
|
27
|
-
- **Reduced motion**: `@media (prefers-reduced-motion: reduce)` mandatory
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Required Skill Upgrades
|
|
32
|
-
|
|
33
|
-
### 1. Core Rules Updates
|
|
34
|
-
| Current Rule | 2026 Upgrade |
|
|
35
|
-
|--------------|--------------|
|
|
36
|
-
| TanStack Router v2 / React Router v7 basic | **RSC-aware routing**: React 19 `use()` in Server Components, TanStack Start `createServerFn`, Expo Router file-based |
|
|
37
|
-
| Loader pattern mentioned | **Loader pattern mandatory**: Hoist data loading to loaders; no `useEffect` primary fetches |
|
|
38
|
-
| Type-safe navigation | **Zod `validateSearch` with `.catch()` fallbacks**: Raw URL params are user-controlled input |
|
|
39
|
-
| AI-generated route validation | **Comprehensive AI audit**: Auth guards, data loading, cache invalidation, URL validation |
|
|
40
|
-
| View transitions reference | **CSS View Transitions + React 19 `ViewTransition`**: Composited motion only, INP < 200ms, reduced motion |
|
|
41
|
-
|
|
42
|
-
### 2. New 2026 Patterns to Add
|
|
43
|
-
- **RSC Page Architecture**: Server Components at route level, `"use client"` pushed to leaves
|
|
44
|
-
- **TanStack Start Server Functions**: `createServerFn` for route data, Flight stream rendering
|
|
45
|
-
- **React 19 Form Actions**: `<form action={submitAction}>`, `useActionState` for progressive enhancement
|
|
46
|
-
- **Expo Router v4+ Patterns**: File-based routes, `useLocalSearchParams`, nested layout.tsx
|
|
47
|
-
- **URL Parameter Validation**: Zod schemas with `.catch()` fallbacks in `validateSearch` for all search params
|
|
48
|
-
- **CSS View Transitions Integration**: `startViewTransition`, `ViewTransition` boundaries, `view-transition-name` uniqueness
|
|
49
|
-
- **AI Route Generation Audit Checklist**: Auth guard, loader pattern, cache invalidation, URL validation
|
|
50
|
-
|
|
51
|
-
### 3. Checklist Additions
|
|
52
|
-
- [ ] Route follows repo RSC pattern (Server Components at top, client leaves)
|
|
53
|
-
- [ ] Data loading hoisted to loader / Server Function — no `useEffect` primary fetches
|
|
54
|
-
- [ ] Type-safe navigation: `<Link to="..." />`, `navigate({ to: '...' })` only
|
|
55
|
-
- [ ] URL search params validated with Zod `.catch()` fallbacks in `validateSearch`
|
|
56
|
-
- [ ] Loading, empty, error, unauthorized states explicit
|
|
57
|
-
- [ ] SEO/SSR verified for public routes: meta tags, OG, SSG behavior, canonical tags
|
|
58
|
-
- [ ] CSS View Transitions: composited properties only, INP < 200ms, reduced motion override
|
|
59
|
-
- [ ] React 19 `ViewTransition` boundaries: `default="none"`, wrap before DOM nodes, unique dynamic names
|
|
60
|
-
- [ ] AI-generated route audit: auth guards complete, loader pattern matched, cache invalidation on mutations, URL params validated
|
|
61
|
-
- [ ] Direct URL access works; back/forward navigation correct
|
|
62
|
-
- [ ] Tests: route render, guard/auth behavior, page transitions, failure/empty states
|
|
63
|
-
- [ ] `contracts/schemas/implementation-result.json` emitted
|
|
64
|
-
|
|
65
|
-
### 4. Failure Mode Additions
|
|
66
|
-
- **RSC hydration mismatch**: Server/Client tree divergence. Mitigation: `"use client"` boundary at correct leaf; avoid server-only APIs in shared components.
|
|
67
|
-
- **Loader waterfall**: Sequential loaders causing cascade delays. Mitigation: Parallelize independent loaders; use `Promise.all` in loader.
|
|
68
|
-
- **Zod validation too strict**: Valid URLs rejected by over-constrained schemas. Mitigation: `.catch()` fallbacks with sensible defaults; log validation failures.
|
|
69
|
-
- **CSS View Transition INP violation**: DOM mutation > 50ms. Mitigation: `React.startTransition` + `scheduler.yield()`; chunk streaming work.
|
|
70
|
-
- **AI route missing auth guard**: Anonymous access to protected route. Mitigation: Mandatory AI audit checklist; reject routes without auth wrapper.
|
|
71
|
-
- **Expo Router layout drift**: Nested layout.tsx not matching route hierarchy. Mitigation: Lint rule for layout nesting consistency.
|
|
72
|
-
|
|
73
|
-
### 5. Output Contract Updates
|
|
74
|
-
- Update `contracts/schemas/implementation-result.json` with: RSC boundary location, loader functions, Zod schemas, View Transition config
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Implementation Priority
|
|
79
|
-
|
|
80
|
-
| Priority | Task | Effort |
|
|
81
|
-
|----------|------|--------|
|
|
82
|
-
| P0 | RSC leaf pattern enforcement (`"use client"` depth) | High |
|
|
83
|
-
| P0 | Loader pattern mandatory (no `useEffect` fetches) | High |
|
|
84
|
-
| P0 | Zod `validateSearch` with `.catch()` fallbacks | High |
|
|
85
|
-
| P0 | AI route generation audit checklist | Medium |
|
|
86
|
-
| P1 | CSS View Transitions + React 19 integration | Medium |
|
|
87
|
-
| P1 | TanStack Start Server Functions for route data | Medium |
|
|
88
|
-
| P1 | Expo Router v4+ file-based routing patterns | Medium |
|
|
89
|
-
| P2 | React 19 `useActionState` form integration | Medium |
|
|
90
|
-
| P2 | Expanded failure modes | Low |
|
|
91
|
-
| P2 | Output contract updates | Low |
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## Validation Gates
|
|
96
|
-
- Run `python3 core/scripts/validate-all.py` from agent-skills root
|
|
97
|
-
- Verify INDEX.md regeneration if VERSION bumped
|
|
98
|
-
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
99
|
-
- Test RSC hydration with `"use client"` at various depths
|
|
100
|
-
- Validate Zod `validateSearch` rejects malformed URLs with fallbacks
|
|
101
|
-
- Benchmark INP with CSS View Transitions under 4x CPU throttling
|
|
102
|
-
- Test AI route generation audit catches missing auth guards
|