@danieljvdm/dev-kit 1.0.2 → 2.0.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/README.md +6 -6
- package/package.json +1 -1
- package/skill-sources.jsonc +2 -33
- package/skill-sources.lock.json +15 -117
- package/skills/animate/LICENSE +21 -0
- package/skills/animate/NOTICE +10 -0
- package/skills/animate/SKILL.md +34 -0
- package/skills/animate/references/gestures.md +27 -0
- package/skills/animate/references/glossary.md +136 -0
- package/skills/animate/references/implementation.md +22 -0
- package/skills/animate/references/opportunities.md +18 -0
- package/skills/animate/references/principles.md +48 -0
- package/skills/animate/references/review.md +19 -0
- package/skills/cloudflare-workers/LICENSE +202 -0
- package/skills/cloudflare-workers/NOTICE +9 -0
- package/skills/cloudflare-workers/SKILL.md +26 -0
- package/skills/cloudflare-workers/references/durable-objects.md +68 -0
- package/skills/cloudflare-workers/references/sandbox.md +48 -0
- package/skills/cloudflare-workers/references/workers.md +63 -0
- package/skills/cloudflare-workers/references/wrangler.md +56 -0
- package/skills/design-ui/LICENSE +21 -0
- package/skills/design-ui/NOTICE +8 -0
- package/skills/design-ui/SKILL.md +29 -0
- package/skills/design-ui/references/appearance.md +22 -0
- package/skills/design-ui/references/components.md +33 -0
- package/skills/design-ui/references/exploration.md +50 -0
- package/skills/design-ui/references/libraries.md +39 -0
- package/skills/design-ui/references/themes.md +23 -0
- package/skills/dev-kit/SKILL.md +19 -38
- package/skills/dev-kit/references/cloudflare-worker-api.md +1 -1
- package/skills/dev-kit/references/skills.md +2 -2
- package/skills/effect-development/SKILL.md +27 -0
- package/skills/effect-development/agents/openai.yaml +4 -0
- package/skills/effect-development/references/api/index.md +32 -0
- package/skills/effect-development/references/api/schema-codecs.md +15 -0
- package/skills/{build-effect-apis/references → effect-development/references/api}/verification.md +10 -5
- package/skills/{effect-architecture-audit/SKILL.md → effect-development/references/architecture/index.md} +1 -6
- package/skills/{effect-atom-state/references → effect-development/references/atom}/effect-atom-client.md +8 -6
- package/skills/{effect-atom-state/references → effect-development/references/atom}/effect-atom-testing.md +7 -2
- package/skills/effect-development/references/atom/index.md +40 -0
- package/skills/{build-effect-clis/references → effect-development/references/cli}/entrypoints-and-testing.md +6 -2
- package/skills/effect-development/references/cli/index.md +39 -0
- package/skills/effect-development/references/setup.md +15 -0
- package/skills/open-pull-request/SKILL.md +10 -70
- package/skills/open-pull-request/references/evidence.md +22 -0
- package/skills/open-pull-request/references/explanation.md +21 -0
- package/skills/open-pull-request/references/publication.md +21 -0
- package/skills/sentry/LICENSE +202 -0
- package/skills/sentry/LICENSE-UPSTREAM +21 -0
- package/skills/sentry/NOTICE +14 -0
- package/skills/sentry/SKILL.md +33 -0
- package/skills/sentry/references/alert-payloads.md +105 -0
- package/skills/sentry/references/alerts.md +17 -0
- package/skills/sentry/references/artifacts.md +25 -0
- package/skills/sentry/references/auth-token.md +65 -0
- package/skills/sentry/references/concepts/ai-monitoring.md +131 -0
- package/skills/sentry/references/concepts/choosing-a-signal.md +78 -0
- package/skills/sentry/references/concepts/crons.md +50 -0
- package/skills/sentry/references/concepts/data-scrubbing.md +43 -0
- package/skills/sentry/references/concepts/errors.md +40 -0
- package/skills/sentry/references/concepts/logging.md +85 -0
- package/skills/sentry/references/concepts/metrics.md +49 -0
- package/skills/sentry/references/concepts/monitors.md +78 -0
- package/skills/sentry/references/concepts/profiling.md +38 -0
- package/skills/sentry/references/concepts/reduce-volume.md +49 -0
- package/skills/sentry/references/concepts/releases.md +43 -0
- package/skills/sentry/references/concepts/session-replay.md +35 -0
- package/skills/sentry/references/concepts/tracing.md +54 -0
- package/skills/sentry/references/concepts/user-feedback.md +36 -0
- package/skills/sentry/references/debug-artifacts/android.md +68 -0
- package/skills/sentry/references/debug-artifacts/apple.md +96 -0
- package/skills/sentry/references/debug-artifacts/dotnet.md +70 -0
- package/skills/sentry/references/debug-artifacts/flutter.md +65 -0
- package/skills/sentry/references/debug-artifacts/index.md +75 -0
- package/skills/sentry/references/debug-artifacts/javascript.md +94 -0
- package/skills/sentry/references/debug-artifacts/matching.md +73 -0
- package/skills/sentry/references/debug-artifacts/react-native.md +75 -0
- package/skills/sentry/references/first-error-setup.md +25 -0
- package/skills/sentry/references/instrumentation.md +30 -0
- package/skills/sentry/references/issues.md +32 -0
- package/skills/sentry/references/new-project.md +17 -0
- package/skills/sentry/references/otel-exporter.md +30 -0
- package/skills/sentry/references/release-workflow.md +31 -0
- package/skills/sentry/references/releases/ci-pipeline.md +214 -0
- package/skills/sentry/references/releases/index.md +93 -0
- package/skills/sentry/references/releases/suspect-commits.md +155 -0
- package/skills/sentry/references/releases/tagging.md +131 -0
- package/skills/sentry/references/releases/troubleshooting.md +67 -0
- package/skills/sentry/references/sdks/android/crons.md +305 -0
- package/skills/sentry/references/sdks/android/error-monitoring.md +800 -0
- package/skills/sentry/references/sdks/android/index.md +748 -0
- package/skills/sentry/references/sdks/android/integrations.md +48 -0
- package/skills/sentry/references/sdks/android/logging.md +374 -0
- package/skills/sentry/references/sdks/android/metrics.md +288 -0
- package/skills/sentry/references/sdks/android/profiling.md +397 -0
- package/skills/sentry/references/sdks/android/session-replay.md +406 -0
- package/skills/sentry/references/sdks/android/tracing.md +861 -0
- package/skills/sentry/references/sdks/browser/error-monitoring.md +861 -0
- package/skills/sentry/references/sdks/browser/index.md +714 -0
- package/skills/sentry/references/sdks/browser/logging.md +315 -0
- package/skills/sentry/references/sdks/browser/profiling.md +236 -0
- package/skills/sentry/references/sdks/browser/session-replay.md +586 -0
- package/skills/sentry/references/sdks/browser/tracing.md +561 -0
- package/skills/sentry/references/sdks/browser/user-feedback.md +354 -0
- package/skills/sentry/references/sdks/cloudflare/ai-monitoring.md +661 -0
- package/skills/sentry/references/sdks/cloudflare/crons.md +231 -0
- package/skills/sentry/references/sdks/cloudflare/durable-objects.md +381 -0
- package/skills/sentry/references/sdks/cloudflare/error-monitoring.md +329 -0
- package/skills/sentry/references/sdks/cloudflare/index.md +698 -0
- package/skills/sentry/references/sdks/cloudflare/logging.md +169 -0
- package/skills/sentry/references/sdks/cloudflare/nodejs-compat.md +134 -0
- package/skills/sentry/references/sdks/cloudflare/tracing.md +475 -0
- package/skills/sentry/references/sdks/cocoa/error-monitoring.md +394 -0
- package/skills/sentry/references/sdks/cocoa/index.md +497 -0
- package/skills/sentry/references/sdks/cocoa/logging.md +209 -0
- package/skills/sentry/references/sdks/cocoa/metrics.md +136 -0
- package/skills/sentry/references/sdks/cocoa/profiling.md +223 -0
- package/skills/sentry/references/sdks/cocoa/session-replay.md +257 -0
- package/skills/sentry/references/sdks/cocoa/tracing.md +524 -0
- package/skills/sentry/references/sdks/cocoa/user-feedback.md +310 -0
- package/skills/sentry/references/sdks/dotnet/crons.md +465 -0
- package/skills/sentry/references/sdks/dotnet/error-monitoring.md +1100 -0
- package/skills/sentry/references/sdks/dotnet/index.md +614 -0
- package/skills/sentry/references/sdks/dotnet/logging.md +556 -0
- package/skills/sentry/references/sdks/dotnet/metrics.md +229 -0
- package/skills/sentry/references/sdks/dotnet/profiling.md +296 -0
- package/skills/sentry/references/sdks/dotnet/tracing.md +897 -0
- package/skills/sentry/references/sdks/elixir/crons.md +371 -0
- package/skills/sentry/references/sdks/elixir/error-monitoring.md +335 -0
- package/skills/sentry/references/sdks/elixir/index.md +383 -0
- package/skills/sentry/references/sdks/elixir/logging.md +239 -0
- package/skills/sentry/references/sdks/elixir/tracing.md +233 -0
- package/skills/sentry/references/sdks/flutter/ecosystem-integrations.md +70 -0
- package/skills/sentry/references/sdks/flutter/error-monitoring.md +312 -0
- package/skills/sentry/references/sdks/flutter/index.md +728 -0
- package/skills/sentry/references/sdks/flutter/logging.md +387 -0
- package/skills/sentry/references/sdks/flutter/metrics.md +310 -0
- package/skills/sentry/references/sdks/flutter/profiling.md +214 -0
- package/skills/sentry/references/sdks/flutter/session-replay.md +308 -0
- package/skills/sentry/references/sdks/flutter/tracing.md +502 -0
- package/skills/sentry/references/sdks/go/crons.md +270 -0
- package/skills/sentry/references/sdks/go/error-monitoring.md +361 -0
- package/skills/sentry/references/sdks/go/index.md +324 -0
- package/skills/sentry/references/sdks/go/logging.md +354 -0
- package/skills/sentry/references/sdks/go/metrics.md +273 -0
- package/skills/sentry/references/sdks/go/profiling.md +46 -0
- package/skills/sentry/references/sdks/go/tracing.md +366 -0
- package/skills/sentry/references/sdks/index.md +41 -0
- package/skills/sentry/references/sdks/nestjs/ai-monitoring.md +410 -0
- package/skills/sentry/references/sdks/nestjs/crons.md +268 -0
- package/skills/sentry/references/sdks/nestjs/error-monitoring.md +729 -0
- package/skills/sentry/references/sdks/nestjs/index.md +699 -0
- package/skills/sentry/references/sdks/nestjs/logging.md +174 -0
- package/skills/sentry/references/sdks/nestjs/metrics.md +243 -0
- package/skills/sentry/references/sdks/nestjs/profiling.md +127 -0
- package/skills/sentry/references/sdks/nestjs/tracing.md +762 -0
- package/skills/sentry/references/sdks/nextjs/ai-monitoring.md +494 -0
- package/skills/sentry/references/sdks/nextjs/crons.md +383 -0
- package/skills/sentry/references/sdks/nextjs/error-monitoring.md +974 -0
- package/skills/sentry/references/sdks/nextjs/index.md +491 -0
- package/skills/sentry/references/sdks/nextjs/logging.md +381 -0
- package/skills/sentry/references/sdks/nextjs/metrics.md +411 -0
- package/skills/sentry/references/sdks/nextjs/profiling.md +403 -0
- package/skills/sentry/references/sdks/nextjs/session-replay.md +462 -0
- package/skills/sentry/references/sdks/nextjs/tracing.md +628 -0
- package/skills/sentry/references/sdks/node/ai-monitoring.md +303 -0
- package/skills/sentry/references/sdks/node/crons.md +432 -0
- package/skills/sentry/references/sdks/node/error-monitoring.md +1125 -0
- package/skills/sentry/references/sdks/node/index.md +942 -0
- package/skills/sentry/references/sdks/node/logging.md +380 -0
- package/skills/sentry/references/sdks/node/metrics.md +278 -0
- package/skills/sentry/references/sdks/node/profiling.md +373 -0
- package/skills/sentry/references/sdks/node/tracing.md +878 -0
- package/skills/sentry/references/sdks/php/ai-monitoring.md +310 -0
- package/skills/sentry/references/sdks/php/crons.md +265 -0
- package/skills/sentry/references/sdks/php/error-monitoring.md +626 -0
- package/skills/sentry/references/sdks/php/index.md +362 -0
- package/skills/sentry/references/sdks/php/laravel.md +542 -0
- package/skills/sentry/references/sdks/php/logging.md +242 -0
- package/skills/sentry/references/sdks/php/metrics.md +193 -0
- package/skills/sentry/references/sdks/php/profiling.md +115 -0
- package/skills/sentry/references/sdks/php/symfony.md +552 -0
- package/skills/sentry/references/sdks/php/tracing.md +516 -0
- package/skills/sentry/references/sdks/python/ai-monitoring.md +351 -0
- package/skills/sentry/references/sdks/python/crons.md +218 -0
- package/skills/sentry/references/sdks/python/error-monitoring.md +292 -0
- package/skills/sentry/references/sdks/python/index.md +361 -0
- package/skills/sentry/references/sdks/python/logging.md +234 -0
- package/skills/sentry/references/sdks/python/metrics.md +154 -0
- package/skills/sentry/references/sdks/python/profiling.md +120 -0
- package/skills/sentry/references/sdks/python/tracing.md +364 -0
- package/skills/sentry/references/sdks/react/error-monitoring.md +1607 -0
- package/skills/sentry/references/sdks/react/index.md +492 -0
- package/skills/sentry/references/sdks/react/logging.md +364 -0
- package/skills/sentry/references/sdks/react/profiling.md +322 -0
- package/skills/sentry/references/sdks/react/react-features.md +1272 -0
- package/skills/sentry/references/sdks/react/session-replay.md +1193 -0
- package/skills/sentry/references/sdks/react/tracing.md +1415 -0
- package/skills/sentry/references/sdks/react-native/error-monitoring.md +1481 -0
- package/skills/sentry/references/sdks/react-native/expo-config-plugin.md +45 -0
- package/skills/sentry/references/sdks/react-native/index.md +1030 -0
- package/skills/sentry/references/sdks/react-native/logging.md +444 -0
- package/skills/sentry/references/sdks/react-native/profiling.md +386 -0
- package/skills/sentry/references/sdks/react-native/session-replay.md +704 -0
- package/skills/sentry/references/sdks/react-native/tracing.md +1086 -0
- package/skills/sentry/references/sdks/react-native/user-feedback.md +815 -0
- package/skills/sentry/references/sdks/react-router-framework/error-monitoring.md +127 -0
- package/skills/sentry/references/sdks/react-router-framework/index.md +411 -0
- package/skills/sentry/references/sdks/react-router-framework/logging.md +66 -0
- package/skills/sentry/references/sdks/react-router-framework/profiling.md +57 -0
- package/skills/sentry/references/sdks/react-router-framework/react-router-framework-features.md +110 -0
- package/skills/sentry/references/sdks/react-router-framework/session-replay.md +67 -0
- package/skills/sentry/references/sdks/react-router-framework/tracing.md +96 -0
- package/skills/sentry/references/sdks/react-router-framework/user-feedback.md +71 -0
- package/skills/sentry/references/sdks/ruby/crons.md +184 -0
- package/skills/sentry/references/sdks/ruby/error-monitoring.md +248 -0
- package/skills/sentry/references/sdks/ruby/index.md +297 -0
- package/skills/sentry/references/sdks/ruby/logging.md +168 -0
- package/skills/sentry/references/sdks/ruby/metrics.md +196 -0
- package/skills/sentry/references/sdks/ruby/migration.md +321 -0
- package/skills/sentry/references/sdks/ruby/profiling.md +107 -0
- package/skills/sentry/references/sdks/ruby/tracing.md +388 -0
- package/skills/sentry/references/sdks/svelte/error-monitoring.md +456 -0
- package/skills/sentry/references/sdks/svelte/index.md +467 -0
- package/skills/sentry/references/sdks/svelte/logging.md +344 -0
- package/skills/sentry/references/sdks/svelte/session-replay.md +369 -0
- package/skills/sentry/references/sdks/svelte/tracing.md +406 -0
- package/skills/sentry/references/sdks/tanstack-start/error-monitoring.md +149 -0
- package/skills/sentry/references/sdks/tanstack-start/index.md +381 -0
- package/skills/sentry/references/sdks/tanstack-start/logging.md +74 -0
- package/skills/sentry/references/sdks/tanstack-start/session-replay.md +76 -0
- package/skills/sentry/references/sdks/tanstack-start/tanstackstart-features.md +128 -0
- package/skills/sentry/references/sdks/tanstack-start/tracing.md +123 -0
- package/skills/sentry/references/sdks/tanstack-start/user-feedback.md +81 -0
- package/skills/sentry/references/search-query-language.md +226 -0
- package/skills/sentry/references/semantics/angular.md +7 -0
- package/skills/sentry/references/semantics/app.md +28 -0
- package/skills/sentry/references/semantics/art.md +17 -0
- package/skills/sentry/references/semantics/aws.md +43 -0
- package/skills/sentry/references/semantics/browser.md +34 -0
- package/skills/sentry/references/semantics/cache.md +12 -0
- package/skills/sentry/references/semantics/client.md +8 -0
- package/skills/sentry/references/semantics/cloud.md +12 -0
- package/skills/sentry/references/semantics/cloudflare.md +23 -0
- package/skills/sentry/references/semantics/code.md +11 -0
- package/skills/sentry/references/semantics/culture.md +11 -0
- package/skills/sentry/references/semantics/db.md +21 -0
- package/skills/sentry/references/semantics/device.md +43 -0
- package/skills/sentry/references/semantics/error.md +7 -0
- package/skills/sentry/references/semantics/event.md +8 -0
- package/skills/sentry/references/semantics/exception.md +10 -0
- package/skills/sentry/references/semantics/faas.md +19 -0
- package/skills/sentry/references/semantics/file.md +8 -0
- package/skills/sentry/references/semantics/flag.md +7 -0
- package/skills/sentry/references/semantics/gcp.md +16 -0
- package/skills/sentry/references/semantics/gen_ai.md +53 -0
- package/skills/sentry/references/semantics/general.md +11 -0
- package/skills/sentry/references/semantics/graphql.md +9 -0
- package/skills/sentry/references/semantics/grpc.md +19 -0
- package/skills/sentry/references/semantics/http.md +34 -0
- package/skills/sentry/references/semantics/index.md +63 -0
- package/skills/sentry/references/semantics/jsonrpc.md +8 -0
- package/skills/sentry/references/semantics/jvm.md +12 -0
- package/skills/sentry/references/semantics/koa.md +7 -0
- package/skills/sentry/references/semantics/logger.md +7 -0
- package/skills/sentry/references/semantics/mcp.md +37 -0
- package/skills/sentry/references/semantics/mdc.md +7 -0
- package/skills/sentry/references/semantics/messaging.md +23 -0
- package/skills/sentry/references/semantics/middleware.md +7 -0
- package/skills/sentry/references/semantics/navigation.md +9 -0
- package/skills/sentry/references/semantics/nel.md +11 -0
- package/skills/sentry/references/semantics/network.md +17 -0
- package/skills/sentry/references/semantics/os.md +15 -0
- package/skills/sentry/references/semantics/otel.md +10 -0
- package/skills/sentry/references/semantics/params.md +7 -0
- package/skills/sentry/references/semantics/process.md +14 -0
- package/skills/sentry/references/semantics/react.md +7 -0
- package/skills/sentry/references/semantics/remix.md +7 -0
- package/skills/sentry/references/semantics/resource.md +7 -0
- package/skills/sentry/references/semantics/rpc.md +10 -0
- package/skills/sentry/references/semantics/score.md +10 -0
- package/skills/sentry/references/semantics/sentry.md +69 -0
- package/skills/sentry/references/semantics/server.md +8 -0
- package/skills/sentry/references/semantics/service.md +8 -0
- package/skills/sentry/references/semantics/session.md +7 -0
- package/skills/sentry/references/semantics/state.md +7 -0
- package/skills/sentry/references/semantics/thread.md +8 -0
- package/skills/sentry/references/semantics/timber.md +7 -0
- package/skills/sentry/references/semantics/trpc.md +8 -0
- package/skills/sentry/references/semantics/ui.md +18 -0
- package/skills/sentry/references/semantics/url.md +15 -0
- package/skills/sentry/references/semantics/user.md +17 -0
- package/skills/sentry/references/semantics/user_agent.md +7 -0
- package/skills/sentry/references/semantics/vercel.md +42 -0
- package/skills/sentry/references/setup-verification.md +39 -0
- package/skills/sentry/references/snapshots/github-actions-fanout.md +206 -0
- package/skills/sentry/references/snapshots/github-actions-simple.md +102 -0
- package/skills/sentry/references/snapshots/github-actions-swift-snapshot-testing.md +118 -0
- package/skills/sentry/references/snapshots/index.md +19 -0
- package/skills/sentry/references/snapshots/snapshot-previews.md +100 -0
- package/skills/sentry/references/snapshots/snapshots.md +123 -0
- package/skills/sentry/references/snapshots/wizard-setup.md +134 -0
- package/skills/testing/LICENSE +21 -0
- package/skills/testing/NOTICE +7 -0
- package/skills/testing/SKILL.md +13 -19
- package/skills/testing/agents/openai.yaml +1 -2
- package/skills/testing/references/selection.md +23 -0
- package/skills/testing/references/tdd.md +19 -0
- package/skills/testing/references/test-design.md +17 -0
- package/src/catalog.ts +1 -7
- package/skills/build-effect-apis/SKILL.md +0 -81
- package/skills/build-effect-apis/agents/openai.yaml +0 -4
- package/skills/build-effect-clis/SKILL.md +0 -92
- package/skills/build-effect-clis/agents/openai.yaml +0 -4
- package/skills/effect-architecture-audit/agents/openai.yaml +0 -4
- package/skills/effect-atom-state/SKILL.md +0 -97
- package/skills/effect-atom-state/agents/openai.yaml +0 -4
- package/skills/effect-ts/SKILL.md +0 -35
- package/skills/effect-ts/agents/openai.yaml +0 -4
- /package/skills/{build-effect-apis/references → effect-development/references/api}/cloudflare-workers.md +0 -0
- /package/skills/{build-effect-apis/references → effect-development/references/api}/runtime-assembly.md +0 -0
- /package/skills/{build-effect-apis/references → effect-development/references/api}/server-and-middleware.md +0 -0
- /package/skills/{build-effect-apis/references → effect-development/references/api}/shared-contracts.md +0 -0
- /package/skills/{effect-architecture-audit/references → effect-development/references/architecture}/service-and-boundary-audit.md +0 -0
- /package/skills/{effect-atom-state/references → effect-development/references/atom}/effect-atom-lifecycle.md +0 -0
- /package/skills/{effect-atom-state/references → effect-development/references/atom}/effect-atom-workflows.md +0 -0
- /package/skills/{effect-atom-state/references → effect-development/references/atom}/tanstack-start.md +0 -0
- /package/skills/{build-effect-clis/references → effect-development/references/cli}/command-design.md +0 -0
- /package/skills/{build-effect-clis/references → effect-development/references/cli}/processes-and-platform.md +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Motion principles
|
|
2
|
+
|
|
3
|
+
## Purpose and timing
|
|
4
|
+
|
|
5
|
+
Motion can acknowledge input, explain a state change, or preserve an element's
|
|
6
|
+
identity across states. Choose the smallest effect that communicates that
|
|
7
|
+
relationship. Keep repeated actions quick and avoid movement that distracts
|
|
8
|
+
from reading or acting.
|
|
9
|
+
|
|
10
|
+
Use the project's existing timing tokens. As starting points, small press or
|
|
11
|
+
popover transitions often settle in roughly 100–250ms; larger sheets can need
|
|
12
|
+
more time to communicate travel. Judge perceived response and interruption,
|
|
13
|
+
not a universal 300ms cutoff. Long explanatory sequences have different needs.
|
|
14
|
+
|
|
15
|
+
Ease-out often gives input-triggered motion an immediate response; ease-in-out
|
|
16
|
+
can suit movement between visible positions. Use a spring when retargeting and
|
|
17
|
+
velocity matter. Preserve a deliberate existing curve when it works.
|
|
18
|
+
|
|
19
|
+
## Spatial continuity
|
|
20
|
+
|
|
21
|
+
Anchor a popover's scale to its trigger. Centered dialogs can use a centered
|
|
22
|
+
origin. Choose a modest scale offset when scaling a surface; avoid shrinking
|
|
23
|
+
text into illegibility. A pure fade is valid when spatial movement adds no
|
|
24
|
+
information. Match entry and exit paths to the user's spatial expectation.
|
|
25
|
+
|
|
26
|
+
## Rendering cost
|
|
27
|
+
|
|
28
|
+
Prefer transform and opacity when they express the intended effect cheaply.
|
|
29
|
+
Some expanding content needs layout changes. Contain and measure that work
|
|
30
|
+
instead of forbidding height animation or replacing it with a distorted scale.
|
|
31
|
+
Scope transitions to intended properties.
|
|
32
|
+
|
|
33
|
+
Acceleration depends on the property, browser, and animation engine. Check the
|
|
34
|
+
installed library and inspect a trace before claiming dropped frames or forcing
|
|
35
|
+
a rewrite. [Motion's performance guide](https://motion.dev/docs/performance)
|
|
36
|
+
explains rendering and acceleration constraints. Avoid permanent layer promotion
|
|
37
|
+
or `will-change` without evidence it helps.
|
|
38
|
+
|
|
39
|
+
## Accessibility and interaction
|
|
40
|
+
|
|
41
|
+
Honor reduced-motion preferences by removing or simplifying movement that can
|
|
42
|
+
cause discomfort. Retain useful state feedback, using an instant change or a
|
|
43
|
+
gentle fade where appropriate. Do not require a fade if the user needs no motion.
|
|
44
|
+
|
|
45
|
+
Keep focus, keyboard operation, and accessible state synchronized with the
|
|
46
|
+
interaction. Decorative transitions must not delay availability of controls.
|
|
47
|
+
Gate hover-only effects by hover capability; provide equivalent usable touch
|
|
48
|
+
and keyboard behavior.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Review motion
|
|
2
|
+
|
|
3
|
+
Scope the review to the requested diff, component, or application area. Identify
|
|
4
|
+
the product's timing tokens, interaction frequency, and intended behavior.
|
|
5
|
+
Use [principles](principles.md) and [gestures](gestures.md) for relevant decisions.
|
|
6
|
+
|
|
7
|
+
Report a finding when the evidence shows harm: delayed feedback, jumping on
|
|
8
|
+
interruption, broken focus, unnecessary movement, inconsistent spatial behavior,
|
|
9
|
+
or measured rendering cost. Explain the trigger and user-visible consequence.
|
|
10
|
+
A different easing preference or an arbitrary frequency threshold is not enough.
|
|
11
|
+
|
|
12
|
+
Prioritize functional and accessibility problems, then responsiveness and
|
|
13
|
+
cohesion. Cite locations and propose the smallest useful correction. A clean
|
|
14
|
+
review is valid. Use a table, prose, or a diff according to what explains the
|
|
15
|
+
findings clearly; give a blocking verdict only when the review calls for one.
|
|
16
|
+
|
|
17
|
+
When code alone cannot establish how something feels or performs, label the
|
|
18
|
+
uncertainty and identify a focused visual or performance check. Preserve
|
|
19
|
+
documented tradeoffs unless new evidence shows they no longer hold.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Dev Kit adaptation of https://github.com/cloudflare/skills
|
|
2
|
+
Source revision: 30553f89ae1ef1e3c2917cd09d72dac992bb4e9a
|
|
3
|
+
Apache License 2.0 retained in LICENSE.
|
|
4
|
+
|
|
5
|
+
Modified by Dev Kit: scope-specific entrypoints and references replace copied
|
|
6
|
+
manuals, automatic setup changes, and blanket implementation prescriptions.
|
|
7
|
+
Use the target repository's versions, command authority, and testing policy.
|
|
8
|
+
|
|
9
|
+
Combines workers-best-practices, durable-objects, wrangler, and sandbox-sdk.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: cloudflare-workers
|
|
3
|
+
description: Build, review, or operate Cloudflare Workers, Durable Objects, and Sandbox SDK applications with Wrangler.
|
|
4
|
+
license: Apache-2.0
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Cloudflare Workers
|
|
8
|
+
|
|
9
|
+
Use the repository's architecture, commands, installed types, and runtime
|
|
10
|
+
compatibility settings. Current documentation explains APIs; a maintenance task
|
|
11
|
+
does not by itself call for a dependency or compatibility-date upgrade.
|
|
12
|
+
|
|
13
|
+
Read for the changed boundary:
|
|
14
|
+
|
|
15
|
+
- Worker handlers, streams, bindings, and verification: [Workers](references/workers.md).
|
|
16
|
+
- Durable Object identity, storage, alarms, and WebSockets: [Durable Objects](references/durable-objects.md).
|
|
17
|
+
- Wrangler commands, environments, deployment, and secrets: [Wrangler](references/wrangler.md).
|
|
18
|
+
- An application using `@cloudflare/sandbox`: [Sandbox SDK](references/sandbox.md).
|
|
19
|
+
Ordinary commands inside an agent sandbox do not require the SDK.
|
|
20
|
+
|
|
21
|
+
Resolve the account, environment, and local or remote target before mutations.
|
|
22
|
+
Preserve deployed storage migrations, existing authorization, and host ownership
|
|
23
|
+
of task containers, previews, authentication, and capability URLs. Follow the
|
|
24
|
+
repository's testing policy and verify the behavior at its actual runtime boundary.
|
|
25
|
+
|
|
26
|
+
Attribution is in [NOTICE](NOTICE); terms are in [LICENSE](LICENSE).
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Durable Objects
|
|
2
|
+
|
|
3
|
+
Identify the object's identity, coordination scope, durable state, and callers. Preserve existing class and storage migration history.
|
|
4
|
+
|
|
5
|
+
## State and concurrency
|
|
6
|
+
|
|
7
|
+
Choose an object boundary around the entities that need coordination. Separate
|
|
8
|
+
independent entities when scale requires it; a bounded singleton can still be an
|
|
9
|
+
intentional coordinator. Evaluate its traffic and responsibilities before
|
|
10
|
+
calling it a bottleneck.
|
|
11
|
+
|
|
12
|
+
Use durable storage for state that must survive eviction or failure. Memory may
|
|
13
|
+
cache durable values but cannot be the only record of acknowledged durable work.
|
|
14
|
+
Prefer SQLite for new objects when appropriate; retain existing migration history
|
|
15
|
+
and plan a storage migration explicitly for deployed classes.
|
|
16
|
+
|
|
17
|
+
Understand input and output gates for the storage APIs in use. Synchronous
|
|
18
|
+
SQLite operations without an intervening await can have different guarantees
|
|
19
|
+
from operations separated by asynchronous work. Use a transaction for the
|
|
20
|
+
required atomic unit. Avoid a blanket rule that every await breaks atomicity.
|
|
21
|
+
|
|
22
|
+
Keep `blockConcurrencyWhile` short and tied to initialization or a specific
|
|
23
|
+
invariant. Avoid external network work while holding it. Reconstruct necessary
|
|
24
|
+
state after eviction and make initialization safe to repeat.
|
|
25
|
+
|
|
26
|
+
Check schema changes against existing data, including partially completed
|
|
27
|
+
upgrades when relevant. Consult the [rules of Durable Objects](https://developers.cloudflare.com/durable-objects/best-practices/rules-of-durable-objects/)
|
|
28
|
+
and the installed storage API before relying on concurrency guarantees.
|
|
29
|
+
|
|
30
|
+
## Calls and lifecycle
|
|
31
|
+
|
|
32
|
+
Use typed RPC for service calls where supported. Retain HTTP handling when the
|
|
33
|
+
transport requires it, such as an incoming WebSocket upgrade. Keep caller
|
|
34
|
+
authentication and authorization at the actual trust boundary.
|
|
35
|
+
|
|
36
|
+
Route repeat calls using the same intended object identity. Persist any mapping
|
|
37
|
+
needed to recover an opaque generated ID. Changing naming or namespaces can
|
|
38
|
+
route traffic to a different object with different storage.
|
|
39
|
+
|
|
40
|
+
An object has one alarm time; setting it replaces the previous alarm. If the
|
|
41
|
+
application owns multiple deadlines, keep those deadlines in durable state and
|
|
42
|
+
schedule the next due time. Make alarm work safe under retries and interrupted
|
|
43
|
+
execution. External side effects need their own deduplication strategy.
|
|
44
|
+
|
|
45
|
+
Use hibernating WebSockets when that fits the connection lifecycle. Reconstruct
|
|
46
|
+
connection metadata from durable state or supported attachments after waking.
|
|
47
|
+
Do not assume a constructor, in-memory map, or ordinary timer survives eviction.
|
|
48
|
+
Handle close and error paths without leaving stale application presence.
|
|
49
|
+
|
|
50
|
+
Inspect the relevant [alarm](https://developers.cloudflare.com/durable-objects/api/alarms/)
|
|
51
|
+
or [WebSocket](https://developers.cloudflare.com/durable-objects/best-practices/websockets/)
|
|
52
|
+
documentation when modifying those behaviors.
|
|
53
|
+
|
|
54
|
+
## Verify the boundary
|
|
55
|
+
|
|
56
|
+
Follow repository policy for test placement and whether a committed regression
|
|
57
|
+
is warranted. Reuse the existing Worker test environment and generated bindings.
|
|
58
|
+
Avoid creating a standalone test configuration beside an established one.
|
|
59
|
+
|
|
60
|
+
Choose verification based on the changed behavior: RPC response and failure,
|
|
61
|
+
durable data after a new instance, retry-safe alarm handling, or connection
|
|
62
|
+
state after hibernation. Include real migrations when schema behavior matters.
|
|
63
|
+
In-memory mocks alone cannot establish platform storage or lifecycle semantics.
|
|
64
|
+
|
|
65
|
+
Use [Cloudflare's testing guidance](https://developers.cloudflare.com/durable-objects/testing/)
|
|
66
|
+
for runtime-specific helpers, checked against installed versions. Exercise the
|
|
67
|
+
running application when tests are not warranted. State when eviction, retries,
|
|
68
|
+
or multi-request coordination remain unverified.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Cloudflare Sandbox SDK
|
|
2
|
+
|
|
3
|
+
Inspect the installed SDK, Worker bindings, image, and lifecycle owner. Docker is relevant to local container execution, not every remote SDK or documentation task. Preserve host ownership of containers and previews.
|
|
4
|
+
|
|
5
|
+
## Sandbox setup
|
|
6
|
+
|
|
7
|
+
Inspect the existing Worker entrypoint, Durable Object binding and migrations,
|
|
8
|
+
container image, and instance settings. Export the Sandbox class or the project's
|
|
9
|
+
subclass in the way required by the installed SDK. Match the binding to that
|
|
10
|
+
export; preserve deployed class names and migration history.
|
|
11
|
+
|
|
12
|
+
Select the image and SDK versions together using the project's lock and image
|
|
13
|
+
policy. Check compatibility before upgrading. Add only dependencies needed by
|
|
14
|
+
the workload; avoid pinning all projects to an example image tag or capacity.
|
|
15
|
+
|
|
16
|
+
Use Docker when exercising local container behavior. Prefer the repository's
|
|
17
|
+
existing local or deployed test route and report a missing capability when it
|
|
18
|
+
prevents verification. Do not install infrastructure just to inspect SDK code.
|
|
19
|
+
|
|
20
|
+
For new setup or a missing platform detail, use [the SDK getting-started guide](https://developers.cloudflare.com/sandbox/get-started/)
|
|
21
|
+
and [examples](https://github.com/cloudflare/sandbox-sdk/tree/main/examples).
|
|
22
|
+
Treat them as examples to adapt to the target repository.
|
|
23
|
+
|
|
24
|
+
## Execution and resource ownership
|
|
25
|
+
|
|
26
|
+
Choose a sandbox identity that matches the intended user or task isolation.
|
|
27
|
+
Reusing an ID can reuse state; a container boundary does not authorize sharing
|
|
28
|
+
one user's files or interpreter context with another.
|
|
29
|
+
|
|
30
|
+
Use command execution for shell workloads and interpreter contexts for stateful
|
|
31
|
+
language execution with structured results. Inspect the installed API for
|
|
32
|
+
timeouts, streaming, cancellation, exit codes, and file path semantics. Handle
|
|
33
|
+
process failure explicitly instead of treating successful transport as a
|
|
34
|
+
successful command.
|
|
35
|
+
|
|
36
|
+
Track the lifetime of processes, contexts, and exposed ports. The owner of a
|
|
37
|
+
temporary resource cleans it up, including on cancellation or partial failure.
|
|
38
|
+
Keep a user-requested persistent session alive. Do not destroy a host-managed or
|
|
39
|
+
shared sandbox merely because one command finished.
|
|
40
|
+
|
|
41
|
+
Expose a port only when the task calls for it and the host permits it. Treat
|
|
42
|
+
preview URLs as capabilities and publish them only through the host's approved
|
|
43
|
+
path. Diagnose domain and exposure settings from the current
|
|
44
|
+
[service exposure guide](https://developers.cloudflare.com/sandbox/guides/expose-services/).
|
|
45
|
+
|
|
46
|
+
Before retrying a command that may have written data, inspect its outcome or
|
|
47
|
+
use an idempotent operation. Stop when cleanup or authorization cannot be
|
|
48
|
+
established and report the exact resource still outstanding.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Workers runtime
|
|
2
|
+
|
|
3
|
+
Follow installed generated types and the repository command authority.
|
|
4
|
+
|
|
5
|
+
## Worker runtime boundaries
|
|
6
|
+
|
|
7
|
+
Keep request-specific state and I/O resources within the request or an explicit
|
|
8
|
+
application lifetime. Immutable constants can be shared; mutable globals must
|
|
9
|
+
not leak one request's identity or data into another.
|
|
10
|
+
|
|
11
|
+
Stream large or unbounded bodies rather than buffering them. Preserve stream
|
|
12
|
+
cancellation and backpressure, and avoid consuming a body twice. Bound work
|
|
13
|
+
that depends on client-controlled sizes or upstream responses.
|
|
14
|
+
|
|
15
|
+
Await work required for the response. Use the execution context for permitted
|
|
16
|
+
post-response work that fits its lifetime. `void` alone does not keep a Promise
|
|
17
|
+
alive or handle its failure. Use durable execution such as a queue or workflow
|
|
18
|
+
when the work must outlive that request lifetime.
|
|
19
|
+
|
|
20
|
+
Keep authentication, decoding, and error mapping at the appropriate boundary.
|
|
21
|
+
In Effect applications, preserve the existing service and Layer ownership.
|
|
22
|
+
Do not force a plain async example into an established Effect handler design.
|
|
23
|
+
|
|
24
|
+
Use the installed types and relevant [Workers runtime documentation](https://developers.cloudflare.com/workers/runtime-apis/)
|
|
25
|
+
to check limits and API behavior that affect the task.
|
|
26
|
+
|
|
27
|
+
## Worker configuration
|
|
28
|
+
|
|
29
|
+
Use generated binding types and the effective configuration for the target
|
|
30
|
+
environment. Prefer service and resource bindings when available; use external
|
|
31
|
+
APIs where the integration requires them. Preserve existing database connection
|
|
32
|
+
ownership and evaluate Hyperdrive only for the relevant connection needs.
|
|
33
|
+
|
|
34
|
+
Add compatibility flags when required by the dependencies actually in use.
|
|
35
|
+
Treat compatibility-date changes as runtime changes with their own verification.
|
|
36
|
+
Keep secrets in the repository's configured secret store or binding mechanism.
|
|
37
|
+
|
|
38
|
+
For error capture, structured logs, tracing, sampling, and sensitive fields,
|
|
39
|
+
follow the repository's reporting policy. A narrow Worker edit is not a reason
|
|
40
|
+
to install another telemetry system or change global sampling.
|
|
41
|
+
|
|
42
|
+
Retrieve the relevant [Workers best practices](https://developers.cloudflare.com/workers/best-practices/workers-best-practices/)
|
|
43
|
+
when a platform-specific question remains. Validate signatures against the
|
|
44
|
+
installed toolchain instead of downloading newer types to judge older code.
|
|
45
|
+
|
|
46
|
+
## Review and verification
|
|
47
|
+
|
|
48
|
+
Trace the changed request or event path, the capabilities it uses, and its
|
|
49
|
+
failure and cancellation behavior. Check configuration only where it affects
|
|
50
|
+
that path. Cite the concrete failure or risk in each finding; unrelated
|
|
51
|
+
hardening is not a prerequisite for completing the requested change.
|
|
52
|
+
|
|
53
|
+
Inspect surrounding code when needed to establish ownership. For uncertain API
|
|
54
|
+
behavior, consult installed declarations and the relevant official documentation
|
|
55
|
+
before reporting a violation.
|
|
56
|
+
|
|
57
|
+
Run the repository's required commands. Exercise the affected handler with its
|
|
58
|
+
actual runtime or the project's existing integration setup when needed.
|
|
59
|
+
Use the repository's testing policy to decide whether to add a regression test;
|
|
60
|
+
a new Worker does not imply a new test suite.
|
|
61
|
+
|
|
62
|
+
Report what ran, the observable result, and any runtime behavior left unverified.
|
|
63
|
+
Keep an audit read-only unless fixes are also requested.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Wrangler
|
|
2
|
+
|
|
3
|
+
Use the declared Wrangler version and command entrypoint. Inspect the relevant script, config, and installed help before composing arguments. With Vite+, use the repository task or `vp exec wrangler`. Install a missing tool only when the requested task needs it.
|
|
4
|
+
|
|
5
|
+
## Configuration and local development
|
|
6
|
+
|
|
7
|
+
Locate the owning Worker config and environment before changing a binding.
|
|
8
|
+
Prefer JSONC for new configurations when it fits repository conventions;
|
|
9
|
+
preserve an existing format for unrelated edits. Check fields against the
|
|
10
|
+
installed Wrangler config schema and regenerate binding types through the
|
|
11
|
+
repository's normal command after changing them.
|
|
12
|
+
|
|
13
|
+
Compatibility dates and flags change runtime behavior. Preserve the selected
|
|
14
|
+
date during routine edits. When an upgrade is requested or required, read the
|
|
15
|
+
relevant compatibility changes and verify affected behavior rather than setting
|
|
16
|
+
today's date automatically.
|
|
17
|
+
|
|
18
|
+
Inspect local and remote binding settings before starting development. Local
|
|
19
|
+
development can reach real services when remote bindings are enabled. Keep
|
|
20
|
+
private temporary servers separate from any preview managed by the host.
|
|
21
|
+
Reuse an existing dev process when it exercises the change.
|
|
22
|
+
|
|
23
|
+
Use the installed CLI's help for flags and subcommands. The repository's scripts
|
|
24
|
+
own ports, environment names, credential loading, and generated file locations.
|
|
25
|
+
Do not create a second workflow merely to reproduce an example from this skill.
|
|
26
|
+
|
|
27
|
+
References:
|
|
28
|
+
|
|
29
|
+
- [Configuration](https://developers.cloudflare.com/workers/wrangler/configuration/)
|
|
30
|
+
- [Compatibility dates](https://developers.cloudflare.com/workers/configuration/compatibility-dates/)
|
|
31
|
+
- [Local development](https://developers.cloudflare.com/workers/development-testing/)
|
|
32
|
+
|
|
33
|
+
## Operations
|
|
34
|
+
|
|
35
|
+
Identify the selected account, Worker or resource, environment, and local or
|
|
36
|
+
remote target. An environment flag does not guarantee every resource setting
|
|
37
|
+
is inherited; inspect the effective config and binding before acting.
|
|
38
|
+
|
|
39
|
+
For a deployment, use the repository's release procedure and required checks.
|
|
40
|
+
Use a dry run when it materially checks packaging or bindings. A dry run does
|
|
41
|
+
not prove runtime behavior or authorize deployment. Reuse any deployment
|
|
42
|
+
authorization already present in the task.
|
|
43
|
+
|
|
44
|
+
Preview the target and impact of deletion, migrations, or resource replacement.
|
|
45
|
+
Use existing backup or recovery procedures where the operation calls for them.
|
|
46
|
+
Inspect versions before a rollback; code rollback may not undo data changes.
|
|
47
|
+
|
|
48
|
+
After a timeout or partial failure, inspect the resulting resource or deployment
|
|
49
|
+
before retrying a mutation. Retry only the missing work. Stop and report the
|
|
50
|
+
remaining state when access is unavailable, the target is ambiguous, or further
|
|
51
|
+
retries could duplicate consequential work.
|
|
52
|
+
|
|
53
|
+
Use protected input or the repository's secret integration for credentials.
|
|
54
|
+
Preserve existing authentication instead of starting an interactive login
|
|
55
|
+
unnecessarily. Report deployment and resource identifiers without exposing
|
|
56
|
+
secrets or private preview capabilities.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Emil Kowalski
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Dev Kit adaptation of skills from https://github.com/emilkowalski/skills
|
|
2
|
+
Source revision: 70744e3816f1d93eafb697161a8b880a7384c5ff
|
|
3
|
+
Copyright (c) 2026 Emil Kowalski. MIT license retained in LICENSE.
|
|
4
|
+
|
|
5
|
+
Modified by Dev Kit to preserve task scope, share motion workflows, use
|
|
6
|
+
progressive disclosure, and follow repository-owned tools and state policy.
|
|
7
|
+
Combines apple-design, emil-design-eng, prototype, and pick-ui-library.
|
|
8
|
+
Motion mechanics are consolidated in animate.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: design-ui
|
|
3
|
+
description: Build or refine web UI, explore design alternatives, or choose UI libraries and theme handling.
|
|
4
|
+
license: MIT
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Design web UI
|
|
8
|
+
|
|
9
|
+
Follow the brief and the product's design language. Implement a requested change;
|
|
10
|
+
keep a review to findings unless implementation is also requested.
|
|
11
|
+
|
|
12
|
+
Read only what the task needs:
|
|
13
|
+
|
|
14
|
+
- Control behavior, focus, feedback, and content states: [components](references/components.md).
|
|
15
|
+
- Typography, hierarchy, depth, or Apple-inspired materials: [appearance](references/appearance.md).
|
|
16
|
+
- Requested design alternatives or a visual comparison picker: [exploration](references/exploration.md).
|
|
17
|
+
- Requested library selection: [libraries](references/libraries.md).
|
|
18
|
+
- Theme switching, persistence, first paint, or hydration: [themes](references/themes.md).
|
|
19
|
+
|
|
20
|
+
Use the existing tokens and adequate dependencies. Library selection and multiple
|
|
21
|
+
prototypes are optional workflows, not prerequisites to polishing a component.
|
|
22
|
+
For detailed motion work, use `animate` when available, or consult the installed
|
|
23
|
+
animation library and [Emil's motion guidance](https://emilkowal.ski/ui/you-dont-need-animations).
|
|
24
|
+
|
|
25
|
+
Judge the changed interaction in context with realistic content, keyboard input,
|
|
26
|
+
and relevant viewport sizes. Preserve deliberate product choices and report what
|
|
27
|
+
could not be verified.
|
|
28
|
+
|
|
29
|
+
Attribution is in [NOTICE](NOTICE); terms are in [LICENSE](LICENSE).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Hierarchy and typography
|
|
2
|
+
|
|
3
|
+
Use depth and translucency to explain layering, such as a sheet over content.
|
|
4
|
+
Keep text contrast and boundaries legible over changing backgrounds. Prefer a
|
|
5
|
+
solid surface when blur adds cost or weakens readability. Respect relevant
|
|
6
|
+
contrast and transparency preferences where the platform exposes them.
|
|
7
|
+
|
|
8
|
+
Choose type size, weight, line height, and tracking as a system. Check the
|
|
9
|
+
font's optical sizing support before manually compensating at display sizes.
|
|
10
|
+
Headings may benefit from tighter tracking; body text often needs a neutral
|
|
11
|
+
setting. Inspect the actual font and content instead of prescribing one value
|
|
12
|
+
or banning consistent tracking across a working type scale.
|
|
13
|
+
|
|
14
|
+
Use spacing and alignment to communicate groups before adding decorative
|
|
15
|
+
borders. Preserve familiar control locations and interaction conventions for
|
|
16
|
+
the target platform. Test small windows, long labels, and larger text when
|
|
17
|
+
these affect the design.
|
|
18
|
+
|
|
19
|
+
References:
|
|
20
|
+
|
|
21
|
+
- [Apple typography guidance](https://developer.apple.com/design/human-interface-guidelines/typography)
|
|
22
|
+
- [Apple materials guidance](https://developer.apple.com/design/human-interface-guidelines/materials)
|