Skip to content

Commit 7c6f072

Browse files
committed
Begin Claude.md
1 parent 3cb65b0 commit 7c6f072

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

‎CLAUDE.md‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Self-Improvement Loop
2+
3+
After every task, ask: "What did I get wrong, get told twice, or discover?
4+
Should it go in CLAUDE.md, a spec, a hook, a skill, or memory?"
5+
6+
## Rules
7+
8+
- **Before implementing anything non-trivial**: write or update a spec
9+
and get approval first.
10+
11+
- **After every change**: ask the user if CLAUDE.md, specs, or skills
12+
should be updated to reflect what was learned.
13+
14+
- **Repeated instruction** (user corrects the same thing twice):
15+
add it to CLAUDE.md.
16+
17+
- **Design decision**: write or update a spec.
18+
19+
- **Repeatable workflow**: propose a skill.
20+
21+
- **Must always happen**: propose a hook.
22+
23+
- **Learned pattern**: save to memory.
24+
25+
## Markdown
26+
27+
- Use `-` for list markers.
28+
- Wrap lines to maximize use of the 80-column limit. Break at word
29+
boundaries, not early.
30+
31+
Every markdown change must pass (run both):
32+
33+
```sh
34+
cfg=cfg/pre-commit/quick-lint.yml
35+
pre-commit run -c $cfg markdownlint-fix --files <file>
36+
pre-commit run -c $cfg mdformat --files <file>
37+
```
38+
39+
## Specs
40+
41+
- `specs/` for cross-cutting concerns (build, CI, conventions)
42+
- `examples/tree/specs/` for tree-specific design decisions

‎cfg/dictionary.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ lddw
1717
ldxb
1818
ldxdw
1919
ldxw
20+
markdownlint
2021
mathjax
22+
mdformat
2123
memcmp
2224
memcpy
2325
metas

0 commit comments

Comments
 (0)