Make CLAUDE.md a short router, and move each topic's rules to a file under rules/ that loads when a session touches a matching file

This commit is contained in:
2026-10-13 00:24:17 +02:00
parent 72fd688d81
commit 6f8a650ac0
22 changed files with 183 additions and 130 deletions
+10
View File
@@ -0,0 +1,10 @@
---
paths:
- "**/*openapi*"
- "**/*swagger*"
- "**/api-docs/**"
---
# Public API specs
- Text in public API specs (OpenAPI `description`/`title` fields and the generated api-docs) is read by external consumers. Never leak internal references: no ticket IDs, internal URLs, repo/system code-names, "see ticket X". Describe behaviour in consumer terms. GOOD: `Deprecated alias for paymentAccountId`. BANNED: `…will be removed (ABC-123)`.
- The opposite of internal code comments, which *may* cite a ticket for a footgun/constraint.