prompt-engineering

prompt-engineering is a skill for Claude Code, Codex from VoDaiLocz/kilo-kit-mcp. It costs 40 tokens per session (869 once invoked), scanned A, original, Apache-2.0.

A guide for designing and testing reliable prompts for AI agents. It treats prompts like software specifications, with defined roles, boundaries, rules, edge cases, and validation.

In plain words
What is it for?
Creating agent prompts, improving fragile instructions, defining prompt contracts, and testing prompt changes.
Why use it?
It helps reduce inconsistent agent behavior, hallucinated responses, and failures to follow required output formats.

Skill for Claude CodeCodex

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

Good fit Creating agent prompts, improving fragile instructions, defining prompt contracts, and testing prompt changes.

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

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/vodailocz/kilo-kit-mcp/prompt-engineering/github.svg)](https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/vodailocz/kilo-kit-mcp/prompt-engineering"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/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/vodailocz/kilo-kit-mcp/prompt-engineering"><img src="https://agentmods.dev/badge/skills/vodailocz/kilo-kit-mcp/prompt-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 869 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 pass 7 Sept 2026
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.00040 $0.00869
Opus 5 $0.00020 $0.00434
Sonnet 5 $0.00008 $0.00174
Haiku 4.5 $0.00004 $0.00087

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

skills/engineering/prompt-engineering/SKILL.md · 67 lines

How it starts

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

Prompt Engineering Skill

Overview

The prompt-engineering skill establishes a disciplined approach to LLM instruction design within the KILO-KIT ecosystem. Moving beyond ad-hoc prompting, this skill treats prompts as first-class code, emphasizing contract-based structures, declarative signatures, and rigorous validation loops to ensure reproducible, high-quality AI behavior.

When To Use

  • When developing new LLM-powered features or agents.
  • When existing prompts produce inconsistent, fragile, or hallucinated outputs.
  • When implementing complex reasoning tasks that require strict output formatting.
  • When you need to scale prompt maintenance across a team or large codebase.
  • When setting up automated prompt optimization or regression testing pipelines.

Core Concepts

Contract-First Prompt Architecture

Prompts are defined using a 5-part structure to ensure clarity and modularity:

  1. Identity: Define the persona, expertise, and operational boundaries.
  2. Context Boundaries: Explicitly define what data is in-scope and what is off-limits.
  3. Operational Rules: Step-by-step logic and prioritized directives.
  4. Edge Cases: Explicit handling of ambiguous, empty, or adversarial inputs.
  5. Output Schemas: Declarative JSON, XML, or Pydantic schemas to enforce structured output.

Reasoning Model Steerability

Optimizing for advanced reasoning models (e.g., o1, o3, Gemini 2.0+):

  • Reasoning Effort Control: Explicitly specify constraints to trade-off speed vs. reasoning depth.
  • Chain-of-Symbol (CoS): Use compact symbol-based notation for complex logic to minimize token usage and improve coherence.
  • XML/Markdown Boundary Formatting: Utilize strict XML tags (e.g., , , ) to segment reasoning from content.

DSPy Integration

Leverage programmatic prompt optimization:

  • Signatures: Define declarative Input/Output contracts.
  • Optimizers: Apply BootstrapFewShot, MIPROv2, or COPRO to automatically refine prompts based on validation datasets.

Read the full file on GitHub · 67 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. 10d ago First seen · 67 lines · 40 tokens per session scan A fd48e0cd1da6

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository VoDaiLocz/kilo-kit-mcp (26 stars, last pushed 2d ago), licensed Apache-2.0. It adds 40 tokens to every session and 869 once invoked, about $0.0002 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-30.