You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .cursor/rules/fix-workflow-first.mdc
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,20 @@ description: When a workflow issue is identified in a command or skill, fix the
3
3
alwaysApply: true
4
4
---
5
5
6
-
# Fix Workflow Definitions First
6
+
<goal>Ensure workflow definitions are fixed at the source before any workarounds are applied.</goal>
7
7
8
-
When a misbehavior is traced to a command (`.cursor/commands/*.md`) or skill (`.cursor/skills/*/SKILL.md`):
8
+
<rules description="Non-negotiable constraints.">
9
+
<rule id="absolute-priority">Fixing the command/skill takes **absolute priority** over all other actions — including workarounds, continuing the original task, or applying temporary fixes.</rule>
10
+
<rule id="no-workarounds-first">Do NOT apply workarounds or manual fixes before proposing the command/skill update. The correct sequence is: identify gap → propose fix → get approval → apply fix → then resume original task.</rule>
11
+
<rule id="use-author">Always use `/author` to fix commands and skills. It contains current best practices and the mandatory revision checklist.</rule>
12
+
</rules>
9
13
10
-
1. **Stop** fixing the downstream symptom.
11
-
2. **Identify the root cause** in the command/skill definition.
12
-
3. **Fix the command/skill first** using `/author` (`~/.cursor/skills/author/SKILL.md`), which contains the current best practices and mandatory revision checklist for command/skill authoring.
13
-
4. **Then** fix the immediate misbehavior if still needed.
14
+
<sequence name="When a workflow gap is discovered">
15
+
1. **Stop immediately** — do not continue the current task or apply any workaround.
16
+
2. **Identify the root cause** in the command (`.cursor/commands/*.md`) or skill (`.cursor/skills/*/SKILL.md`) definition.
17
+
3. **Propose the fix** to the user and wait for approval before proceeding.
18
+
4. **Fix the command/skill** using `/author` after approval.
19
+
5. **Resume the original task** only after the command/skill is updated.
20
+
</sequence>
14
21
15
-
This applies to all workflow issues — missed steps, incorrect output, wrong tool usage, formatting problems, etc. The command/skill is the source of truth; patching around it creates drift.
22
+
<scope>This applies to all workflow issues — missed steps, incorrect output, wrong tool usage, formatting problems, etc. The command/skill is the source of truth; patching around it creates drift.</scope>
0 commit comments