continue-custom/docs/checks/generating-checks.mdx
Nate Sesti 56798ad241
Document check CLI for running checks locally (#10991)
* 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>
2026-03-02 20:32:10 -08:00

70 lines
2.4 KiB
Text

---
title: "Generating Checks"
---
The best way to create checks is to have your coding agent write them. Install the [`writing-checks`](https://github.com/continuedev/skills?tab=readme-ov-file#writing-checks) skill to teach your agent the check file format and best practices:
```bash
npx skills add continuedev/skills --skill writing-checks
```
Then describe what you want to enforce and the agent writes the check file, tailored to your actual frameworks, file structure, and conventions. Here are some prompts to try:
## Security
Catch vulnerabilities specific to your stack — auth gaps, injection vectors, leaked secrets.
```
Look at our codebase and write checks for the most likely security issues — think auth bypasses, injection vectors, secrets in source, and missing input validation. Tailor the checks to the frameworks and patterns we actually use.
```
## Code review patterns
Turn recurring PR feedback into automated checks so reviewers don't have to repeat themselves.
```
Look through our recent PR review comments and identify things reviewers say repeatedly. Write checks that automate those recurring review comments.
```
## QA and browser testing
Verify that UI changes render correctly and don't break links or layouts.
```
Write a check that uses a browser to verify any new or changed pages render without errors and match our design system
```
## Best practices
Enforce the conventions your team already follows — error handling, naming, migration safety.
```
Analyze our codebase and write checks for the patterns that matter most — error handling conventions, logging standards, naming conventions, or whatever you see us being inconsistent about
```
## Test coverage
Make sure new code ships with tests that match your project's existing patterns.
```
Write a check that verifies new code has corresponding tests, following the test file naming and structure conventions already in our project
```
## Documentation
Flag PRs where public APIs or config changed but the docs didn't.
```
Write a check that flags PRs where public API or configuration changes aren't reflected in documentation
```
## Iterate locally
Write the check (or have your agent write it), run it against a real PR branch, read the output, refine:
```bash
check scan migration-safety # audit the full codebase
check # run against your current diff
```
See [Run Checks Locally](/checks/running-locally) for the full local testing workflow.