Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix(config): add frontmatter and $ARGUMENTS to effect command
  • Loading branch information
waleedlatif1 committed Apr 7, 2026
commit 338d1556a38396352469dbced4404e65e2fd1ba9
4 changes: 3 additions & 1 deletion .agents/skills/you-might-not-need-an-effect/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: you-might-not-need-an-effect
description: Analyze code for useEffect anti-patterns and fix them based on React guidelines
description: Analyze and fix useEffect anti-patterns in your code
---

# You Might Not Need an Effect
Expand All @@ -9,6 +9,8 @@ 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:
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
2. Analyze the specified scope for useEffect anti-patterns
Expand Down
9 changes: 9 additions & 0 deletions .claude/commands/you-might-not-need-an-effect.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
---
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:
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
2. Analyze the specified scope for useEffect anti-patterns
Expand Down
4 changes: 4 additions & 0 deletions .cursor/commands/you-might-not-need-an-effect.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# 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:
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
2. Analyze the specified scope for useEffect anti-patterns
Expand Down
Loading