prompt-engineering

Designs and optimizes prompts, commands, and skills for LLM agents using proven patterns.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/Barbaros911/As-mine --skill prompt-engineering-barbaros911
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: prompt-engineering
Source: https://github.com/Barbaros911/As-mine/tree/main/.claude/skills/prompt-engineering
Command: npx skills add https://github.com/Barbaros911/As-mine --skill prompt-engineering-barbaros911

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing effective prompts for LLMs and agents is inconsistent and error-prone, leading to unreliable outputs, wasted tokens, and unpredictable agent behavior in production. ## Core Features & Use Cases - Prompt Patterns Library: Covers few-shot learning, chain-of-thought prompting, template systems, system prompt design, and progressive disclosure with concrete examples. - Agent Prompting Best Practices: Applies Anthropic's guidance on context window management, conciseness, and setting appropriate degrees of freedom for instructions. - Persuasion Principles: Uses seven research-backed principles (authority, commitment, scarcity, social proof, unity, reciprocity, liking) to increase compliance with critical instructions. - Use Case: When writing a new slash command or sub-agent prompt, use this Skill to structure the instruction hierarchy, choose the right freedom level, and add verification steps so the agent follows the workflow reliably. ## Quick Start Use the prompt-engineering skill to review and improve my system prompt for a code review sub-agent.

Frequently Asked Questions about prompt-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write effective prompts for LLM agents?▼

Start with a direct instruction, add constraints only when needed, and include 2-5 input-output examples for consistent formatting. Match the level of specificity to the task's fragility, using exact scripts for critical operations and open guidance for flexible tasks.

What is few-shot prompting and when should I use it?▼

Few-shot prompting teaches the model by showing 2-5 input-output example pairs instead of explaining rules. Use it when you need consistent formatting, specific reasoning patterns, or edge-case handling, balancing example count against token cost.

How do I reduce token usage in long prompts?▼

Remove redundant words, move stable instructions into system prompts, consolidate similar rules, and assume the model already knows common concepts. Challenge each paragraph by asking whether it justifies its token cost.

When should I use chain-of-thought prompting?▼

Use chain-of-thought prompting for complex problems requiring multi-step logic, mathematical reasoning, or verifiable thought processes. Adding step-by-step reasoning improves accuracy on analytical tasks by 30-50%.

Why does my agent ignore instructions in my prompt?▼

Vague or optional phrasing lets the model rationalize skipping steps. Use imperative language like "YOU MUST", require explicit announcements of actions, and add verification steps so compliance becomes automatic rather than discretionary.

What are the limitations of persuasion techniques in prompts?▼

Persuasion principles like authority and commitment improve compliance but should not be combined excessively or used manipulatively. Avoid liking and reciprocity for discipline enforcement, as they create sycophancy and conflict with honest feedback.