Skip to content

Commit 2093509

Browse files
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.
1 parent 7934439 commit 2093509

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CLAUDE.md

CLAUDE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ This project is a web-based NGINX management interface built with Go backend and
2323

2424
### Development Guidelines
2525
- Write concise, maintainable Go code with clear examples
26+
- Run `gofmt`/`goimports` before committing backend changes
2627
- Use Gen to streamline database queries and reduce boilerplate
2728
- Follow Cosy Error Handler best practices for error management
2829
- Implement standardized CRUD operations using Cosy framework
2930
- Apply efficient database pagination for large datasets
31+
- Validate changes with `go test ./... -race -cover` before pushing
3032
- Keep files modular and well-organized by functionality
3133
- **All comments and documentation must be in English**
3234

@@ -70,10 +72,12 @@ This project is a web-based NGINX management interface built with Go backend and
7072

7173
### Code Quality
7274
- **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
7376

7477
## 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
7781

7882
## Language Requirements
7983
- **All code comments, documentation, and communication must be in English**

0 commit comments

Comments
 (0)