* Replace /check skill references with check CLI documentation Rewrite running-locally.mdx to document the check CLI (continuedev/check-cli) including install, scan, run, list commands, and output formats. Update quickstart and generating-checks pages to reference the CLI instead of the /check skill. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Trim running-locally to walkthrough, not reference Remove List checks, Output formats, flag details, and extra explanatory text. Keep the core flow: install → scan → run → iterate → automate. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix wording: "For running" → "To run" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove fuzzy-match implementation detail from scan docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove Iterate section, add single-check example to Run section Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove scan failure command example Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Rename "Run checks on your diff" → "... current changes" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Rename "Scan your codebase" → "Check your entire codebase" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add intro paragraph and link to quickstart for new users Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Add motivation paragraph for running checks locally Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Condense intro to single paragraph Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove em dashes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove "full control over what runs" from intro Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Restore concrete nouns to intro paragraph Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Use `check security-review` instead of `check run security-review` Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Reference check init for users without checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix missing blank line before heading Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Use continue.dev/check/install.sh for cleaner install URL Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Tighten intro copy, remove prerequisites line Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Fix schemeless curl URL in running-locally.mdx Add https:// scheme to continue.dev/check/install.sh URL so curl resolves it correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
50 lines
1.6 KiB
Text
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 with the `check` CLI.
|
|
</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>
|