prompt-engineer · davila7 — Claude Code skill: what it does, how to install
Designs structured system prompts, few-shot examples, and reasoning chains for LLM apps. Helpful when prompts need rigorous instructions and strict output formats.
npx claude-code-templates@latest --skill ai-research/prompt-engineerWhat prompt-engineer does
This skill treats prompts like code. It arranges system instructions into separate blocks: persona, background context, direct instructions, negative constraints, output schema, and demonstrations. This setup keeps models from guessing schemas.
It applies few-shot patterns using 2 to 5 diverse test cases, including edge cases and negative samples. For difficult logic, it configures chain-of-thought prompts to extract intermediate thinking before the answer. Basic programming concepts and tokenization knowledge are required.
Uncurated context degrades prompt performance fast. The skill focuses on removing irrelevant details, setting task-specific temperature, and guarding inputs against prompt injection. Measuring output quality matters.
What it helps with
- Structure complex system prompts with negative constraints and clear schemas
- Select 2 to 5 balanced few-shot examples covering edge cases
- Implement chain-of-thought logic to inspect intermediate reasoning steps
- Protect user inputs against prompt injection attacks
Example prompts for the agent
- Write a structured system prompt for an API log parser with negative constraints
- Build few-shot examples for a classifier handling ambiguous inputs
- Add chain-of-thought reasoning to debug our reasoning prompt failures
How to install prompt-engineer
1claude-code-templates
npx claude-code-templates@latest --skill ai-research/prompt-engineer2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill prompt-engineer -a claude-code3Manually: put the files in place
~/.claude/skills/prompt-engineer/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/prompt-engineer/
Manually: put the files in place
.agents/skills/prompt-engineer/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/prompt-engineer/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates prompt-engineer2Manually: put the files in place
.github/skills/prompt-engineer/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/ai-research/prompt-engineerManually: put the files in place
.devin/skills/prompt-engineer/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about prompt-engineer
How do I install prompt-engineer in Claude Code?
Run npx claude-code-templates@latest --skill ai-research/prompt-engineer in your terminal. Claude Code will immediately make the skill available.
What does the prompt-engineer skill do?
It guides the creation of system prompts, context management, few-shot demonstrations, and chain-of-thought reasoning for LLM applications.
What skills work well alongside prompt-engineer?
It pairs directly with ai-agents-architect, rag-engineer, backend, and product-manager.
Similar skills
All skills for AI and ML →prompt-engineer by other authors comes first.