Agent skill · Design & Presentation

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.

Cosmic Stack3,294★ · 2 repos on radarProfile →
claude-codeMIT
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill prompt-engineering --agent claude-code

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

Facts
Files in the skill folder: 1
SKILL.md size: 16 KB
Bundled scripts: none
Version: 1.0.0
Declared author: cosmicstack-labs
Path: categories/ai-ml/prompt-engineering/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 364
Language: JavaScript
Read our review of the source →

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

From the SKILL.md

# Prompt Engineering ## Core Principles ### 1. Clarity Over Cleverness A clear, direct prompt always outperforms a clever but ambiguous one. State exactly what you want, in what format, and with what constraints. Ambiguity is the enemy of consistent output. ### 2. Context is Everything Models have no inherent context beyond their training data. Every prompt must establish: - **Who** the model should be (role) - **What** the task is (instruction) - **How** to respond (format, tone, length) - **Why** the task matters (optional but helpful for complex tasks) ### 3. Iterate, Don't Expect Perfection First Time The first prompt is rarely the best. Prompt engineering is an iterative discipline. Each refinement teaches you something about how the model interprets your instructions. ### 4. Constrain to Liberate Paradoxically, more constraints (format, length constraints, guardrails) lead to better outputs. Open-ended prompts invite hallucination and inconsistency. ### 5. Test Systematically Change one variable at a time. Track what works. Build a personal library of prompt patterns that reliably produce good results. --- ## Prompt Engineering Scorecard | Level | Characteristics | Typical Ou

What's inside
Steps it walks through
  1. Core Principles
  2. 1. Clarity Over Cleverness
  3. 2. Context is Everything
  4. 3. Iterate, Don't Expect Perfection First Time
  5. 4. Constrain to Liberate
  6. 5. Test Systematically
  7. Prompt Engineering Scorecard
  8. Self-Assessment Questions
  9. Chain-of-Thought (CoT) Prompting
  10. What It Is
  11. Why It Works
  12. Zero-Shot CoT
  13. Few-Shot CoT
  14. When to Use Chain-of-Thought
More from mercury-agent-skills
All skills →
About this skill
What does the prompt-engineering skill do?

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.

How do I install it?

Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill prompt-engineering --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 cosmicstack-labs/mercury-agent-skills, a repository with 364 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