You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(templates): merge Karpathy principles into Process Discipline
Fold Andrej Karpathy's four LLM-coding principles (Think before coding,
Simplicity first, Surgical changes, Goal-driven execution) into
CLAUDE.md.tmpl's Process Discipline section as phase anchors. Add a
Discipline Inheritance intro to AGENTS.md.tmpl and sharpen five
workflow skills with concrete inserts (new-feature, spec-feature,
codebase-walkthrough, finish-feature, pre-push-check). Mirror copies
in skills/ updated in lockstep. Editorial change; no version bump.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: devflow-plugin/commands/new-feature.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ You have been launched inside a feature worktree. Your job is to orient yourself
46
46
47
47
4.**Ask what the feature is about.** If the branch name is descriptive enough, summarize your understanding and ask for confirmation. Otherwise, ask the user to describe the feature.
48
48
49
+
**Don't guess from the branch name.** If the branch is descriptive, summarize your reading in one sentence and ask for confirmation. If it leaves gaps (what behavior changes, what success looks like), ask BEFORE recalling more. Silent interpretations compound.
50
+
49
51
5.**Offer codebase walkthrough (optional).** Ask the user:
50
52
51
53
> "Would you like a codebase walkthrough before we start? This traces the full end-to-end flow affected by this task, shows you the actual code at each step, and identifies the key files. Useful if this is an unfamiliar area of the codebase."
@@ -61,5 +63,6 @@ You have been launched inside a feature worktree. Your job is to orient yourself
61
63
- Never skip the brainstorming step for non-trivial features.
62
64
- The codebase walkthrough is optional but recommended for unfamiliar areas.
63
65
- If the branch name contains a ticket ID, use it as a namespace prefix in all Hindsight interactions.
66
+
- Surface any assumption the branch name or recalled memories lead you to make. The user is one line away — ask before guessing.
Copy file name to clipboardExpand all lines: devflow-plugin/commands/pre-push-check.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ You are about to push code. Run the full pre-push quality pipeline before pushin
17
17
Capture and parse the output. This uses Claude Code (primary) or OpenCode (fallback) to review against `.devflow/checks/*.md` rules. If neither CLI is available, fall back to running the project's lint and type-check commands directly (e.g., `yarn lint`, `yarn build`).
18
18
19
19
3.**Self-review the diff against CLAUDE.md**. Read the project's `CLAUDE.md` file and review the staged changes against its rules:
20
+
-**Scope discipline**: every changed line traces to the task. No speculative abstractions, no adjacent refactors, no dead-code removals beyond orphans created by this change.
20
21
- Are naming conventions followed?
21
22
- Are the architectural patterns respected (clean architecture layers)?
22
23
- Are imports using the correct path aliases?
@@ -44,6 +45,7 @@ You are about to push code. Run the full pre-push quality pipeline before pushin
44
45
- [PASS/FAIL] [details]
45
46
46
47
### CLAUDE.md Compliance
48
+
- [PASS/WARN/FAIL] Scope discipline (every line traces to task)
Copy file name to clipboardExpand all lines: skills/code-review/pre-push-check.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ You are about to push code. Run the full pre-push quality pipeline before pushin
17
17
Capture and parse the output. This uses Claude Code (primary) or OpenCode (fallback) to review against `.devflow/checks/*.md` rules. If neither CLI is available, fall back to running the project's lint and type-check commands directly (e.g., `yarn lint`, `yarn build`).
18
18
19
19
3.**Self-review the diff against CLAUDE.md**. Read the project's `CLAUDE.md` file and review the staged changes against its rules:
20
+
-**Scope discipline**: every changed line traces to the task. No speculative abstractions, no adjacent refactors, no dead-code removals beyond orphans created by this change.
20
21
- Are naming conventions followed?
21
22
- Are the architectural patterns respected (clean architecture layers)?
22
23
- Are imports using the correct path aliases?
@@ -44,6 +45,7 @@ You are about to push code. Run the full pre-push quality pipeline before pushin
44
45
- [PASS/FAIL] [details]
45
46
46
47
### CLAUDE.md Compliance
48
+
- [PASS/WARN/FAIL] Scope discipline (every line traces to task)
Copy file name to clipboardExpand all lines: skills/worktree-flow/new-feature.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,8 @@ You have been launched inside a feature worktree. Your job is to orient yourself
46
46
47
47
4.**Ask what the feature is about.** If the branch name is descriptive enough, summarize your understanding and ask for confirmation. Otherwise, ask the user to describe the feature.
48
48
49
+
**Don't guess from the branch name.** If the branch is descriptive, summarize your reading in one sentence and ask for confirmation. If it leaves gaps (what behavior changes, what success looks like), ask BEFORE recalling more. Silent interpretations compound.
50
+
49
51
5.**Offer codebase walkthrough (optional).** Ask the user:
50
52
51
53
> "Would you like a codebase walkthrough before we start? This traces the full end-to-end flow affected by this task, shows you the actual code at each step, and identifies the key files. Useful if this is an unfamiliar area of the codebase."
@@ -61,5 +63,6 @@ You have been launched inside a feature worktree. Your job is to orient yourself
61
63
- Never skip the brainstorming step for non-trivial features.
62
64
- The codebase walkthrough is optional but recommended for unfamiliar areas.
63
65
- If the branch name contains a ticket ID, use it as a namespace prefix in all Hindsight interactions.
66
+
- Surface any assumption the branch name or recalled memories lead you to make. The user is one line away — ask before guessing.
0 commit comments