SkillTrust

← All skills

react18-lifecycle-patterns

95 / 100 · Low risk

Fine to try.

By github/awesome-copilot (GitHub) · coding · 41,001 stars · scanned at commit 227949a

Provides exact before/after migration patterns for the three unsafe class component lifecycle methods - componentWillMount, componentWillReceiveProps, and componentWillUpdate - targeting React 18.3.1. Use this skill whenever a class component needs its lifecycle methods migrated, when deciding between getDerivedStateFromProps vs componentDidUpdate, when adding getSnapshotBeforeUpdate, or when fixing React 18 UNSAFE_ lifecycle warnings. Always use this skill before writing any lifecycle migratio…

Works with any agent that supports SKILL.md skills.

What this skill can do

Connects to the internet

The author does not mention this.

Found in 4 places.

Show 1 more

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'react18-lifecycle-patterns' ] || [ -L ~/.agents/skills/'react18-lifecycle-patterns' ]; then echo 'A skill folder named react18-lifecycle-patterns already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/github/awesome-copilot' "$d" && git -C "$d" checkout --quiet '227949a7542a55d2155c00e7cdb998d9a0fee4f3' -- 'skills/react18-lifecycle-patterns' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/react18-lifecycle-patterns' ~/.agents/skills/'react18-lifecycle-patterns' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'react18-lifecycle-patterns' ~/.claude/skills/'react18-lifecycle-patterns' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for github/awesome-copilot shows the score of its lowest-scoring skill.

SkillTrust badge for github/awesome-copilot

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/github/awesome-copilot.svg)](https://zalavijaysinh.github.io/skilltrust/repos/github/awesome-copilot/)

Score history

DateVersionScore
2026-11-10227949a95
2026-11-08797337f95
2026-11-07797337f95