Ctx code review

From ActiveMemory/ctx · View interactive version

Ctx code review is an AI agent skill from the GitHub repository ActiveMemory/ctx. Review code changes for correctness, edge cases, and convention adherence. Use when the user asks to review code, a diff, a PR, or says 'review this'.

How to use this skill

Skill file

Review the specified code change focusing on substance over style.

When to Use

When NOT to Use

you have an external PR-review skill (the GitNexus suite

ships /gitnexus-pr-review), invoke it instead

Review Checklist

Work through each dimension. Flag issues, don't fix them unless asked.

  1. Correctness: Does the logic do what it claims? Off-by-one

errors, nil dereferences, race conditions?

  1. Edge cases: What happens with empty input, max values,

concurrent access, or partial failures?

  1. Naming clarity: Do function, variable, and type names

communicate intent without needing comments?

  1. Test coverage gaps: What behavior is untested? What inputs

would exercise uncovered paths?

  1. Convention adherence: Does this follow the project patterns

documented in .context/CONVENTIONS.md?

Execution

  1. Read .context/CONVENTIONS.md to load project patterns
  2. Identify the scope: file(s), diff, or recent changes
  3. If no specific target, check git diff for unstaged changes
  4. Work through each checklist dimension
  5. Present findings grouped by severity: bugs > logic gaps >

conventions > style observations

Output Format

Lead with the most important finding. Use this structure:

## Review: <scope>

### Issues
- **[severity]** file:line - description

### Observations
- Note anything non-obvious but not necessarily wrong

### Verdict
One sentence: ship it, fix N issues first, or needs rethink.

Flag but don't fix style issues. Focus review on substance over

formatting.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.