Skip to content

Commit 3238246

Browse files
JAORMXclaude
andauthored
Add explicit Taskfile usage guidance to CLAUDE.md (#4700)
Claude Code agents kept running `go test`, `go build`, and `golangci-lint` directly instead of using the Taskfile, which has the correct flags, exclusions, and environment setup. The commands section listed `task` commands but never prohibited direct usage, so the instruction lost salience during long conversations. Add an IMPORTANT callout after the commands block and a new "Things That Will Bite You" section to make the requirement explicit and durable. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ccad93a commit 3238246

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ task build-image # Build container image
2323
task build-all-images # Build all container images
2424
```
2525

26+
**IMPORTANT**: Always use `task` commands. Never run `go test`, `go build`, or `golangci-lint` directly -- the Taskfile has correct flags, exclusions, and environment setup that direct commands miss.
27+
2628
**Testing**: Ginkgo/Gomega for BDD-style tests. Unit tests for `pkg/` business logic; E2E tests for CLI commands.
2729

2830
## Available Subagents
@@ -84,6 +86,11 @@ Detailed rules are in `.claude/rules/` (loaded automatically when matching files
8486

8587
When making changes that affect architecture, update relevant docs in `docs/arch/`. See `docs/arch/README.md` for structure.
8688

89+
## Things That Will Bite You
90+
91+
- Running `go test ./...` or `golangci-lint run` directly skips Taskfile configuration (exclusions, flags, formatting). Always use `task test`, `task lint-fix`, etc.
92+
- After modifying API handlers or CLI commands, run `task docs` to regenerate CLI documentation.
93+
8794
## Evolving Conventions
8895

8996
When a developer states a preference, convention, or correction during conversation (e.g., "we should use X instead of Y", "don't do Z", "always prefer A over B"), you MUST:

0 commit comments

Comments
 (0)