prompt-engineering

prompt-engineering is a skill for Claude Code, Codex from niki914/zafiro. It costs 26 tokens per session (548 once invoked), scanned A, original, MIT.

A prompt-writing guide for turning user requests into precise instructions or documents for AI systems.

In plain words
What is it for?
Use it to write prompts, task specifications, or documentation with clear boundaries, examples, checks, and error handling.
Why use it?
It reduces ambiguity, mixed context, unsafe handling of credentials, and silent omissions in agent tasks.

Skill for Claude CodeCodex

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

Good fit Use it to write prompts, task specifications, or documentation with clear boundaries, examples, checks, and error handling.

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

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/niki914/zafiro/prompt-engineering/github.svg)](https://agentmods.dev/skills/niki914/zafiro/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/niki914/zafiro/prompt-engineering"><img src="https://agentmods.dev/badge/skills/niki914/zafiro/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/niki914/zafiro/prompt-engineering"><img src="https://agentmods.dev/badge/skills/niki914/zafiro/prompt-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 548 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.00026 $0.00548
Opus 5.5 $0.00010 $0.00219
Sonnet 5.5 $0.00005 $0.00110
Haiku 4.5 $0.00003 $0.00055

Measured 2mo ago against content hash 95e0535c5e9a, 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 2mo 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.

.agents/skills/prompt-engineering/SKILL.md · 54 lines

How it starts

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

prompt-engineer

Translate user commands into precise prompts or documentation edits. Eliminate context pollution ruthlessly.

<prompt_engineering_standards>

  • AX First: System architecture must be designed for AI consumption.
  • Clear Delimiters: Use explicit XML tags to isolate context, delimit instructions, and prevent injection. Skip XML wrappers when the content already has its own unambiguous boundary (e.g., a markdown heading, a code fence) — adding XML on top adds ceremony without improving isolation.
  • CoT & Verification: Perform internal step-by-step reasoning before outputting. Implement reverse-verification (e.g., "What specific error occurs if this info is missing?").
  • Mandatory Pre-flight Checklist: BEFORE outputting a file diff, executing a tool, or delegating a task, internally verify: 1. Is the payload/memory written strictly in English? 2. Are credentials (Token/PAT) completely scrubbed? Halt execution if validation fails.
  • Few-shot Examples: Provide 3-5 examples including Negative Examples to establish clear boundaries.
  • Zero Silent Drops: Log drops/errors explicitly. No backpressure blackholes.
  • Semantic Precision: Eliminate abstract adjectives; use executable metrics. </prompt_engineering_standards>

<stateless_document_modification> To prevent "version baggage" and "context pollution" when modifying documentation:

  • Treat every update as a clean-slate rebuild. Replace old facts with new facts directly. Never explain history, deltas, or reasoning in the text.
  • Delete obsolete content entirely — no ghost context, no "(Updated)" labels. No version tags or timestamps in headers unless explicitly requested.

Examples

Bad (meta-tagging noise):

- # Auth Module
+ # Auth Module (v2 Updated)

Good: no title change needed.

Bad (conversational baggage):

- Auth validates tokens.
+ Auth validates tokens and sessions. (Note: it no longer only validates tokens.)

Good:

- Auth validates tokens.
+ Auth validates tokens and sessions.

</stateless_document_modification>

Read the full file on GitHub · 54 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. 2mo ago First seen · 54 lines · 26 tokens per session scan A 95e0535c5e9a

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository niki914/zafiro (406 stars, last pushed 3d ago), licensed MIT. It adds 26 tokens to every session and 548 once invoked, about $0.0001 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-09-25.

Related

prompt-engineering compared with skills from other repositories

prompt-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prompt-engineeringniki914/zafiroSkill4063d agoMITA26Claude Code, Codex
kotlin-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A55Claude Code
context-collectorJosephSanjaya/skillsSkill51mo agoMITA130Claude Code, Codex
ci-cd-expertJosephSanjaya/skillsSkill51mo agoMITA239Claude Code, Codex
dagger-hilt-expertJosephSanjaya/skillsSkill51mo agoMITA145Claude Code, Codex
kotlin-mcp-server-expertJosephSanjaya/skillsSkill51mo agoMITA169Claude Code, Codex
optimize-promptJosephSanjaya/skillsSkill51mo agoMITA199Claude Code, Codex