feat: add react-hook-philosophy plugin#366
Conversation
Add Claude Code plugin with 31 hook design principles (C1-C14 coding + U1-U17 usage patterns) for code review and writing guidance. Includes design document, React hook usage patterns reference, and 3 complete hook implementation examples.
|
Hi! I'm the It looks like you correctly set up a CI job that uses the autofix.ci GitHub Action, but the autofix.ci GitHub App has not been installed for this repository. This means that autofix.ci unfortunately does not have the permissions to fix this pull request. If you are the repository owner, please install the app and then restart the CI workflow! 😃 |
|
Size Change: 0 B 🆕 Total Size: 0 B |
- Move C8 (guard clauses) and C11 (function keyword) from Required to Recommended - Add U12 (useSyncExternalStore) to writing guide - Fix anti-pattern table: count check uses == null instead of !== undefined - Add MIT LICENSE file
- Convert hook-design-principles.md and react-hook-usage-patterns.md to English - Add react.dev source URLs and quotes to all U1-U17 patterns - Move Korean originals to docs/ko/ for reference
| // ✅ const intervalRef = useRef<number | null>(null); | ||
| ``` | ||
|
|
||
| ### U4. 복잡한 관련 state는 useReducer |
There was a problem hiding this comment.
check for review
useReducer is an app-level state management pattern, not a hook library design principle. Removed from all docs and plugin review checklist.
- C1, C7: mark as project conventions with notes (React allows arbitrary returns) - C3: correct "cleanup required" → "cleanup when subscribing" (React says optional) - C2: add react.dev/hydrateRoot source URL - U6, U9, U10, U11, U13, U14, U16: replace paraphrased quotes with actual react.dev text
|
|
||
| ```bash | ||
| claude plugin install --source git-subdir \ | ||
| --url https://github.com/kimyouknow/react-simplikit.git \ |
There was a problem hiding this comment.
I think you should change the url path!
…dangling - plugin.json + README install URL: kimyouknow -> toss (addresses zztnrudzz13 review) - LICENSE: align copyright with root repo (Viva Republica, Inc) - Remove dangling U4 (useReducer) reference from react-hook-writing/SKILL.md after U4 was removed from usage patterns - README principle counts: 31 -> 30, "17 usage patterns" -> "16 (U4 excluded)", State Design 7 -> 6 - react-design-principles SKILL.md: promote Zero-Dependency Bias to section 5 to match references/principles.md; React design count 4 -> 5 - hook-design-principles.md Opinionated breakdown: "13 + 1" -> "11 + 3 (C1, C7, C14)" to match inline markings - hook-design-principles.md section 3: "17 patterns" -> "16 patterns (U4 removed)" - Korean docs: mark C1/C7 inline 🟡 for parity with EN, sync date to 2026-04-21
…ophy Reflects broader scope after the react-design-principles skill was added. The plugin now covers higher-level React API design (declarative interfaces, lifecycle safety, minimal surface, reliability, zero-dependency bias) in addition to hook review and writing.
The plugin has not been published yet, so documenting the pre-release name change is unnecessary noise. The rename is recorded in git history.
Credits the contributor who added the react-design-principles skill.
- Drop "Last Updated" / "최종 업데이트" header lines from all four doc files (git history is authoritative for update dates) - Fix remaining "17 principles" / "17개 원칙" drift in usage-patterns intro lines to match the U4-removed count (16)
The GitHub login matches the git commit author identifier, so it's unambiguous and ties directly to commit history.
Resolves CI 'quality (format)' and 'autofix' failures. All 8 files flagged by prettier check are now formatted consistently.
|
Summary
Initial draft of react-hook-philosophy as a Claude Code plugin, defining 31 hook design principles for code review and writing guidance.
react-hook-review(checklist) +react-hook-writing(guide)Files
docs/hook-design-principles.mddocs/react-hook-usage-patterns.mdpackages/plugin/Validation
claude plugin validate✅ passedInstall (after merge)
Test plan
/react-hook-reviewlocally → verify checklist feedback/react-hook-writinglocally → verify guide + patterns reference