SKILL.md
$27
- Glob
.continue/checks/*.mdto find all check files.
- Do NOT read the check files. Just extract the filename and use it to derive the check name (e.g.,
code-conventions.md-> "Code Conventions").
- Present the user with the list of checks that will run, then proceed immediately without waiting.
3. Run checks in parallel (background agents)
For each check file, spawn a sub-agent with these settings:
subagent_type: "general-purpose"
run_in_background: true
Use this prompt structure:
You are a code reviewer running an automated check on a pull request.
## Setup
1. Read your check instructions from: {absolute path to .continue/checks/xxx.md}
2. Read the diff from: /tmp/check-diff.patch
3. Read the commit log from: /tmp/check-log.txt
## Your Task
Review the diff according to your check instructions. For each finding:
1. State the severity (Error / Warning / Info)
2. Reference the specific file and line from the diff
3. Explain what's wrong and how to fix it
If everything looks good and you have no findings, say "PASS" and briefly explain why the changes are clean for your check.
If you have findings, say "FAIL" and list them.
Keep your response concise. Do not repeat the diff back. Focus only on actionable findings.
Your final message must start with either "PASS" or "FAIL" on its own line.
Launch ALL sub-agents in a single message (all Agent tool calls together).
4. Collect results
After all agents complete, read just the last 30 lines of each output file: tail -30 {output_file}. Parse whether it says PASS or FAIL and extract the key findings.
5. Summarize results
Present a summary table:
| Check | Result |
|-------|--------|
| Code Conventions | Passed |
| Security | 2 errors, 1 warning |
| Test Quality | Passed |
6. Triage findings
Do NOT dump all failure details in a big block. Instead, use AskUserQuestion to present each failed check's findings and let the user decide what to do.
For each check that has findings, present ONE AskUserQuestion with:
- The check name as the header
- A concise description of the finding(s) in the question text
- Options like:
- "Fix it" — you will fix the issue
- "Skip" — ignore this finding
You can batch multiple failed checks into a single AskUserQuestion call (one question per failed check, up to 4 per call). If there are more than 4 failed checks, use multiple AskUserQuestion calls.
Then execute whatever the user chose — fix the issues they said to fix, skip the ones they said to skip.