cn-check

Instructions for using Continue’s cn command-line tool to run AI-based checks on uncommitted or branched code changes.

In plain words
What is it for?
It covers installing and logging into cn, discovering checks, running all checks, selecting a specific check, and applying suggested fixes as a patch.
Why use it?
It gives developers a way to review local changes with configured or custom checks before sending them for review.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/continuedev/continue/cn-check
Any agent
npx skills add continuedev/continue --skill cn-check
Clone the repo
git clone --depth 1 https://github.com/continuedev/continue

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,329 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00049 $0.01329
Opus 5 $0.00024 $0.00665
Sonnet 5 $0.00010 $0.00266
Haiku 4.5 $0.00005 $0.00133

Measured yesterday against content hash 63d7241f9cc0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cn-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cn-check/SKILL.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

cn check — Local AI Agent Checks

Run AI-powered code checks locally against your working tree changes using the Continue CLI. Each check is an agent (defined in markdown) that reviews your diff, identifies issues, and optionally suggests fixes as a patch.

When to Use

  • User asks to run AI checks on their code changes
  • User wants to set up cn check in a project
  • User needs to create custom check agents
  • User wants to apply AI-suggested fixes locally
  • User asks about Continue CI or agent-based code review

Installation

Prerequisites

  • Node.js 18+
  • A git repository with uncommitted or branched changes

Install the CLI

npm install -g @continuedev/cli

Authenticate (required for Hub checks, optional for local-only)

cn login

This opens a browser for authentication. After login, Hub-configured checks are available automatically.

Usage

Basic: Run all discovered checks

cn check

This auto-detects checks from three sources (in priority order):

  1. Hub API — checks configured for your repo on continue.dev
  2. Local agents — markdown files in .continue/agents/*.md

Specify agents explicitly

# Run a single local agent
cn check --agent .continue/agents/security-review.md

# Run a Hub-published agent
cn check --agent myorg/code-style

# Run multiple agents
cn check --agent .continue/agents/security.md --agent .continue/agents/docs.md

Compare against a specific base branch

cn check --base develop

Default: auto-detects main or master.

Output formats

# JSON output (for CI pipelines or scripting)
cn check --format json

# Unified patch output (pipe to git apply)
cn check --patch | git apply

# Stop on first failure
cn check --fail-fast

Auto-fix mode

cn check --fix

Runs all checks, then applies any suggested patches directly to the working tree. Patches that conflict are reported but skipped.

Creating a Check Agent

Create a markdown file at .continue/agents/<name>.md:

Read the full file on GitHub · 201 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 201 lines · 49 tokens per session scan A 63d7241f9cc0

Subscribe to this mod's changes

cn-check is a skill published in the GitHub repository continuedev/continue (35,702 stars, last pushed 2d ago), licensed Apache-2.0. It adds 49 tokens to every session and 1,329 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

admet_genetic

ADMET-guided genetic molecule optimization workflow from seed SMILES; use when the agent needs to build or run an RDKit/SA-Score/ADMET-AI GA pipeline for molecule optimization, enforce molecule lineage logs, render optimization-history HTML dashboards, and write candidate triage reports.

PKU-YuanGroup/OpenAI4S · 63 tokens

bioprobench

Score an LLM's biological-protocol reasoning on the BioProBench benchmark: protocol QA, step ordering, error detection, protocol generation, and LLM-judged error reasoning; or generate the responses.

PKU-YuanGroup/OpenAI4S · 46 tokens

alphafold2

Predict protein structure for monomers and multimers with AlphaFold2 via the ColabFold runner (Mirdita et al. 2022, github.com/sokrypton/ColabFold; AlphaFold2 Jumper et al. 2021). Reach for this skill to fold a sequence or complex with the AF2/AF2-Multimer evoformer, to validate designed sequences by self-consistency…

PKU-YuanGroup/OpenAI4S · 117 tokens

audit-dataset

Audit tabular datasets before analysis or training for schema drift, missing values, duplicate rows or IDs, target imbalance, and entity or group leakage across splits using pure-stdlib helpers.

PKU-YuanGroup/OpenAI4S · 40 tokens

openagentskill-registry

Discover, compare, audit, and safely install reusable AI Agent Skills with OpenAgentSkill. Use whenever an agent needs a capability it does not already have, must compare Skill alternatives, or needs evidence before installing third-party instructions.

Leon-Drq/openagentskill · 51 tokens

open-video

Generate, edit, or direct videos via open-source models (MiniMax H3 baseline; Wan2.2 / LTX future). Use when the user wants to turn a concept, script, or reference image into a finished video or multi-shot film — single shots, image-to-video, first-last-frame interpolation, reference-video/audio styling, or stitched…

open-video-ai/open-video · 107 tokens