Split shared UI knowledge into atomic topic directories
This commit is contained in:
1 parent
08ff987edb
commit
b0e6402d66
37 files changed
+600
-516
No files matched your search
+8
-1
@@ -18,7 +18,14 @@ If you are editing this `bible/` repository itself, read the target contract and
|
||||
`README.md`. Do not walk all contracts unless the task is explicitly about restructuring the library.
|
||||
|
||||
- Edit the relevant existing contract, or create a new `rules/patterns/<topic>/contract.md`.
|
||||
- Normative rules go in `contract.md`; examples and rationale go in the pattern's `README.md`.
|
||||
- One knowledge topic per directory. Keep a short `contract.md` as the entry point; move
|
||||
independent subtopics to `<topic>/contract.md` and link them from that entry point.
|
||||
- Normative rules have one owner. Examples live beside their contract; cross-topic demos
|
||||
live under `examples/<name>/`. Link to rules instead of repeating them.
|
||||
- Keep Markdown files below 100 lines where practical; split by responsibility, not merely
|
||||
by line count. Existing canonical assets are not duplicated to make smaller starters.
|
||||
- Read the relevant linked subtopic contracts when applying a pattern. Do not read every
|
||||
child merely because its parent is listed in the router.
|
||||
- Do not create rules outside `rules/patterns/`. Do not expand scope beyond engineering rules and patterns.
|
||||
- Run `sh scripts/lint.sh` after changes.
|
||||
|
||||
|
||||
Reference in new issue
Block a user