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
Enhance CLAUDE guidelines and agent linkage (#1464)
Detail Go formatting and race-safe test expectations for backend work.
List frontend linting commands so CLAUDE matches current workflows.
Link AGENTS.md to CLAUDE.md so other agents reuse the strengthened guide.
Copy file name to clipboardExpand all lines: CLAUDE.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,12 @@ This project is a web-based NGINX management interface built with Go backend and
23
23
24
24
### Development Guidelines
25
25
- Write concise, maintainable Go code with clear examples
26
+
- Run `gofmt`/`goimports` before committing backend changes
26
27
- Use Gen to streamline database queries and reduce boilerplate
27
28
- Follow Cosy Error Handler best practices for error management
28
29
- Implement standardized CRUD operations using Cosy framework
29
30
- Apply efficient database pagination for large datasets
31
+
- Validate changes with `go test ./... -race -cover` before pushing
30
32
- Keep files modular and well-organized by functionality
31
33
-**All comments and documentation must be in English**
32
34
@@ -70,10 +72,12 @@ This project is a web-based NGINX management interface built with Go backend and
70
72
71
73
### Code Quality
72
74
-**Always use ESLint MCP after generating frontend code** to ensure code quality and consistency
75
+
- Run `pnpm lint`, `pnpm lint:fix`, and `pnpm typecheck` to keep style and typings aligned
73
76
74
77
## Development Commands
75
-
-**Frontend**: `pnpm run dev`, `pnpm typecheck`, `pnpm run build`
76
-
-**Backend**: Standard Go commands (`go run`, `go build`, `go test`)
78
+
-**Frontend**: `pnpm run dev`, `pnpm lint`, `pnpm typecheck`, `pnpm run build`
79
+
-**Backend**: `go generate ./...`, `go build ./...`, run `go test ./... -race -cover`; for release artifacts reuse the README command with `-tags=jsoniter -ldflags "$LD_FLAGS ..."`.
80
+
-**Demo stack**: `docker-compose -f docker-compose-demo.yml up` to bootstrap the sample environment
77
81
78
82
## Language Requirements
79
83
-**All code comments, documentation, and communication must be in English**
0 commit comments