prompt-engineering

prompt-engineering is a skill for Claude Code, Codex from oyi77/1ai-skills. It costs 51 tokens per session (727 once invoked), scanned A, original, MIT.

A guide to designing instructions for AI systems, including reusable prompts, examples, and multi-step conversation flows.

In plain words
What is it for?
It helps create system instructions, improve prompts for quality or token use, debug prompt behavior, and design conversations for AI agents.
Why use it?
It helps address AI responses that are inconsistent, inaccurate, too costly, or difficult to control.

Skill for Claude CodeCodex

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

Part of the 1ai-skills plugin — 209 skills, 4 commands shipped together

Good fit It helps create system instructions, improve prompts for quality or token use, debug prompt behavior, and design conversations for AI agents.

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

Made for: Claude Code, Codex.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 209 skills, 4 commands.

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/oyi77/1ai-skills/prompt-engineering/github.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/prompt-engineering"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-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/oyi77/1ai-skills/prompt-engineering"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/prompt-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 727 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.00051 $0.00727
Opus 5 $0.00026 $0.00364
Sonnet 5 $0.00010 $0.00145
Haiku 4.5 $0.00005 $0.00073

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

core/prompt-engineering/SKILL.md · 107 lines

How it starts

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

Prompt Engineering

When to Use

Trigger phrases:

  • "prompt engineering"

  • "Advanced prompt engineering — chain-of-thought, few-shot, tree-of-thought, self-"

  • LLM outputs are inconsistent or low quality

  • Complex reasoning tasks that need step-by-step thinking

  • Building reusable prompt templates for production systems

  • Optimizing prompts for cost (fewer tokens) or accuracy

  • Creating system prompts and custom instructions for AI agents

  • Debugging prompt performance issues

  • Designing multi-turn conversation flows

When NOT to Use

  • When the task can be solved with existing standard libraries
  • When the infrastructure is already in place and working
  • When the added complexity does not provide measurable benefit

Overview

Prompt Engineering is a foundational core infrastructure skill that provides system foundation capabilities for the agent ecosystem.

Architecture

  • Input layer — Receives and validates incoming requests
  • Processing layer — Core logic for system foundation
  • Output layer — Formats and delivers results
  • State management — Maintains context across invocations

Configuration

  • Set up required environment variables and paths
  • Configure logging level and output format
  • Define resource limits (memory, time, API calls)
  • Enable/disable features via configuration flags

Integration

  • Exposes standard interfaces for other skills to consume
  • Supports event-driven and request-response patterns
  • Compatible with the 1ai-skills hook system
  • Logs metrics for the skill performance monitor

Anti-Rationalization Table

Rationalization Reality
"I will add monitoring later" Without monitoring, you cannot detect failures. Add it from day one.
"One model is enough" Different tasks need different models. Route intelligently.
"Premature optimization" Infrastructure decisions are hard to change later. Design for scale early.
# Example: Model routing
ROUTES = {
    "code": ["claude-sonnet-4-20250514", "gpt-4o"],
    "vision": ["gemini-2.5-pro", "gpt-4o"],
    "fast": ["gemini-2.5-flash", "gpt-4o-mini"],
}

def route_request(task: str, prompt: str):
    models = ROUTES.get(task, ROUTES["fast"])
    for model in models:
        try:
            return call_model(model, prompt)
        except Exception:
            continue
    raise RuntimeError("All models failed")

Read the full file on GitHub · 107 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 · 107 lines · 51 tokens per session scan A 2080f8378b6c

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 727 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

prompt-optimization

Use this skill when the user wants to optimize, modify, or improve the system prompt of an AI agent. This includes requests like 'optimize the prompt', 'make the AI more focused on X', 'change the system prompt', 'improve the agent behavior', or 'modify how the AI responds'.

wecode-ai/Wegent · 62 tokens

prism

Consultant for NotebookLM steering prompt design. Optimizes Audio/Video/Slide/Infographic output quality through source preparation, prompt engineering, and Custom Goals persona design.

seaworld008/Commonly-used-high-value-skills · 37 tokens

prompt-optimizer

Refine prompts or ambiguous requirements into testable specifications when the user asks to improve wording, scope, constraints, or acceptance criteria.

seaworld008/Commonly-used-high-value-skills · 30 tokens

openai-docs

Find current official OpenAI guidance for Codex, APIs, models, prompting, or migrations. Preserve a named target model and cite fetched documentation.

seaworld008/Commonly-used-high-value-skills · 34 tokens

ai-skills

Use when building LLM applications, RAG knowledge bases, AI agents, terminal coding agents, multi-model orchestration, plugin-based agent harnesses, or file translation. Index of 10 skills: Dify, Hermes Agent, OpenClaw, OpenCode, Pi, DocuTranslate, Oh-My-OpenAgent, Superpowers-zh, DeepSeek Harness, My OpenCode…

znlgis/opengis-skills · 86 tokens

prompt-review

This skill should be used when the user asks to "review the prompt", "audit the system prompt", "check prompt quality", "inspect what the LLM sees", "debug prompt issues", or "find prompt engineering problems". Pulls the live rendered prompt via the API, explains how it's composed, and reviews it for issues.

spacedriveapp/spacebot · 70 tokens