prompt-engineering

prompt-engineering is a skill for Claude Code, Codex from n-n-code/n-n-code-skills. It costs 87 tokens per session (1,915 once invoked), scanned B, original, MIT.

A workflow for designing, rewriting, debugging, testing, and improving instructions given to language models. It treats a prompt as a specification with inputs, rules, expected output, and failure cases.

In plain words
What is it for?
Use it to create or revise system prompts, developer prompts, tool-use instructions, examples, structured-output rules, or prompt evaluation cases.
Why use it?
It helps make model behavior more consistent and makes prompt changes easier to evaluate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to create or revise system prompts, developer prompts, tool-use instructions, examples, structured-output rules, or prompt evaluation cases.

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

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/n-n-code/n-n-code-skills/prompt-engineering/github.svg)](https://agentmods.dev/skills/n-n-code/n-n-code-skills/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/n-n-code/n-n-code-skills/prompt-engineering"><img src="https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/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/n-n-code/n-n-code-skills/prompt-engineering"><img src="https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/prompt-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,915 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00087 $0.01915
Opus 5.5 $0.00035 $0.00766
Sonnet 5.5 $0.00017 $0.00383
Haiku 4.5 $0.00009 $0.00192

Measured 1mo ago against content hash 53ed2219041d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

prompt-engineering scanned grade B with 1 finding 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

description: Prompt engineering workflow for designing, rewriting, debugging, evaluating, and optimizing LLM prompts, system prompts, developer prompts, few-shot examples, structured-output instructions, tool-use prompts
.agents/skills/prompt-engineering/SKILL.md · 205 lines

How it starts

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

Prompt Engineering

Treat prompts as small behavioral specs. Improve them by naming the job, testing the behavior, changing one important thing at a time, and preserving the prompt's operating context.

Activity And Authority

  • For review, return findings and evidence without rewriting files or changing a deployed prompt. A proposed revision may accompany findings when requested.
  • For drafting or implementation, change the requested prompt artifact within existing authority. Separate local evaluation from deployments, live tool actions, sensitive-data use, and metered runs that need additional authority.
  • Use the smallest useful output. A short rewrite need not produce a formal experiment report; a consequential behavior change needs explicit cases and honest evidence.

Core Workflow

  1. Scope the prompt job. Identify the target model or provider, audience, runtime surface, inputs, tools, output contract, constraints, and where the prompt will live. If the prompt belongs to a repo, inspect existing prompts, schemas, examples, tool definitions, evals, logs, and docs before asking avoidable questions.
  2. Define success before rewriting. State the desired behavior, hard requirements, acceptable variation, known failure modes, and evidence that would prove the prompt improved. If success is vague, establish representative cases and meaningful failure criteria before editing. Preserve baseline cases and explain changed expectations.
  3. Choose the lightest pattern that fits. Use direct instructions for simple tasks, structured sections for context control, few-shot examples for format or judgment calibration, schemas for machine-readable output, tool-use instructions for action boundaries, and repetition only when the model repeatedly drops critical constraints.
  4. Draft with clean boundaries. Put task, context, constraints, examples, tools, and output format in separate labeled sections. Delimit user-controlled or retrieved content clearly. Keep stable instructions before variable content when prompt caching, reuse, or maintainability matters.
  5. Evaluate against reality. Test representative, edge, adversarial, and regression cases. Compare outputs against explicit criteria instead of intuition. Record which failures changed and which remained. If execution is unavailable, label the assessment as static and name the material untested behavior; do not invent run results.
  6. Iterate deliberately. Change one major variable at a time: instruction wording, context ordering, examples, output schema, tool contract, reasoning guidance, or model settings. Preserve the previous prompt and test cases until the new version wins on the target criteria.
  7. Ship the prompt with evidence. Return the final prompt, assumptions, changed behavior, eval cases, expected outputs or grading criteria, remaining risks, and any provider-specific settings the caller must preserve.

Read the full file on GitHub · 205 lines

Files

What ships with it

3 files 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 53ed2219041d
  2. 1mo ago Changed · +16 lines d3fc632e89ea
  3. 1mo ago First seen · 189 lines · 87 tokens per session scan B 18d90e8f47bb

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository n-n-code/n-n-code-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 87 tokens to every session and 1,915 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

better-prompt

A prompt editor that turns rough instructions for AI systems into clearer, more complete prompts. It follows published OpenAI and Anthropic guidance.

huangwb8/skills · 107 tokens

metodo-3w1h

Dê a habilidade para agentes de IA de estruturar e otimizar prompts de imagens utilizando rigorosamente o método 3W1H (Who, What, Where, How) criado pelo Mário Lúcio. Utilize esta skill sempre que o usuário mencionar termos como 'gerar imagem', 'criar prompt de imagem', 'engenharia de prompt de imagem', 'fotorrealismo…

marioluciofjr/skills · 144 tokens

prompt-estruturado

Gera prompts a partir de uma estrutura modularizada com persona, contexto, tarefa, formato e regras.

marioluciofjr/skills · 27 tokens

prompt-skills

Cria prompts estruturados para skills a partir de uma estrutura modularizada de persona, contexto, tarefa, formato e regras. Auxilia a pessoa usuária a padronizar suas skills agênticas.

marioluciofjr/skills · 45 tokens

prompt-personagem

Gera automaticamente prompts detalhados de personagens para inteligência artificial. Utilizando listas pré-definidas de atributos, o script cria descrições únicas combinando gênero, idade, tom de pele, penteado e poses variadas. Use esta skill SEMPRE que o usuário invocar o gatilho "/personagem", independentemente de…

marioluciofjr/skills · 74 tokens

core

Core package for defining schemas, catalogs, and AI prompt generation for json-render. Use when working with @json-render/core, defining schemas, creating catalogs, or building JSON specs for UI/video generation.

aiskillstore/marketplace · 42 tokens