@vesviet/agent-skills 5.10.0 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +31 -19
- package/README.md +6 -18
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +40 -142
- package/adapters/antigravity/INDEX_TIER1.json +142 -121
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/antigravity-tools.md +25 -0
- package/adapters/antigravity/role-skill-index.json +156 -48
- package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
- package/adapters/claude/settings.template.json +11 -0
- package/adapters/cursor/README.md +1 -5
- package/adapters/cursor/hooks.template.json +1 -1
- package/core/contracts/README.md +0 -20
- package/core/contracts/schemas/compact-working-state.json +42 -1
- package/core/contracts/schemas/ui-component-spec.json +28 -2
- package/core/policies/README.md +0 -20
- package/core/policies/execution-sandbox.md +0 -12
- package/core/roles/3d-graphics-engineer.md +144 -208
- package/core/roles/README.md +0 -22
- package/core/roles/agent-coordinator.md +28 -147
- package/core/roles/agent-discovery-engineer.md +46 -39
- package/core/roles/ai-systems-engineer.md +2 -0
- package/core/roles/backend-developer.md +22 -117
- package/core/roles/cloudflare-engineer.md +1 -1
- package/core/roles/data-engineer.md +3 -1
- package/core/roles/devops-engineer.md +4 -3
- package/core/roles/ecommerce-engineer.md +18 -6
- package/core/roles/frontend-developer.md +145 -317
- package/core/roles/game-developer.md +2 -1
- package/core/roles/mobile-engineer.md +18 -204
- package/core/roles/product-manager.md +3 -3
- package/core/roles/project-manager.md +5 -5
- package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
- package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
- package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
- package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
- package/core/roles/references/backend-developer-responsibilities.md +47 -0
- package/core/roles/references/backend-developer-review-checklist.md +15 -0
- package/core/roles/references/business-analyst-responsibilities.md +2 -2
- package/core/roles/references/frontend-developer-responsibilities.md +14 -6
- package/core/roles/references/frontend-developer-review-checklist.md +13 -6
- package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
- package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
- package/core/roles/references/reviewer-review-checklist.md +54 -0
- package/core/roles/references/sdet-review-checklist.md +53 -0
- package/core/roles/references/solution-architect-responsibilities.md +134 -0
- package/core/roles/references/sre-review-checklist.md +81 -0
- package/core/roles/references/system-engineer-responsibilities.md +124 -0
- package/core/roles/references/technical-architect-responsibilities.md +192 -0
- package/core/roles/references/technical-architect-review-checklist.md +58 -0
- package/core/roles/references/technical-lead-review-checklist.md +65 -0
- package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
- package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
- package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
- package/core/roles/researcher.md +3 -3
- package/core/roles/reviewer.md +2 -2
- package/core/roles/role-standard.md +79 -213
- package/core/roles/sdet.md +5 -6
- package/core/roles/security-engineer.md +4 -3
- package/core/roles/solution-architect.md +9 -130
- package/core/roles/sre.md +1 -0
- package/core/roles/system-engineer.md +15 -155
- package/core/roles/task-planner.md +1 -1
- package/core/roles/technical-architect.md +15 -245
- package/core/roles/technical-lead.md +1 -0
- package/core/roles/technical-writer.md +3 -3
- package/core/roles/ui-ux-designer.md +158 -303
- package/core/rules/README.md +0 -22
- package/core/skills/README.md +10 -24
- package/core/skills/agent/agent-delegation/SKILL.md +11 -0
- package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
- package/core/skills/agent/agent-memory-compaction/SKILL.md +69 -99
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
- package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
- package/core/skills/agent/agent-observability/SKILL.md +12 -6
- package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
- package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
- package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
- package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
- package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
- package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
- package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
- package/core/skills/backend/add-event-handler/SKILL.md +11 -0
- package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
- package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
- package/core/skills/backend/add-service-client/SKILL.md +2 -0
- package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
- package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
- package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
- package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
- package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
- package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
- package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
- package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
- package/core/skills/backend/implement-auth/SKILL.md +9 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
- package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
- package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
- package/core/skills/business/elicit-requirements/SKILL.md +1 -0
- package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
- package/core/skills/business/write-use-cases/SKILL.md +1 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +15 -65
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +19 -57
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +14 -49
- package/core/skills/commerce/manage-product-catalog/SKILL.md +2 -0
- package/core/skills/document/docx/SKILL.md +1 -0
- package/core/skills/document/pdf/SKILL.md +1 -0
- package/core/skills/document/xlsx/SKILL.md +1 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +1 -0
- package/core/skills/documentation/write-documentation/SKILL.md +1 -0
- package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
- package/core/skills/education/create-exercises/SKILL.md +1 -0
- package/core/skills/education/design-learning-plan/SKILL.md +1 -0
- package/core/skills/education/grade-and-review/SKILL.md +1 -0
- package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +1 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
- package/core/skills/foundation/conduct-research/SKILL.md +1 -1
- package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
- package/core/skills/foundation/create-migration/SKILL.md +10 -0
- package/core/skills/foundation/design-review/SKILL.md +9 -10
- package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
- package/core/skills/foundation/discernment-nudge/SKILL.md +1 -0
- package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
- package/core/skills/foundation/incident-report/SKILL.md +1 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +1 -0
- package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
- package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
- package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
- package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
- package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
- package/core/skills/foundation/release-notes/SKILL.md +1 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +10 -0
- package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
- package/core/skills/foundation/write-tests/SKILL.md +9 -0
- package/core/skills/frontend/add-page-route/SKILL.md +7 -7
- package/core/skills/frontend/add-ui-component/SKILL.md +1 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +2 -2
- package/core/skills/frontend/component-composition/SKILL.md +10 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +1 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +25 -24
- package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +4 -3
- package/core/skills/frontend/integrate-api-client/SKILL.md +9 -11
- package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
- package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +3 -2
- package/core/skills/frontend/setup-visual-regression/SKILL.md +5 -4
- package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
- package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +12 -10
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +21 -5
- package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
- package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
- package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +1 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +1 -0
- package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
- package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
- package/core/skills/platform/agents-sdk/SKILL.md +1 -0
- package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
- package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
- package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
- package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
- package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
- package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
- package/core/skills/platform/durable-objects/SKILL.md +1 -0
- package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
- package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
- package/core/skills/platform/setup-deployment/SKILL.md +2 -2
- package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
- package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
- package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
- package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
- package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +1 -2
- package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
- package/core/skills/platform/web-perf/SKILL.md +2 -2
- package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
- package/core/skills/platform/wrangler/SKILL.md +1 -0
- package/core/skills/product/build-story-map/SKILL.md +1 -0
- package/core/skills/product/define-product-strategy/SKILL.md +1 -0
- package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
- package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
- package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
- package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
- package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
- package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
- package/core/skills/repo-ops/review-code/SKILL.md +10 -0
- package/core/skills/repo-ops/review-service/SKILL.md +3 -0
- package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
- package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +1 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +1 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +1 -0
- package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
- package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
- package/core/workflows/README.md +0 -20
- package/overlays/README.md +2 -22
- package/overlays/astro-cloudflare/README.md +0 -20
- package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
- package/overlays/b2b-catalog-golf/README.md +0 -20
- package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
- package/overlays/b2b-factory-catalog/README.md +0 -20
- package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
- package/overlays/b2b-sport-catalog/README.md +0 -20
- package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
- package/overlays/cad-projection/README.md +0 -20
- package/overlays/cad-projection/rules/cad-conventions.md +0 -20
- package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
- package/overlays/data-analyst-stack/README.md +0 -20
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
- package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
- package/overlays/data-warehouse/README.md +0 -22
- package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
- package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
- package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
- package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
- package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
- package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
- package/overlays/ecommerce-microservices/README.md +22 -35
- package/overlays/ecommerce-microservices/config/README.md +3 -1
- package/overlays/ecommerce-microservices/rules/README.md +2 -1
- package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
- package/overlays/ecommerce-microservices/skills/README.md +1 -1
- package/overlays/ecommerce-microservices/workflows/README.md +3 -1
- package/overlays/fintech-compliance/README.md +0 -20
- package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
- package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
- package/overlays/go-microservices/README.md +1 -21
- package/overlays/go-microservices/rules/go-conventions.md +0 -31
- package/overlays/hugo-authority-content/README.md +0 -20
- package/overlays/hugo-authority-content/roles/README.md +0 -20
- package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
- package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
- package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
- package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
- package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
- package/overlays/hugo-authority-content/workflows/README.md +0 -20
- package/overlays/hvac-authority-content/README.md +0 -20
- package/overlays/hvac-authority-content/config/collections.md +0 -22
- package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
- package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
- package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
- package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
- package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
- package/overlays/laravel-ecommerce/README.md +0 -20
- package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
- package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
- package/overlays/laravel-filament/README.md +0 -20
- package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
- package/overlays/livestream-web/README.md +0 -20
- package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
- package/overlays/obj-configurator/README.md +0 -20
- package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
- package/overlays/r3f-stack/README.md +0 -20
- package/overlays/r3f-stack/rules/stub.md +0 -31
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
- package/overlays/real-estate-content/README.md +0 -20
- package/overlays/real-estate-content/roles/README.md +0 -20
- package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
- package/overlays/real-estate-content/rules/content-schema.md +0 -31
- package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
- package/overlays/real-estate-content/workflows/README.md +0 -20
- package/overlays/security-research/README.md +0 -20
- package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
- package/overlays/seo-publishing/README.md +1 -21
- package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
- package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
- package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
- package/overlays/ui-design-system/README.md +0 -20
- package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
- package/package.json +2 -2
- package/packs/README.md +3 -9
- package/packs/ecommerce-team/manifest.yaml +1 -1
- package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
- package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
- package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
- package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
- package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
- package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
- package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
- package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
- package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
- package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
- package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
- package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
- package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
- package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
- package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
- package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
- package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
- package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
- package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
- package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
- package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
- package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
- package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
- package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Master Design Standard: UI/UX Anti-Slop Specification
|
|
1
|
+
# Master Design Standard: UI/UX Anti-Slop Specification & Reference
|
|
2
2
|
|
|
3
3
|
This document establishes the unified **Master Design Standard** for all UI/UX design, frontend architecture, and component engineering across `agent-skills`. It consolidates and codifies the 9 S-Rank Design & UI/UX skills into an authoritative, enforceable design governance specification.
|
|
4
4
|
|
|
5
|
-
Every agent assuming the `@designer` (`ui-ux-designer`) or `@frontend` (`frontend-developer`) role MUST strictly comply with these rules.
|
|
5
|
+
This reference is linked from [`ui-ux-designer.md`](../ui-ux-designer.md) and mirrored at `core/skills/frontend/ui-ux-designer-anti-slop-standards.md`. Every agent assuming the `@designer` (`ui-ux-designer`) or `@frontend` (`frontend-developer`) role MUST strictly comply with these rules.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -12,27 +12,25 @@ The Master Design Standard synthesizes nine domain-leading design engineering me
|
|
|
12
12
|
|
|
13
13
|
| # | S-Rank Skill | Core Focus & Authority | Integrated Sections |
|
|
14
14
|
|---|--------------|------------------------|---------------------|
|
|
15
|
-
| 1 | **Taste Skill** | Aesthetic direction, 3-dial engine, archetype calibration, mandatory pre-code Design Read statement | §2 (Taste Engine), §3 (Design Read) |
|
|
16
|
-
| 2 | **Anthropic Frontend Design** |
|
|
17
|
-
| 3 | **
|
|
18
|
-
| 4 | **
|
|
19
|
-
| 5 | **
|
|
20
|
-
| 6 | **
|
|
21
|
-
| 7 | **
|
|
22
|
-
| 8 | **Web Design Guidelines** | Bounded 2-pass QA protocol (Desktop 1280px+ & Mobile 375-430px simultaneously), single smooth-scroll engine | §7 (Smooth Scroll), §8 (Bounded Visual QA) |
|
|
23
|
-
| 9 | **Build Awwwards-Quality Sites** | Editorial typography, negative asset constraints (ban fake SVG logos / synthetic testimonials / ungrounded metrics) | §4 (Layout), §9 (Negative Asset Constraints) |
|
|
15
|
+
| 1 | **Taste Skill** | Aesthetic direction, 3-dial engine, archetype calibration, mandatory pre-code Design Read statement | §2 (Taste Engine & Domain Matrix), §3 (Design Read) |
|
|
16
|
+
| 2 | **Anthropic Frontend Design** | Context-first intentional aesthetic commitment across varied visual poles (brutalist, editorial, luxury, tactile, industrial), avoiding any single AI template | §2.2 (Domain Matrix), §3 (Design Read), §4 (Layout) |
|
|
17
|
+
| 3 | **UI/UX Pro Max** | Domain-grounded lookup (styles, palettes, typography, charts, stack rules), `MASTER.md` + page override token hierarchy | §2.2 (Domain Matrix), §11.2 (Master + Page Overrides) |
|
|
18
|
+
| 4 | **Vercel Web Design Guidelines** | Deterministic UI craft & micro-audit rules (`file:line` findings, URL-as-state, unicode `…`, `tabular-nums`, `color-scheme`, focus restoration, hydration-safe inputs) | §8 (Visual QA), §10.3 (Web Interface Micro-Craft) |
|
|
19
|
+
| 5 | **Vercel Composition Patterns** | Compound components, `{ state, actions, meta }`, `FieldGroup` + `Field`, `InputGroup`, Base UI `render` vs Radix `asChild`, `<= 2` stylistic booleans | §5 (Component Composition) |
|
|
20
|
+
| 6 | **Impeccable & Emil Design Engineering** | Perceptual OKLCH ramps, APCA contrast + WCAG 2.2 AA floor, frequency-based motion budget (`0ms` hotkeys, `150–250ms` overlays), harmonic spring physics | §6 (Token System), §7 (Motion Physics) |
|
|
21
|
+
| 7 | **Build Awwwards-Quality Sites** | Negative asset constraints (ban fake SVG logos, synthetic testimonials, ungrounded precision metrics) | §9 (Negative Asset Constraints), §10 (Copy & CTA) |
|
|
24
22
|
|
|
25
23
|
---
|
|
26
24
|
|
|
27
|
-
## 2. Taste Engine
|
|
25
|
+
## 2. Taste Engine, Three-Dial Calibration & Domain-to-Aesthetic Matrix
|
|
28
26
|
|
|
29
|
-
The Taste Engine governs design execution via three numeric dials on a 1–10 scale.
|
|
27
|
+
The Taste Engine governs design execution via three numeric dials on a 1–10 scale. These are global variables — cross-references must use these exact names, never aliases like `LAYOUT_VARIANCE` or `ANIM_LEVEL`. **There is no universal visual look**: start from the project's **Domain Archetype** below rather than defaulting to dark-slate + `Geist` + Emerald.
|
|
30
28
|
|
|
31
29
|
```
|
|
32
30
|
TASTE ENGINE THREE DIALS
|
|
33
31
|
┌─────────────────────────┬─────────────────────────┬─────────────────────────┐
|
|
34
32
|
│ DESIGN_VARIANCE │ MOTION_INTENSITY │ VISUAL_DENSITY │
|
|
35
|
-
│
|
|
33
|
+
│ (Archetype-driven) │ (Archetype-driven) │ (Archetype-driven) │
|
|
36
34
|
├─────────────────────────┼─────────────────────────┼─────────────────────────┤
|
|
37
35
|
│ 1: Perfect Symmetry │ 1: Static / No Motion │ 1: Art Gallery / Ultra │
|
|
38
36
|
│ 5: Balanced Bento Grid │ 5: Snappy Micro-Springs │ 4: Modern SaaS Baseline │
|
|
@@ -96,16 +94,22 @@ The Taste Engine governs design execution via three numeric dials on a 1–10 sc
|
|
|
96
94
|
|
|
97
95
|
---
|
|
98
96
|
|
|
99
|
-
### 2.2
|
|
97
|
+
### 2.2 Domain-to-Aesthetic Lookup Matrix (Anti-Monoculture)
|
|
100
98
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
|
104
|
-
|
|
105
|
-
| **
|
|
106
|
-
| **
|
|
107
|
-
| **
|
|
108
|
-
| **
|
|
99
|
+
Select the matching domain archetype before proposing typography, colors, or layout. Never apply the **Modern Developer Tool** dark-slate + emerald aesthetic to Fintech, Healthcare, Editorial, or Retail unless the brief explicitly demands it.
|
|
100
|
+
|
|
101
|
+
| Domain Archetype | VARIANCE | MOTION | DENSITY | Aesthetic Pole, Typography & Palette Direction | Avoided Domain Cliché |
|
|
102
|
+
|:---|:---:|:---:|:---:|:---|:---|
|
|
103
|
+
| **Fintech / Core Banking / Ledger** | **3** | **2** | **6** | Crisp light-first paper (`oklch(0.985 0.004 250)`), deep navy/forest/slate ink, `tabular-nums` mandatory, high-contrast semantic status badges, institutional clarity. | Neon crypto dark glow, playful bouncy springs |
|
|
104
|
+
| **Healthcare / Clinical / Regulated** | **3** | **2** | **5** | Calm daylight surfaces, soft mineral teal or cobalt accent (`sat < 70%`), COGA-compliant plain labels, persistent field instructions, WCAG AAA text contrast. | Harsh high-contrast dark mode, ambiguous icons |
|
|
105
|
+
| **B2B Ops / WMS / Telemetry / ERP** | **4** | **3** | **7–8** | High-density data grids, sticky table headers, URL-persisted filters, keyboard shortcuts (`0ms`), crisp 1px borders, monospace IDs & `tabular-nums`. | Marketing bento cards, excessive whitespace padding |
|
|
106
|
+
| **Modern Developer Tool / Infra** | **6** | **5** | **5** | Choose between **Daylight Technical Docs** (warm stone/paper + sharp mono) OR **Dark Precision** (tinted slate + 1 restrained accent); `Cmd+K` at `0ms`. | Unprompted Linear-dark + Emerald + fake terminal clone |
|
|
107
|
+
| **Editorial / Publishing / Knowledge** | **7–8** | **4** | **3** | Expressive typographic hierarchy (permitted heritage serif pairing when brief aligns), `60–68ch` reading measure, asymmetric pull quotes, generous margins. | Generic SaaS 3-column feature card grid |
|
|
108
|
+
| **Premium Consumer / Luxury / Craft** | **7** | **6** | **3** | Rotate purposefully: **Cold Luxury** (ice grey + obsidian), **Botanical Forest** (pine + alabaster), **Terracotta + Slate**, or **Cobalt + Cream**; tactile transitions. | Warm-beige (`#f5f1ea`) + brass (`#b08947`) + espresso (`#1a1714`) |
|
|
109
|
+
| **E-Commerce / High-Velocity Retail** | **5** | **5** | **5** | Product-photography-first grid, sticky thumb-zone mobile CTA, clear 2D variant matrix (size × color), zero dark-pattern urgency tricks. | Cluttered badge spam, low-contrast ghost buttons on photos |
|
|
110
|
+
| **AI Agentic Workspace** | **5** | **4** | **6** | Visible Trust Ladder tier badge, streaming skeletons (`CLS = 0`), calibrated confidence badges, Red Path recovery, upfront `<AIDisclosureBanner>`. | Confident chat bubble with no undo, provenance, or fallback |
|
|
111
|
+
| **Public Sector / Gov / Education** | **2–3** | **2** | **5** | Official `govuk-frontend` / `uswds` grammar when applicable, linear single-column forms, WCAG 2.1/2.2 AA+, zero decorative animation. | Experimental split heroes, hidden navigation |
|
|
112
|
+
| **General SaaS Baseline (Mode A/B)** | **7** | **5** | **4** | Balanced modern SaaS when no specialist domain dominates; distinct brand accent (`sat < 80%`), `DESIGN.md` master tokens. | Purple/indigo AI mesh gradient, `Inter` + 3 identical cards |
|
|
109
113
|
|
|
110
114
|
### 2.3 Dial Clamping & Conflict Resolution Rules
|
|
111
115
|
When user briefs contain conflicting requirements (e.g., "We want an experimental Awwwards look, but for a Swiss private wealth management portal"):
|
|
@@ -173,7 +177,7 @@ export default function Hero() {
|
|
|
173
177
|
- **Mood & Intent**: Utilitarian Monospace Precision, High-Signal Developer Tool
|
|
174
178
|
- **Dial Calibration**:
|
|
175
179
|
- `DESIGN_VARIANCE`: 8 — Asymmetric 60/40 desktop split hero with terminal visual anchor
|
|
176
|
-
- `MOTION_INTENSITY`: 6 — Tactile scale-[0.
|
|
180
|
+
- `MOTION_INTENSITY`: 6 — Tactile scale-[0.96] active spring on CTA; 0ms on keyboard shortcuts
|
|
177
181
|
- `VISUAL_DENSITY`: 4 — Generous SaaS whitespace (min-h-[100dvh], py-24, gap-12)
|
|
178
182
|
- **Composition Archetype**: Asymmetrical Split Hero (60/40) with Live Interactive Preview
|
|
179
183
|
- **Typography System**: Display: Geist Sans (tracking-tight), Body: Geist Sans (leading-relaxed), Mono: Geist Mono
|
|
@@ -209,7 +213,7 @@ export default function Hero() {
|
|
|
209
213
|
</p>
|
|
210
214
|
|
|
211
215
|
<div className="flex flex-wrap items-center gap-4 pt-2">
|
|
212
|
-
<Button size="lg" className="active:scale-[0.
|
|
216
|
+
<Button size="lg" className="active:scale-[0.96] transition-transform">
|
|
213
217
|
Deploy Cluster
|
|
214
218
|
</Button>
|
|
215
219
|
<Button variant="outline" size="lg">
|
|
@@ -237,11 +241,20 @@ export default function Hero() {
|
|
|
237
241
|
```
|
|
238
242
|
|
|
239
243
|
#### 💡 WHY
|
|
240
|
-
Pre-code commitments anchor the LLM to specific tokens, layout archetypes, and negative constraints before generating
|
|
244
|
+
Pre-code commitments anchor the LLM to specific tokens, layout archetypes, and negative constraints before generating markup. **Crucial rule**: the dark-slate + Emerald example above is valid *only* for a Developer Tool brief; for Fintech, Healthcare, Retail, or B2B Ops, derive a completely different daylight/editorial/high-density Design Read from Section 2.2 so the system never collapses into a single dark-mode SaaS look.
|
|
241
245
|
|
|
242
246
|
---
|
|
243
247
|
|
|
244
|
-
## 4.
|
|
248
|
+
## 4. Layout & Composition Directives (Mode A: Product UI vs Mode B: Showcase)
|
|
249
|
+
|
|
250
|
+
Apply **Mode A** to in-app product UIs (dashboards, CRUD tables, settings, AI workspaces) and **Mode B** only to marketing, product landing, or storefront showcase pages. Never force Mode B landing rules (zigzags, marketing hero stacks) onto Mode A operational tools.
|
|
251
|
+
|
|
252
|
+
### Mode A: In-App Product UI Grammar
|
|
253
|
+
- **Surface Hierarchy**: select Inline vs Popover vs Drawer/Sheet vs Modal Dialog vs Dedicated Route based on reversibility and context-preservation needs.
|
|
254
|
+
- **URL as State**: serialize active tabs, filters, sort order, pagination, and selected inspection drawers into URL query parameters (`?tab=`, `?status=`, `?selected=`).
|
|
255
|
+
- **Data-Dense Scannability**: align numeric/currency/time columns with `tabular-nums`, pin sticky table headers (`scroll-margin-top` set), and provide keyboard-accessible full-value reveal for truncated cells.
|
|
256
|
+
|
|
257
|
+
### Mode B: Landing & Showcase Composition Directives
|
|
245
258
|
|
|
246
259
|
### 4.1 Anti-Center Bias
|
|
247
260
|
Centered Hero / H1 sections are avoided when `DESIGN_VARIANCE > 4`. Use split screen (50/50, 60/40), left-aligned copy with right-aligned visual asset, asymmetric whitespace, or scroll-pinned compositions. Centered heroes are permitted only for manifesto/editorial launch pages.
|
|
@@ -605,12 +618,15 @@ export function GoodCard({ title, description }: { title: string; description: s
|
|
|
605
618
|
2. **Perceptual Contrast Uniformity**: OKLCH ensures mathematically consistent perceived contrast across light and dark palettes, guaranteeing WCAG AA compliance.
|
|
606
619
|
3. **Clean Codebases**: Eliminates repetitive `dark:*` class strings, reducing CSS bundle size and developer cognitive load.
|
|
607
620
|
|
|
608
|
-
### 6.2 Typography & Color Discipline Rules
|
|
609
|
-
- **
|
|
621
|
+
### 6.2 Typography, Contrast Dual-Gate & Color Discipline Rules
|
|
622
|
+
- **Domain-Calibrated Typography Voice**: avoid lazy unprompted defaults (`Inter`, `Roboto`, `Space Grotesk`, `Fraunces`, `Instrument_Serif`), AND avoid defaulting every SaaS/app to `Geist`/`Satoshi` when the domain calls for warmth, authority, or editorial character. Select display + body + monospace fonts from the Domain Archetype Matrix (§2.2).
|
|
610
623
|
- **Word Emphasis**: Word emphasis in display type must use bold or italic of the **same font family**; never inject a foreign serif word into a sans headline.
|
|
611
|
-
- **
|
|
612
|
-
- **
|
|
613
|
-
- **
|
|
624
|
+
- **Contrast Dual-Gate (Unified)**:
|
|
625
|
+
- **WCAG 2.2 AA (Legal & Accessibility Floor)**: $CR \ge 4.5:1$ normal text, $\ge 3.0:1$ large text, UI controls, and focus indicators.
|
|
626
|
+
- **APCA (Perceptual Design-Token Target)**: $L_c \ge 75$ body text, $L_c \ge 60$ headlines/controls, verified independently in both light and dark modes.
|
|
627
|
+
- **Color Discipline & Lila Ban**: Maximum 1 dominant accent color with saturation $< 80\%$ (unless domain semantics require status colors). Ban generic AI-purple/blue glow gradients on dark buttons and backgrounds.
|
|
628
|
+
- **Palette Rotation**: Ban the default reach for warm-beige (`#f5f1ea`), brass/clay, and espresso text, as well as repeating the same dark-slate + emerald palette across unrelated domains.
|
|
629
|
+
- **Shape Consistency Lock**: Enforce a single corner-radius scale across the page (all-sharp, all-soft 12-16px, or documented pill buttons + soft cards) and concentric corner math ($R_{\text{outer}} = R_{\text{inner}} + P + B$).
|
|
614
630
|
|
|
615
631
|
---
|
|
616
632
|
|
|
@@ -688,7 +704,7 @@ export function BadPalette({ isOpen }: { isOpen: boolean }) {
|
|
|
688
704
|
initial={{ opacity: 0, scale: 0.9 }}
|
|
689
705
|
animate={{ opacity: 1, scale: 1 }}
|
|
690
706
|
exit={{ opacity: 0, scale: 0.9 }}
|
|
691
|
-
transition={{ duration: 0.35 }}
|
|
707
|
+
transition={{ duration: 0.35 }}
|
|
692
708
|
className="fixed top-24 left-1/2 -translate-x-1/2 w-[500px] bg-card p-4"
|
|
693
709
|
>
|
|
694
710
|
<input placeholder="Search..." autoFocus />
|
|
@@ -861,7 +877,7 @@ AI-generated interfaces frequently suffer from recognizable "vibe-slop" visual a
|
|
|
861
877
|
NovaPulse
|
|
862
878
|
</span>
|
|
863
879
|
```
|
|
864
|
-
2. **
|
|
880
|
+
2. **Unified Functional Iconography**: Icons must be drawn strictly from one consistent icon library per codebase (`@phosphor-icons/react`, `hugeicons-react`, `@radix-ui/react-icons`, or `lucide-react` when aligning with an existing shadcn/ui or Base UI repo) and represent **functional UI actions** (`<Terminal />`, `<Database />`, `<ChevronRight />`), NEVER masquerading as corporate brand marks or mixed across libraries in the same component tree. Standardize stroke width globally.
|
|
865
881
|
3. **Verified Social Proof Marks**: When real brand integration is required, use verified official monochrome marks via Simple Icons (`https://cdn.simpleicons.org/{slug}`) with the Logo-Only rule.
|
|
866
882
|
4. **Factual Structural Placeholders**: If customer logos or testimonials are requested but real assets are not provided, render honest structural placeholders (`[Client Logo Slot: Monochrome SVG]`).
|
|
867
883
|
5. **Verifiable Technical Highlights**: Replace fake testimonials with factual architecture benchmarks (latency measurements, uptime SLA, concurrent connection benchmarks).
|
|
@@ -874,12 +890,10 @@ AI-generated interfaces frequently suffer from recognizable "vibe-slop" visual a
|
|
|
874
890
|
export function BadAssets() {
|
|
875
891
|
return (
|
|
876
892
|
<div>
|
|
877
|
-
{/* Fake SVG swirl */}
|
|
878
893
|
<svg className="h-8 w-8 text-indigo-500" viewBox="0 0 100 100">
|
|
879
894
|
<circle cx="50" cy="50" r="40" stroke="url(#g)" strokeWidth="8" fill="none" />
|
|
880
895
|
<defs><linearGradient id="g"><stop stopColor="#6366f1"/><stop offset="1" stopColor="#a855f7"/></linearGradient></defs>
|
|
881
896
|
</svg>
|
|
882
|
-
{/* Fake testimonial */}
|
|
883
897
|
<blockquote>
|
|
884
898
|
"NovaPulse doubled our engineering velocity by 340% in 14 days!"
|
|
885
899
|
<footer>Sarah Miller, VP of Cloud at HyperScale</footer>
|
|
@@ -895,7 +909,6 @@ export function BadAssets() {
|
|
|
895
909
|
export function GoodAssets() {
|
|
896
910
|
return (
|
|
897
911
|
<div className="space-y-8">
|
|
898
|
-
{/* Authentic wordmark */}
|
|
899
912
|
<div className="flex items-center gap-2.5">
|
|
900
913
|
<div className="flex h-7 w-7 items-center justify-center rounded-md bg-primary text-primary-foreground font-mono text-xs font-semibold">
|
|
901
914
|
NP
|
|
@@ -905,7 +918,6 @@ export function GoodAssets() {
|
|
|
905
918
|
</span>
|
|
906
919
|
</div>
|
|
907
920
|
|
|
908
|
-
{/* Verifiable Technical Benchmark */}
|
|
909
921
|
<div className="rounded-xl border border-border bg-card p-6">
|
|
910
922
|
<div className="flex items-center justify-between pb-4 border-b border-border">
|
|
911
923
|
<h4 className="text-xs font-mono font-semibold uppercase text-muted-foreground">
|
|
@@ -951,6 +963,15 @@ Audit all visible UI strings before handoff. Reject:
|
|
|
951
963
|
- Do not mix "Get in touch", "Contact us", and "Let's talk" on one page.
|
|
952
964
|
- Primary CTA labels must never wrap to multiple lines on desktop (maximum 3 words, ideally 1–2 words).
|
|
953
965
|
|
|
966
|
+
### 10.3 Web Interface Micro-Craft Rules (Vercel Web Design Guidelines)
|
|
967
|
+
- **Unicode Ellipsis & Trigger Punctuation**: always use the true Unicode ellipsis (`…`), never three ASCII dots (`...`). Append `…` to async progress states (`Loading…`, `Saving…`) and menu/button labels that open a secondary dialog or flow (`Rename…`, `Export…`).
|
|
968
|
+
- **Tabular Numerals**: enforce `font-variant-numeric: tabular-nums` on all numeric tables, prices, KPIs, counters, and live telemetry so columns never jitter horizontally.
|
|
969
|
+
- **Dark Mode Native Integration**: declare `color-scheme: dark` on dark-theme root containers so native scrollbars, date pickers, and form controls match the theme without white flashes.
|
|
970
|
+
- **Tactile `:active` Press Feedback**: unify interactive press scaling at `scale-[0.96]` (`150ms ease-out`), excluding disabled controls, and guard hover styles inside `@media (hover: hover)`.
|
|
971
|
+
- **Scroll & Modal Containment**: set `overscroll-behavior: contain` inside scrollable modals/drawers to prevent background scroll chaining; set `scroll-margin-top` on anchored headings under sticky headers; always restore focus to the triggering element when closing dialogs/popovers.
|
|
972
|
+
- **Hydration-Safe & Frictionless Inputs**: never block paste in email/password/OTP fields; provide accurate `autocomplete` and `inputMode` attributes; keep mobile input `font-size >= 16px` (`text-base sm:text-sm`) to prevent iOS Safari auto-zoom.
|
|
973
|
+
- **Flex Truncation Safety**: set `min-w-0` on flex parents containing truncated (`truncate` / `text-ellipsis`) children, and pair truncated text with an accessible full-value reveal.
|
|
974
|
+
|
|
954
975
|
---
|
|
955
976
|
|
|
956
977
|
## 11. Design System Selection Map & Living Infrastructure
|
|
@@ -973,10 +994,11 @@ When the design read points to a known system, reach for the official package
|
|
|
973
994
|
- **One system per project**: Do not mix Fluent with Carbon in the same tree.
|
|
974
995
|
- When the brief is an aesthetic (glassmorphism, bento, brutalism, dark tech), build with native CSS + Tailwind + maintained primitives, clearly documenting approximations.
|
|
975
996
|
|
|
976
|
-
### 11.2 Living Infrastructure & Dual-Audience
|
|
977
|
-
- **
|
|
978
|
-
- **
|
|
979
|
-
- **
|
|
997
|
+
### 11.2 Living Infrastructure, `DESIGN.md` Master + Page Overrides & Dual-Audience Docs
|
|
998
|
+
- **Two-Tier DTCG 2025.10 Token Architecture**: `Tier 1 (Primitive) -> Tier 2 (Semantic)`, with optional `Tier 3 (Component)` strictly capped at `<= 3` documented exceptions per component. Components reference semantic tokens exclusively in DTCG `$value`/`$type` format.
|
|
999
|
+
- **Master + Page Override Pattern**: maintain `DESIGN.md` (`design-tokens-spec.json`) as the single **MASTER** system specification; document route-specific density or surface overrides in explicit **Page Overrides** without forking base palettes.
|
|
1000
|
+
- **Automated Pipeline**: Figma Variables / `DESIGN.md` -> PR -> Style Dictionary v4 DTCG mode / Terrazzo.
|
|
1001
|
+
- **Dual-Audience Token Documentation**: When design systems serve AI agents, token definitions and specs must be authored in strict Markdown hierarchy (`H1->H2->H3`) for LLM parse efficiency (`llms.txt` as scope map only).
|
|
980
1002
|
|
|
981
1003
|
---
|
|
982
1004
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: web-quality-audit
|
|
3
3
|
description: Use when conducting Core Web Vitals audits, profiling Long Animation Frames and interaction responsiveness, auditing DOM depth and bundle bloat, and enforcing Lighthouse CI quality gates.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -20,17 +20,18 @@ Build high-framerate WebGL2 and WebGPU interactive 3D scenes with compressed ass
|
|
|
20
20
|
|
|
21
21
|
## Core Rules
|
|
22
22
|
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
25
|
-
- **
|
|
26
|
-
- **
|
|
23
|
+
- **Archetype & Backend Pairing**: Match renderer and post-processing to the scene archetype — `WebGPURenderer` + TSL (`MeshStandardNodeMaterial` / `THREE.PostProcessing`) for WebGPU-first pipelines, or `WebGLRenderer` + `pmndrs/postprocessing` `EffectComposer` for WebGL2 compatibility, handling `webglcontextlost`/`webglcontextrestored` and `device.lost` deterministically. Use `frameloop="demand"` + `invalidate()` for idle product configurators and `useThree((s) => s.renderer)` in R3F v9.
|
|
24
|
+
- **Anti-AI-3D-Slop Visual & Loop Craft**: Never ship flat `ambientLight` + single white `directionalLight` on `#000000` voids or fisheye `fov 75` `[0,0,5]` cameras. Calibrate PMREM HDRI + 3-point lighting, `AgX`/`ACESFilmic` tone mapping, bounding-sphere camera framing (`fov 35–45`), tight `near`/`far` frustum, grounded contact shadows, and **zero per-frame heap allocations** (`new THREE.Vector3()`, `.clone()`, `setState()`) inside `useFrame`/RAF loops.
|
|
25
|
+
- **Color-Space & Compressed Streaming**: Apply `THREE.SRGBColorSpace` strictly to albedo/emissive maps and `THREE.NoColorSpace` (Linear) to normal, roughness, metalness, AO, and packed ORM maps (`flipY = false` for glTF). Enforce Draco/Meshopt geometry compression + KTX2/Basis Universal GPU textures with local bundled WASM decoders.
|
|
26
|
+
- **Explicit Full VRAM Disposal**: JavaScript GC and `material.dispose()` do NOT free attached textures. Traverse every node on unmount to dispose every `BufferGeometry`, `Material`, **all texture map properties** (`map`, `normalMap`, `roughnessMap`, `metalnessMap`, `aoMap`, `emissiveMap`), `RenderTarget`s, and `PMREMGenerator`s.
|
|
27
|
+
- **Contract Adherence**: Emit `contracts/schemas/implementation-result.json` upon completing WebGL/WebGPU/Three.js rendering slices.
|
|
27
28
|
|
|
28
29
|
## Suggested Process
|
|
29
30
|
|
|
30
|
-
### 1. Renderer, Color Space & Pixel Ratio Setup
|
|
31
|
-
Configure the renderer for consistent cross-device fidelity
|
|
32
|
-
- Set `renderer.
|
|
33
|
-
-
|
|
31
|
+
### 1. Renderer, Color Space, Camera & Pixel Ratio Setup
|
|
32
|
+
Configure the renderer, camera frustum, and tone mapping for consistent cross-device fidelity:
|
|
33
|
+
- Set `renderer.toneMapping = THREE.AgXToneMapping` (or `ACESFilmicToneMapping`), `outputColorSpace = THREE.SRGBColorSpace`, and `NoColorSpace` on data/normal/ORM textures.
|
|
34
|
+
- Frame product views with `fov 35–45`, bounding-sphere fit, tight `near`/`far` bounds, and `Math.min(window.devicePixelRatio, 2.0)`.
|
|
34
35
|
|
|
35
36
|
### 2. Asynchronous GLTF Streaming & Instancing
|
|
36
37
|
Load 3D scenes via `GLTFLoader` configured with `DRACOLoader`, `MeshoptDecoder`, and `KTX2Loader`:
|
|
@@ -40,8 +41,9 @@ Load 3D scenes via `GLTFLoader` configured with `DRACOLoader`, `MeshoptDecoder`,
|
|
|
40
41
|
Configure `MeshStandardMaterial` / `MeshPhysicalMaterial` using pre-filtered PMREM environment maps (`PMREMGenerator`):
|
|
41
42
|
- Pack metallic, roughness, and ambient occlusion into a single ORM texture (`roughnessMap` = G, `metalnessMap` = B, `aoMap` = R) to halve texture sampler lookups.
|
|
42
43
|
|
|
43
|
-
### 4.
|
|
44
|
-
|
|
44
|
+
### 4. Post-Processing Consolidation & Loop Hygiene
|
|
45
|
+
- Merge WebGL2 bloom/vignette/grading into a single `pmndrs/postprocessing` `EffectPass`, or use Three.js node `PostProcessing` (TSL) on `WebGPURenderer` — never chain unmerged full-screen blits.
|
|
46
|
+
- Hoist scratch vectors/matrices outside `useFrame`/RAF ticks (`frameloop="demand"` when idle) and respect `prefers-reduced-motion`.
|
|
45
47
|
|
|
46
48
|
## Output Contracts
|
|
47
49
|
|
|
@@ -40,17 +40,33 @@ Modern browser 3D applications implement WebGPU as primary hardware abstraction
|
|
|
40
40
|
|
|
41
41
|
## 4. Deterministic GPU Resource Lifecycle
|
|
42
42
|
|
|
43
|
-
JavaScript garbage collection
|
|
43
|
+
JavaScript garbage collection and `material.dispose()` do not automatically free attached `Texture` instances. The unmount protocol must dispose geometries, materials, **and every texture map property**:
|
|
44
44
|
```typescript
|
|
45
|
+
const TEXTURE_MAPS = [
|
|
46
|
+
'map', 'normalMap', 'roughnessMap', 'metalnessMap',
|
|
47
|
+
'aoMap', 'emissiveMap', 'alphaMap', 'bumpMap', 'displacementMap', 'envMap',
|
|
48
|
+
] as const;
|
|
49
|
+
|
|
50
|
+
function disposeMaterial(mat: THREE.Material) {
|
|
51
|
+
const record = mat as unknown as Record<string, unknown>;
|
|
52
|
+
for (const key of TEXTURE_MAPS) {
|
|
53
|
+
const tex = record[key];
|
|
54
|
+
if (tex && typeof (tex as THREE.Texture).dispose === 'function') {
|
|
55
|
+
(tex as THREE.Texture).dispose();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
mat.dispose();
|
|
59
|
+
}
|
|
60
|
+
|
|
45
61
|
function disposeHierarchy(node: THREE.Object3D) {
|
|
46
62
|
if (node instanceof THREE.Mesh) {
|
|
47
|
-
node.geometry
|
|
63
|
+
node.geometry?.dispose();
|
|
48
64
|
if (Array.isArray(node.material)) {
|
|
49
|
-
node.material.forEach(
|
|
50
|
-
} else {
|
|
65
|
+
node.material.forEach(disposeMaterial);
|
|
66
|
+
} else if (node.material) {
|
|
51
67
|
disposeMaterial(node.material);
|
|
52
68
|
}
|
|
53
69
|
}
|
|
54
70
|
}
|
|
55
71
|
```
|
|
56
|
-
All texture maps, render targets, and compute pipelines must execute `.dispose()`.
|
|
72
|
+
All texture maps, render targets, `PMREMGenerator`s, and compute pipelines must execute `.dispose()`.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: audit-ai-compliance
|
|
3
3
|
description: Use when auditing AI systems, agentic workflows, or automated decision engines for compliance with Vietnam Law on Artificial Intelligence No. 134/2025/QH15 — including risk-tier classification, conformity assessment, registration, incident reporting, and transparency obligations.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools:
|
|
5
6
|
- read_file
|
|
6
7
|
- write_file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: draft-legal-opinion
|
|
3
3
|
description: Use when drafting a structured formal legal opinion on a Vietnamese legal matter — covering question framing, statutory authority research, legal analysis, executive conclusion, reliance conditions, action plan, and HITL approval gate before external issuance.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools:
|
|
5
6
|
- read_file
|
|
6
7
|
- write_file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: manage-vietnam-legal
|
|
3
3
|
description: Use when assessing Vietnamese statutory compliance, vetting commercial contracts, auditing Personal Data Protection Law (PDPL) No. 91/2025/QH15 & Decree 356/2025/ND-CP compliance, screening AI Law No. 134/2025/QH15 risk tiers, or drafting formal legal opinions.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools:
|
|
5
6
|
- read_file
|
|
6
7
|
- write_file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: analyze-business-requirements
|
|
3
3
|
description: Analyze and write business requirements by making actors, business rules, state transitions, exceptions, preserved behavior, and downstream process impact explicit. Use when a feature, policy change, or bug fix needs implementation-ready requirements and testable acceptance criteria.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: analyze-data
|
|
3
3
|
description: Explore analytical datasets using DuckDB/Polars, query canonical Semantic Metric Catalogs (dbt MetricFlow, Cube.js, Apache Ossie) to eliminate Text-to-SQL hallucinations, detect statistical distribution drift, track agent query costs as FinOps line item, and deliver quantitatively verified insights with explicit fact/interpretation separation. Use when answering business questions from data without owning production pipeline infrastructure.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: meeting-review
|
|
3
3
|
description: Run a structured multi-perspective review of a topic, proposal, code area, bug, feature, or risky change by producing a decision-ready artifact with trade-offs, preserved behavior, impact radius, and next actions. Use when a user wants cross-functional review signal before deciding, building, shipping, or changing course.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: deploy-mmo-infrastructure
|
|
3
3
|
description: Deploy and manage proxy pools (Residential/4G) with dynamic health probes and Anti-Detect Browser orchestration enforcing automated warmup state machines. Use when deploying a new MMO operation, expanding to new ad accounts, or migrating proxy infrastructure.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: deploy-proxyware-fleet
|
|
3
3
|
description: Containerize and orchestrate modern DePIN bandwidth monetization light nodes (Grass, Dawn, Nodepay) with Solana/EVM wallet authentication, WebSocket telemetry, and uptime scoring. Use when scaling decentralized bandwidth monetization fleets, orchestrating residential DePIN nodes, or configuring proof-of-bandwidth telemetry.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: deploy-mobile-app
|
|
3
3
|
description: Configure and execute mobile deployment pipelines using EAS Build, native code signing credentials, OTA updates via EAS Update, App Store and Google Play compliance, AI content disclosures, and crash symbolication. Use when configuring EAS build profiles, publishing OTA updates, preparing store releases, or validating Apple 4.3(b) and Google Play AI compliance.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: develop-mobile-app
|
|
3
3
|
description: Architect high-performance mobile applications using React Native New Architecture, Hermes bytecode engine, TurboModules/JSI, Bridgeless mode, FlashList recycling, Reanimated worklets, and offline-first state persistence with MMKV and WatermelonDB. Use when building or optimizing React Native apps, virtualizing heavy lists, creating 60/120 FPS UI animations, or designing offline-first mobile sync architectures.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agents-sdk
|
|
3
3
|
description: Builds, deploys, and maintains stateful AI agents on Cloudflare Workers and Durable Objects using the Cloudflare Agents SDK. Use when creating stateful agents, implementing RPC methods with @callable(), configuring SQLite-backed agent state, orchestrating agent workflows, running durable fibers, managing chat agents, or handling agent webhooks and schedules.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cloudflare-email-service
|
|
3
3
|
description: Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -137,8 +138,7 @@ Read the reference that matches your situation. You don't need all of them.
|
|
|
137
138
|
|
|
138
139
|
When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
139
140
|
|
|
140
|
-
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and
|
|
141
|
-
alidation_run. Set produced_by_role to the emitting developer role.
|
|
141
|
+
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and validation_run. Set produced_by_role to the emitting developer role.
|
|
142
142
|
|
|
143
143
|
Skip emission for solo refactor work where no downstream handoff is expected.
|
|
144
144
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: configure-ci-cd-pipeline
|
|
3
|
+
description: Design and harden CI/CD pipelines with SHA-pinned GitHub Actions, least-privilege OIDC permissions, build-matrix caching, SBOM artifact attestation, and fail-closed security gates. Use when creating or auditing GitHub Actions workflows, test matrices, release pipelines, or supply-chain CI controls.
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Configure CI CD Pipeline
|
|
9
|
+
|
|
10
|
+
Use this skill when building, optimizing, or hardening automated CI/CD workflows (GitHub Actions or equivalent runners) for fast feedback and OWASP ASI04 supply-chain integrity.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- authoring or refactoring GitHub Actions workflows, test matrices, and cache keys
|
|
15
|
+
- hardening workflow security (`permissions`, SHA pinning, OIDC token federation, SBOM attestation)
|
|
16
|
+
- eliminating flaky CI retries, slow uncached dependency installs, or `pull_request_target` injection traps
|
|
17
|
+
- enforcing merge-blocking lint, typecheck, secret scanning, and test coverage gates
|
|
18
|
+
|
|
19
|
+
## Core Rules
|
|
20
|
+
|
|
21
|
+
- **Immutable Commit-SHA Action Pinning (OWASP ASI04)**: Pin EVERY third-party `uses:` step in CI workflows to a full 40-character commit SHA (`uses: actions/checkout@<40-hex-sha> # v4.x`), never mutable tags (`@v4`, `@main`).
|
|
22
|
+
- **Least-Privilege `permissions:` Block**: Declare top-level `permissions: { contents: read }` and elevate job-level scopes (`id-token: write`, `attestations: write`) only on jobs that require OIDC or artifact provenance.
|
|
23
|
+
- **Prevent `pull_request_target` Pwn-Request RCE**: Never check out untrusted PR head code inside a `pull_request_target` or privileged `workflow_run` job with write tokens or repository secrets.
|
|
24
|
+
- **OIDC Over Long-Lived Static Secrets**: Authenticate cloud/registry deploys via short-lived OIDC (`aws-actions/configure-aws-credentials`, npm Trusted Publishing) instead of standing API keys.
|
|
25
|
+
- **Fail-Closed Deterministic Gates**: Run secret scanning (`gitleaks`), lockfile-strict installs (`npm ci` / `uv sync --frozen`), unit/integration tests, and `audit_workflow_pinning.py` cleanly before promotion; cancel stale PR runs with `concurrency`.
|
|
26
|
+
|
|
27
|
+
## Suggested Process
|
|
28
|
+
|
|
29
|
+
### 1. Audit Trigger & Trust Boundary
|
|
30
|
+
Map triggers (`pull_request`, `push`, `workflow_dispatch`), separate untrusted fork PR checks from privileged deploy/release jobs, and declare top-level `permissions: read-all` or `contents: read`.
|
|
31
|
+
|
|
32
|
+
### 2. Design Fast Matrix & Deterministic Caching
|
|
33
|
+
Key caches strictly on OS + lockfile hash (`package-lock.json`, `uv.lock`, `go.sum`), enable fail-fast cancellation (`concurrency.cancel-in-progress`), and verify zero writable shared caches on fork PRs.
|
|
34
|
+
|
|
35
|
+
### 3. Pin Actions, Wire OIDC & Emit Provenance
|
|
36
|
+
Resolve full 40-char commit SHAs for every action, add dependency/secret scanning + SBOM generation (`CycloneDX`/`SPDX`), and attach SLSA build provenance attestation on release artifacts.
|
|
37
|
+
|
|
38
|
+
### 4. Lint & Dry-Run Verify
|
|
39
|
+
Run `audit_workflow_pinning.py` against all `.github/workflows/*.yml` files cleanly and verify CI pass on a clean PR branch.
|
|
40
|
+
|
|
41
|
+
## Checklist
|
|
42
|
+
|
|
43
|
+
- [ ] every third-party `uses:` reference pinned to a 40-char immutable commit SHA
|
|
44
|
+
- [ ] explicit minimal `permissions:` declared at workflow/job scope (zero default write-all)
|
|
45
|
+
- [ ] zero unsafe `pull_request_target` + PR head checkout combinations
|
|
46
|
+
- [ ] lockfile-enforced dependency installation and OS + lockfile hash caching active
|
|
47
|
+
- [ ] secret scanning, SAST/lint, and `audit_workflow_pinning.py` enforced fail-closed
|
|
48
|
+
|
|
49
|
+
## Red Flags
|
|
50
|
+
|
|
51
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
52
|
+
| :--- | :--- | :--- |
|
|
53
|
+
| "Pinning `@v4` is official and easier to read than a 40-char SHA." | Compromised upstream tags silently inject malware into every CI run and secret. | Pin full 40-char commit SHA with a human version comment (`# v4.x`). |
|
|
54
|
+
| "Default `GITHUB_TOKEN` permissions save YAML lines." | Grants write access across code, packages, and checks on compromised steps. | Declare explicit `permissions: contents: read` at top level. |
|
|
55
|
+
| "Use `pull_request_target` so fork PRs can run deploy previews with secrets." | Untrusted PR code executes inside privileged runner and exfiltrates secrets. | Keep fork builds unprivileged under `pull_request` with zero write tokens. |
|
|
56
|
+
| "Ignore failing cache or secret-scan steps with `continue-on-error: true`." | Leaks credentials or broken builds directly to `main`. | Make security, pinning, and test gates fail-closed (`continue-on-error: false`). |
|
|
57
|
+
|
|
58
|
+
## Output Contracts
|
|
59
|
+
|
|
60
|
+
When pipeline changes cross DevOps/Release or Security boundaries, emit:
|
|
61
|
+
|
|
62
|
+
- **`contracts/schemas/deployment-plan.json`** capturing workflow paths, OIDC roles, SBOM/attestation steps, and gate verification results.
|
|
63
|
+
|
|
64
|
+
## Failure Modes
|
|
65
|
+
|
|
66
|
+
- **Tag-hijack supply chain compromise**: mutable `@v3` tag force-pushed to malicious commit steals secrets. Mitigation: enforce 40-char SHA pinning (`audit_workflow_pinning.py`).
|
|
67
|
+
- **Script injection via `${{ github.event.pull_request.title }}`**: untrusted PR title/branch name interpolated into `run:` shell executes arbitrary commands. Mitigation: pass event strings through `env:` variables and quote properly.
|
|
68
|
+
- **Cross-PR cache poisoning**: fork PR writes malicious artifacts into shared default cache key. Mitigation: scope caches by branch and exclude untrusted triggers from write-privileged jobs.
|
|
69
|
+
|
|
70
|
+
## Security Guardrails (OWASP ASI)
|
|
71
|
+
|
|
72
|
+
- **ASI03 Identity & Privilege Abuse**: use ephemeral OIDC federation instead of standing deploy secrets.
|
|
73
|
+
- **ASI04 Supply Chain**: enforce SHA-pinned actions and SLSA provenance attestations on release binaries/packages.
|
|
74
|
+
- **ASI05 RCE Guard**: forbid direct `${{ github.event.* }}` expression interpolation inside `run:` shell blocks.
|
|
75
|
+
|
|
76
|
+
## Related Skills
|
|
77
|
+
|
|
78
|
+
- **setup-deployment**: Coordinate application rollout steps triggered after CI gates pass
|
|
79
|
+
- **supply-chain-security**: Enforce SBOM, Cosign signing, and CycloneDX compliance
|
|
80
|
+
- **manage-secrets**: Rotate OIDC trust policies and scoped environment secrets
|
|
81
|
+
- **write-tests**: Ensure test suites run hermetically inside CI matrix runners
|
|
82
|
+
- Companion reference: [`references/github-actions-sha-pinning-and-slsa-specs.md`](references/github-actions-sha-pinning-and-slsa-specs.md)
|
|
83
|
+
- Companion example: [`examples/hardened-ci-matrix-workflow.yml`](examples/hardened-ci-matrix-workflow.yml)
|
package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: hardened-ci-matrix
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
branches: [main]
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
verify:
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
os: [ubuntu-latest, windows-latest]
|
|
22
|
+
python-version: ["3.13"]
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout repository (SHA-pinned)
|
|
25
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
26
|
+
with:
|
|
27
|
+
persist-credentials: false
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
- name: Audit workflow pinning
|
|
33
|
+
run: python core/scripts/validate-all.py --parallel
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GitHub Actions SHA Pinning, OIDC & SLSA Provenance Specifications
|
|
2
|
+
|
|
3
|
+
Normative reference for `configure-ci-cd-pipeline`.
|
|
4
|
+
|
|
5
|
+
## 1. Supply-Chain Pinning Rules (OWASP ASI04)
|
|
6
|
+
|
|
7
|
+
- Pin every remote action with its full 40-character hexadecimal git commit SHA:
|
|
8
|
+
`uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1`
|
|
9
|
+
- Ban mutable major/minor tags (`@v4`, `@v4.2`) and branch names (`@main`, `@master`).
|
|
10
|
+
- Pin container runner images by `@sha256:...` digest where supported.
|
|
11
|
+
|
|
12
|
+
## 2. Script Injection & `pull_request_target` Ban
|
|
13
|
+
|
|
14
|
+
- Never interpolate untrusted GitHub context directly inside `run:`:
|
|
15
|
+
- Bad: `echo "${{ github.event.issue.title }}"`
|
|
16
|
+
- Good: bind to `env: ISSUE_TITLE: ${{ github.event.issue.title }}` and quote `"$ISSUE_TITLE"`.
|
|
17
|
+
- Never execute `actions/checkout` with `ref: ${{ github.event.pull_request.head.sha }}` under `pull_request_target`.
|
|
18
|
+
|
|
19
|
+
## 3. Permissions & OIDC Baseline
|
|
20
|
+
|
|
21
|
+
- Set workflow root `permissions: { contents: read }`.
|
|
22
|
+
- Grant `id-token: write` solely to dedicated publish/deploy jobs gated by GitHub Environment protection rules.
|