# Lint

> Lint and format code

- Skill: `kalbasit/lint` (Agent Skill)
- Install (CLI): `npx skillmds@latest add kalbasit/lint`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kalbasit/lint/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: kalbasit (https://skillmd.com/u/kalbasit)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/kalbasit/lint

---


// turbo-all

1. Run standard linter (with fix enabled by default as preferred in CLAUDE.md):

```bash
nix develop --command golangci-lint run --fix
```

2. (Optional) Run linter on specific files:

```bash
nix develop --command golangci-lint run --fix $FILE
```

3. Format all files using Nix:

```bash
nix fmt
```

4. (If SQL files modified) Lint SQL files:

```bash
nix develop --command sqlfluff lint db/query.*.sql db/migrations/
```

