Provides the complete migration pattern for React legacy context API (contextTypes, childContextTypes, getChildContext) to the modern createContext API. Use this skill whenever migrating legacy context in class components - this is always a cross-file migration requiring the provider AND all consumers to be updated together.
安装
npx skills add github/awesome-copilot --skill react18-legacy-contextnpx skills add github/awesome-copilot --skill react18-legacy-context -a claude-code -gnpx skills add github/awesome-copilot --skill react18-legacy-context -a codex -ggemini skills install https://github.com/github/awesome-copilot.git --path skills/react18-legacy-contextgh skill install github/awesome-copilot react18-legacy-contextgit clone --depth 1 https://github.com/github/awesome-copilot /tmp/github__awesome-copilot
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/github__awesome-copilot/skills/react18-legacy-context ~/.claude/skills/react18-legacy-context # Claude Code
cp -R /tmp/github__awesome-copilot/skills/react18-legacy-context ~/.agents/skills/react18-legacy-context # Codex, Cursor, Gemini CLI, Copilot, OpenCode