prompt-engineering

prompt-engineering is a skill for Claude Code from martinemde/dotfiles. It costs 50 tokens per session (1,046 once invoked), scanned A, original, ISC.

A guide for writing, reviewing, and improving instructions for language models and coding agents. It treats a prompt as a clear contract describing the task, input, expected output, and checks for success.

In plain words
What is it for?
Drafting prompts, checking why a prompt behaves badly, revising prompts after failures, and explaining prompting principles.
Why use it?
It helps prevent vague instructions, mixed-up trusted and untrusted content, incorrect output formats, and untested assumptions. It also uses evaluations to compare whether prompt changes actually help.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Drafting prompts, checking why a prompt behaves badly, revising prompts after failures, and explaining prompting principles.

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

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/martinemde/dotfiles/prompt-engineering/github.svg)](https://agentmods.dev/skills/martinemde/dotfiles/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/martinemde/dotfiles/prompt-engineering"><img src="https://agentmods.dev/badge/skills/martinemde/dotfiles/prompt-engineering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prompt-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinemde/dotfiles/prompt-engineering"><img src="https://agentmods.dev/badge/skills/martinemde/dotfiles/prompt-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,046 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 90
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.00050 $0.01046
Opus 5.5 $0.00020 $0.00418
Sonnet 5.5 $0.00010 $0.00209
Haiku 4.5 $0.00005 $0.00105

Measured 1mo ago against content hash 746a36fe1a09, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 1mo 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.

home/dot_agents/skills/prompt-engineering/SKILL.md · 75 lines

How it starts

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

Prompt Engineering Playbook

Treat prompt engineering as experimental design, not magic phrases. A good prompt is a contract: it states the job, separates trusted instructions from untrusted data, defines what success looks like, names the output shape, scaffolds genuine difficulty, and is improved by evals — not vibes.

Arguments

$ARGUMENTS

Reference

The condensed principles, anti-patterns, task patterns, and review rubric live in PLAYBOOK.md alongside this file. Read it once per session before producing serious output.

Process

1. Detect intent

Parse arguments — be flexible.

Signal Mode
draft / write / create, or a task description with no existing prompt Draft a new prompt from scratch
review / audit, or @file / pasted prompt with no other directive Review against the rubric
improve / refine / fix, paired with an existing prompt + failure modes Improve an existing prompt
explain / why, followed by a principle name Explain a principle with examples
empty Look at the conversation for a prompt-in-progress; treat it as review/improve. If nothing relevant, briefly say what you can help with.

Read the full file on GitHub · 75 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -10 lines 746a36fe1a09
  2. 1mo ago Changed · -6 lines · +50 tokens per session c5806ab3fabf
  3. 3mo ago First seen · 91 lines · 0 tokens per session scan A 7418bfe11e0d

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository martinemde/dotfiles (10 stars, last pushed yesterday), licensed ISC. It adds 50 tokens to every session and 1,046 once invoked, about $0.0002 per session on Opus 5.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.

Related

prompt-engineering compared with skills from other repositories

prompt-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prompt-engineeringmartinemde/dotfilesSkill10yesterdayISCA50Claude Code
prompt-designfmind/dotfilesSkill43mo agoMITA44Claude Code, Codex
factory-promptingnonlinear-xyz/factory-kitSkill1010d agoMITA93Claude Code
factory-promptnonlinear-xyz/factory-kitSkill1010d agoMITA22Claude Code
agent-frameworksfmind/dotSkill14yesterdayMITA42Claude Code, Codex
mlopsfmind/dotSkill14yesterdayMITA53Claude Code, Codex
cloud-opsfmind/dotSkill14yesterdayMITA45Claude Code, Codex