docs: restore missing Atomic Commits details in CLAUDE.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
403c44f536
commit
5ee3176d3a
2 changed files with 16 additions and 6 deletions
17
CLAUDE.md
17
CLAUDE.md
|
|
@ -84,7 +84,7 @@ cp .env.example .env
|
||||||
|
|
||||||
## Atomic Commits
|
## Atomic Commits
|
||||||
|
|
||||||
After completing any task that modifies code, create atomic commits without asking for permission.
|
After completing any task that modifies code, you MUST create atomic commits before ending the conversation.
|
||||||
|
|
||||||
1. Run `git status` and `git diff` to see all modifications
|
1. Run `git status` and `git diff` to see all modifications
|
||||||
2. Skip if no changes exist
|
2. Skip if no changes exist
|
||||||
|
|
@ -99,4 +99,19 @@ Types: `feat`, `fix`, `refactor`, `docs`, `test`, `chore`
|
||||||
- Each commit should be independently meaningful and buildable
|
- Each commit should be independently meaningful and buildable
|
||||||
- Related test files go with their implementation
|
- Related test files go with their implementation
|
||||||
- Never create empty commits or combine unrelated changes
|
- Never create empty commits or combine unrelated changes
|
||||||
|
- If all changes are related to one logical unit, a single commit is fine
|
||||||
|
- Keep commit messages concise but descriptive
|
||||||
- `git commit --amend` only for immediate small fixes to the last commit
|
- `git commit --amend` only for immediate small fixes to the last commit
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
If you modified:
|
||||||
|
- `src/api/user.ts` (added new endpoint)
|
||||||
|
- `src/api/user.test.ts` (tests for new endpoint)
|
||||||
|
- `src/utils/format.ts` (refactored helper)
|
||||||
|
- `README.md` (updated docs)
|
||||||
|
|
||||||
|
Create three commits:
|
||||||
|
1. `git add src/api/user.ts src/api/user.test.ts && git commit -m "feat(api): add user profile endpoint"`
|
||||||
|
2. `git add src/utils/format.ts && git commit -m "refactor(utils): simplify date formatting logic"`
|
||||||
|
3. `git add README.md && git commit -m "docs: update API documentation"`
|
||||||
|
|
|
||||||
|
|
@ -88,11 +88,6 @@ export function Chat() {
|
||||||
<Badge variant={STATE_VARIANT[gwState] ?? "outline"} className="text-xs">
|
<Badge variant={STATE_VARIANT[gwState] ?? "outline"} className="text-xs">
|
||||||
{gwState}
|
{gwState}
|
||||||
</Badge>
|
</Badge>
|
||||||
{activeAgentId && (
|
|
||||||
<span className="text-xs text-muted-foreground font-mono">
|
|
||||||
Agent: {activeAgentId.slice(0, 8)}...
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main ref={mainRef} className="flex-1 overflow-y-auto min-h-0" style={fadeStyle}>
|
<main ref={mainRef} className="flex-1 overflow-y-auto min-h-0" style={fadeStyle}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue