Skip to content

Add cn-check skill for AI agent code checks#10111

Merged
sestinj merged 3 commits intomainfrom
nate/cn-check-skill
Feb 2, 2026
Merged

Add cn-check skill for AI agent code checks#10111
sestinj merged 3 commits intomainfrom
nate/cn-check-skill

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Feb 2, 2026

Summary

  • Adds a skills.sh skill that teaches AI agents how to install and use cn check — the Continue CLI command for running local AI agent checks against working tree changes
  • Skill covers installation, usage (all CLI flags), creating custom check agents, output formats, and troubleshooting
  • Installable via npx skills add continuedev/continue

Test plan

  • Verify npx skills add continuedev/continue discovers the cn-check skill
  • Verify SKILL.md renders correctly when loaded into an agent context
  • Verify instructions are accurate against the current cn check implementation

🤖 Generated with Claude Code


Continue Tasks: ▶️ 2 queued — View all


Summary by cubic

Adds a new cn check command to the Continue CLI to run local code checks against diffs with live progress, parallel workers, JSON/patch outputs, and optional auto-fix. Also adds a cn-check skill that teaches installation and usage.

  • New Features
    • New CLI: cn check runs agents in isolated git worktrees and captures edits as patches.
    • Resolves checks via --agent flags, Hub config, or .continue/agents/*.md (in that order).
    • Supports base branch selection, parallel runs, and --fail-fast.
    • Outputs text or JSON; --patch mode for piping to git apply with CI-friendly exit codes.
    • --fix applies suggested patches to the working tree and reports conflicts.
    • Adds skills/cn-check/SKILL.md covering install, login, agent creation, flags, outputs, and troubleshooting; installable via npx skills add continuedev/continue.

Written for commit 6c2dabe. Summary will update on new commits.

Adds a skill (skills.sh format) that teaches agents how to install
and use `cn check` — the Continue CLI command for running AI agent
checks locally against working tree changes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sestinj sestinj requested a review from a team as a code owner February 2, 2026 08:19
@sestinj sestinj requested review from RomneyDa and removed request for a team February 2, 2026 08:19
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Feb 2, 2026
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

⚠️ PR Title Format

Your PR title doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend using this format for better project organization.

Expected Format:

<type>[optional scope]: <description>

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

@github-actions
Copy link

github-actions bot commented Feb 2, 2026

✅ Review Complete

Code Review Summary

⚠️ Continue API authentication failed. Please check your CONTINUE_API_KEY.


Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Adds the full `cn check` CLI command for running AI agent checks
locally against working tree changes. Includes:

- check.ts: Main orchestrator — resolves checks, forks workers,
  mounts live Ink progress UI, renders final report
- CheckProgress.tsx: Ink component showing live table with status,
  braille loading animation, and elapsed timer per check
- checkWorker.ts: Forked worker process that runs an agent in an
  isolated worktree and captures its diff as a patch
- diffContext.ts: Computes git diff against base branch
- resolveChecks.ts: Discovers checks from Hub API, --agent flags,
  or local .continue/agents/*.md files
- worktree.ts: Creates/cleans up temporary git worktrees
- renderReport.ts: Formats results as text or JSON

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Feb 2, 2026
- Reorder imports to satisfy import/order rule
- Prefix unused `reject` param with underscore
- Extract mountProgressUI and outputResultsAndExit to reduce check()
  complexity below threshold
- Replace != with strict equality and remove negated conditions
- Remove unused CheckResult import from checkWorker

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@sestinj sestinj merged commit a230e22 into main Feb 2, 2026
43 of 48 checks passed
@sestinj sestinj deleted the nate/cn-check-skill branch February 2, 2026 08:48
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Feb 2, 2026
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2026
@sestinj
Copy link
Contributor Author

sestinj commented Feb 3, 2026

🎉 This PR is included in version 1.41.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

released size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant