prompt-engineering

prompt-engineering is a skill for Claude Code from sefaertunc/Worclaude. It costs 13 tokens per session (801 once invoked), scanned A, original, MIT.

A guide to writing clearer, more demanding prompts for Claude, an AI assistant. It explains how to state requirements, constraints, edge cases, and ways to verify the result.

In plain words
What is it for?
Use it to write coding requests, specify expected behavior, describe limits, ask for tests, and request readable refactoring.
Why use it?
It helps avoid vague requests and encourages useful improvements when the first answer works but is hard to read or incomplete.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to write coding requests, specify expected behavior, describe limits, ask for tests, and request readable refactoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sefaertunc/worclaude/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 sefaertunc/Worclaude --skill prompt-engineering
Clone the repo
git clone --depth 1 https://github.com/sefaertunc/Worclaude

Made for: Claude Code.

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/sefaertunc/worclaude/prompt-engineering.svg)](https://agentmods.dev/skills/sefaertunc/worclaude/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/sefaertunc/worclaude/prompt-engineering"><img src="https://agentmods.dev/badge/skills/sefaertunc/worclaude/prompt-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 801 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.00013 $0.00801
Opus 5 $0.00006 $0.00400
Sonnet 5 $0.00003 $0.00160
Haiku 4.5 $0.00001 $0.00080

Measured 7d ago against content hash 292976e5d11e, 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.

.claude/skills/prompt-engineering/SKILL.md · 100 lines

How it starts

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

Prompt Engineering

Challenge Claude to Do Better

Claude will give you a reasonable answer. You often want an excellent one. The difference is in how you ask.

Weak: "Write a function to parse dates." Strong: "Write a date parser that handles ISO 8601, RFC 2822, and common US/EU formats. It should return a consistent internal representation and throw specific error types for invalid input. Make it elegant — no regex spaghetti."

The strong version sets quality expectations, specifies edge cases, and demands craft. Claude responds to these signals.

Demand Elegance

When Claude produces a working but mediocre solution, push back:

  • "This works but it's not elegant. Simplify it."
  • "There's duplication between these three functions. Refactor."
  • "This is too clever. Make it readable."
  • "A junior engineer should understand this. Rewrite for clarity."

Don't accept the first output as final. Iterate.

When to Be Specific vs When to Delegate

Be specific about:

  • Requirements (what the code MUST do)
  • Constraints (performance, compatibility, patterns to follow)
  • Verification criteria (how to know it works)

Delegate to Claude:

  • Implementation approach (unless you have a strong preference)
  • Variable naming and code organization details
  • Which standard library functions to use
  • Test case generation (give the categories, let Claude enumerate)

Writing Detailed Specs

A good spec eliminates ambiguity. The SPEC.md pattern works because it forces specificity before implementation begins.

Spec checklist:

  • Every feature described with concrete examples
  • Input/output pairs for non-obvious behavior
  • Error cases listed explicitly
  • "Out of scope" section to prevent feature creep
  • Success criteria that can be mechanically verified

The IMPLEMENTATION-PROMPT as a Prompt

The implementation prompt IS your prompt to Claude for a work session. Write it like you're briefing a skilled contractor:

  1. Here's what exists (context)
  2. Here's what we need (goal)
  3. Here's how to do it (plan)
  4. Here's how to check your work (verification)
  5. Here's what NOT to do (constraints)

Read the full file on GitHub · 100 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 · 100 lines · 13 tokens per session scan A 292976e5d11e

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository sefaertunc/Worclaude (4 stars, last pushed 28d ago), licensed MIT. It adds 13 tokens to every session and 801 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.