Exclude files
Keep generated and vendored files out of Crysk reviews with a `.cryskignore` file.
Do it with your agent
Paste this prompt into Claude Code, Codex or another coding agent. It reads this page and does the steps for you.
Add a .cryskignore for this repository's generated and vendored files. Follow https://crysk.dev/docs/reviews/exclude-files.md and run each step yourself.
Crysk does not review excluded files, and does not count them toward the size limit. A .cryskignore at your repository root adds your own exclusions. It works with the Crysk GitHub App and with the open-source GitHub Action.
Built-in exclusions
Section titled “Built-in exclusions”These are always excluded:
bun.lockpackage-lock.jsonyarn.lockpnpm-lock.yamlCargo.lockgo.sum*.min.js*.min.css*.snapAdd your own
Section titled “Add your own”Create .cryskignore at the repository root, one pattern per line:
# generated codesrc/generated/*.pb.go
# vendoredvendor/third_party/
# keep a built-in excluded file in review!go.sumCommit it to your default branch.
How patterns work
Section titled “How patterns work”The syntax is a subset of .gitignore:
#starts a comment, and blank lines are ignored.*,?,[a-z]and**work as in.gitignore.- A leading or inner
/anchors the pattern to the repository root. A trailing/matches directories only, sodist/matches adistdirectory at any depth and/dist/only the one at the root. !patternincludes a file again. The last matching line wins, built-ins first, then your file from top to bottom.- Matching is case-sensitive:
README.mddoes not matchreadme.md. {and}are plain characters, not alternatives.
Only the .cryskignore at the repository root is read. A file in a subdirectory is ignored.
Where it is read from
Section titled “Where it is read from”| Where Crysk runs | Read from |
|---|---|
| In CI | The base branch of the pull request, so a pull request cannot exclude its own changes. |
| Locally | Your working tree. |
A malformed line stops the review before anything is spent, and the error names the file, the line and its text.
When everything is excluded
Section titled “When everything is excluded”If every changed file in a pull request is excluded, there is nothing to review. Crysk posts no comment and spends nothing. The action output status is skipped-excluded, and in gate mode the crysk check turns green with crysk: nothing to review — every changed file is excluded. See The check and the merge gate.