At a glance
Reference for AI: CI setup prompts at a glance
Reference for AI: CI setup prompts at a glance
- Preview options: A) predictable URL pattern, B) URL from an existing deploy workflow, C) temporary preview built inside the job. C is not allowed for generation.
- PR comments come from Checksum, not the workflow: the action passes the PR on
pull_requestevents, and generation posts its own “Checksum Auto-Generate” comment. No comment steps, nopull-requests: write. - Permissions:
contents: read,pull-requests: read. Skip fork PRs with anif:(no secrets). - Cancelling the workflow doesn’t stop a Checksum run.
How to use the prompts
Fill in the placeholders
{{PLACEHOLDER}}. If you don’t know a value, write ASK ME or leave the placeholder as it is. The agent always asks about your setup before it writes anything (see “Step 0” in the shared context).Trim the optional blocks
[OPTIONAL: …] blocks that apply and delete the rest.Leave the fixed requirements alone
Paste into your agent
Choose a preview URL
Both workflows point Checksum at the PR’s preview URL. How long that URL has to stay up depends on which workflow uses it:Shared context
Paste this before either prompt. It describes your repositories, secrets and preview, and tells the agent to ask before it builds.Prompt 1: Sharded test run on PR, with auto-healing
Builds a workflow that runs your suite against the PR’s preview as a sharded run, passes or fails the check on the run’sverdict, and heals failures. It uses the GitHub Action by default.
Prompt 2: Test generation when a PR opens
Has the agent pick between Checksum’s built-in auto-generate, a workflow that calls the generation API, or a/checksum generate comment, and build only the one that fits. The default is the API workflow, since it’s the only one that can pass a per-PR preview URL.
Why the fixed requirements are there
Troubleshooting
Checksum didn't comment on my PR
Checksum didn't comment on my PR
pull_request event this is automatic; on other events, set pr-number and repo-name. With the REST API, send autoHeal.repoName + autoHeal.prNumber (test runs) or prNumber + repoName (generation). The repository must be connected in Git Integration.The run finished with verdict fail but 0 passed and 0 failed
The run finished with verdict fail but 0 passed and 0 failed
branch you run against and that your grep pattern matches them.The agent built a temporary preview for generation
The agent built a temporary preview for generation