@supa-media/claude 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supa-media/claude",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Claude Code configuration templates for Supa apps",
5
5
  "type": "module",
6
6
  "bin": {
@@ -204,6 +204,22 @@ If you're asked to do X and realize Y and Z also need fixing:
204
204
  - Classify all native deps in `apps/mobile/native-deps.json` as `core` or `gated`
205
205
  - CI enforces this via `@supa-media/native-safety` — static imports of gated deps fail
206
206
 
207
+ ### File Size and Architecture
208
+
209
+ - **Check a file's size before adding to it.** If the change would push it
210
+ over 500 lines, extract a cohesive responsibility first instead of growing
211
+ it further.
212
+ - **Never exceed 1,000 lines.** A file at 700+ lines needs a `reviewed`
213
+ reason in `architecture.config.json` explaining why it's one cohesive
214
+ module rather than several.
215
+ - **`baseline` entries only shrink.** They exist for legacy debt already in
216
+ the repo, not as a way to check in a new oversized file — lower the number
217
+ when you cut lines, never raise it to cover growth.
218
+ - Run `pnpm architecture` before calling work done.
219
+ - **Don't game the count** — no minifying, no collapsing lines, no code
220
+ hidden in strings, no splitting one file into numbered fragments
221
+ (`foo.1.ts`, `foo.2.ts`) just to dodge the threshold.
222
+
207
223
  ### Prefer Framework Features Over Custom Solutions
208
224
 
209
225
  - **Always prefer built-in framework features** over custom implementations