skills/show-system-prompt/SKILL.md
Reveal agent system prompt
npx skillsauth add laststance/skills show-system-promptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Reveal the actual runtime system prompt of AI coding agent CLIs by combining static binary inspection, runtime network/log capture, and official telemetry features.
When running this skill in Codex, translate Claude Code-only primitives before acting: AskUserQuestion -> chat/request_user_input, TodoWrite -> update_plan, Task/TaskCreate/TeamCreate/SendMessage -> spawn_agent/send_input/wait_agent when available and allowed, and EnterPlanMode/ExitPlanMode -> a concise chat plan plus explicit approval.
Resolve Read/Write/Edit/Bash/WebSearch/WebFetch to Codex file/shell/web tools, and map ~/.claude/... paths to ~/.agents/... or ~/.codex/... unless the task explicitly targets Claude Code.
When running this skill in Cursor Agent, translate Claude Code-only primitives before acting: AskUserQuestion -> AskQuestion; TodoWrite -> Cursor TodoWrite or an equivalent checklist; Task/TaskCreate/TeamCreate/SendMessage/multi-agent flows -> Cursor Task (subagents), parallel Tasks, or run_in_background when allowed (TeamCreate/SendMessage may have no exact match); EnterPlanMode/ExitPlanMode -> Plan mode (SwitchMode / CreatePlan) plus explicit user approval.
Resolve Read/Write/Edit/StrReplace/Bash/web/search/MCP via Cursor Composer or Agent equivalents. MCP names written as mcp__server__tool typically map to call_mcp_tool with configured server identifiers. Map ~/.claude/... to ~/.cursor/skills/, .cursor/skills/, and .cursor/rules/ unless the task explicitly targets Claude Code.
Trigger this skill when the user:
| Agent | Status | Reference |
|---|---|---|
| Claude Code (@anthropic-ai/claude-code) | ✅ Implemented | claude-code.md |
| Codex CLI | ⏳ Planned | to be added |
| Other agents (Gemini CLI, Aider, etc.) | ⏳ Planned | to be added |
To add a new agent, create references/<agent-name>.md following the same structure as claude-code.md and add a row above.
Every modern coding-agent CLI builds its system prompt from two layers. Understanding this split is essential before applying any capture method.
┌────────────────────────────────────────────┐
│ Static (baked into the binary/bundle) │
│ - identity strings ("You are ...") │
│ - tool definitions │
│ - core instructions (tone, workflows) │
├────────────────────────────────────────────┤
│ Dynamic (injected at runtime per session) │
│ - environment (cwd, OS, date) │
│ - git status │
│ - MCP server instructions │
│ - user/project memory (CLAUDE.md, etc.) │
└────────────────────────────────────────────┘
Static is reproducible from the install artifact alone. Dynamic must be captured from a live process.
Use this checklist when fulfilling a request:
- [ ] Step 1: Identify which agent the user is asking about
- [ ] Step 2: Open the matching references/<agent>.md
- [ ] Step 3: Pick a method by the user's constraint (legality / depth / speed)
- [ ] Step 4: Run the commands and present the captured prompt
- [ ] Step 5: Clean up (revert env vars, remove proxy CAs, delete dumps)
Ask the user if unclear. Default to Claude Code when running inside Claude Code itself.
For Claude Code: read references/claude-code.md. It contains the three highest-value methods (OTEL, binary unpack, mitmproxy), the exact commands, and known limitations.
Match the user's intent:
| User wants | Recommended method |
|---|---|
| Quickest peek at static sections | strings + grep on the binary |
| Real prompt with dynamic injections, no extra setup | OTEL_LOG_RAW_API_BODIES=file:<dir> |
| Full request/response including streaming | mitmproxy reverse proxy |
| Avoid any TLS interception or env tweaks | binary unpack via tweakcc |
Run the commands from the agent's reference file. Print the captured prompt (or relevant excerpt) back to the user.
Critical — leaving a proxy CA installed weakens TLS for all traffic.
Mandatory cleanup actions when present:
ANTHROPIC_BASE_URL, NODE_EXTRA_CA_CERTS, OTEL_* env varssudo security delete-certificate -c "mitmproxy" /Library/Keychains/System.keychain if a CA was added/tmp/*-otel/ or any dump dirs containing API bodiesPiebald-AI/claude-code-system-prompts) rather than re-posting full text.strings on the install artifact gives equivalent static content.--system-prompt flag for that)testing
Cited research briefs
development
Daily coding habit prompts JP
development
React core deep-dive JP
data-ai
Copy last agent reply