> Crysk 0.9.0 docs. Index of every page: https://crysk.dev/llms.txt

# Quickstart with GitHub Actions

Get your first Crysk review on a pull request in about 10 minutes, on the Claude plan you already pay for.

At the end, Crysk has reviewed a pull request in your repository and the `crysk` check shows its verdict. The review runs in GitHub Actions and uses your Claude Pro or Max plan.

## Before you start

- **A GitHub repository** where you can add Actions secrets (admin or write access).
- **Node.js**, for `npx`: check with `node --version`.
- **The GitHub CLI, logged in**: check with `gh auth status`. Install it from [cli.github.com](https://cli.github.com).
- **Claude Code with a Pro or Max plan** on any machine, to create the token: check with `claude --version`.

## 1. Add the workflow

In a clone of your repository, run:

```bash
npx -y crysk setup --ci
```

In a terminal it asks how re-reviews should work. Press Enter to keep the defaults. You should see:

```text
Created .github/workflows/crysk.yml
Updated .crysk/config.json
```

Not what you got? If it says a workflow already exists, run `npx -y crysk setup --ci --force` to overwrite it.

## 2. Store your Claude token as a secret

Create a long-lived token for your Claude plan, then paste it when `gh` asks for the secret value:

```bash
claude setup-token
gh secret set CRYSK_CLAUDE_OAUTH_TOKEN
```

You should see:

```text
✓ Set Actions secret CRYSK_CLAUDE_OAUTH_TOKEN for <owner>/<repo>
```

Not what you got? `gh secret set` needs admin or write access to the repository.

## 3. Commit the files to your default branch

```bash
git add .github/workflows/crysk.yml .crysk/config.json
git commit -m "ci: add Crysk review"
git push
```

The files must be on the default branch: comment commands such as `/crysk review` read the workflow from there.

## 4. Open a pull request

Push any change on a new branch and open a pull request from it:

```bash
git switch -c try-crysk
echo "" >> README.md
git commit -am "chore: try Crysk"
git push -u origin try-crysk
gh pr create --fill
```

Open the pull request from a branch of the same repository, not from a fork: fork pull requests are only reviewed when a maintainer asks for it.

## 5. See the review

Within a few minutes, the **Crysk Review** workflow finishes and the `crysk` check appears on the pull request. Its description says what happened:

| Check | Meaning |
|---|---|
| `review posted` or `review complete` | The review finished. Findings, if any, are comments on the pull request. |
| `crysk: N blocking finding(s) — fix and push, or /crysk override` | The review found bugs that should block the merge. |

Not what you got? A failed run names its cause with a `CRYSK-*` code in the check and on the pull request. Look it up in the [error codes](https://crysk.dev/docs/reference/error-codes.md).

## Next steps

- **[Make the check block merges](https://crysk.dev/docs/reviews/merge-gate.md):** in your branch protection rule, require the `crysk` status check.
- **[Tell Crysk about your codebase](https://crysk.dev/docs/reviews/review-instructions.md):** add a `REVIEW.md` at the repository root with the facts a reviewer cannot infer from the diff. `npx -y crysk init` creates a starting file; replace its placeholder lines before you commit it.
- **Review again on demand:** comment `/crysk review` on a pull request.
