mit einem Klick
writing-checks
// Write Continue check files that review pull requests with AI agents. Use when the user asks to create, write, or generate a check, or wants to enforce a convention on PRs.
// Write Continue check files that review pull requests with AI agents. Use when the user asks to create, write, or generate a check, or wants to enforce a convention on PRs.
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.
Polish an open-source repository with branding, community files, README overhaul, OG card, usage skill, PR checks, and publishing setup. Designed as a reusable template for Continue repos.
Addresses all PR review comments, resolves merge conflicts, and fixes failing CI checks to get the PR ready to merge. Use when the user wants to make their PR "all green" or ready for merge.
Scans the codebase against another skill's criteria using a parallel agent team. Use when the user says /scan <skill-name> to audit code quality, find violations, or assess conformance to best practices.
| name | writing-checks |
| description | Write Continue check files that review pull requests with AI agents. Use when the user asks to create, write, or generate a check, or wants to enforce a convention on PRs. |
| license | Apache-2.0 |
| metadata | {"author":"continuedev","version":"1.0.0"} |
Write check files for Continue — markdown files that define AI agents that review pull requests.
A check is a markdown file with YAML frontmatter and a body. The frontmatter configures metadata. The body is the prompt the agent follows when reviewing a PR.
---
name: Migration Safety
description: Flag destructive database migrations
---
Your prompt here. This becomes the agent's system prompt
when evaluating the pull request.
| Field | Required | Type | Description |
|---|---|---|---|
name | Yes | string | Display name shown in GitHub status checks and on continue.dev |
description | Yes | string | Short description of what the check verifies |
model | No | string | Model to use. Defaults to Claude Sonnet. Example: anthropic/claude-sonnet-4-5-20250514 |
Save checks to .continue/checks/<name>.md at the repository root. Only .md files in that directory are scanned — subdirectories are not.
The body is an agent prompt. Write it as direct instructions telling the agent what to look for and what to do about it.
One check per concern. A check that tries to cover security, test coverage, and documentation will produce muddled results. Split into three checks.
List concrete criteria. Vague instructions produce vague results.
Good:
Look for these issues in the changed code and fix them:
- New REST endpoints missing request body validation
- Database queries using string interpolation instead of parameterized queries
- Error responses that expose stack traces or internal paths
Bad:
Check that the code is secure.
The system automatically prepends a meta prompt that:
Don't include instructions like "review the changed files" or "only look at the diff" — that's already handled. Focus on what to look for and how to fix it.
The agent running a check can:
grep, find, or custom scriptsgh) to read PR metadata, comments, or linked issuesLinting handles formatting, style, and static patterns. If a rule can be expressed as a pattern match on syntax, it belongs in a linter.
Tests verify correctness and behavior. If the question is "does this function return the right output," write a test.
Checks handle judgment calls that require understanding context:
When the user asks you to write a check:
.continue/checks/ to understand the project's stack, conventions, and what's already covered..continue/checks/<name>.md.---
name: Migration Safety
description: Flag destructive database migrations
---
If no migration files were added or changed, no action is needed.
When migrations are present, look for these issues:
- `DROP TABLE` or `DROP COLUMN` without a preceding migration that backs up or migrates the data — add a data migration step or split into separate migrations
- Column type narrowing (e.g., `TEXT` to `VARCHAR(50)`, `BIGINT` to `INT`) without a backfill step — add a backfill or guard against data truncation
- `NOT NULL` constraint added to an existing column without a `DEFAULT` value — add a default or a data backfill migration
- Renaming a column or table that is referenced by application code without updating that code in the same PR — update the references
- A destructive and a constructive change in the same migration file — split into separate migrations for safe rollback