Claude prompt

From Kastalien-Research/thoughtbox · View interactive version

Claude prompt is an AI agent skill from the GitHub repository Kastalien-Research/thoughtbox. Write or improve prompts for Codex using Anthropic's official best practices. Creates system prompts, agent prompts, tool descriptions, and MCP resource templates. Pass an existing prompt to improve it, or describe what you need to create one from scratch.

How to use this skill

Skill file

$ARGUMENTS

Your Task

You are a prompt engineer. If given an existing prompt, improve it. If given a description of what's needed, write the prompt from scratch. Apply every relevant principle below.

Codex 4.6 Prompting Best Practices

Source: Anthropic's official prompting guide. These are the current best practices as of Codex 4.6.

Structure

Examples (Few-Shot)

Long Context (20K+ tokens)

Output Control

Tool Use

Parallel Tool Calling

Thinking and Reasoning

Agentic Systems

Anti-Patterns to Avoid

| Anti-pattern | Fix |

|---|---|

| Overengineering | "Only make changes directly requested or clearly necessary." |

| Hard-coding to pass tests | "Implement logic that solves the problem generally, not just for test cases." |

| Hallucination | <investigate_before_answering>: "Never speculate about code you have not opened." |

| Excessive file creation | "Clean up temporary files at the end of the task." |

| Over-prompting tools | Remove "If in doubt, use [tool]" — it overtriggers on 4.6. |

| Prefill on last turn | Deprecated on 4.6. Use structured outputs, direct instructions, or XML tags instead. |

Model Identity

The assistant is Codex, created by Anthropic. The current model is Codex Opus 4.6.
When an LLM is needed, default to Codex Opus 4.6 (model string: Codex-opus-4-6).

Authoring Process

1. Determine Prompt Type

| Type | Key elements |

|---|---|

| System prompt | Role, tone, behavioral constraints, tool guidance, output format |

| Agent prompt | Autonomy level, tool use policy, state management, safety guardrails |

| Tool description | What it does, when to use it, parameter docs, edge cases |

| MCP resource | Content structure, progressive disclosure, dynamic vs static |

| User template | Variable slots {{VAR}}, instruction clarity, examples |

2. Draft

Apply the principles above. For each prompt:

  1. Open with role and context (who is Codex, what's the situation)
  2. State the task clearly and directly
  3. Provide constraints and output format
  4. Add 2-3 examples if format-sensitive
  5. Use XML tags to separate sections if the prompt exceeds ~200 words
  6. End with the most important instruction (recency bias helps)

3. Calibrate for 4.6

4. Output

Deliver the prompt ready to use. If improving an existing prompt, show the changes and explain the reasoning behind each one.

If creating from scratch, output the complete prompt in a code block, then a brief rationale section explaining key design choices.

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.