continue-custom/docs/checks/quickstart.mdx
Nate 12f8e7fc9c docs: restructure checks section and update docs content
Rename checks pages for clarity (writing-good-checks -> best-practices,
examples -> generating-checks, setup-on-continue -> running-in-ci).
Update navigation, integration pages, and homepage content.
Remove unused check files and add stale-comments check.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 23:16:52 -08:00

50 lines
1.6 KiB
Text

---
title: "Write Your First Check"
---
## Generating checks (recommended)
Paste this into Claude Code or any coding agent:
```
Help me write checks for this codebase: https://continue.dev/walkthrough
```
The walkthrough reads your codebase, helps you write your first checks, connects you to Continue, and gets them running on your next PR. It takes a few minutes.
If you'd rather set things up manually, keep reading.
## Writing checks manually
A check file has two parts: **frontmatter** (YAML between `---` delimiters) with a required `name` and `description`, and a **body** prompt that tells the AI what to look for. Create a `.md` file in `.continue/checks/`:
```markdown .continue/checks/security-review.md
---
name: Security Review
description: Flag hardcoded secrets and missing input validation
---
Review this pull request for security issues.
Flag as failing if any of these are true:
- Hardcoded API keys, tokens, or passwords in source files
- New API endpoints without input validation
- SQL queries built with string concatenation
- Sensitive data logged to stdout
If none of these issues are found, pass the check.
```
Write concrete pass/fail criteria so the check produces consistent results. See the [reference](/checks/reference) for all available fields.
## Next steps
<CardGroup cols={2}>
<Card title="Run Locally" icon="terminal" href="/checks/running-locally">
Verify your checks before pushing by running `/check` in your coding agent.
</Card>
<Card title="Run Checks in CI" icon="github" href="/checks/running-in-ci">
Set up GitHub integration so checks run on every pull request.
</Card>
</CardGroup>