mcpField
P
prompting

prompting

github.com/diskd-aiAgent workflows178 installsUpdated 40w ago
Repository

About prompting

A prompt-engineering skill for people creating or refining prompts for LLMs. It offers a workflow, technique references, and guidance on structuring prompts and system prompts.

Key features

  1. 01Goal-to-test prompt workflow
  2. 02Few-shot and role prompting
  3. 03Task decomposition and constraints
  4. 04XML, JSON, and Markdown formats
  5. 05System prompt design guidance

Use cases

  1. 01Drafting prompts for a new task
  2. 02Refining vague or inconsistent outputs
  3. 03Choosing formats for structured responses

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/diskd-ai/prompting --skill prompting

After installing, type/promptingin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
references/
techniques.md
system-prompts.md
structured.md

Details

From the project README

Prompt Engineering

Guide for crafting effective prompts for large language models (Claude, GPT, Gemini, Llama, etc.).

Workflow

  1. Clarify the goal: What task should the prompt accomplish?
  2. Choose techniques: Select from references/techniques.md
  3. Structure the prompt: Apply appropriate format
  4. Add constraints: Specify requirements and boundaries
  5. Test and refine: Iterate based on outputs

Writing a New Prompt

Start with this template:

[Context/Role - optional]
[Task - required]
[Constraints/Requirements - as needed]
[Output format - as needed]
[Examples - for complex tasks]

Minimal prompt (simple tasks):

Summarize this article in 3 bullet points.

Structured prompt (complex tasks):

You are a senior code reviewer.

Review this code for:
- Security vulnerabilities
- Performance issues
- Maintainability concerns

Format your response as:
## Summary
[1-2 sentences]

## Issues
- [severity]: [description]

## Recommendations
[prioritized list]

Improving an Existing Prompt

Diagnose issues:

ProblemSolution
Output too vagueAdd specific constraints or examples
Wrong formatSpecify output structure explicitly
Missing detailsUse chain-of-thought or decomposition
Inconsistent resultsAdd few-shot examples
Off-topic responsesStrengthen role/context framing

Improvement checklist:

  • Is the task clear and unambiguous?
  • Are constraints specific (not "be concise" but "under 100 words")?
  • Does output format match intended use?
  • Would examples clarify expectations?

Quick Reference: Techniques

TechniqueWhen to Use
Few-shotSpecific format/style needed
Chain-of-thoughtComplex reasoning, math, analysis
Role promptingDomain expertise, specific tone
Task decompositionMulti-step workflows
ConstraintsPrecise requirements

See references/techniques.md for detailed patterns and examples.

Quick Reference: Output Formats

FormatWhen to Use
XML tagsComplex prompts, clear section boundaries
JSONProgrammatic parsing, structured data
MarkdownHuman-readable reports, documentation

See references/structured.md for format patterns.

System Prompts

For designing AI assistant behavior, see references/system-prompts.md.

Key sections:

  • Identity and role definition
  • Behavioral guidelines
  • Constraints and boundaries
  • Output format defaults

Comments

Markdown supported