prompt-writing

Write, evaluate, and improve LLM prompts for alignment, clarity, and safety.

1|2|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/michaelsvanbeek/personal-agent-skills --skill prompt-writing-michaelsvanbeek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-writing
Source: https://github.com/michaelsvanbeek/personal-agent-skills/tree/main/skills/prompt-writing
Command: npx skills add https://github.com/michaelsvanbeek/personal-agent-skills --skill prompt-writing-michaelsvanbeek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing effective prompts is essential to getting reliable and safe AI behavior; this Skill helps users craft, test, and iterate prompts to improve clarity, alignment, and outcomes.

Core Features & Use Cases

  • Structured prompt templates for system prompts, user messages, few-shot examples, tool descriptions, and RAG prompts
  • Techniques for evaluating prompt quality, token efficiency, and defenses against prompt injection
  • Real-world workflows for developers and writers, including auditing, versioning, and template creation

Quick Start

Propose a concise system prompt and a task description, then iteratively test and refine until the AI output matches the desired behavior.

Frequently Asked Questions about prompt-writing

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

FAQPage Schema
How do I write effective system prompts for LLM applications?

Effective system prompts require structured templates, clear alignment, and iterative testing to maximize output clarity and safety. This involves proposing a concise task description, applying few-shot examples, and refining until the AI behavior matches your desired outcome.

What is the best way to prevent prompt injection in LLM workflows?

Preventing prompt injection requires applying structured prompt design and specific defense techniques during prompt evaluation. You can audit and test your prompts to identify vulnerabilities and enforce safer AI behavior across developer and writer workflows.

How do I evaluate and improve the token efficiency of RAG prompts?

Evaluating RAG prompts involves rigorous testing patterns and prompt auditing to measure token efficiency and alignment. You iteratively refine user messages and tool descriptions, applying structured templates to improve retrieval accuracy and output quality.

Can I use few-shot examples to improve prompt alignment for complex tasks?

Few-shot examples are fully supported to improve prompt alignment for complex tasks. By incorporating these examples into your structured prompt templates, you guide the LLM toward desired behaviors, enhancing clarity and reliability for both developers and writers.

Why does my LLM output not match the desired behavior during testing?

Mismatched LLM output often results from unstructured prompts lacking clear alignment or token efficiency. You need to iteratively test, audit, and refine your system prompts and user messages, applying structured design patterns until the output matches expectations.