Agent skill · Code Review & Quality

writing-prompts

Use when crafting prompts for LLMs to improve response quality, accuracy, consistency, and task performance

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill writing-prompts-darthlinuxer-agentic-skills-2 --agent claude-code

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

Facts
Files in the skill folder: 2
SKILL.md size: 26 KB
Bundled scripts: none
Path: skills/ai-llm/writing-prompts-darthlinuxer-agentic-skills-2/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

Instructs the agent to engage in prompt engineering for LLM tasks, focusing on structured design, iterative refinement, and model-specific optimization to improve response quality, accuracy, consistency, and task performance.

How it works

Adopts an iterative RED-GREEN-REFACTOR workflow:

  1. Define Success Criteria: specify measurable output requirements and formats.
  2. Establish Baseline (RED): test without optimization and document failures.
  3. Draft Initial Prompt (Minimal Fix): start simple to address observed issues.
  4. Apply Techniques (GREEN): layer prompt engineering methods until criteria are met.
  5. Test & Iterate: assess with diverse inputs and edge cases.
  6. Refactor: improve clarity, token efficiency, robustness without altering success criteria.

It emphasizes common prompting techniques (system prompts, role prompting, chain-of-thought, few-shot, XML/structured tags, output formatting, constraints & guards) and provides a comprehensive implementation sequence from defining tests to refactoring for efficiency.

When to use it

Use when creating, debugging, or improving prompts for LLM tasks—especially for production prompts requiring reliability, detailed constraints, and cross-provider compatibility.

What it can touch

The skill references tools like system prompts, role prompts, and structured outputs (JSON/XML) as core methods; it does not specify external software execution beyond designing prompts and testing strategies.

Caveats

Highlights the need for iterative testing, token-conscious design, and adherence to structured output formats. Includes guardrails to prevent non-conforming text and to handle unrecognizable inputs gracefully.

From the SKILL.md

# Writing Prompts ## Overview Prompt engineering is the systematic process of crafting effective prompts for large language models (LLMs) to achieve better, more reliable, and more targeted responses. This skill provides proven techniques for maximizing LLM capabilities through structured prompt design, iterative refinement, and model-specific optimization. **Core principle:** Great prompts are specific, contextual, and tested. They guide the model's reasoning process while leaving appropriate degrees of freedom for the task at hand. ## When to Use Use this skill when: - Creating initial prompts for new tasks with LLMs - Improving existing prompts that produce inconsistent or suboptimal results - Working with complex tasks requiring step-by-step reasoning - Needing LLMs to adopt specific roles or behaviors - Developing prompts for production applications - Debugging prompt-related issues in LLM interactions - Optimizing token usage while maintaining output quality - Adapting prompts across different LLM providers (Anthropic, GPT, Gemini, etc.) ## Core Pattern Follow this iterative RED-GREEN-REFACTOR process for prompt development: 1. **Define Success Criteria** (Write the Test): Cl

What's inside
Steps it walks through
  1. Overview
  2. When to Use
  3. Core Pattern
  4. Fundamental Principles
  5. 1. Be Specific and Direct
  6. 2. Provide Sufficient Context
  7. 3. Match Freedom to Task Fragility
  8. 4. Show, Don't Just Tell
  9. 5. Guide the Reasoning Process
  10. Quick Reference
  11. Implementation
  12. Step 1: Establish Success Criteria (Write Your Test)
  13. Step 2: Test Baseline Behavior (RED)
  14. Step 3: Use System Prompts for Persistent Context
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the writing-prompts skill do?

Use when crafting prompts for LLMs to improve response quality, accuracy, consistency, and task performance

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill writing-prompts-darthlinuxer-agentic-skills-2 --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