Agent skill · AI & Agents

Prompt Mastery

Advanced LLM prompt engineering expertise for crafting highly effective prompts, system messages, and tool descriptions with Claude-specific techniques

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill prompt-mastery --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 31 KB
Bundled scripts: none
Path: skills/ai-llm/prompt-mastery/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Prompts for advanced LLM prompt engineering with a Claude-focused approach, providing clear, explicit instruction practices, context and motivation, and structure-oriented techniques. It targets system prompts, tool descriptions, and agent instructions, and emphasizes designing the question space and iterative refinement.

How it works

  • Advises on delivering clear and explicit instructions to Claude models.
  • Encourages providing context and motivation to improve target responses.
  • Recommends using XML tags to structure prompts for better control and parseability.
  • Describes enabling thinking steps, prefilling responses, and placement of critical requirements in user messages.
  • Presents advanced prompting techniques (CoT, few-shot prompting, meta-prompting, prompt scaffolding) with concrete XML/JSON examples.
  • Covers structured prompting formats (XML, JSON schema, function/tool calling) to enforce output structure.
  • Includes role-based prompts to influence tone and focus, along with guardrails for safety.
  • Addresses multimodal prompting concepts and basic prompt-injection defenses.

When to use it

Invoke before writing any significant prompts to leverage advanced techniques, especially when creating system prompts, tool descriptions, or agent instructions, or any scenario requiring sophisticated prompt design.

What it can touch

The skill references several tools and formats: XML tags like <task>, <context>, <output_format>, and Python-like tool calling structures; mentions of handling structured outputs via JSON schemas and tool definitions. It also notes Claude-specific model families and optimization concepts.

Caveats

The content presents best practices and techniques but does not guarantee performance or outcomes. It emphasizes explicit instructions and structured formats, and acknowledges framing effects like prompt placement and prefilling limitations. It references security considerations around prompt injection defense but does not provide guarantees.

From the SKILL.md

# Prompt Mastery: Advanced LLM Prompt Engineering Skill **Purpose**: This skill provides comprehensive prompt engineering expertise, distilling cutting-edge research, best practices, and battle-tested techniques for crafting highly effective prompts for Large Language Models, with special emphasis on Claude. **When to invoke**: Use this skill when creating system prompts, tool descriptions, agent instructions, or any situation requiring sophisticated prompt design. Invoke before writing any significant prompts to leverage advanced techniques. --- ## 🎯 Core Principles ### The Fundamentals (Never Violate These) 1. **Clarity Over Cleverness**: Clear, explicit instructions consistently outperform clever wordplay 2. **Specificity Beats Vagueness**: Precise requirements produce better results than general requests 3. **Context is Currency**: Provide enough background for the model to understand the task deeply 4. **Structure Reduces Ambiguity**: Well-structured prompts eliminate confusion 5. **Iteration is Essential**: First prompts rarely achieve perfection—treat prompting as iterative ### The 2025 Paradigm Shift Modern prompt engineering isn't about asking questions—it's about **desig

What's inside
Steps it walks through
  1. 🎯 Core Principles
  2. The Fundamentals (Never Violate These)
  3. The 2025 Paradigm Shift
  4. 🔷 Claude-Specific Techniques
  5. Official Anthropic Best Practices (2025)
  6. 🚀 Advanced Prompting Techniques
  7. Chain-of-Thought (CoT) Prompting
  8. Few-Shot Prompting
  9. Meta-Prompting & Self-Reflection
  10. Prompt Scaffolding
  11. 📐 Structured Prompting
  12. XML Prompting (Claude's Native Format)
  13. JSON Schema for Structured Output
  14. Function/Tool Calling for Structure
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the Prompt Mastery skill do?

Advanced LLM prompt engineering expertise for crafting highly effective prompts, system messages, and tool descriptions with Claude-specific techniques

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill prompt-mastery --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.

Keep going