Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .claude/skills/create-module/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Files to check in `modules/{new-module-name}/`:
- Policy function names
- Test descriptions and fixture data

### 4b. Config-driven enums
#### Config-driven enums

Business values (plans, roles, statuses) must be driven by the module config, never hardcoded in models or schemas.

Expand All @@ -62,7 +62,7 @@ Pattern:

Example: `config.billing.plans` used in both `billing.subscription.model.mongoose.js` and `billing.subscription.schema.js`.

> Existing reference: `users.schema.js` uses `z.enum(config.whitelists.users.roles)`.
> Reference: `modules/users/models/users.schema.js` uses `z.enum(config.whitelists.users.roles)`.

### 5. Apply renames carefully

Expand Down
1 change: 1 addition & 0 deletions .claude/skills/naming/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ When a module contains multiple entities (e.g., `billing` with `subscription`, `
| `billing.subscription.model.mongoose.js` | `subscription.model.mongoose.js` |
| `billing.subscription.schema.js` | `subscription.schema.js` |
| `organizations.membership.model.mongoose.js` | `membership.model.mongoose.js` |
| `organizations.crud.service.js` | `crud.service.js` |

Pattern: `{module}.{entity}[.{name}].{type}.js`

Expand Down
Loading