@nicholas
Give Claude Code access to your ChatGPT 5.2 subscription
Claude Code is fantastic for code, but GPT 5.2 Thinking/Pro are better at long text documents.
Next time you need to rewrite copy/docs inside Claude Code, ask it to use GPT 5.2 X-High.
This Skill md makes it 'just work'.
Claude will call Codex CLI non-interactively using a subprocess.
If you give it multiple tasks it will parallelize.
Always in subagents.
Enjoy ๐
Paste this into CC
=============================
Add this skill to your repertoire:
---
name: chatgpt
description: Send prompts to ChatGPT/GPT-5.2 via Codex CLI. Use when user asks to "ask ChatGPT", "ask GPT-5", "get OpenAI's opinion", or wants a second opinion.
user-invocable: true
---
# ChatGPT via Codex CLI
Run prompts through GPT-5.2 with extended reasoning.
## Command Format
Use heredoc to safely handle quotes and special characters:
```bash
codex exec --skip-git-repo-check -m gpt-5.2 -c 'reasoning_effort="xhigh"' "$(cat <<'EOF'
Your prompt here - can include "quotes", apostrophes, and $special chars safely
EOF
)"
```
## Requirements
- Requires ChatGPT Pro subscription
- Check auth status: `codex login status`
## Usage
1. Formulate the prompt based on user's request
2. If analyzing files, read them first and include relevant contents in prompt
3. Run command with 900000ms timeout for complex reasoning
4. Present results to user
## Multiple Prompts
Run multiple Bash commands in parallel to reduce wait time.
## Example
```bash
codex exec --skip-git-repo-check -m gpt-5.2 -c 'reasoning_effort="xhigh"' "$(cat <<'EOF'
Review this Terms of Service for legal completeness:
[document content here]
EOF
)"