prompt-engineering
Crafting effective prompts for LLMs. Use when designing prompts, improving output quality, structuring complex instructions, or debugging poor model responses.
npx skills add majiayu000/claude-skill-registry --skill prompt-engineering-itsmostafa-llm-engineering-skil --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Prompt Engineering Prompt engineering is the practice of designing inputs that guide LLMs to produce desired outputs. Effective prompts reduce errors, improve consistency, and unlock model capabilities. ## Table of Contents - [Core Principles](#core-principles) - [Be Clear and Direct](#be-clear-and-direct) - [Use Examples (Multishot)](#use-examples-multishot) - [Chain of Thought](#chain-of-thought) - [XML Tags](#xml-tags) - [Role Prompting](#role-prompting) - [Long Context](#long-context) - [Output Control](#output-control) - [Self-Verification](#self-verification) - [Best Practices](#best-practices) - [References](#references) ## Core Principles **Golden rule**: Show your prompt to a colleague with minimal context. If they're confused, the model will be too. 1. **Be explicit** - State exactly what you want; never assume the model knows your preferences 2. **Provide context** - Include what the output is for, who the audience is, and what success looks like 3. **Use structure** - Sequential steps, XML tags, and clear formatting reduce ambiguity 4. **Show examples** - Demonstrations outperform descriptions for complex formats ## Be Clear and Direct Treat the model as a capable but
- Table of Contents
- Core Principles
- Be Clear and Direct
- Vague vs Specific
- Sequential Steps
- Use Examples (Multishot)
- Structure
- Tips
- Chain of Thought
- Basic
- Guided
- Structured (Recommended)
- XML Tags
- Common Tags
What does the prompt-engineering skill do?
Crafting effective prompts for LLMs. Use when designing prompts, improving output quality, structuring complex instructions, or debugging poor model responses.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill prompt-engineering-itsmostafa-llm-engineering-skil --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
