Skip to content

Commit 338d155

Browse files
committed
fix(config): add frontmatter and $ARGUMENTS to effect command
1 parent e39c239 commit 338d155

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.agents/skills/you-might-not-need-an-effect/SKILL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: you-might-not-need-an-effect
3-
description: Analyze code for useEffect anti-patterns and fix them based on React guidelines
3+
description: Analyze and fix useEffect anti-patterns in your code
44
---
55

66
# You Might Not Need an Effect
@@ -9,6 +9,8 @@ Arguments:
99
- scope: what to analyze (default: your current changes). Examples: "diff to main", "PR #123", "src/components/", "whole codebase"
1010
- fix: whether to apply fixes (default: true). Set to false to only propose changes.
1111

12+
User arguments: $ARGUMENTS
13+
1214
Steps:
1315
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
1416
2. Analyze the specified scope for useEffect anti-patterns

.claude/commands/you-might-not-need-an-effect.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
---
2+
description: Analyze and fix useEffect anti-patterns in your code
3+
argument-hint: [scope] [fix=true|false]
4+
---
5+
6+
# You Might Not Need an Effect
7+
18
Arguments:
29
- scope: what to analyze (default: your current changes). Examples: "diff to main", "PR #123", "src/components/", "whole codebase"
310
- fix: whether to apply fixes (default: true). Set to false to only propose changes.
411

12+
User arguments: $ARGUMENTS
13+
514
Steps:
615
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
716
2. Analyze the specified scope for useEffect anti-patterns

.cursor/commands/you-might-not-need-an-effect.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
# You Might Not Need an Effect
2+
13
Arguments:
24
- scope: what to analyze (default: your current changes). Examples: "diff to main", "PR #123", "src/components/", "whole codebase"
35
- fix: whether to apply fixes (default: true). Set to false to only propose changes.
46

7+
User arguments: $ARGUMENTS
8+
59
Steps:
610
1. Read https://react.dev/learn/you-might-not-need-an-effect to understand the guidelines
711
2. Analyze the specified scope for useEffect anti-patterns

0 commit comments

Comments
 (0)