create-rule
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Use after every code change, after writing tests, or before marking a task complete, and when the user says verify, quality gate, or audit code. Runs a 7-category mechanical check for TDZ, import, dead code, and mock leakage bugs.
Claude Code
$ npx -y skills add coco-research/coco --skill code-verification --agent claude-code
Codex
$ npx skills add coco-research/coco --skill code-verification -a codex -y
Cursor
$ npx skills add coco-research/coco --skill code-verification -a cursor -y
Gemini CLI
$ npx skills add coco-research/coco --skill code-verification -a gemini-cli -y
GitHub Copilot
$ npx skills add coco-research/coco --skill code-verification -a github-copilot -y
OpenCode
$ npx skills add coco-research/coco --skill code-verification -a opencode -y
Windsurf
$ npx skills add coco-research/coco --skill code-verification -a windsurf -y
name: code-verification description: "Use after every code change, after writing tests, or before marking a task complete, and when the user says verify, quality gate, or audit code. Runs a 7-category mechanical check for TDZ, import, dead code, and mock leakage bugs." 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`:
495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.
Create Cursor rules for persistent AI guidance. Use when the user wants to create a rule, add coding standards, set up project…
Guides users through creating effective Agent Skills for Cursor. Use when the user wants to create, write, or author a new skill,…
Create custom subagents for specialized AI tasks. Use when the user wants to create a new type of subagent, set up task-specific…
Convert 'Applied intelligently' Cursor rules (.cursor/rules/*.mdc) and slash commands (.cursor/commands/*.md) to Agent Skills…
Modify Cursor/VSCode user settings in settings.json. Use when the user wants to change editor settings, preferences,…
Train and optimize AI agents using Microsoft's Agent Lightning framework with reinforcement learning. Use when setting up agent…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.