prompt-engineering-patterns

prompt-engineering-patterns is a skill for Claude Code, Codex from AeonDave/malskill. It costs 168 tokens per session (2,432 once invoked), scanned C, original, no licence file.

A prompt-engineering skill for designing and maintaining instructions sent to language models from application code. It covers formats such as system instructions, examples, output rules, and retrieved context.

In plain words
What is it for?
Write or refactor prompts in Python, TypeScript, and similar codebases, including prompts used with retrieval systems and agent frameworks.
Why use it?
It helps make model instructions clearer, more consistent, and easier to change as the application evolves.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Write or refactor prompts in Python, TypeScript, and similar codebases, including prompts used with retrieval systems and agent frameworks.

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

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-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/aeondave/malskill/prompt-engineering-patterns/github.svg)](https://agentmods.dev/skills/aeondave/malskill/prompt-engineering-patterns)
Your own site
<a href="https://agentmods.dev/skills/aeondave/malskill/prompt-engineering-patterns"><img src="https://agentmods.dev/badge/skills/aeondave/malskill/prompt-engineering-patterns/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-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/aeondave/malskill/prompt-engineering-patterns"><img src="https://agentmods.dev/badge/skills/aeondave/malskill/prompt-engineering-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,432 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00168 $0.02432
Opus 5 $0.00084 $0.01216
Sonnet 5 $0.00034 $0.00486
Haiku 4.5 $0.00017 $0.00243

Measured 4d ago against content hash 834e7a8a92b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

prompt-engineering-patterns scanned grade C 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 4d 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.

Instruction-override phrasinghighPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

- Adversarially probe: does an injection payload in the user turn override the system prompt? It should not.
knowledge/prompt-engineering-patterns/SKILL.md · 167 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 4d ago First seen · 167 lines · 168 tokens per session scan C 834e7a8a92b5

Subscribe to this mod's changes

prompt-engineering-patterns is a skill published in the GitHub repository AeonDave/malskill (18 stars, last pushed today), with no licence file. It adds 168 tokens to every session and 2,432 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it C with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

agent-platform-prompt-management

Manages and orchestrates prompts in Agent Platform. Use when you need to create, list, retrieve, version, or delete managed prompts in Agent Platform. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform prompts.

google/skills · 55 tokens

gemini-api-dev

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. Covers SDK usage and best…

google-gemini/gemini-skills · 73 tokens

ml-kit-genai-prompt-api

Analyzes Android codebases to implement ML Kit GenAI Prompt API. Use this skill to send natural language requests on-device to Gemini Nano, use structured output with Prompt API, implement prefix caching, optimize the current prompt, or apply best practices.".

android/skills · 57 tokens

prompt-engineering

Master the art and science of crafting effective prompts for large language models. Covers foundational patterns, advanced techniques like chain-of-thought and role prompting, structured output formats, and practical strategies for iterative refinement.

cosmicstack-labs/mercury-agent-skills · 44 tokens

prompt-version-management

Manage prompt versions, run A/B tests across agent prompts, track performance regressions, and safely roll out prompt changes in production. Covers prompt diffing, semantic versioning, canary releases, and automated evaluation.

cosmicstack-labs/mercury-agent-skills · 47 tokens

prompt-lab

LLM prompt engineering: analyzes failure modes, generates variants (direct, few-shot, CoT), designs rubrics, produces test suites. Triggers on: "prompt engineering", "generate prompt variants", "A/B test prompts", "optimize prompt", "improve this prompt". NOT for SKILL.md files, use skill-evaluator.

Mathews-Tom/armory · 74 tokens