racket-coding
Racket coding conventions. Use when writing or modifying Racket (.rkt) files.
Files1
View on GitHubSKILL.md.claude/skills/racket-coding/SKILL.md
GitHubStyle
- When a procedure has many positional arguments, you can use symbol
comments as a poor man's keywords. For example, instead of
(File p s)you can write(File #;path p #;size s). - Avoid rightward shift -- when possible, prefer local
defines instead ofletor similar. Sometimes aletis intentional in order to shadow definitions. - Prefer
nullover'()or(list).
Validation
After changing a Racket file, perform the following steps to validate the change:
- Lint:
./bin/pbraco review <path/to/file.rkt>-- fix any linting issues, but note that the linter may produce false-positives. When in doubt, ask the user. - Build:
make-- fix any build issues. - Test:
./bin/pbraco test <path/to/file.rkt>-- fix any test failures.