Skip to content

Commit 009023b

Browse files
docs(claude): add workflow rules — PRs required, thresholds, module audit
1 parent 2803e5f commit 009023b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ Node / Express / Mongoose / JWT stack from Devkit. Standalone backend or fullsta
6767
- PRs: always use `/pull-request` — never open manually
6868
- After user correction, evaluate if the pattern belongs in `ERRORS.md`
6969

70+
## Workflow rules
71+
72+
- **Never push directly to master/main.** Always create a branch, push, create a PR, wait for CI green + review, then merge.
73+
- **Never lower coverage thresholds** in `jest.config.js`. If coverage drops after adding code, write tests for the new project modules to bring it back above thresholds.
74+
- **Audit existing modules before implementing.** Before creating new storage, file handling, or utility code, check `modules/` for existing solutions (e.g., `uploads` module for file storage via GridFS).
75+
- **Always run `/verify` after any code change** before declaring done. CI must be green.
76+
7077
## Skills
7178

7279
| Skill | Description |

0 commit comments

Comments
 (0)