Agent Skills
› simstudioai/sim
› you-might-not-need-an-effect
you-might-not-need-an-effect
GitHub分析并修复 React 代码中的 useEffect 反模式,依据官方指南优化副作用逻辑。支持指定范围审查或自动应用修复方案。
Trigger Scenarios
React 组件重构
清理 useEffect 逻辑
Install
npx skills add simstudioai/sim --skill you-might-not-need-an-effect -g -y
SKILL.md
Frontmatter
{
"name": "you-might-not-need-an-effect",
"description": "Analyze and fix useEffect anti-patterns in your code",
"argument-hint": "[scope] [fix=true|false]"
}
You Might Not Need an Effect
Arguments:
- scope: what to analyze (default: your current changes). Examples: "diff to main", "PR #123", "src/components/", "whole codebase"
- fix: whether to apply fixes (default: true). Set to false to only propose changes.
User arguments: $ARGUMENTS
Steps:
- Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
- Analyze the specified scope for useEffect anti-patterns
- If fix=true, apply the fixes. If fix=false, propose the fixes without applying.
Version History
- ceda457 Current 2026-08-20 15:29


