prompt-engineering

prompt-engineering is a skill for Claude Code, Codex from orlando-japan/claude-code-setting. It costs 27 tokens per session (1,142 once invoked), scanned A, original, MIT.

A guide for designing prompts that give language models clear, reliable instructions. A prompt is the task description and context given to the model.

In plain words
What is it for?
Use it to write or debug prompts by defining the task, context, input, output format, and optional examples.
Why use it?
It reduces vague requests, missing context, and ambiguous output formats that can lead to unreliable results.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write or debug prompts by defining the task, context, input, output format, and optional examples.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orlando-japan/claude-code-setting/prompt-engineering
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add orlando-japan/claude-code-setting --skill prompt-engineering
Clone the repo
git clone --depth 1 https://github.com/orlando-japan/claude-code-setting

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prompt-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/prompt-engineering.svg)](https://agentmods.dev/skills/orlando-japan/claude-code-setting/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/orlando-japan/claude-code-setting/prompt-engineering"><img src="https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/prompt-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,142 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01142
Opus 5 $0.00014 $0.00571
Sonnet 5 $0.00005 $0.00228
Haiku 4.5 $0.00003 $0.00114

Measured 7d ago against content hash 7b90603c521b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

prompt-engineering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/extra/skills/prompt-engineering/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prompt engineering

Prompts aren't magic incantations. They're specs for a system that happens to read English. Clarity, constraints, and structure matter more than clever phrasing.

The five-part frame

  1. Task — what you want done, stated concretely.
  2. Context — what the model needs to know that isn't in the task.
  3. Input — the actual content to operate on (clearly demarcated).
  4. Format — how you want the output structured.
  5. Examples (optional but powerful) — zero, one, or few shots of input → output.

Most bad prompts skip one or more of these. Most good prompts are boring and explicit.

Task

Be specific. "Summarize this" is vague. "Summarize this support ticket in 3 bullets, each ≤20 words, focusing on the customer's core problem and what they've tried" is specific.

Rule: if a human contractor couldn't deliver from your task description, the model can't either.

Context

Everything the model needs that isn't in the task:

  • The persona (who is the model being, for what audience).
  • The domain (what jargon is okay, what assumptions it can make).
  • Constraints the model doesn't know from task alone.
  • What not to do (negative constraints are often as important as positive ones).

Don't pad with irrelevant context. Every extra token is noise, cost, and distraction.

Input

Wrap the content in clear delimiters so the model knows where task ends and content begins:

<ticket>
{customer ticket text}
</ticket>

XML-style tags work well with Claude and are unambiguous. Use them.

Format

Tell the model exactly what the output should look like:

  • JSON with specific fields.
  • A markdown table with specific columns.
  • A numbered list with exactly N items.
  • "Only the final answer, no preamble."

Models default to conversational output. If you want structured, say so.

Examples

For non-trivial tasks, examples beat instructions:

Example 1:
Input: "I can't log in, it says my password is wrong"
Output: {"category": "auth", "severity": "medium", "next_step": "reset_password_flow"}

Example 2:
Input: "The app crashes when I open the orders page"
Output: {"category": "bug", "severity": "high", "next_step": "escalate_engineering"}

Now classify:
{new input}

Read the full file on GitHub · 131 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 131 lines · 27 tokens per session scan A 7b90603c521b

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 1,142 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.