feat(skills): add react useEffect ban skill#10
Merged
Conversation
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
Add a shared
react-ban-use-effectskill for replacing direct ReactuseEffectusage with stronger React, server-state, and framework patterns.Changed
skills/react-ban-use-effectwith SKILL, OpenAI metadata, tile metadata, replacement guidance, alternatives map, and upstream attribution.scripts/sync/skills.json.autoreviewupstream attribution language with the samereferences/upstream.mdconvention.Risks
useEffectimports/calls/replacements or no-direct-useEffect policy work.Verification
npx tessl@0.80.0 skill review --json skills/react-ban-use-effect-> score 100, passed, 0 warnings, 0 errorsnpx tessl@0.80.0 skill review --json skills/autoreview-> score 100, passed, 0 warnings, 0 errorsnpx tessl@0.80.0 tile lint skills/react-ban-use-effect-> valid tile; existing-style warning foragents/openai.yamlplacementgit diff --check --cachedjq . scripts/sync/skills.jsonjq . skills/react-ban-use-effect/tile.jsonComplexity
Increased slightly: this adds a new shared skill and two focused references, but keeps the entrypoint lean and one-hop discoverable.
Summary by cubic
Adds a shared
react-ban-use-effectskill that bans directreactuseEffectand guides replacements with server-state, event, and external-sync patterns. Registers the skill and updatesautoreviewupstream attribution.New Features
skills/react-ban-use-effectwithSKILL.md,agents/openai.yaml, andtile.json.scripts/sync/skills.json.Refactors
skills/autoreviewupstream attribution and wording to usereferences/upstream.md.Written for commit 2a684f6. Summary will update on new commits.
Review in cubic