Skip to content

Commit c27069d

Browse files
feat: add self-improvement and elegance workflow rules (#3233)
* feat: add self-improvement and elegance workflow rules * fix: harmonize ERRORS.md formatting across docs
1 parent 1d070c2 commit c27069d

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.claude/skills/feature/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ If an action affects another user:
8888
- [ ] Actions affecting other users trigger email (if configured)
8989
- [ ] Templates created for each email type
9090

91+
### 8b. Elegance check
92+
93+
For non-trivial changes: pause and ask yourself "is there a simpler or more elegant approach?" If the current implementation feels hacky, refactor before proceeding.
94+
9195
### 9. Run `/verify`
9296

9397
### 10. Run `/pull-request`

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ Use `.github/prompts/*` as task playbooks:
2222
| Naming | `.github/prompts/naming.prompt.md` |
2323
| PR | `.github/prompts/pull-request.prompt.md` |
2424

25+
## Workflow rules
26+
27+
- After any user correction, evaluate if the mistake pattern belongs in `ERRORS.md`
28+
- Investigate and fix bugs autonomously — don't ask for hand-holding
29+
- For non-trivial tasks, plan before coding

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Node / Express / Mongoose / JWT stack from Devkit. Standalone backend or fullsta
6565
- Keep changes minimal and merge-friendly for downstream
6666
- Every function: JSDoc header (`@param`, `@returns`)
6767
- PRs: always use `/pull-request` — never open manually
68+
- After user correction, evaluate if the pattern belongs in `ERRORS.md`
6869

6970
## Skills
7071

0 commit comments

Comments
 (0)