Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit 1f0ac96

Browse files
vitbokischclaude
andcommitted
Update learning rules: docs go in the same PR, not after
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ac39523 commit 1f0ac96

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.claude/rules/workflow.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ If any step fails, fix it before pushing. Do not push broken code.
9999

100100
## Continuous Learning — MANDATORY
101101

102-
After every PR, review what happened and update the rules:
102+
Every PR must include updates to rules and docs alongside the code changes. Don't submit code-only PRs when something was learned — update the rules in the SAME PR:
103103

104-
- **New anti-pattern discovered?** Add it to `anti-patterns.md` with the "why" so future sessions avoid it.
105-
- **New development pattern established?** Add it to `development.md` so future sessions follow it consistently.
106-
- **API changed upstream?** Update `CLAUDE.md`, template `CLAUDE.md`, and `building.md` with the new API.
107-
- **Bun/TypeScript quirk found?** Document it in `development.md` under "Bun Quirks" so it's not rediscovered.
108-
- **Workaround added?** Document WHY in a code comment AND add to anti-patterns so it gets removed when the upstream fix lands.
104+
- **New anti-pattern discovered?** Add it to `anti-patterns.md` in the same commit.
105+
- **New development pattern established?** Add it to `development.md` in the same PR.
106+
- **API changed upstream?** Update `CLAUDE.md`, template `CLAUDE.md`, and `building.md` as part of the dep bump PR.
107+
- **Bun/TypeScript quirk found?** Document it in `development.md` under "Bun Quirks" immediately.
108+
- **Workaround added?** Document WHY in a code comment AND add to anti-patterns in the same commit.
109109

110-
The rules files are your institutional memory. If you learn something in this session that would help a future session, write it down NOW — not later. Every PR is an opportunity to make the next PR better.
110+
The rules files are your institutional memory. Update them as you work, not as a separate follow-up. A PR that changes behavior without updating docs is incomplete.
111111

112112
## Context Management
113113

0 commit comments

Comments
 (0)