From codex
Codex MCP tool usage, thread configuration, and thread lifecycle. Consult this skill when an agent or skill needs Codex MCP tool reference for code review, plan review, or completion verification.
npx claudepluginhub tvishwanadha/skillsThis skill uses the workspace's default tool permissions.
Reference for using the Codex MCP tools (`codex` and `codex-reply`).
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Reference for using the Codex MCP tools (codex and codex-reply).
If content is outside the project, inline it in your prompt.
When starting a thread with the codex tool, configure these parameters:
approval-policy - Controls shell command approval:
never - Always use this. Claude and Codex don't support interactive approval
flows properly - other options will cause the thread to hang.sandbox - Controls filesystem and network access:
read-only - Read files only, no writes/commands/network (safest for pure review)workspace-write - Read/write in workspace, run commands, optionally enable network
(use if Codex needs to run tests or fetch dependencies)danger-full-access - No sandbox, no approvals (not recommended)Important: These cannot be changed after starting a thread.
Recommended defaults:
approval-policy: never (required - other values break)sandbox: read-only for pure review taskssandbox: workspace-write if Codex needs to run tests or access networkStart thread: Call the Codex MCP server's codex tool with your prompt and configuration.
The response includes:
content: Codex's responsethreadId: Save for follow-upsContinue thread: Use the codex-reply tool with:
threadId: The thread ID from the previous responseprompt: Your follow-up messageSurviving context compaction: Store thread info in your plan file:
## Active Codex Thread
- threadId: <id>
- sandbox: read-only
- purpose: plan review / code review / completion verification
This ensures you can resume the thread after compaction.
Lost thread ID: If not stored in plan file, start a fresh thread with context recovery info.