Mandatory sequence for every agent after code changes — implementation, bugfix, refactor, or post-review fixes.
Agents must run these themselves. Do not ask the user to run them. Do not mark work complete until all steps pass.
Command reference: .claude/commands/smell.md · /smell [branch] (default base: develop)
| Phase | Steps |
|---|---|
| After implementation / fix | Fast lint → /smell → fix BLOCKER/HIGH → make audit |
| Code review (PR or diff) | /smell first → review-agent checklists |
| Review → fix cycle | Apply fixes → repeat full chain below |
| Before PR or “done” | Full chain; zero BLOCKER/HIGH smell findings |
Go:
golangci-lint run ./cmd/... ./internal/... ./pkg/...
go test -race ./cmd/... ./internal/... ./pkg/...Frontend:
cd frontend && npm run lint && npm run testFix compile/lint failures before smell — smell is not a substitute for lint.
Follow .claude/commands/smell.md on the git diff vs develop.
- Produce the Smell Report (includes Principles checked: Clean Code · KISS · DRY · DDD · SOLID)
- Fix all BLOCKER and HIGH catalog findings (
MGW.*,CC.*,DDD.*,SOLID.*,GO.*,TS.*) - Re-run
/smellafter fixes until clean or only MEDIUM/LOW/NIT remain
From repository root:
make auditExit code 0 required. Fix failures and repeat from step 2 if the diff changed materially.
State explicitly:
- Smell summary (findings count / clean)
make auditresult- Any MEDIUM items deferred (with reason)
| Agent | Smell role |
|---|---|
| master-agent | Enforces this chain on all delegated work |
| delivery-agent | Runs chain after §4.3 Implement |
| review-agent | Runs /smell before §2 checklists |
See prompts.md for copy-paste snippets.