Draft
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! 😃 |
Contributor
|
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
kimyouknow
commented
Apr 7, 2026
docs/ko/react-hook-usage-patterns.md
Outdated
| // ✅ const intervalRef = useRef<number | null>(null); | ||
| ``` | ||
|
|
||
| ### U4. 복잡한 관련 state는 useReducer |
Collaborator
Author
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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