context-key-collision-prevention
Use when storing values with context.WithValue, choosing context key types, or debugging context values that are missing or wrong at runtime. Prevents cross-package key collisions with unexported struct key types or pointer keys, wrapped in WithX and XFromContext accessors.
Pinned to revision e4081cbb4d29, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/context-key-collision-prevention/SKILL.md
- skills/context-key-collision-prevention/test-prompts.json
Every link opens the file at its source, pinned to the revision this page describes.