Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

cn-check中国检查

Agent Skill

cn-check 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

563

周安装

23

GitHub Stars

32,506

下载量

182
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cn-check(中国检查)
来源仓库:https://github.com/continuedev/continue
仓库路径:skills/cn-check
安装命令:
npx skills add https://github.com/continuedev/continue --skill cn-check
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/continuedev/continue --skill cn-check

简介

cn-check 用于对代码变更进行本地 AI 驱动的检查,识别问题并提供修复建议。

  • 适合在提交前或 CI 流程中使用,帮助提升代码质量与一致性。
  • 每个检查由一个定义在 Markdown 中的 Agent 执行,支持自定义规则与修复应用。
  • 需 Node.js 18+ 环境,并在 Git 仓库中运行以分析未提交的更改。
  • cn-check 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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:

# 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

  1. Diff — Computes git diff <base>...HEAD to find changed files
  2. Resolve — Discovers which checks to run (Hub, local, or --agent flags)
  3. Worktree — Creates a temporary git worktree per check for isolation
  4. Run — Forks a worker process per check; the agent runs with full tool access
  5. Capture — After the agent finishes, captures git diff in the worktree as a patch
  6. 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

ProblemSolution
"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 --fixApply patches manually: cn check --patch > changes.patch && git apply changes.patch

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.48%
按下载量换算66

Claude

30.79%
按下载量换算56

Cursor

20.24%
按下载量换算37

Gemini CLI

9.43%
按下载量换算17

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills