create-rule
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project conventions, configure…
Post-implementation verification system that catches AI-introduced bugs. Covers 7 categories — TDZ errors, import mismatches, reference integrity, dead code, React state/effects, mock isolation, and CSS integrity. Run after every code change, after writing tests, or before
$ npx -y skills add coco-research/coco --skill code-verification --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-verificationContext preview
The summary Claude sees to decide when to auto-load this skill.
Post-implementation verification system that catches AI-introduced bugs. Covers 7 categories — TDZ errors, import mismatches, reference integrity, dead code, React state/effects, mock isolation, and CSS integrity. Run after every code change, after writing tests, or before
name: code-verification description: Post-implementation verification system that catches AI-introduced bugs. Covers 7 categories — TDZ errors, import mismatches, reference integrity, dead code, React state/effects, mock isolation, and CSS integrity. Run after every code change, after writing tests, or before marking a task complete. Triggers on "verify", "check code quality", "run verification", "audit code", "quality gate", "pre-commit check". domain: engineering
A systematic post-implementation verification workflow that catches the bugs AI coding assistants most commonly introduce. This is NOT a code review for style or architecture — it is a mechanical correctness checklist that catches structural errors (TDZ, imports, dead code, mock leakage, CSS orphans, React anti-patterns) that humans and AI both miss during implementation.
1. Identify changed files (git diff --name-only or manual list) 2. Run the 7-category checklist below on each file 3. Run automated checks (build, lint, tests) 4. Report findings as PASS / FAIL / WARNING 5. Fix all FAIL items before proceeding
---
**What to check:** Variables, constants, and hooks used BEFORE their declaration in the same scope.
**How it breaks:** JavaScript `const` and `let` have a "temporal dead zone" — referencing them before their declaration line throws `ReferenceError` at runtime, but no build error.
**React-specific**: `useMemo`, `useCallback`, `useEffect` that reference state or derived values declared later in the component. This is the #1 AI-introduced bug.
**Scan pattern:**
**Real examples caught:**
**Fix:** Move the declaration above all usages. If it's a React hook, reorder hooks so dependencies come first.
---
**What to check:** Every import resolves to a real export. Named vs default matches.
**How it breaks:** Build may succeed (tree-shaking ignores dead imports in dev mode) but runtime throws `undefined is not a function`.
**Scan pattern:**
**Real examples caught:**
**Automated check:**
npx eslint --rule '{"import/named": "error", "import/default": "error"}' src/---
**What to check:** After any rename/remove/move, ALL usages of the old name are updated.
**Scan pattern:**
**Real examples caught:**
// BUG: setPrdDocViewMode was removed but Cmd+E handler still calls it
useEffect(() => {
const handler = (e) => {
if (e.metaKey && e.key === 'e') setPrdDocViewMode(prev => ...); // ReferenceError
};
}, []);---
**What to check:** Unused imports, unreachable code, orphaned handlers.
**Scan pattern:**
**Automated check:**
npx eslint --rule '{"no-unused-vars": "error", "no-unreachable": "error"}' src/file.jsx---
**What to check:** State variables are used, effects clean up, no updates after unmount, correct dependencies.
When the same component renders for multiple routes (e.g., `OperationalDocEditor` for DR/IRP/Recovery):
For every `useEffect`:
-
CoCo Super Intelligence is the orchestration layer that turns Claude Code, Cursor, or Codex into an engineering department: a routed advisory board, 185 skills, 280 commands, persistent state. Local. Open-core — MIT core; Super Intelligence is proprietary, own-use.
Repo: coco-research/coco
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project conventions, configure…
Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill, or asks about skill…
Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific agents, configure code…
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills format (.cursor/skills/). Use…
Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences, configuration, themes, font size, tab…
Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent training, instrumenting agents…