Skills Explorer Add Skills

prompt-engineer

An agent skill by Jeffallan, from Jeffallan/claude-skills. Tags: anthropic, documentation, evaluation, generative, strategy.

What it does

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot learning, creating system prompts with personas and guardrails, building JSON/function-calling schemas, or developing prompt evaluation frameworks to measure and improve model performance.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add Jeffallan/claude-skills --skill prompt-engineer

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/Jeffallan/claude-skills
cp -r claude-skills/skills/prompt-engineer ~/.claude/skills/prompt-engineer

Safety box score

Grade B, low risk: 21 of 100 risk points, rated 2026-10-15. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill is a markdown-only prompt-engineering reference pack: it teaches prompt patterns, evaluation, system-prompt design, and structured output schemas. The main risks come from example code that sends prompt/test data to external LLM APIs, uses API keys in CI, and shows automation that can comment on pull requests or write evaluation artifacts if copied verbatim.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution0 (none)No runnable scripts are shipped; the repository content is documentation and code snippets only, not native executables.
Network access1 (low)The references include example calls to external services like `client.messages.create(...)` and OpenAI/Anthropic APIs, so adapting the patterns can send prompts and test data off-machine.
Filesystem reach1 (low)Example evaluation code writes and reads project paths such as `results/{timestamp}_{prompt_version}/`, `prompts/`, and `evaluation/test_cases/`, but only as illustrative workflows.
Secrets & credentials1 (low)The CI example uses `ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}` and the docs discuss API-key-backed evaluation, so careless reuse could expose or transmit sensitive prompts via keyed services.
Privilege & persistence0 (none)There are no sudo calls, service installs, shell startup edits, or other system-level changes in the shipped files.
Instruction hijack surface1 (low)The skill contains prompt-injection defense guidance and adversarial test strings like `Ignore all previous instructions`, but these are framed as test cases/mitigations rather than instructions to bypass safeguards.
Irreversible actions1 (low)The GitHub Actions example can automatically run evaluations and post PR comments (`github.rest.issues.createComment(...)`), but it stays within repository-scoped automation.
Transparency0 (none)All shipped files are readable Markdown; there are no binaries, packed blobs, or decoded-at-runtime code.

Before installing

Rated 2026-10-15 by an automated review of 7 files from the skill's repository.

Source

Repository
Jeffallan/claude-skills (all skills from this repository)
Path
skills/prompt-engineer/SKILL.md
Branch
main
Updated
2026-09-19