@vesviet/agent-skills 0.0.0-stage → 5.6.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 +973 -0
- package/LICENSE +201 -0
- package/README.md +137 -2
- package/VERSION +1 -0
- package/adapters/antigravity/ANTIGRAVITY.md +136 -0
- package/adapters/antigravity/a2a-config.template.yaml +82 -0
- package/adapters/antigravity/capability-role-map.generated.yaml +41 -0
- package/adapters/antigravity/role-skill-index.json +4812 -0
- package/adapters/antigravity/rules.template.md +39 -0
- package/adapters/claude/CLAUDE_ADAPTER.md +271 -0
- package/adapters/claude/commands/check-policy.md +15 -0
- package/adapters/claude/commands/coordinate.md +17 -0
- package/adapters/claude/commands/review.md +17 -0
- package/adapters/claude/settings.template.json +36 -0
- package/adapters/cursor/README.md +186 -0
- package/adapters/cursor/hooks.template.json +71 -0
- package/bin/agent-skills.mjs +241 -0
- package/core/README.md +53 -0
- package/core/contracts/README.md +158 -0
- package/core/contracts/schemas/INDEX.md +227 -0
- package/core/contracts/schemas/a2a-artifact.json +171 -0
- package/core/contracts/schemas/a2a-jsonrpc-envelope.json +74 -0
- package/core/contracts/schemas/a2a-message.json +107 -0
- package/core/contracts/schemas/a2a-push-notification-config.json +57 -0
- package/core/contracts/schemas/a2a-task-cancel.json +36 -0
- package/core/contracts/schemas/a2a-task-progress.json +80 -0
- package/core/contracts/schemas/a2a-task-status.json +181 -0
- package/core/contracts/schemas/a2a-task.json +219 -0
- package/core/contracts/schemas/accounting-compliance-review.json +379 -0
- package/core/contracts/schemas/adr-spec.json +225 -0
- package/core/contracts/schemas/agent-card.json +382 -0
- package/core/contracts/schemas/agent-eval-report.json +490 -0
- package/core/contracts/schemas/agent-trace-span.json +146 -0
- package/core/contracts/schemas/ai-risk-register.json +198 -0
- package/core/contracts/schemas/amis-voucher-contract.json +541 -0
- package/core/contracts/schemas/api-contract-spec.json +191 -0
- package/core/contracts/schemas/architecture-options.json +128 -0
- package/core/contracts/schemas/assumptions-ledger.json +130 -0
- package/core/contracts/schemas/aws-infra-spec.json +248 -0
- package/core/contracts/schemas/code-review-finding.json +295 -0
- package/core/contracts/schemas/compact-working-state.json +282 -0
- package/core/contracts/schemas/content-audit-report.json +270 -0
- package/core/contracts/schemas/content-handoff.json +534 -0
- package/core/contracts/schemas/coordination-plan.json +530 -0
- package/core/contracts/schemas/data-analysis-report.json +492 -0
- package/core/contracts/schemas/data-pipeline-spec.json +420 -0
- package/core/contracts/schemas/deployment-plan.json +600 -0
- package/core/contracts/schemas/design-tokens-spec.json +539 -0
- package/core/contracts/schemas/document-manifest.json +155 -0
- package/core/contracts/schemas/documentation-handoff.json +137 -0
- package/core/contracts/schemas/edge-deployment-spec.json +375 -0
- package/core/contracts/schemas/feature-ticket.json +1293 -0
- package/core/contracts/schemas/implementation-result.json +165 -0
- package/core/contracts/schemas/incident-report.json +466 -0
- package/core/contracts/schemas/learning-assessment-report.json +285 -0
- package/core/contracts/schemas/learning-handoff.json +244 -0
- package/core/contracts/schemas/legal-compliance-review.json +287 -0
- package/core/contracts/schemas/legal-opinion-contract.json +248 -0
- package/core/contracts/schemas/memory-audit-report.json +283 -0
- package/core/contracts/schemas/mmo-campaign-spec.json +414 -0
- package/core/contracts/schemas/mmo-roi-report.json +312 -0
- package/core/contracts/schemas/performance-audit.json +239 -0
- package/core/contracts/schemas/period-end-closing-report.json +472 -0
- package/core/contracts/schemas/pull-request-spec.json +338 -0
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -0
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -0
- package/core/contracts/schemas/references/detailed/03-quality-and-review.md +67 -0
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -0
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -0
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -0
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -0
- package/core/contracts/schemas/references/detailed/08-agent-infrastructure.md +31 -0
- package/core/contracts/schemas/research-report.json +823 -0
- package/core/contracts/schemas/schema-migration.json +86 -0
- package/core/contracts/schemas/security-audit.json +131 -0
- package/core/contracts/schemas/seo-audit-report.json +1057 -0
- package/core/contracts/schemas/seo-content-brief.json +852 -0
- package/core/contracts/schemas/seo-metadata.json +292 -0
- package/core/contracts/schemas/seo-weekly-board.json +840 -0
- package/core/contracts/schemas/series-article.json +155 -0
- package/core/contracts/schemas/solution-brief.json +244 -0
- package/core/contracts/schemas/stock-audit-session.json +522 -0
- package/core/contracts/schemas/system-design-spec.json +434 -0
- package/core/contracts/schemas/technical-delivery-plan.json +453 -0
- package/core/contracts/schemas/test-report.json +530 -0
- package/core/contracts/schemas/ui-component-spec.json +314 -0
- package/core/contracts/schemas/ux-flow-spec.json +306 -0
- package/core/contracts/schemas/validation-result.json +109 -0
- package/core/policies/README.md +110 -0
- package/core/policies/action-boundaries.yaml +1492 -0
- package/core/policies/data-classification.yaml +126 -0
- package/core/policies/execution-sandbox.md +362 -0
- package/core/policies/mcp-tool-map.yaml +302 -0
- package/core/roles/3d-graphics-engineer.md +303 -0
- package/core/roles/README.md +314 -0
- package/core/roles/agent-coordinator.md +453 -0
- package/core/roles/agent-discovery-engineer.md +243 -0
- package/core/roles/ai-systems-engineer.md +365 -0
- package/core/roles/aws-engineer.md +339 -0
- package/core/roles/backend-developer.md +466 -0
- package/core/roles/business-analyst.md +402 -0
- package/core/roles/cloudflare-engineer.md +298 -0
- package/core/roles/content-manager.md +336 -0
- package/core/roles/content-writer.md +399 -0
- package/core/roles/data-analyst.md +421 -0
- package/core/roles/data-engineer.md +439 -0
- package/core/roles/devops-engineer.md +614 -0
- package/core/roles/ecommerce-engineer.md +274 -0
- package/core/roles/frontend-developer.md +414 -0
- package/core/roles/game-developer.md +213 -0
- package/core/roles/mmo-engineer.md +228 -0
- package/core/roles/mobile-engineer.md +485 -0
- package/core/roles/product-manager.md +382 -0
- package/core/roles/project-manager.md +279 -0
- package/core/roles/prompt-engineer.md +197 -0
- package/core/roles/qa-engineer.md +574 -0
- package/core/roles/references/3d-graphics-engineer-review-checklist.md +116 -0
- package/core/roles/references/agent-coordinator-review-checklist.md +165 -0
- package/core/roles/references/agent-discovery-engineer-review-checklist.md +125 -0
- package/core/roles/references/ai-systems-engineer-review-checklist.md +151 -0
- package/core/roles/references/aws-engineer-review-checklist.md +169 -0
- package/core/roles/references/backend-developer-review-checklist.md +105 -0
- package/core/roles/references/business-analyst-responsibilities.md +207 -0
- package/core/roles/references/business-analyst-review-checklist.md +228 -0
- package/core/roles/references/cloudflare-engineer-review-checklist.md +152 -0
- package/core/roles/references/content-manager-governance-standards.md +147 -0
- package/core/roles/references/content-manager-review-checklist.md +68 -0
- package/core/roles/references/content-writer-anti-ai-standards.md +199 -0
- package/core/roles/references/content-writer-review-checklist.md +58 -0
- package/core/roles/references/data-analyst-review-checklist.md +76 -0
- package/core/roles/references/data-engineer-review-checklist.md +77 -0
- package/core/roles/references/devops-engineer-review-checklist.md +195 -0
- package/core/roles/references/ecommerce-engineer-review-checklist.md +129 -0
- package/core/roles/references/frontend-developer-responsibilities.md +275 -0
- package/core/roles/references/frontend-developer-review-checklist.md +122 -0
- package/core/roles/references/game-developer-review-checklist.md +115 -0
- package/core/roles/references/mmo-engineer-review-checklist.md +125 -0
- package/core/roles/references/mobile-engineer-review-checklist.md +54 -0
- package/core/roles/references/product-manager-review-checklist.md +113 -0
- package/core/roles/references/project-manager-review-checklist.md +122 -0
- package/core/roles/references/prompt-engineer-review-checklist.md +70 -0
- package/core/roles/references/qa-engineer-review-checklist.md +190 -0
- package/core/roles/references/researcher-review-checklist.md +176 -0
- package/core/roles/references/reviewer-review-checklist.md +67 -0
- package/core/roles/references/sdet-review-checklist.md +66 -0
- package/core/roles/references/security-engineer-review-checklist.md +122 -0
- package/core/roles/references/seo-analyst-geo-standards.md +195 -0
- package/core/roles/references/seo-analyst-review-checklist.md +84 -0
- package/core/roles/references/solution-architect-review-checklist.md +71 -0
- package/core/roles/references/sre-review-checklist.md +35 -0
- package/core/roles/references/system-engineer-review-checklist.md +124 -0
- package/core/roles/references/task-planner-review-checklist.md +114 -0
- package/core/roles/references/teacher-review-checklist.md +47 -0
- package/core/roles/references/technical-architect-review-checklist.md +72 -0
- package/core/roles/references/technical-lead-review-checklist.md +57 -0
- package/core/roles/references/technical-writer-review-checklist.md +120 -0
- package/core/roles/references/ui-ux-designer-anti-slop-standards.md +1000 -0
- package/core/roles/references/ui-ux-designer-responsibilities.md +250 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +114 -0
- package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +53 -0
- package/core/roles/references/vietnam-legal-counsel-review-checklist.md +31 -0
- package/core/roles/researcher.md +427 -0
- package/core/roles/reviewer.md +294 -0
- package/core/roles/role-standard.md +242 -0
- package/core/roles/sdet.md +198 -0
- package/core/roles/security-engineer.md +343 -0
- package/core/roles/seo-analyst.md +425 -0
- package/core/roles/solution-architect.md +523 -0
- package/core/roles/sre.md +260 -0
- package/core/roles/system-engineer.md +465 -0
- package/core/roles/task-planner.md +277 -0
- package/core/roles/teacher.md +298 -0
- package/core/roles/technical-architect.md +536 -0
- package/core/roles/technical-lead.md +367 -0
- package/core/roles/technical-writer.md +359 -0
- package/core/roles/ui-ux-designer.md +397 -0
- package/core/roles/vietnam-accounting-specialist.md +317 -0
- package/core/roles/vietnam-legal-counsel.md +306 -0
- package/core/rules/README.md +101 -0
- package/core/rules/code.md +46 -0
- package/core/rules/knowledge.md +69 -0
- package/core/skills/README.md +440 -0
- package/core/skills/agent/INDEX.json +396 -0
- package/core/skills/agent/agent-a2a-protocol/SKILL.md +189 -0
- package/core/skills/agent/agent-a2a-protocol/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-a2a-protocol/references/a2a-spec.md +60 -0
- package/core/skills/agent/agent-context-management/SKILL.md +187 -0
- package/core/skills/agent/agent-context-management/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-delegation/SKILL.md +168 -0
- package/core/skills/agent/agent-delegation/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-graph-orchestration/SKILL.md +172 -0
- package/core/skills/agent/agent-graph-orchestration/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-handoff/SKILL.md +156 -0
- package/core/skills/agent/agent-handoff/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-memory-compaction/SKILL.md +112 -0
- package/core/skills/agent/agent-memory-compaction/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -0
- package/core/skills/agent/agent-model-routing/SKILL.md +175 -0
- package/core/skills/agent/agent-model-routing/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-observability/SKILL.md +168 -0
- package/core/skills/agent/agent-observability/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-panel-meeting/SKILL.md +153 -0
- package/core/skills/agent/agent-panel-meeting/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-prompt-lifecycle/SKILL.md +191 -0
- package/core/skills/agent/agent-prompt-lifecycle/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-prompt-lifecycle/references/output-format.md +32 -0
- package/core/skills/agent/agent-quality-gate/SKILL.md +174 -0
- package/core/skills/agent/agent-quality-gate/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-semantic-memory/SKILL.md +164 -0
- package/core/skills/agent/agent-semantic-memory/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-tool-orchestration/SKILL.md +193 -0
- package/core/skills/agent/agent-tool-orchestration/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-tool-orchestration/references/2026-patterns.md +67 -0
- package/core/skills/agent/architect-mcp-server/SKILL.md +87 -0
- package/core/skills/agent/architect-mcp-server/agents/openai.yaml +4 -0
- package/core/skills/agent/architect-mcp-server/references/enterprise-mcp-server-architecture.md +217 -0
- package/core/skills/agent/configure-agent-commerce/SKILL.md +172 -0
- package/core/skills/agent/configure-agent-commerce/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-agent-headers/SKILL.md +102 -0
- package/core/skills/agent/configure-agent-headers/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +108 -0
- package/core/skills/agent/configure-agent-skills/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-mcp/SKILL.md +193 -0
- package/core/skills/agent/configure-mcp/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-mcp/references/2026-07-28-migration.md +60 -0
- package/core/skills/agent/configure-oauth-metadata/SKILL.md +139 -0
- package/core/skills/agent/configure-oauth-metadata/agents/openai.yaml +4 -0
- package/core/skills/agent/debug-identity-provider/SKILL.md +109 -0
- package/core/skills/agent/debug-identity-provider/agents/openai.yaml +4 -0
- package/core/skills/agent/decompose-agentic-system/SKILL.md +88 -0
- package/core/skills/agent/decompose-agentic-system/agents/openai.yaml +4 -0
- package/core/skills/agent/decompose-agentic-system/references/recursive-decomposition-and-persistent-planning.md +200 -0
- package/core/skills/agent/manage-agent-identity/SKILL.md +187 -0
- package/core/skills/agent/manage-agent-identity/agents/openai.yaml +4 -0
- package/core/skills/agent/manage-api-catalog/SKILL.md +133 -0
- package/core/skills/agent/manage-api-catalog/agents/openai.yaml +4 -0
- package/core/skills/agent/manage-auth-md/SKILL.md +119 -0
- package/core/skills/agent/manage-auth-md/agents/openai.yaml +4 -0
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +163 -0
- package/core/skills/ai/deploy-vllm-inference/agents/openai.yaml +4 -0
- package/core/skills/ai/deploy-vllm-inference/references/vllm-production-guide.md +466 -0
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +102 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +97 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +112 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +102 -0
- package/core/skills/backend/add-api-endpoint/agents/openai.yaml +4 -0
- package/core/skills/backend/add-api-endpoint/references/api-contracts-and-error-specs.md +127 -0
- package/core/skills/backend/add-event-handler/SKILL.md +130 -0
- package/core/skills/backend/add-event-handler/agents/openai.yaml +4 -0
- package/core/skills/backend/add-service-client/SKILL.md +166 -0
- package/core/skills/backend/add-service-client/agents/openai.yaml +4 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +100 -0
- package/core/skills/backend/build-mcp-server/agents/openai.yaml +4 -0
- package/core/skills/backend/implement-auth/SKILL.md +90 -0
- package/core/skills/backend/implement-auth/agents/openai.yaml +4 -0
- package/core/skills/backend/implement-auth/references/auth-flows-and-session-specs.md +229 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -0
- package/core/skills/backend/implement-structured-outputs/agents/openai.yaml +4 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +89 -0
- package/core/skills/backend/optimize-postgres/agents/openai.yaml +4 -0
- package/core/skills/backend/optimize-postgres/references/pooling-branching-and-tuning.md +218 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +97 -0
- package/core/skills/backend/scaffold-new-service/agents/openai.yaml +4 -0
- package/core/skills/backend/scaffold-new-service/references/service-scaffolding-guide.md +141 -0
- package/core/skills/business/elicit-requirements/SKILL.md +102 -0
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -0
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -0
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -0
- package/core/skills/business/write-use-cases/SKILL.md +106 -0
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -0
- package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +316 -0
- package/core/skills/commerce/INDEX.json +72 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +192 -0
- package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +99 -0
- package/core/skills/commerce/handle-checkout-flow/agents/openai.yaml +4 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +187 -0
- package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +128 -0
- package/core/skills/commerce/integrate-payment-gateway/agents/openai.yaml +4 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +197 -0
- package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +136 -0
- package/core/skills/commerce/manage-order-fulfillment/agents/openai.yaml +4 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +189 -0
- package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +130 -0
- package/core/skills/commerce/manage-product-catalog/agents/openai.yaml +4 -0
- package/core/skills/content/audit-content/SKILL.md +120 -0
- package/core/skills/content/audit-content/agents/openai.yaml +4 -0
- package/core/skills/content/audit-content/references/ai-semantic-flaw-rubric.md +43 -0
- package/core/skills/content/audit-content/references/citation-verification-guide.md +39 -0
- package/core/skills/content/audit-content/references/information-gain-rubric.md +51 -0
- package/core/skills/content/design-content-strategy/SKILL.md +108 -0
- package/core/skills/content/design-content-strategy/agents/openai.yaml +4 -0
- package/core/skills/content/design-content-strategy/references/distribution-loops-and-drift-prevention.md +109 -0
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +149 -0
- package/core/skills/content/design-content-strategy/references/pillar-cluster-and-funnel-playbook.md +159 -0
- package/core/skills/content/optimize-seo/SKILL.md +179 -0
- package/core/skills/content/optimize-seo/agents/openai.yaml +4 -0
- package/core/skills/content/optimize-seo/references/entity-salience-and-schema.md +88 -0
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +42 -0
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +116 -0
- package/core/skills/content/repurpose-content/SKILL.md +150 -0
- package/core/skills/content/repurpose-content/agents/openai.yaml +4 -0
- package/core/skills/content/repurpose-content/references/channel-repurposing-playbook.md +96 -0
- package/core/skills/content/repurpose-content/references/entity-fidelity-guide.md +42 -0
- package/core/skills/content/write-article/SKILL.md +169 -0
- package/core/skills/content/write-article/agents/openai.yaml +4 -0
- package/core/skills/content/write-article/references/ai-drafting-playbook.md +141 -0
- package/core/skills/content/write-article/references/anti-ai-style-guide.md +52 -0
- package/core/skills/content/write-article/references/authentic-source-matrix.md +36 -0
- package/core/skills/content/write-article/references/suggested-process.md +61 -0
- package/core/skills/content/write-copy/SKILL.md +102 -0
- package/core/skills/content/write-copy/agents/openai.yaml +4 -0
- package/core/skills/content/write-copy/references/behavioral-psychology-and-conversion.md +147 -0
- package/core/skills/content/write-copy/references/copywriting-frameworks-playbook.md +250 -0
- package/core/skills/content/write-copy/references/humanizer-voice-and-cadence-guide.md +134 -0
- package/core/skills/document/docx/SKILL.md +64 -0
- package/core/skills/document/pdf/SKILL.md +65 -0
- package/core/skills/document/pptx/SKILL.md +67 -0
- package/core/skills/document/pptx/scripts/add_slide.py +91 -0
- package/core/skills/document/pptx/scripts/clean.py +84 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +112 -0
- package/core/skills/document/xlsx/SKILL.md +65 -0
- package/core/skills/document/xlsx/scripts/recalc.py +388 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +170 -0
- package/core/skills/documentation/configure-llms-txt/agents/openai.yaml +4 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -0
- package/core/skills/documentation/write-documentation/agents/openai.yaml +4 -0
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -0
- package/core/skills/documentation/write-tech-radar/agents/openai.yaml +4 -0
- package/core/skills/education/2026_STANDARDS_SUMMARY.md +290 -0
- package/core/skills/education/INDEX.json +44 -0
- package/core/skills/education/create-exercises/SKILL.md +98 -0
- package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +115 -0
- package/core/skills/education/create-exercises/agents/openai.yaml +4 -0
- package/core/skills/education/create-exercises/references/dok-and-ai-resistant-exercise-design.md +115 -0
- package/core/skills/education/create-exercises/references/irt-calibration-and-scoring-matrices.md +113 -0
- package/core/skills/education/design-learning-plan/SKILL.md +109 -0
- package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +140 -0
- package/core/skills/education/design-learning-plan/agents/openai.yaml +4 -0
- package/core/skills/education/design-learning-plan/references/spaced-scheduling-and-socratic-scaffolding.md +117 -0
- package/core/skills/education/design-learning-plan/references/zpd-pathways-and-smart-objectives.md +108 -0
- package/core/skills/education/grade-and-review/SKILL.md +104 -0
- package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +141 -0
- package/core/skills/education/grade-and-review/agents/openai.yaml +4 -0
- package/core/skills/education/grade-and-review/references/analytic-rubrics-and-grading-hallucination-defense.md +117 -0
- package/core/skills/education/grade-and-review/references/cognitive-error-analysis-and-socratic-feedback.md +124 -0
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -0
- package/core/skills/foundation/accessibility-review/agents/openai.yaml +4 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +198 -0
- package/core/skills/foundation/ai-risk-assessment/agents/openai.yaml +4 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +165 -0
- package/core/skills/foundation/combinatorial-testing/agents/openai.yaml +4 -0
- package/core/skills/foundation/conduct-research/SKILL.md +132 -0
- package/core/skills/foundation/conduct-research/agents/openai.yaml +4 -0
- package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +58 -0
- package/core/skills/foundation/conduct-research/references/output-format.md +75 -0
- package/core/skills/foundation/conduct-research/references/sota-deep-research-architecture.md +733 -0
- package/core/skills/foundation/create-migration/SKILL.md +151 -0
- package/core/skills/foundation/create-migration/agents/openai.yaml +4 -0
- package/core/skills/foundation/create-migration/references/patterns-and-gotchas.md +58 -0
- package/core/skills/foundation/create-migration/references/suggested-process.md +111 -0
- package/core/skills/foundation/design-review/SKILL.md +138 -0
- package/core/skills/foundation/design-review/agents/openai.yaml +4 -0
- package/core/skills/foundation/design-ux-flow/SKILL.md +153 -0
- package/core/skills/foundation/design-ux-flow/agents/openai.yaml +4 -0
- package/core/skills/foundation/discernment-nudge/SKILL.md +64 -0
- package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +139 -0
- package/core/skills/foundation/incident-report/SKILL.md +119 -0
- package/core/skills/foundation/incident-report/agents/openai.yaml +4 -0
- package/core/skills/foundation/performance-profiling/SKILL.md +127 -0
- package/core/skills/foundation/performance-profiling/agents/openai.yaml +4 -0
- package/core/skills/foundation/performance-profiling/references/patterns-and-safety.md +57 -0
- package/core/skills/foundation/performance-profiling/references/suggested-process.md +113 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +118 -0
- package/core/skills/foundation/plan-technical-delivery/agents/openai.yaml +4 -0
- package/core/skills/foundation/plan-technical-delivery/references/spec-driven-planning.md +104 -0
- package/core/skills/foundation/playwright-evidence-qa/SKILL.md +139 -0
- package/core/skills/foundation/release-notes/SKILL.md +192 -0
- package/core/skills/foundation/release-notes/agents/openai.yaml +4 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +165 -0
- package/core/skills/foundation/systematic-debugging/agents/openai.yaml +4 -0
- package/core/skills/foundation/webapp-server-runner/SKILL.md +67 -0
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +182 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -0
- package/core/skills/foundation/write-product-brief/agents/openai.yaml +4 -0
- package/core/skills/foundation/write-tests/SKILL.md +173 -0
- package/core/skills/foundation/write-tests/agents/openai.yaml +4 -0
- package/core/skills/foundation/write-tests/references/advanced-testing-methodologies.md +102 -0
- package/core/skills/foundation/write-tests/references/patterns-and-ai-testing.md +78 -0
- package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +345 -0
- package/core/skills/frontend/INDEX.json +158 -0
- package/core/skills/frontend/add-page-route/SKILL.md +154 -0
- package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +102 -0
- package/core/skills/frontend/add-page-route/agents/openai.yaml +4 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +162 -0
- package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +114 -0
- package/core/skills/frontend/add-ui-component/agents/openai.yaml +4 -0
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +128 -0
- package/core/skills/frontend/component-composition/SKILL.md +116 -0
- package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +103 -0
- package/core/skills/frontend/component-composition/agents/openai.yaml +4 -0
- package/core/skills/frontend/component-composition/references/composition-architecture-and-headless-specs.md +375 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +99 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +128 -0
- package/core/skills/frontend/frontend-micro-polish/SKILL.md +133 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +196 -0
- package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +137 -0
- package/core/skills/frontend/frontend-testing/agents/openai.yaml +4 -0
- package/core/skills/frontend/implement-view-transitions/SKILL.md +109 -0
- package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +118 -0
- package/core/skills/frontend/implement-view-transitions/agents/openai.yaml +4 -0
- package/core/skills/frontend/implement-view-transitions/references/view-transitions-and-motion-specs.md +255 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +121 -0
- package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +108 -0
- package/core/skills/frontend/implement-webmcp/agents/openai.yaml +4 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +186 -0
- package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +118 -0
- package/core/skills/frontend/integrate-api-client/agents/openai.yaml +4 -0
- package/core/skills/frontend/interactive-component-workbench/SKILL.md +141 -0
- package/core/skills/frontend/motion-performance-engineering/SKILL.md +100 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +179 -0
- package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +123 -0
- package/core/skills/frontend/setup-design-system/agents/openai.yaml +4 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +115 -0
- package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +121 -0
- package/core/skills/frontend/setup-visual-regression/agents/openai.yaml +4 -0
- package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +1004 -0
- package/core/skills/frontend/web-quality-audit/SKILL.md +102 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +80 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +80 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +78 -0
- package/core/skills/gamedev/automate-game-publishing/SKILL.md +80 -0
- package/core/skills/gamedev/build-game-ui-ux/SKILL.md +78 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +80 -0
- package/core/skills/gamedev/design-procedural-generation/SKILL.md +80 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +71 -0
- package/core/skills/gamedev/direct-camera-systems/SKILL.md +79 -0
- package/core/skills/gamedev/generate-game-assets-pipeline/SKILL.md +82 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +84 -0
- package/core/skills/gamedev/inspect-blender-rigs-motion/SKILL.md +82 -0
- package/core/skills/gamedev/integrate-dialogue-narrative/SKILL.md +80 -0
- package/core/skills/gamedev/integrate-game-engine/SKILL.md +81 -0
- package/core/skills/gamedev/manage-scene-lifecycle/SKILL.md +80 -0
- package/core/skills/gamedev/mix-dynamic-game-audio/SKILL.md +80 -0
- package/core/skills/gamedev/profile-game-performance/SKILL.md +81 -0
- package/core/skills/gamedev/program-game-shaders/SKILL.md +83 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +81 -0
- package/core/skills/gamedev/tune-game-feel/SKILL.md +75 -0
- package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +85 -0
- package/core/skills/legal-compliance/audit-ai-compliance/agents/openai.yaml +4 -0
- package/core/skills/legal-compliance/audit-ai-compliance/references/ai-law-compliance-guide.md +52 -0
- package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +89 -0
- package/core/skills/legal-compliance/draft-legal-opinion/agents/openai.yaml +4 -0
- package/core/skills/legal-compliance/draft-legal-opinion/references/legal-opinion-guide.md +53 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +95 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/references/statutory-checklists.md +208 -0
- package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +236 -0
- package/core/skills/meetings-analysis/INDEX.json +56 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +146 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +97 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/agents/openai.yaml +4 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/references/layered-requirements-pipeline-and-bdd-standards.md +107 -0
- package/core/skills/meetings-analysis/analyze-data/SKILL.md +164 -0
- package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +143 -0
- package/core/skills/meetings-analysis/analyze-data/agents/openai.yaml +4 -0
- package/core/skills/meetings-analysis/analyze-data/references/inprocess-analytics-and-hallucination-prevention.md +83 -0
- package/core/skills/meetings-analysis/analyze-data/references/semantic-catalog-and-drift-detection.md +87 -0
- package/core/skills/meetings-analysis/meeting-review/SKILL.md +199 -0
- package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +125 -0
- package/core/skills/meetings-analysis/meeting-review/agents/openai.yaml +4 -0
- package/core/skills/meetings-analysis/meeting-review/references/perspectives-and-process.md +90 -0
- package/core/skills/mmo/INDEX.json +126 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +134 -0
- package/core/skills/mmo/analyze-campaign-roi/agents/openai.yaml +4 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +139 -0
- package/core/skills/mmo/create-automation-script/agents/openai.yaml +4 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +137 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/agents/openai.yaml +4 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +133 -0
- package/core/skills/mmo/deploy-proxyware-fleet/agents/openai.yaml +4 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +134 -0
- package/core/skills/mmo/generate-mmo-content/agents/openai.yaml +4 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +134 -0
- package/core/skills/mmo/manage-mmo-assets/agents/openai.yaml +4 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +149 -0
- package/core/skills/mmo/setup-tracking-system/agents/openai.yaml +4 -0
- package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +209 -0
- package/core/skills/mobile/INDEX.json +40 -0
- package/core/skills/mobile/deploy-mobile-app/SKILL.md +132 -0
- package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +122 -0
- package/core/skills/mobile/deploy-mobile-app/agents/openai.yaml +4 -0
- package/core/skills/mobile/deploy-mobile-app/references/eas-build-ota-and-store-compliance-specs.md +217 -0
- package/core/skills/mobile/develop-mobile-app/SKILL.md +125 -0
- package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +141 -0
- package/core/skills/mobile/develop-mobile-app/agents/openai.yaml +4 -0
- package/core/skills/mobile/develop-mobile-app/references/react-native-new-architecture-and-offline-specs.md +246 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +92 -0
- package/core/skills/platform/add-telemetry-instrumentation/agents/openai.yaml +4 -0
- package/core/skills/platform/agents-sdk/SKILL.md +90 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +120 -0
- package/core/skills/platform/aws-infrastructure/agents/openai.yaml +4 -0
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -0
- package/core/skills/platform/cloudflare-email-service/agents/openai.yaml +4 -0
- package/core/skills/platform/cloudflare-email-service/references/cli-and-mcp.md +125 -0
- package/core/skills/platform/cloudflare-email-service/references/deliverability.md +285 -0
- package/core/skills/platform/cloudflare-email-service/references/rest-api.md +184 -0
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -0
- package/core/skills/platform/cloudflare-email-service/references/sending.md +252 -0
- package/core/skills/platform/debug-runtime-platform/SKILL.md +143 -0
- package/core/skills/platform/debug-runtime-platform/agents/openai.yaml +4 -0
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -0
- package/core/skills/platform/debug-workers-edge/agents/openai.yaml +4 -0
- package/core/skills/platform/deploy-aws-eks-workloads/SKILL.md +168 -0
- package/core/skills/platform/deploy-aws-eks-workloads/agents/openai.yaml +4 -0
- package/core/skills/platform/deploy-aws-eks-workloads/references/aws-eks-workload-guide.md +353 -0
- package/core/skills/platform/durable-objects/SKILL.md +114 -0
- package/core/skills/platform/durable-objects/agents/openai.yaml +4 -0
- package/core/skills/platform/durable-objects/references/code-patterns.md +115 -0
- package/core/skills/platform/durable-objects/references/rules.md +295 -0
- package/core/skills/platform/durable-objects/references/testing.md +264 -0
- package/core/skills/platform/durable-objects/references/workers.md +346 -0
- package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +98 -0
- package/core/skills/platform/orchestrate-chaos-experiment/agents/openai.yaml +4 -0
- package/core/skills/platform/orchestrate-chaos-experiment/references/chaos-engineering-guide.md +237 -0
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -0
- package/core/skills/platform/sandbox-sdk/agents/openai.yaml +4 -0
- package/core/skills/platform/sandbox-sdk/references/api-quick-ref.md +113 -0
- package/core/skills/platform/sandbox-sdk/references/examples.md +49 -0
- package/core/skills/platform/setup-deployment/SKILL.md +136 -0
- package/core/skills/platform/setup-deployment/agents/openai.yaml +4 -0
- package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -0
- package/core/skills/platform/setup-gpu-finops/agents/openai.yaml +4 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -0
- package/core/skills/platform/setup-llm-gateway/agents/openai.yaml +4 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +195 -0
- package/core/skills/platform/supply-chain-security/agents/openai.yaml +4 -0
- package/core/skills/platform/system-design/SKILL.md +184 -0
- package/core/skills/platform/system-design/agents/openai.yaml +4 -0
- package/core/skills/platform/system-design/references/cellular-topology-and-capacity-sizing.md +151 -0
- package/core/skills/platform/turnstile-spin/README.md +45 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -0
- package/core/skills/platform/turnstile-spin/agents/openai.yaml +4 -0
- package/core/skills/platform/turnstile-spin/references/astro.md +102 -0
- package/core/skills/platform/turnstile-spin/references/code-patterns.md +132 -0
- package/core/skills/platform/turnstile-spin/references/hugo.md +62 -0
- package/core/skills/platform/turnstile-spin/references/nextjs-app.md +110 -0
- package/core/skills/platform/turnstile-spin/references/nextjs-pages.md +59 -0
- package/core/skills/platform/turnstile-spin/references/sveltekit.md +84 -0
- package/core/skills/platform/turnstile-spin/references/vanilla-html.md +62 -0
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +82 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +66 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +53 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +87 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +57 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +102 -0
- package/core/skills/platform/turnstile-spin/templates/worker/LICENSE +21 -0
- package/core/skills/platform/turnstile-spin/templates/worker/README.md +196 -0
- package/core/skills/platform/turnstile-spin/templates/worker/package.json +39 -0
- package/core/skills/platform/turnstile-spin/templates/worker/public/post-deploy.html +287 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/errors.ts +29 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/observability.ts +34 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/types.ts +95 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/validate.ts +101 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/deploy.test.ts +71 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/integration.test.ts +87 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/unit.test.ts +372 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/validation.test.ts +201 -0
- package/core/skills/platform/turnstile-spin/templates/worker/tsconfig.json +24 -0
- package/core/skills/platform/turnstile-spin/templates/worker/vitest.config.ts +12 -0
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -0
- package/core/skills/platform/turnstile-spin/tests/validation.md +69 -0
- package/core/skills/platform/web-perf/SKILL.md +151 -0
- package/core/skills/platform/web-perf/agents/openai.yaml +4 -0
- package/core/skills/platform/workers-best-practices/SKILL.md +93 -0
- package/core/skills/platform/workers-best-practices/agents/openai.yaml +4 -0
- package/core/skills/platform/workers-best-practices/references/review.md +174 -0
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -0
- package/core/skills/platform/wrangler/SKILL.md +89 -0
- package/core/skills/platform/wrangler/agents/openai.yaml +4 -0
- package/core/skills/product/build-story-map/SKILL.md +104 -0
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -0
- package/core/skills/product/define-product-strategy/SKILL.md +105 -0
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -0
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -0
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -0
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -0
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -0
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -0
- package/core/skills/repo-ops/commit-code/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -0
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -0
- package/core/skills/repo-ops/navigate-service/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/review-code/SKILL.md +102 -0
- package/core/skills/repo-ops/review-code/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/review-code/references/adversarial-review-rubric.md +80 -0
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -0
- package/core/skills/repo-ops/review-code/references/two-axis-review.md +78 -0
- package/core/skills/repo-ops/review-service/SKILL.md +186 -0
- package/core/skills/repo-ops/review-service/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -0
- package/core/skills/repo-ops/troubleshoot-service/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/troubleshoot-service/references/common-failure-areas.md +71 -0
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -0
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -0
- package/core/skills/security-data/build-data-pipeline/SKILL.md +139 -0
- package/core/skills/security-data/build-data-pipeline/agents/openai.yaml +4 -0
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +112 -0
- package/core/skills/security-data/build-data-pipeline/references/quality-gates-dlq-and-replayability.md +105 -0
- package/core/skills/security-data/database-maintenance/SKILL.md +102 -0
- package/core/skills/security-data/database-maintenance/agents/openai.yaml +4 -0
- package/core/skills/security-data/database-maintenance/references/lakehouse-ops-and-finops.md +125 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +81 -0
- package/core/skills/security-data/manage-secrets/SKILL.md +137 -0
- package/core/skills/security-data/manage-secrets/agents/openai.yaml +4 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +93 -0
- package/core/skills/security-data/manage-vietnam-accounting/agents/openai.yaml +4 -0
- package/core/skills/security-data/manage-vietnam-accounting/references/e-invoice-risk-playbook.md +270 -0
- package/core/skills/security-data/manage-vietnam-accounting/references/three-way-matching-and-controls.md +227 -0
- package/core/skills/security-data/manage-vietnam-accounting/references/vas-vfrs-chart-of-accounts.md +199 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +108 -0
- package/core/skills/security-data/optimize-olap-database/agents/openai.yaml +4 -0
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +325 -0
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +103 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +92 -0
- package/core/skills/security-data/query-analytical-engine/agents/openai.yaml +4 -0
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +326 -0
- package/core/skills/security-data/security-audit/SKILL.md +119 -0
- package/core/skills/security-data/security-audit/agents/openai.yaml +4 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +132 -0
- package/core/skills/seo/audit-technical-seo/SKILL.md +109 -0
- package/core/skills/seo/audit-technical-seo/agents/openai.yaml +4 -0
- package/core/skills/seo/audit-technical-seo/references/core-web-vitals-and-performance.md +104 -0
- package/core/skills/seo/audit-technical-seo/references/crawl-budget-and-bot-access-guide.md +188 -0
- package/core/skills/seo/audit-technical-seo/references/redirects-canonicals-and-status-codes.md +145 -0
- package/core/skills/seo/implement-schema-markup/SKILL.md +103 -0
- package/core/skills/seo/implement-schema-markup/agents/openai.yaml +4 -0
- package/core/skills/seo/implement-schema-markup/references/connected-graph-schema-architecture.md +219 -0
- package/core/skills/seo/implement-schema-markup/references/entity-grounding-and-wikidata.md +155 -0
- package/core/skills/seo/implement-schema-markup/references/rich-results-and-validation-guide.md +83 -0
- package/core/workflows/README.md +140 -0
- package/core/workflows/add-new-feature.md +212 -0
- package/core/workflows/agent-a2a-delegation.md +142 -0
- package/core/workflows/bug-fix.md +147 -0
- package/core/workflows/build-deploy.md +208 -0
- package/core/workflows/code-review.md +137 -0
- package/core/workflows/content-audit.md +158 -0
- package/core/workflows/content-publishing.md +208 -0
- package/core/workflows/curriculum-delivery.md +181 -0
- package/core/workflows/data-migration.md +202 -0
- package/core/workflows/data-pipeline-incident.md +176 -0
- package/core/workflows/dependency-upgrade.md +193 -0
- package/core/workflows/feature-delivery.md +149 -0
- package/core/workflows/hotfix-production.md +172 -0
- package/core/workflows/mmo-campaign-lifecycle.md +123 -0
- package/core/workflows/period-end-closing.md +245 -0
- package/core/workflows/qa-validation.md +231 -0
- package/core/workflows/refactoring.md +154 -0
- package/core/workflows/revert-deployment.md +147 -0
- package/core/workflows/security-incident-response.md +191 -0
- package/core/workflows/seo-content-lifecycle.md +91 -0
- package/core/workflows/seo-keyword-brief.md +178 -0
- package/core/workflows/service-review-release.md +223 -0
- package/core/workflows/setup-new-service.md +214 -0
- package/core/workflows/tech-repo-review.md +245 -0
- package/core/workflows/troubleshooting.md +241 -0
- package/overlays/README.md +89 -0
- package/overlays/astro-cloudflare/README.md +93 -0
- package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +191 -0
- package/overlays/b2b-catalog-golf/README.md +50 -0
- package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +78 -0
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +84 -0
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/agents/openai.yaml +4 -0
- package/overlays/b2b-factory-catalog/README.md +54 -0
- package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +93 -0
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +68 -0
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/agents/openai.yaml +4 -0
- package/overlays/b2b-sport-catalog/README.md +64 -0
- package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +82 -0
- package/overlays/cad-projection/README.md +49 -0
- package/overlays/cad-projection/rules/cad-conventions.md +76 -0
- package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +132 -0
- package/overlays/data-analyst-stack/README.md +109 -0
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -0
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -0
- package/overlays/data-warehouse/README.md +133 -0
- package/overlays/data-warehouse/learning/README.md +40 -0
- package/overlays/data-warehouse/learning/learning-conventions.md +113 -0
- package/overlays/data-warehouse/learning/phase-roadmap.md +444 -0
- package/overlays/data-warehouse/learning/progress.md +38 -0
- package/overlays/data-warehouse/rules/amis-accounting-standards.md +271 -0
- package/overlays/data-warehouse/rules/duckdb-concurrency.md +362 -0
- package/overlays/data-warehouse/rules/pii-scrubbing.md +238 -0
- package/overlays/data-warehouse/rules/stocktake-tolerance.md +276 -0
- package/overlays/ecommerce-microservices/README.md +65 -0
- package/overlays/ecommerce-microservices/config/README.md +3 -0
- package/overlays/ecommerce-microservices/rules/README.md +3 -0
- package/overlays/ecommerce-microservices/skills/README.md +3 -0
- package/overlays/ecommerce-microservices/workflows/README.md +3 -0
- package/overlays/fintech-compliance/README.md +50 -0
- package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +98 -0
- package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +133 -0
- package/overlays/go-microservices/README.md +78 -0
- package/overlays/go-microservices/rules/go-conventions.md +223 -0
- package/overlays/hugo-authority-content/README.md +58 -0
- package/overlays/hugo-authority-content/config/sites.md +51 -0
- package/overlays/hugo-authority-content/roles/README.md +25 -0
- package/overlays/hugo-authority-content/rules/content-brand.md +124 -0
- package/overlays/hugo-authority-content/rules/link-topology.md +72 -0
- package/overlays/hugo-authority-content/rules/seo-authority.md +83 -0
- package/overlays/hugo-authority-content/rules/technical-article-2027.md +91 -0
- package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +77 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +103 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/agents/openai.yaml +4 -0
- package/overlays/hugo-authority-content/workflows/README.md +31 -0
- package/overlays/hugo-authority-content/workflows/affiliate-publishing.md +55 -0
- package/overlays/hugo-authority-content/workflows/article-creation-and-upgrade-lifecycle.md +426 -0
- package/overlays/hugo-authority-content/workflows/content-audit-refresh.md +105 -0
- package/overlays/hugo-authority-content/workflows/masterclass-batch-upgrade.md +66 -0
- package/overlays/hugo-authority-content/workflows/publish-series.md +126 -0
- package/overlays/hugo-authority-content/workflows/series-sync-upgrade.md +138 -0
- package/overlays/hvac-authority-content/README.md +54 -0
- package/overlays/hvac-authority-content/config/collections.md +70 -0
- package/overlays/hvac-authority-content/rules/content-schema.md +134 -0
- package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +62 -0
- package/overlays/hvac-authority-content/rules/silo-linking.md +73 -0
- package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +80 -0
- package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +102 -0
- package/overlays/laravel-ecommerce/README.md +39 -0
- package/overlays/laravel-ecommerce/config/README.md +3 -0
- package/overlays/laravel-ecommerce/roles/README.md +3 -0
- package/overlays/laravel-ecommerce/rules/elomus-design-system.md +89 -0
- package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +107 -0
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +125 -0
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/agents/openai.yaml +4 -0
- package/overlays/laravel-ecommerce/workflows/README.md +3 -0
- package/overlays/laravel-ecommerce/workflows/deploy-laravel-ecommerce.md +128 -0
- package/overlays/laravel-filament/README.md +90 -0
- package/overlays/laravel-filament/config/README.md +3 -0
- package/overlays/laravel-filament/roles/README.md +3 -0
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -0
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -0
- package/overlays/laravel-filament/skills/develop-laravel-feature/agents/openai.yaml +4 -0
- package/overlays/laravel-filament/workflows/README.md +3 -0
- package/overlays/laravel-filament/workflows/deploy-laravel.md +134 -0
- package/overlays/livestream-web/README.md +45 -0
- package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +55 -0
- package/overlays/obj-configurator/README.md +42 -0
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -0
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -0
- package/overlays/obj-configurator/skills/develop-obj-feature/agents/openai.yaml +4 -0
- package/overlays/r3f-stack/README.md +89 -0
- package/overlays/r3f-stack/rules/stub.md +43 -0
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -0
- package/overlays/r3f-stack/skills/debug-3d-scene/agents/openai.yaml +4 -0
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -0
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/agents/openai.yaml +4 -0
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -0
- package/overlays/r3f-stack/skills/optimize-3d-assets/agents/openai.yaml +4 -0
- package/overlays/real-estate-content/README.md +51 -0
- package/overlays/real-estate-content/config/collections.md +64 -0
- package/overlays/real-estate-content/roles/README.md +25 -0
- package/overlays/real-estate-content/rules/affiliate-links.md +54 -0
- package/overlays/real-estate-content/rules/content-schema.md +89 -0
- package/overlays/real-estate-content/rules/seo-baseline.md +53 -0
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +102 -0
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/agents/openai.yaml +4 -0
- package/overlays/real-estate-content/workflows/README.md +25 -0
- package/overlays/real-estate-content/workflows/publish-real-estate-content.md +68 -0
- package/overlays/security-research/README.md +50 -0
- package/overlays/security-research/rules/reverse-engineering-rules.md +82 -0
- package/overlays/security-research/skills/reverse-engineer-binary/SKILL.md +129 -0
- package/overlays/seo-publishing/README.md +93 -0
- package/overlays/seo-publishing/rules/publish-log-conventions.md +64 -0
- package/overlays/seo-publishing/rules/publishing-cadence.md +89 -0
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -0
- package/overlays/seo-publishing/rules/topic-board-template.md +67 -0
- package/overlays/ui-design-system/README.md +59 -0
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -0
- package/package.json +47 -4
- package/packs/README.md +223 -0
- package/packs/affiliate-cashback-team/README.md +219 -0
- package/packs/affiliate-cashback-team/manifest.yaml +125 -0
- package/packs/affiliate-cashback-team/workflows/affiliate-tri-engine-lifecycle.md +178 -0
- package/packs/b2b-catalog-team/manifest.yaml +63 -0
- package/packs/b2b-golf-team/manifest.yaml +63 -0
- package/packs/b2b-sport-team/manifest.yaml +63 -0
- package/packs/content-sprint-team/manifest.yaml +61 -0
- package/packs/data-analyst-team/manifest.yaml +65 -0
- package/packs/data-warehouse/manifest.yaml +143 -0
- package/packs/ecommerce-team/manifest.yaml +65 -0
- package/packs/global-engineering/manifest.yaml +55 -0
- package/packs/hugo-authority-team/README.md +381 -0
- package/packs/hugo-authority-team/manifest.yaml +167 -0
- package/packs/hugo-authority-team/workflows/article-creation-and-upgrade-lifecycle.md +426 -0
- package/packs/hvac-content-team/README.md +194 -0
- package/packs/hvac-content-team/manifest.yaml +117 -0
- package/packs/hvac-content-team/workflows/publish-hvac-content.md +68 -0
- package/packs/landing-pages-team/README.md +115 -0
- package/packs/landing-pages-team/manifest.yaml +91 -0
- package/packs/landing-pages-team/workflows/landing-page-creation-lifecycle.md +70 -0
- package/packs/laravel-ecommerce-team/manifest.yaml +65 -0
- package/packs/livestream-team/manifest.yaml +61 -0
- package/packs/mmo-growth-team/README.md +206 -0
- package/packs/mmo-growth-team/manifest.yaml +131 -0
- package/packs/obj-team/manifest.yaml +68 -0
- package/packs/real-estate-team/README.md +208 -0
- package/packs/real-estate-team/manifest.yaml +117 -0
- package/packs/real-estate-team/workflows/publish-real-estate-content.md +73 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement-view-transitions
|
|
3
|
+
description: Implement fluid, native-feeling page and state transitions using CSS View Transitions API, React 19 ViewTransition, Next.js App Router transitions, and shared element morphing without degrading Core Web Vitals. Use when adding route animations, shared element transitions, or layout morphs.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, run_dev_server, execute_command]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Implement View Transitions
|
|
8
|
+
|
|
9
|
+
Use this skill to implement, optimize, and audit native view transitions, route-level page animations, shared element morphs, and layout displacement animations across React 19, Next.js, and Astro.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- implementing fluid hierarchical page navigations (list -> detail -> list) with directional slides
|
|
14
|
+
- authoring shared element morphs between source cards and destination hero sections
|
|
15
|
+
- animating Suspense reveal transitions (skeleton -> content) without layout jumps
|
|
16
|
+
- implementing layout displacement morphs on dynamic list additions, removals, or reordering
|
|
17
|
+
- optimizing web animation performance to protect Interaction to Next Paint (INP < 200ms)
|
|
18
|
+
- enforcing WCAG 2.2 AA `prefers-reduced-motion` compliance across all view transitions
|
|
19
|
+
|
|
20
|
+
## Core Rules
|
|
21
|
+
|
|
22
|
+
- **Composited Motion Only**: animations attached to `::view-transition-old` and `::view-transition-new` must strictly animate `transform` and `opacity`; never animate layout geometry (`width`, `height`, `top`, `left`, `margin`, `padding`)
|
|
23
|
+
- **Frequency-Based Animation Budget**: high-frequency actions (hotkeys `Cmd+K`, combobox search) must be instantaneous (0ms); micro-interactions 100–150ms; overlays and drawers strictly bounded to 150–250ms; route transitions capped at 400ms
|
|
24
|
+
- **Harmonic Spring Physics Presets**: UI springs must use mass $m=1.0$ and near-critical damping ($\zeta \approx 0.75 - 0.85$); underdamped cartoonish bouncing ($\zeta < 0.6$) is strictly forbidden
|
|
25
|
+
- **Single Smooth-Scroll Engine Exclusivity**: strictly prohibit installing both Lenis and Locomotive Scroll simultaneously; use exactly one coordinator (`lenis/react` or native CSS) to prevent compositor race conditions
|
|
26
|
+
- **Enforce INP Performance Budget (< 200ms)**: the DOM mutation callback inside `startViewTransition` must execute in under 50ms without synchronous long tasks; wrap non-urgent transitions in `React.startTransition` and chunk streaming work with `scheduler.yield()`
|
|
27
|
+
- **Apply `default="none"` Discipline**: all named and type-keyed `<ViewTransition>` boundaries must specify `default="none"`, explicitly opting into only the transitions they are intended to handle
|
|
28
|
+
- **Precede DOM Nodes**: in React, `<ViewTransition>` must wrap content *before any DOM nodes* to activate enter/exit transitions; never wrap `<ViewTransition>` inside an un-animated host `<div>`
|
|
29
|
+
- **Enforce Global Uniqueness for Transition Names**: `view-transition-name` (or the `name` prop on `<ViewTransition>`) must be globally unique across active elements; suffix list and entity elements with dynamic IDs (`hero-image-${item.id}`)
|
|
30
|
+
- **Isolate Persistent Elements**: persistent headers, sidebars, and sticky controls must be pulled out of the `root` transition group by assigning unique `viewTransitionName` identifiers and suppressing their animations
|
|
31
|
+
- **Mandate Reduced Motion Fallback**: every view transition stylesheet must declare an `@media (prefers-reduced-motion: reduce)` block disabling or instant-fading animations
|
|
32
|
+
- detailed recipes, motion tables, and physics specifications: [`references/view-transitions-and-motion-specs.md`](references/view-transitions-and-motion-specs.md) and [`../ui-ux-designer-anti-slop-standards.md`](../ui-ux-designer-anti-slop-standards.md)
|
|
33
|
+
|
|
34
|
+
## Suggested Process
|
|
35
|
+
|
|
36
|
+
### 1. Audit Navigation Map & Candidate Surfaces
|
|
37
|
+
|
|
38
|
+
Scan the route graph. Identify navigation triggers (`<Link>`, `router.push`), navigation directions (forward, back), Suspense boundaries, shared visual elements (thumbnails -> hero headers), and persistent app shell elements (header, sidebar, sticky dock).
|
|
39
|
+
|
|
40
|
+
### 2. Add Global CSS Recipes & Reduced Motion Overrides
|
|
41
|
+
|
|
42
|
+
Incorporate standardized view transition keyframes and classes into the global stylesheet. Ensure `@media (prefers-reduced-motion: reduce)` is active before authoring custom animations.
|
|
43
|
+
|
|
44
|
+
### 3. Isolate App Shell & Persistent Elements
|
|
45
|
+
|
|
46
|
+
Assign explicit `viewTransitionName` styles to header, navigation, and persistent containers. Apply persistent isolation CSS to prevent shell flickering during page transitions.
|
|
47
|
+
|
|
48
|
+
### 4. Implement Directional Route Transitions
|
|
49
|
+
|
|
50
|
+
Tag navigation events with `addTransitionType` (`nav-forward`, `nav-back`) inside `startTransition`. Wrap page components in reusable type-keyed `<DirectionalTransition>` components.
|
|
51
|
+
|
|
52
|
+
### 5. Wire Shared Element Morphs
|
|
53
|
+
|
|
54
|
+
Assign matching `name={`entity-hero-${id}`}` props to source and destination elements. Set `share="morph"` and configure appropriate fallback `enter`/`exit` classes for routes where no pair forms.
|
|
55
|
+
|
|
56
|
+
### 6. Verify Core Web Vitals & Interaction Responsiveness
|
|
57
|
+
|
|
58
|
+
Measure Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS) under simulated 4x CPU throttling. Verify animations run at 60/120fps on compositor thread with zero layout thrashing.
|
|
59
|
+
|
|
60
|
+
## Checklist
|
|
61
|
+
|
|
62
|
+
- [ ] view transitions animate exclusively composited properties (`transform`, `opacity`)
|
|
63
|
+
- [ ] Interaction to Next Paint verified under budget (INP < 200ms under 4x CPU throttling)
|
|
64
|
+
- [ ] all targeted `<ViewTransition>` boundaries declare `default="none"`
|
|
65
|
+
- [ ] `<ViewTransition>` components placed before any host DOM nodes
|
|
66
|
+
- [ ] `name` attributes for shared elements are dynamically scoped and globally unique
|
|
67
|
+
- [ ] persistent headers and navigation bars isolated with unique `viewTransitionName`
|
|
68
|
+
- [ ] `@media (prefers-reduced-motion: reduce)` overrides verified in browser
|
|
69
|
+
- [ ] hierarchical navigations mapped with typed directional transitions (`nav-forward` / `nav-back`)
|
|
70
|
+
- [ ] fallback animations defined for shared elements when matching target is absent
|
|
71
|
+
- [ ] frequency-based animation budget enforced (hotkeys 0ms, micro 100-150ms, overlays 150-250ms, routes ≤400ms)
|
|
72
|
+
- [ ] harmonic spring physics: mass 1.0, damping 0.75-0.85
|
|
73
|
+
- [ ] single smooth-scroll engine (Lenis or native CSS) — not both
|
|
74
|
+
- [ ] security: `view-transition-name` sanitized; transition types allowlisted
|
|
75
|
+
- [ ] `performance-audit.json` and `implementation-result.json` emitted and validated
|
|
76
|
+
|
|
77
|
+
## Failure Modes
|
|
78
|
+
|
|
79
|
+
- **Layout Thrashing & Frame Drops**: CSS animates `height` or `width` during transition, dropping frames below 30fps. Mitigation: code review rejects layout property animations; replace with scale/translate transforms.
|
|
80
|
+
- **Duplicate Name Collision**: two active items render `name="hero-image"`, breaking transitions. Mitigation: require dynamic ID parameterization (`name={`hero-${id}`}`).
|
|
81
|
+
- **Unintended Global Crossfade**: an unconfigured `<ViewTransition>` fades every time a background revalidation occurs. Mitigation: enforce `default="none"`.
|
|
82
|
+
- **Persistent Header Jump**: sticky navigation header stretches and slides during page change. Mitigation: pull header into independent transition group via `viewTransitionName: "header"`.
|
|
83
|
+
- **Spring Physics Violation**: underdamped cartoonish bouncing ($\zeta < 0.6$). Mitigation: design system enforces $\zeta \approx 0.75-0.85$; lint rule for spring config.
|
|
84
|
+
- **INP Budget Breach**: DOM mutation > 50ms inside `startViewTransition`. Mitigation: `React.startTransition` + `scheduler.yield()` chunking; profile with 4x CPU throttling.
|
|
85
|
+
- **CSS Injection via `view-transition-name`**: unescaped string interpolation. Mitigation: sanitize dynamic names against pattern; reject unsafe characters.
|
|
86
|
+
|
|
87
|
+
## Output Contracts
|
|
88
|
+
|
|
89
|
+
When this skill is invoked as part of a coordinated frontend slice, emit:
|
|
90
|
+
|
|
91
|
+
- **`contracts/schemas/ui-component-spec.json`** — Documents transition boundaries, names, triggers, and type maps.
|
|
92
|
+
- **`contracts/schemas/performance-audit.json`** — Records INP, LCP, CLS, and compositor frame-rate measurements.
|
|
93
|
+
- **`contracts/schemas/implementation-result.json`** — Records files modified, CSS recipes installed, and behavioral test evidence.
|
|
94
|
+
|
|
95
|
+
## Security Guardrails (OWASP ASI)
|
|
96
|
+
|
|
97
|
+
- **ASI01 Goal Hijack**: do not allow transition type parameters to be populated directly from untrusted query strings without strict allowlist validation.
|
|
98
|
+
- **ASI05 RCE Guard**: validate dynamic `name` attributes against sanitization patterns to prevent CSS injection via unescaped string interpolation.
|
|
99
|
+
- **ASI07 Inter-Agent Communication**: emit structured `performance-audit.json` documenting INP metrics for Reviewer and Technical Lead verification.
|
|
100
|
+
|
|
101
|
+
## Related Skills
|
|
102
|
+
|
|
103
|
+
- **add-page-route**: Wire page components and Next.js / Astro routes to transition boundaries
|
|
104
|
+
- **add-ui-component**: Author shared presentation components capable of morphing
|
|
105
|
+
- **component-composition**: Structure compound slots and shared visual elements for transition pairing
|
|
106
|
+
- **frontend-testing**: Assert route navigation, snapshot stability, and DOM state integrity
|
|
107
|
+
- **setup-design-system**: Define design tokens, easing curves, and duration variables
|
|
108
|
+
|
|
109
|
+
Last updated: 2026-09-25
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# implement-view-transitions — 2026 Upgrade Plan
|
|
2
|
+
|
|
3
|
+
## Summary of 2026 Standards Changes
|
|
4
|
+
|
|
5
|
+
### CSS View Transitions API (2026)
|
|
6
|
+
- **Native browser support**: `::view-transition-old`, `::view-transition-new` pseudo-elements
|
|
7
|
+
- **Composited motion only**: Strictly animate `transform` and `opacity`; **never** layout geometry (`width`, `height`, `top`, `left`, `margin`, `padding`)
|
|
8
|
+
- **`view-transition-name` uniqueness**: Globally unique across active elements; suffix with dynamic IDs (`hero-image-${item.id}`)
|
|
9
|
+
|
|
10
|
+
### React 19 ViewTransition (2026)
|
|
11
|
+
- **`<ViewTransition>` component**: `default="none"` mandatory; wrap content **before any DOM nodes**
|
|
12
|
+
- **Type-keyed transitions**: `name` prop for shared elements; `share="morph"` for morphing
|
|
13
|
+
- **Directional transitions**: `addTransitionType` (`nav-forward`, `nav-back`) inside `startTransition`
|
|
14
|
+
- **Fallback animations**: Defined for shared elements when matching target absent
|
|
15
|
+
|
|
16
|
+
### Performance Budgets (2026)
|
|
17
|
+
- **INP < 200ms**: DOM mutation callback in `startViewTransition` must execute < 50ms
|
|
18
|
+
- **No synchronous long tasks**: Wrap non-urgent transitions in `React.startTransition`; chunk with `scheduler.yield()`
|
|
19
|
+
- **Frequency-based animation budget**: Hotkeys (`Cmd+K`) = 0ms; micro-interactions = 100-150ms; overlays/drawers = 150-250ms; route transitions ≤ 400ms
|
|
20
|
+
- **Harmonic spring physics**: Mass m=1.0, near-critical damping (ζ ≈ 0.75-0.85); underdamped (ζ < 0.6) forbidden
|
|
21
|
+
|
|
22
|
+
### App Shell Isolation (2026)
|
|
23
|
+
- **Persistent elements**: Headers, sidebars, sticky controls pulled out of `root` transition group via unique `viewTransitionName`
|
|
24
|
+
- **Single smooth-scroll engine**: Strictly prohibit Lenis + Locomotive Scroll simultaneously; exactly one coordinator
|
|
25
|
+
|
|
26
|
+
### Reduced Motion Compliance (2026)
|
|
27
|
+
- **Mandatory `@media (prefers-reduced-motion: reduce)`**: Disable or instant-fade all animations
|
|
28
|
+
- **WCAG 2.2 AA**: Motion reduction compliance across all view transitions
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Required Skill Upgrades
|
|
33
|
+
|
|
34
|
+
### 1. Core Rules Updates
|
|
35
|
+
| Current Rule | 2026 Upgrade |
|
|
36
|
+
|--------------|--------------|
|
|
37
|
+
| Composited motion mentioned | **Composited motion mandatory**: Only `transform`/`opacity`; layout property animations rejected in code review |
|
|
38
|
+
| Animation budget mentioned | **Frequency-based budget mandatory**: Hotkeys 0ms, micro 100-150ms, overlays 150-250ms, routes ≤400ms |
|
|
39
|
+
| Spring physics mentioned | **Harmonic springs mandatory**: m=1.0, ζ≈0.75-0.85; ζ<0.6 forbidden |
|
|
40
|
+
| Scroll engine mentioned | **Single coordinator mandatory**: Exactly one (Lenis or native CSS); race conditions prohibited |
|
|
41
|
+
| INP budget mentioned | **INP < 200ms with 50ms DOM mutation limit**: `React.startTransition` + `scheduler.yield()` for chunking |
|
|
42
|
+
| `default="none"` mentioned | **`default="none"` discipline mandatory**: All `<ViewTransition>` boundaries explicitly opt-in |
|
|
43
|
+
| Reduced motion mentioned | **Reduced motion fallback mandatory**: `@media (prefers-reduced-motion: reduce)` in every transition stylesheet |
|
|
44
|
+
|
|
45
|
+
### 2. New 2026 Patterns to Add
|
|
46
|
+
- **React 19 `<ViewTransition>` Integration**: Type-keyed boundaries, `default="none"`, pre-DOM-node placement
|
|
47
|
+
- **Shared Element Morphing**: Dynamic `name={`entity-hero-${id}`}`, `share="morph"`, fallback `enter`/`exit` classes
|
|
48
|
+
- **Directional Route Transitions**: `addTransitionType` (`nav-forward`/`nav-back`) with `startTransition`
|
|
49
|
+
- **Suspense Reveal Transitions**: Skeleton → content without layout jumps
|
|
50
|
+
- **Layout Displacement Morphs**: Dynamic list add/remove/reorder animations
|
|
51
|
+
- **Performance Verification**: INP/LCP/CLS under 4x CPU throttling; 60/120fps compositor verification
|
|
52
|
+
- **Security Validation**: `view-transition-name` sanitization against CSS injection; transition type allowlist
|
|
53
|
+
|
|
54
|
+
### 3. Checklist Additions
|
|
55
|
+
- [ ] View transitions animate exclusively composited properties (`transform`, `opacity`)
|
|
56
|
+
- [ ] Interaction to Next Paint verified under budget (INP < 200ms under 4x CPU throttling)
|
|
57
|
+
- [ ] All targeted `<ViewTransition>` boundaries declare `default="none"`
|
|
58
|
+
- [ ] `<ViewTransition>` components placed before any host DOM nodes
|
|
59
|
+
- [ ] `name` attributes for shared elements dynamically scoped and globally unique
|
|
60
|
+
- [ ] Persistent headers/navigation/sidebars isolated with unique `viewTransitionName`
|
|
61
|
+
- [ ] `@media (prefers-reduced-motion: reduce)` overrides verified in browser
|
|
62
|
+
- [ ] Hierarchical navigations mapped with typed directional transitions (`nav-forward`/`nav-back`)
|
|
63
|
+
- [ ] Fallback animations defined for shared elements when matching target absent
|
|
64
|
+
- [ ] Frequency-based animation budget enforced (hotkeys 0ms, micro 100-150ms, overlays 150-250ms, routes ≤400ms)
|
|
65
|
+
- [ ] Harmonic spring physics: mass 1.0, damping 0.75-0.85
|
|
66
|
+
- [ ] Single smooth-scroll engine (Lenis or native CSS) — not both
|
|
67
|
+
- [ ] Security: `view-transition-name` sanitized; transition types allowlisted
|
|
68
|
+
- [ ] `performance-audit.json` and `implementation-result.json` emitted and validated
|
|
69
|
+
|
|
70
|
+
### 4. Failure Mode Additions
|
|
71
|
+
- **Layout thrashing from CSS property animation**: `height`/`width` animated during transition. Mitigation: Code review rejects layout animations; replace with scale/translate transforms.
|
|
72
|
+
- **Duplicate `view-transition-name` collision**: Two active items render `name="hero-image"`. Mitigation: Require dynamic ID parameterization (`name={`hero-${id}`}`).
|
|
73
|
+
- **Unintended global crossfade**: Unconfigured `<ViewTransition>` fades on background revalidation. Mitigation: Enforce `default="none"` on all boundaries.
|
|
74
|
+
- **Persistent header jump**: Sticky nav stretches/slides during page change. Mitigation: Pull header into independent transition group via `viewTransitionName: "header"`.
|
|
75
|
+
- **Spring physics violation**: Underdamped cartoonish bouncing (ζ < 0.6). Mitigation: Design system enforces ζ ≈ 0.75-0.85; lint rule for spring config.
|
|
76
|
+
- **INP budget breach**: DOM mutation > 50ms inside `startViewTransition`. Mitigation: `React.startTransition` + `scheduler.yield()` chunking; profile with 4x CPU throttling.
|
|
77
|
+
- **CSS injection via `view-transition-name`**: Unescaped string interpolation. Mitigation: Sanitize dynamic names against pattern; reject unsafe characters.
|
|
78
|
+
|
|
79
|
+
### 5. Output Contract Updates
|
|
80
|
+
- Update `contracts/schemas/ui-component-spec.json` with transition boundaries, names, triggers, type maps
|
|
81
|
+
- Update `contracts/schemas/performance-audit.json` with INP, LCP, CLS, compositor frame-rate measurements
|
|
82
|
+
- Update `contracts/schemas/implementation-result.json` with CSS recipes, behavioral test evidence
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Implementation Priority
|
|
87
|
+
|
|
88
|
+
| Priority | Task | Effort |
|
|
89
|
+
|----------|------|--------|
|
|
90
|
+
| P0 | Composited motion only enforcement (code review gate) | High |
|
|
91
|
+
| P0 | Frequency-based animation budget with harmonic springs | High |
|
|
92
|
+
| P0 | React 19 `<ViewTransition>` with `default="none"` discipline | High |
|
|
93
|
+
| P0 | Shared element morphing with dynamic unique names | High |
|
|
94
|
+
| P0 | INP < 200ms with 50ms DOM mutation limit | High |
|
|
95
|
+
| P1 | Directional route transitions (`nav-forward`/`nav-back`) | Medium |
|
|
96
|
+
| P1 | App shell isolation (persistent elements) | Medium |
|
|
97
|
+
| P1 | Suspense reveal transitions (skeleton → content) | Medium |
|
|
98
|
+
| P1 | Layout displacement morphs (list add/remove/reorder) | Medium |
|
|
99
|
+
| P1 | Reduced motion fallback in every transition stylesheet | Medium |
|
|
100
|
+
| P2 | Security validation for dynamic names | Low |
|
|
101
|
+
| P2 | Expanded failure modes | Low |
|
|
102
|
+
| P2 | Output contract updates | Low |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Validation Gates
|
|
107
|
+
- Run `python3 core/scripts/validate-all.py` from agent-skills root
|
|
108
|
+
- Verify INDEX.md regeneration if VERSION bumped
|
|
109
|
+
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
110
|
+
- Benchmark INP/LCP/CLS under 4x CPU throttling with view transitions
|
|
111
|
+
- Verify `default="none"` on all `<ViewTransition>` boundaries
|
|
112
|
+
- Verify `<ViewTransition>` wraps content before DOM nodes
|
|
113
|
+
- Verify unique dynamic `view-transition-name` for shared elements
|
|
114
|
+
- Verify persistent elements isolated from root transition group
|
|
115
|
+
- Verify `@media (prefers-reduced-motion: reduce)` disables animations
|
|
116
|
+
- Verify harmonic spring physics (mass 1.0, damping 0.75-0.85)
|
|
117
|
+
- Verify single smooth-scroll engine (no Lenis + Locomotive conflict)
|
|
118
|
+
- Security test: `view-transition-name` sanitization against CSS injection
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# View Transitions & Motion Optimization Specifications
|
|
2
|
+
|
|
3
|
+
This reference provides production CSS recipes, React 19 / Next.js / Astro integration patterns, and Core Web Vitals optimization guidelines for the native CSS View Transitions API.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Production CSS Animation Recipes
|
|
8
|
+
|
|
9
|
+
### 1.1 Timing Variables and Easing
|
|
10
|
+
```css
|
|
11
|
+
:root {
|
|
12
|
+
--duration-exit: 150ms;
|
|
13
|
+
--duration-enter: 210ms;
|
|
14
|
+
--duration-move: 380ms;
|
|
15
|
+
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
16
|
+
--ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### 1.2 Smooth Crossfade
|
|
21
|
+
```css
|
|
22
|
+
::view-transition-old(.fade-out) {
|
|
23
|
+
animation: var(--duration-exit) var(--ease-standard) both fade-out;
|
|
24
|
+
}
|
|
25
|
+
::view-transition-new(.fade-in) {
|
|
26
|
+
animation: var(--duration-enter) var(--ease-standard) both fade-in;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes fade-out {
|
|
30
|
+
from { opacity: 1; }
|
|
31
|
+
to { opacity: 0; }
|
|
32
|
+
}
|
|
33
|
+
@keyframes fade-in {
|
|
34
|
+
from { opacity: 0; }
|
|
35
|
+
to { opacity: 1; }
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 1.3 Directional Navigation Slides
|
|
40
|
+
```css
|
|
41
|
+
/* Forward Navigation: Old slides left, New slides in from right */
|
|
42
|
+
::view-transition-old(.slide-to-left) {
|
|
43
|
+
animation: var(--duration-exit) var(--ease-standard) both slide-left-out;
|
|
44
|
+
}
|
|
45
|
+
::view-transition-new(.slide-from-right) {
|
|
46
|
+
animation: var(--duration-enter) var(--ease-emphasized) both slide-right-in;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Backward Navigation: Old slides right, New slides in from left */
|
|
50
|
+
::view-transition-old(.slide-to-right) {
|
|
51
|
+
animation: var(--duration-exit) var(--ease-standard) both slide-right-out;
|
|
52
|
+
}
|
|
53
|
+
::view-transition-new(.slide-from-left) {
|
|
54
|
+
animation: var(--duration-enter) var(--ease-emphasized) both slide-left-in;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes slide-left-out {
|
|
58
|
+
to { transform: translateX(-25%); opacity: 0; }
|
|
59
|
+
}
|
|
60
|
+
@keyframes slide-right-in {
|
|
61
|
+
from { transform: translateX(100%); opacity: 0; }
|
|
62
|
+
to { transform: translateX(0); opacity: 1; }
|
|
63
|
+
}
|
|
64
|
+
@keyframes slide-right-out {
|
|
65
|
+
to { transform: translateX(25%); opacity: 0; }
|
|
66
|
+
}
|
|
67
|
+
@keyframes slide-left-in {
|
|
68
|
+
from { transform: translateX(-100%); opacity: 0; }
|
|
69
|
+
to { transform: translateX(0); opacity: 1; }
|
|
70
|
+
}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 1.4 Persistent App Shell Isolation
|
|
74
|
+
Prevent sticky headers and sidebars from animating during page transitions:
|
|
75
|
+
```css
|
|
76
|
+
::view-transition-group(site-header),
|
|
77
|
+
::view-transition-group(site-sidebar),
|
|
78
|
+
::view-transition-group(site-dock) {
|
|
79
|
+
animation: none !important;
|
|
80
|
+
z-index: 100;
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 1.5 Mandatory Reduced Motion Reset (WCAG 2.2 AA)
|
|
85
|
+
```css
|
|
86
|
+
@media (prefers-reduced-motion: reduce) {
|
|
87
|
+
::view-transition-group(*),
|
|
88
|
+
::view-transition-old(*),
|
|
89
|
+
::view-transition-new(*) {
|
|
90
|
+
animation: none !important;
|
|
91
|
+
animation-duration: 0.01ms !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## 2. React 19 & Next.js App Router Integration
|
|
99
|
+
|
|
100
|
+
### 2.1 DirectionalTransition Component
|
|
101
|
+
```tsx
|
|
102
|
+
import * as React from 'react';
|
|
103
|
+
import { ViewTransition } from 'react';
|
|
104
|
+
|
|
105
|
+
interface DirectionalTransitionProps {
|
|
106
|
+
children: React.ReactNode;
|
|
107
|
+
direction?: 'forward' | 'back' | 'none';
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function DirectionalTransition({
|
|
111
|
+
children,
|
|
112
|
+
direction = 'none',
|
|
113
|
+
}: DirectionalTransitionProps) {
|
|
114
|
+
return (
|
|
115
|
+
<ViewTransition
|
|
116
|
+
default="none"
|
|
117
|
+
enter={{
|
|
118
|
+
'nav-forward': 'slide-from-right',
|
|
119
|
+
'nav-back': 'slide-from-left',
|
|
120
|
+
default: 'none',
|
|
121
|
+
}}
|
|
122
|
+
exit={{
|
|
123
|
+
'nav-forward': 'slide-to-left',
|
|
124
|
+
'nav-back': 'slide-to-right',
|
|
125
|
+
default: 'none',
|
|
126
|
+
}}
|
|
127
|
+
>
|
|
128
|
+
{children}
|
|
129
|
+
</ViewTransition>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### 2.2 Shared Element Morphing Example
|
|
135
|
+
```tsx
|
|
136
|
+
import { ViewTransition } from 'react';
|
|
137
|
+
import Link from 'next/link';
|
|
138
|
+
|
|
139
|
+
interface ProductCardProps {
|
|
140
|
+
id: string;
|
|
141
|
+
title: string;
|
|
142
|
+
imageUrl: string;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function ProductCard({ id, title, imageUrl }: ProductCardProps) {
|
|
146
|
+
return (
|
|
147
|
+
<div className="product-card">
|
|
148
|
+
<Link href={`/products/${id}`}>
|
|
149
|
+
<ViewTransition name={`product-hero-${id}`} share="morph" default="none">
|
|
150
|
+
<img src={imageUrl} alt={title} className="product-thumb" />
|
|
151
|
+
</ViewTransition>
|
|
152
|
+
<h3>{title}</h3>
|
|
153
|
+
</Link>
|
|
154
|
+
</div>
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 3. Astro v5 Multi-Page Navigation
|
|
162
|
+
|
|
163
|
+
### 3.1 Layout Root Setup
|
|
164
|
+
```astro
|
|
165
|
+
---
|
|
166
|
+
// src/layouts/BaseLayout.astro
|
|
167
|
+
import { ClientRouter } from 'astro:transitions';
|
|
168
|
+
---
|
|
169
|
+
<!doctype html>
|
|
170
|
+
<html lang="en">
|
|
171
|
+
<head>
|
|
172
|
+
<meta charset="utf-8" />
|
|
173
|
+
<ClientRouter />
|
|
174
|
+
</head>
|
|
175
|
+
<body>
|
|
176
|
+
<slot />
|
|
177
|
+
</body>
|
|
178
|
+
</html>
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### 3.2 Astro Directives
|
|
182
|
+
- `transition:name="unique-id"`: Pair elements across routes for shared morphing.
|
|
183
|
+
- `transition:animate="morph" | "slide" | "fade"`: Define default route animation.
|
|
184
|
+
- `transition:persist`: Preserve state and DOM elements (video players, inputs) across navigations.
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## 4. Core Web Vitals (INP < 200ms) Performance Budget
|
|
189
|
+
|
|
190
|
+
1. **Composited Properties Only**: Animate strictly `transform` and `opacity`. Never animate `width`, `height`, `top`, `left`, `margin`, or `padding`.
|
|
191
|
+
2. **Fast Mutation Callbacks**: Ensure DOM updates in `document.startViewTransition(fn)` complete in under 50ms.
|
|
192
|
+
3. **Data Pre-Fetching**: Always fetch route data or pre-cache images before initiating transitions. Never execute asynchronous I/O inside the synchronous transition callback.
|
|
193
|
+
4. **Main Thread Yielding**: For large DOM re-renders, chunk operations with `scheduler.yield()` or `requestIdleCallback()`.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## 5. Anti-Patterns & Pitfalls
|
|
198
|
+
|
|
199
|
+
### 5.1 Animating Layout Dimensions (Reflow Jank)
|
|
200
|
+
- **Bad**: Animating `height: 0 -> 400px` triggers reflow on every frame.
|
|
201
|
+
- **Good**: Animate `transform: scaleY(0) -> scaleY(1)` for GPU-accelerated compositing.
|
|
202
|
+
|
|
203
|
+
### 5.2 Non-Unique Shared Transition Name Collision
|
|
204
|
+
- **Bad**: Rendering multiple items with `name="item-hero"` throws `InvalidStateError`.
|
|
205
|
+
- **Good**: Scope names dynamically: `name={`item-hero-${item.id}`}`.
|
|
206
|
+
|
|
207
|
+
### 5.3 Omission of `default="none"`
|
|
208
|
+
- **Bad**: A `<ViewTransition>` without `default="none"` flashes a full crossfade on every background data revalidation.
|
|
209
|
+
- **Good**: Always declare `default="none"` to explicitly opt into intentional transitions only.
|
|
210
|
+
|
|
211
|
+
---
|
|
212
|
+
|
|
213
|
+
## 6. Frequency-Based Animation Budget (Emil Kowalski)
|
|
214
|
+
|
|
215
|
+
Animation latency must be inversely proportional to the frequency of user interaction.
|
|
216
|
+
|
|
217
|
+
| Tier | Interaction Category | Components / Triggers | Max Allowed Duration | Easing / Physics Curve | Rationale |
|
|
218
|
+
| :--- | :--- | :--- | :--- | :--- | :--- |
|
|
219
|
+
| **Tier 0** | **High-Frequency (Instant)** | Hotkey invocation (`Cmd+K`, `Ctrl+P`), Combobox filtering, Autocomplete suggestions, Tooltips on hover, Focus rings, Keyboard tab switching | **0ms (Instant)** | Linear / step-start (zero transition) | User expects instant responsiveness. Any spring or slide animation on hotkeys creates perceived lag and motion sickness. |
|
|
220
|
+
| **Tier 1** | **Micro-Interactions (Snappy)** | Button press/depress, Checkbox check, Switch toggle, Accordion single item toggle, Dropdown menu popover | **100ms – 150ms** | Snappy Spring: `stiffness: 450, damping: 35, mass: 1` (or `cubic-bezier(0.16, 1, 0.3, 1)`) | Provides tactile confirmation that input was registered without delaying subsequent user actions. |
|
|
221
|
+
| **Tier 2** | **Medium-Frequency Overlays (Strictly Bounded)** | Modal Dialogs, Slide-over Drawers / Sheets, Alert Dialogs, Toast Notifications | **150ms – 250ms** *(Strict ceiling: 250ms)* | Bounded Spring: `stiffness: 320, damping: 28, mass: 1` (or `cubic-bezier(0.32, 0.72, 0, 1)`) | Communicates spatial context (where overlay originated) while swiftly revealing actionable UI. Exceeding 250ms is anti-pattern slop. |
|
|
222
|
+
| **Tier 3** | **Low-Frequency Narrative (Expressive)** | Route / Page transitions, First-load Hero reveal, Milestone celebration modals, Onboarding walkthrough steps | **250ms – 400ms** *(Strict ceiling: 400ms)* | Gentle Spring: `stiffness: 220, damping: 24, mass: 1` | Storytelling and spatial orientation for infrequent events. Never exceed 400ms under any circumstance. |
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 7. Harmonic Oscillator Spring Physics Parameters
|
|
227
|
+
|
|
228
|
+
Physical UI motion is governed by the second-order harmonic oscillator equation:
|
|
229
|
+
$$m \frac{d^2 x}{dt^2} + c \frac{dx}{dt} + k x = 0$$
|
|
230
|
+
|
|
231
|
+
Where $m = 1.0$ (fixed mass), $k$ is spring tension (stiffness), and $c$ is friction (damping).
|
|
232
|
+
The damping ratio $\zeta = \frac{c}{2\sqrt{k \cdot m}}$ must remain in the **near-critically damped range ($\zeta \approx 0.75 - 0.85$)** to guarantee rapid arrival without amateurish cartoon bouncing.
|
|
233
|
+
|
|
234
|
+
| Profile Name | Target Use Cases | Mass ($m$) | Stiffness ($k$) | Damping ($c$) | Damping Ratio ($\zeta$) | Settling Time ($t_s$) | Perceived Feel |
|
|
235
|
+
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
|
236
|
+
| **Snappy Micro** | Checkbox check, Switch toggle, Button active press, Icon morph | `1.0` | `450` | `35` | $\approx 0.82$ | $\approx 120\text{ms}$ | Tactile, crisp, mechanical, immediate |
|
|
237
|
+
| **Bounded Overlay** | Modal Dialogs, Slide-over Sheet / Drawers, Context Menus | `1.0` | `320` | `28` | $\approx 0.78$ | $\approx 180\text{ms}$ | Fluid, responsive, polished, spatial |
|
|
238
|
+
| **Gentle Morph** | Accordion expansion, Shared element displacement, Card open | `1.0` | `220` | `24` | $\approx 0.81$ | $\approx 240\text{ms}$ | Smooth, readable, calm, elegant |
|
|
239
|
+
| **Immediate Rigid** | Hotkey palettes (`Cmd+K`), Combobox search dropdowns | `N/A` | `N/A` | `N/A` | `1.0` (Critical) | `0ms` | Instantaneous, zero latency |
|
|
240
|
+
|
|
241
|
+
### Banned Spring Configurations
|
|
242
|
+
- Cartoonish Bouncy Springs: $\zeta < 0.6$ (e.g. `stiffness: 500, damping: 10`), which oscillate 4+ times before settling.
|
|
243
|
+
- Heavy Sluggish Inertia: $m > 1.5$, which causes elements to feel slow and unresponsive.
|
|
244
|
+
|
|
245
|
+
---
|
|
246
|
+
|
|
247
|
+
## 8. Single Smooth-Scroll Engine Exclusivity Lock
|
|
248
|
+
|
|
249
|
+
### Architectural Exclusivity Rule
|
|
250
|
+
A repository must install and initialize **EXACTLY ONE** smooth-scroll coordinator across its entire tree:
|
|
251
|
+
- **Recommended**: `lenis` (`lenis/react`), which works on native scroll coordinates without translating the root element, preserving full accessibility and integrating cleanly with GSAP and Framer Motion.
|
|
252
|
+
- **Alternative**: Native CSS `html { scroll-behavior: smooth; }`.
|
|
253
|
+
- **Strict Prohibition**: Never install `@studio-freight/lenis` (or `lenis`) AND `locomotive-scroll` simultaneously. Dual `wheel` listeners fight for scroll coordinates, generating frame drops, micro-stuttering, cursor jumping, and breaking native keyboard navigation (`Tab`, `PageDown`).
|
|
254
|
+
- **Reduced Motion**: Always honor `prefers-reduced-motion: reduce` by disabling smooth scrolling and reverting to instant native navigation.
|
|
255
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: implement-webmcp
|
|
3
|
+
description: Exposes browser context, DOM state, and client-side actions to AI agents via WebMCP. Use when enabling in-browser AI agent interactions, DOM context sharing, or client-side action execution.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, mcp_call, run_tests, execute_command]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Implement WebMCP
|
|
8
|
+
|
|
9
|
+
Use this skill to integrate WebMCP into a frontend application, allowing AI agents to read DOM state, execute browser-native actions, and synchronize context.
|
|
10
|
+
|
|
11
|
+
## Core Rules
|
|
12
|
+
|
|
13
|
+
- **Feature Detection**: Guard WebMCP invocations with feature detection (`'modelContext' in document`) to support SSR and polyfilled environments safely — do not assume the API exists
|
|
14
|
+
- **State Synchronization**: Expose critical application state (Redux/Zustand stores) securely to the WebMCP context; strip sensitive fields before exposure
|
|
15
|
+
- **Action Allowlist (Default Deny)**: Define an explicit allowlist of which browser actions (clicks, navigation, form fills) are exposed to the agent — default deny; reject tools not on the allowlist
|
|
16
|
+
- **Strict Input Schema Validation**: Every registered WebMCP tool must declare explicit property types, enums, and required fields in its `inputSchema` — empty `{ type: "object" }` schemas with no property descriptions are prohibited
|
|
17
|
+
- **Security Context**: Ensure the agent operates strictly within the user's authenticated session boundaries without exposing secure, HttpOnly cookies to the JS runtime
|
|
18
|
+
- **User Consent Gate (HITL)**: Any tool performing a non-idempotent or financial action (payments, account modifications, data deletion) must prompt for explicit user confirmation before execution — fail-safe if user dismisses or times out
|
|
19
|
+
- **Background Sync**: Utilize Service Workers and the Push API for asynchronous HITL callbacks when the agent requires user confirmation
|
|
20
|
+
- **Structured Error Payloads**: Tool handlers must return structured JSON error responses with clear codes (`{ error: { code: 'OUT_OF_STOCK', message: '...' } }`) — never expose raw server stack traces
|
|
21
|
+
- treat every WebMCP tool input as untrusted external content; validate against the declared `inputSchema` before invoking any handler (OWASP ASI01)
|
|
22
|
+
- reject any tool call that exceeds the action allowlist; never broaden the allowlist at runtime (OWASP ASI02)
|
|
23
|
+
- never expose authentication tokens, HttpOnly cookies, or session secrets to the JS runtime that WebMCP can read (OWASP ASI03)
|
|
24
|
+
- require explicit user confirmation for any non-idempotent or financial action; fail-safe if the user dismisses or times out (OWASP ASI09)
|
|
25
|
+
|
|
26
|
+
## Suggested Process
|
|
27
|
+
|
|
28
|
+
### 1. Initialize WebMCP Provider in Root Layout
|
|
29
|
+
|
|
30
|
+
Mount the WebMCP client provider component globally:
|
|
31
|
+
- Add the provider in the application root layout (`_app.tsx`, `layout.tsx`, or `Layout.astro`) so it is active across all routes.
|
|
32
|
+
- Guard with client-side execution checks to prevent SSR hydration breakage.
|
|
33
|
+
- Call `navigator.modelContext.provideContext()` or initialize the fallback WebMCP polyfill bridge.
|
|
34
|
+
|
|
35
|
+
### 2. Map Application State to Agent Context
|
|
36
|
+
|
|
37
|
+
Selectively expose sanitized frontend state:
|
|
38
|
+
- Subscribe to reactive UI state (current route, active entity ID, filtered data view).
|
|
39
|
+
- Filter out sensitive fields, passwords, authentication tokens, and private user identifiers.
|
|
40
|
+
- Emit updated context payloads when relevant state transitions occur.
|
|
41
|
+
|
|
42
|
+
### 3. Register Browser Actions & Action Handlers
|
|
43
|
+
|
|
44
|
+
Declare structured client-side tools and actions:
|
|
45
|
+
- Define action schemas specifying action name, description, and required parameters.
|
|
46
|
+
- Wire handlers to execute client actions (e.g., navigating tabs, applying filters, populating forms).
|
|
47
|
+
- Return clear success/error execution status back to the agent runtime.
|
|
48
|
+
|
|
49
|
+
### 4. Enforce Session Isolation & Security Boundaries
|
|
50
|
+
|
|
51
|
+
Establish security guardrails:
|
|
52
|
+
- Verify that agent actions cannot trigger unauthorized transactions or bypass UI permission rules.
|
|
53
|
+
- Maintain client auth tokens in HttpOnly cookies inaccessible to the WebMCP script scope.
|
|
54
|
+
- Implement explicit user confirmation dialogues for destructive or irreversible actions.
|
|
55
|
+
|
|
56
|
+
### 5. Configure Background Callbacks & HITL Approvals
|
|
57
|
+
|
|
58
|
+
Set up asynchronous agent communication:
|
|
59
|
+
- Register Service Worker event listeners for push notifications or background synchronization.
|
|
60
|
+
- Implement modal prompts for Human-in-the-Loop confirmation before executing gated actions.
|
|
61
|
+
- Provide clear visual indicators when an agent is actively reading context or performing actions.
|
|
62
|
+
|
|
63
|
+
### 6. Verify and Test in Browser Runtime
|
|
64
|
+
|
|
65
|
+
Use skill: `frontend-testing`
|
|
66
|
+
- Author end-to-end and component tests validating WebMCP provider mounting and context emission.
|
|
67
|
+
- Simulate agent action execution and verify state changes update the DOM accurately.
|
|
68
|
+
|
|
69
|
+
## Checklist
|
|
70
|
+
|
|
71
|
+
- [ ] WebMCP provider mounted in global root layout with SSR safety guards (`'modelContext' in document`)
|
|
72
|
+
- [ ] Sanitized application state mapped to agent context without leaking credentials
|
|
73
|
+
- [ ] Client-side actions and input schemas explicitly defined and registered (allowlist as code)
|
|
74
|
+
- [ ] Security boundaries and permission checks enforced on all action handlers
|
|
75
|
+
- [ ] HITL confirmation modal wired for destructive/financial actions (fail-safe on dismiss/timeout)
|
|
76
|
+
- [ ] Service Worker event listeners registered for push notifications/background sync
|
|
77
|
+
- [ ] Visual indicator when agent actively reading context or performing actions
|
|
78
|
+
- [ ] Component and integration tests added for context emission and action execution
|
|
79
|
+
- [ ] MCP Registry coordination with backend server cards
|
|
80
|
+
- [ ] Permission parity: agent actions cannot bypass UI permission rules
|
|
81
|
+
- [ ] Structured error responses with codes (never raw stack traces)
|
|
82
|
+
- [ ] `implementation-result.json` emitted with action allowlist and validation run
|
|
83
|
+
|
|
84
|
+
## Output Contracts
|
|
85
|
+
|
|
86
|
+
When the WebMCP integration is part of a coordinated multi-role delivery, emit:
|
|
87
|
+
|
|
88
|
+
- **`contracts/schemas/implementation-result.json`** — Required fields: `change_summary`, `files_touched[]`, and `validation_run` output confirming the WebMCP connection initializes successfully.
|
|
89
|
+
- For human-readable reports, a markdown summary of the action allowlist, the sanitized state fields, and the HITL confirmation flow.
|
|
90
|
+
|
|
91
|
+
Skip emission for trivial local experiments that do not cross a role boundary.
|
|
92
|
+
|
|
93
|
+
## Failure Modes
|
|
94
|
+
|
|
95
|
+
- **SSR hydration breakage**: the WebMCP provider runs server-side and breaks hydration. Mitigation: guard with client-side execution checks; mount in the global root layout only.
|
|
96
|
+
- **Action allowlist too broad**: an action is added to the WebMCP allowlist without security review. Mitigation: default deny; every action requires explicit allowlist registration.
|
|
97
|
+
- **Empty input schema**: a tool is registered with `{ type: "object" }` and no property descriptions. Mitigation: enforce explicit property types, enums, and required fields.
|
|
98
|
+
- **Sensitive state exposed**: passwords, tokens, or PII are included in the WebMCP context. Mitigation: filter sensitive fields before `provideContext()`; never expose auth tokens or HttpOnly cookies.
|
|
99
|
+
- **No HITL gate on financial action**: a payment or account-modification tool runs without explicit user confirmation. Mitigation: require HITL confirmation modal for any non-idempotent or financial action; fail-safe on dismiss or timeout.
|
|
100
|
+
- **Raw stack trace in error response**: a tool handler returns the server stack trace in the error payload. Mitigation: return structured JSON error responses with codes; never expose raw stack traces.
|
|
101
|
+
- **Browser feature not detected**: the code assumes `'modelContext' in navigator` is always true. Mitigation: feature-detect with `in document` checks; provide a fallback polyfill bridge.
|
|
102
|
+
- **Action bypasses UI permission rules**: an agent action triggers a transaction the user could not perform via UI. Mitigation: enforce the same permission rules the UI enforces; reject bypassed paths.
|
|
103
|
+
- **Service Worker HITL failure**: push notification not delivered. Mitigation: fallback to in-app modal; offline queue for confirmations.
|
|
104
|
+
|
|
105
|
+
## Security Guardrails (OWASP ASI)
|
|
106
|
+
|
|
107
|
+
- **ASI01 Goal Hijack**: agent inputs may try to reframe the user's goal through a WebMCP tool. Validate every tool input against the declared `inputSchema` before invoking the handler.
|
|
108
|
+
- **ASI02 Tool Misuse**: only allowlisted actions may run; reject any tool call outside the allowlist.
|
|
109
|
+
- **ASI03 Identity & Privilege Abuse**: authentication tokens and HttpOnly cookies must stay outside the JS runtime; the WebMCP context must not expose them.
|
|
110
|
+
- **ASI07 Inter-Agent Communication**: WebMCP tool responses are untrusted inputs; validate before passing to downstream logic.
|
|
111
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present a WebMCP action as "safe" without an explicit HITL gate for non-idempotent or financial effects.
|
|
112
|
+
|
|
113
|
+
## Related Skills
|
|
114
|
+
|
|
115
|
+
- **configure-mcp**: Coordinate browser-side WebMCP with backend MCP server cards and registries
|
|
116
|
+
- **add-ui-component**: Mount WebMCP provider components and action triggers within the UI layout
|
|
117
|
+
- **integrate-api-client**: Wire frontend client state and API communication behind WebMCP actions
|
|
118
|
+
- **frontend-testing**: Test WebMCP context emission and client-side action execution
|
|
119
|
+
- **security-audit**: Audit client-side context exposure and verify PII/secret protection
|
|
120
|
+
|
|
121
|
+
Last updated: 2026-09-25
|