check

Runs .continue/checks locally against the current diff, simulating the GitHub PR checks experience. Use when the user says /check to review their changes before pushing.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "check" with this command: npx skills add continuedev/skills/continuedev-skills-check

Local Check Runner

Run every .continue/checks/*.md check against the current changes, just like the GitHub PR checks do in CI.

Workflow

1. Gather context (write to disk, NOT into your context)

  • Run git diff main...HEAD and write it to /tmp/check-diff.patch. If the diff is empty, also try git diff --cached and git diff.
    • Cap the diff: If the diff exceeds 3000 lines, truncate it to 3000 lines when writing. Add a final line: \n... (diff truncated at 3000 lines).
    • Use a single bash command like: git diff main...HEAD | head -3000 > /tmp/check-diff.patch
  • Run git log main..HEAD --oneline and write it to /tmp/check-log.txt.
  • If there are no changes at all, tell the user and stop.
  • Do NOT read these files back into your own context. The sub-agents will read them directly.

2. Discover checks

  • Glob .continue/checks/*.md to 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

writing-checks

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

scan

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

all-green

No summary provided by upstream source.

Repository SourceNeeds Review