xiaohongshu
xiaohongshu
codex-review-code
Review implementation quality and regression risks via claude-delegator (Code Reviewer expert). Use after implementation for complex tasks, refactors, or API changes.
Full skill instructions
Before any review work, verify Codex MCP is available:
// Try a simple MCP call to check availability
try {
mcp__codex__codex({
prompt: "ping",
sandbox: "read-only",
cwd: process.cwd()
})
// If successful, MCP is available
} catch (error) {
// MCP not available - proceed with Claude fallback
}
MCP Unavailable Conditions:
Summarize change scope, changed files, and key behaviors
Capture the context.md path (default: {tasksRoot}/{feature-name}/context.md) and read relevant code
Build delegation prompt using the 7-section format below
If MCP is available (from Step 1):
mcp__codex__codex (include Code Reviewer instructions in developer-instructions)If MCP is unavailable (from Step 1):
"codex-fallback: Claude performed review directly (MCP unavailable)"Record critical issues, warnings, and suggestions
Per .claude/docs/guidelines/document-memory-policy.md: Store full review in archives/review-v{n}.md, keep only short summary in context.md
Use the 7-section format:
TASK: Review implementation at [context.md path] for [focus areas: correctness, security, performance, maintainability].
EXPECTED OUTCOME: Issue list with verdict and recommendations.
CONTEXT:
- Code to review: [file paths or snippets]
- Purpose: [what this code does]
- Recent changes:
* [Changed files list]
* [Key behaviors summary]
- Feature summary: [brief description]
CONSTRAINTS:
- Project conventions: [existing patterns to follow]
- Technical stack: [languages, frameworks]
MUST DO:
- Prioritize: Correctness → Security → Performance → Maintainability
- **Security Checks (CRITICAL)**:
* Hardcoded credentials (API keys, passwords, tokens)
* SQL injection risks (string concatenation in queries)
* XSS vulnerabilities (unescaped user input)
* Missing input validation
- **Code Quality (HIGH)**:
* Long functions (>50 lines)
* Long files (>800 lines)
* Deep nesting (>4 levels)
* Missing error handling (try/catch)
* console.log statements
- **React/Next.js Performance (CRITICAL)** [if signals.reactProject]:
* Sequential await instead of Promise.all() (waterfall pattern)
* Barrel file imports (`import { X } from 'lib'` → direct import)
* Missing dynamic imports for heavy components
* RSC serialization: passing entire objects instead of needed fields
* Missing Suspense boundaries for async components
Reference: `.claude/skills/vercel-react-best-practices/SKILL.md`
- Focus on issues that matter, not style nitpicks
- Check logic/flow errors and edge cases
- Validate type safety and error handling
- Verify API contract and data model consistency
MUST NOT DO:
- Nitpick style (let formatters handle this)
- Flag theoretical concerns unlikely to matter
- Suggest changes outside the scope of modified files
OUTPUT FORMAT:
Summary → Critical issues → Warnings → Recommendations → Verdict (APPROVE/REJECT)
## Approval Criteria
- ✅ **APPROVE**: No CRITICAL/HIGH issues
- ⚠️ **WARNING**: MEDIUM issues only (can merge with caution)
- ❌ **REJECT**: CRITICAL/HIGH issues found
mcp__codex__codex({
prompt: "[7-section delegation prompt with full context]",
"developer-instructions": "[contents of code-reviewer.md]",
sandbox: "read-only", // Advisory mode - review only
cwd: "[current working directory]"
})
When MCP is not available, Claude performs the review directly:
If you want the expert to fix issues automatically:
mcp__codex__codex({
prompt: "[same 7-section format, but add: 'Fix the issues found and verify the changes']",
"developer-instructions": "[contents of code-reviewer.md]",
sandbox: "workspace-write", // Implementation mode - can modify files
cwd: "[current working directory]"
})
notes:
- "codex-review: [APPROVE/REJECT], critical=[count], warnings=[count]"
# If fallback was used:
- "codex-fallback: Claude performed review directly (MCP unavailable)"
APPROVE → Proceed to next stepREJECT (CRITICAL/HIGH issues) → Enter Auto-Fix Loopsandbox: "workspace-write"reviewFixLoop:
enabled: true
maxRetries: 2
fixableIssues:
- console.log statements
- missing error handling
- type errors
- simple security issues (hardcoded strings)
nonFixableIssues:
- architectural changes
- breaking API changes
- complex security vulnerabilities
When entering fix mode, add to prompt:
Fix the following issues and verify the changes:
1. [Issue description from review]
2. [Issue description from review]
After fixing, run verification to confirm the issues are resolved.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience