cn-check
Install and run the Continue CLI (`cn`) to execute AI agent checks on local code changes. Use when asked to "run checks", "lint with AI", "review my changes with cn", or set up Continue CI locally.
Install
mkdir -p .claude/skills/cn-check && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2953" && unzip -o skill.zip -d .claude/skills/cn-check && rm skill.zipInstalls to .claude/skills/cn-check
About this skill
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 checkin 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):
- Hub API — checks configured for your repo on continue.dev
- 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:
# Security Review
You are a security reviewer. Examine the code changes for:
- SQL injection vulnerabilities
- XSS risks in user-facing output
- Hardcoded secrets or credentials
- Insecure use of eval() or similar
If you find issues, edit the files to fix them. If everything looks good, say so and exit.
The agent receives:
- The full diff against the base branch
- A list of changed files
- Access to read/edit files in a temporary worktree
Any edits the agent makes are captured as a patch and reported as a "fail" with suggested changes.
How It Works
- Diff — Computes
git diff <base>...HEADto find changed files - Resolve — Discovers which checks to run (Hub, local, or
--agentflags) - Worktree — Creates a temporary git worktree per check for isolation
- Run — Forks a worker process per check; the agent runs with full tool access
- Capture — After the agent finishes, captures
git diffin the worktree as a patch - Report — Renders results: pass (no changes), fail (patch produced), or error
Checks run in parallel by default. Use --fail-fast for sequential execution that stops on first failure.
Output
Interactive terminal (TTY)
A live-updating table shows check progress:
cn check - 3 checks against main - 5 changed files
Check Status Time
--------------------------------------------
Security Review * Running 12s
Code Style Pass 8s
Documentation Pending -
When complete, a full report prints with pass/fail status, agent output, and suggested patches.
JSON output (--format json)
{
"checks": [
{
"agent": ".continue/agents/security.md",
"name": "security",
"status": "pass",
"patch": "",
"output": "No security issues found.",
"duration": 8.2
}
],
"summary": {
"total": 1,
"passed": 1,
"failed": 0,
"errored": 0
}
}
CLI Reference
cn check [options]
Options:
--base <branch> Base branch for diff (default: auto-detect)
--format <format> Output format: text or json (default: text)
--fix Apply suggested fixes to working tree
--patch Output unified patch (pipe to git apply)
--fail-fast Stop after first failing check
--agent <agent> Agent to run (hub slug or local path, repeatable)
--config <path> Path to config file
--org <slug> Organization slug
--verbose Enable debug logging
Troubleshooting
| Problem | Solution |
|---|---|
| "No changes detected" | Make sure you have uncommitted changes or specify --base |
| "No checks found" | Create .continue/agents/*.md files or run cn login for Hub checks |
| Check times out (5 min) | Reduce diff size or split into focused agents |
| "Worker exited with code 1" | Run with --verbose to see worker stderr |
Patch conflicts with --fix | Apply patches manually: cn check --patch > changes.patch && git apply changes.patch |
You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversMCP Science: Easily discover and run scientific research MCP servers from the Path Integral Institute with automated set
Manage Android devices with ADB: execute shell commands, install apps, capture screenshots, and transfer files for effic
Skill Management is workflow automation software that builds, organizes, and executes maintainable software workflows wi
Run Python code online securely with our Python program interpreter. Execute code, install packages, and manage files in
Optimize your codebase for AI with Repomix—transform, compress, and secure repos for easier analysis with modern AI tool
Connect Blender to Claude AI for seamless 3D modeling. Use AI 3D model generator tools for faster, intuitive, interactiv
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.