Writing Agent Prompts

Patterns for writing effective prompts for Claude Code (the VS Code / terminal agent). Provides verified patterns for writing effective prompts for Claude Code agents. ALWAYS load this skill when: writing a task for Claude Code, crafting an agent instruction, designing a subagent prompt, debugging Claude drift or incorrect output, reviewing a CLAUDE.md file, structuring a new skill, or any question about how to instruct Claude Code effectively. Trigger phrases: "prompt for claude", "tell claude to", "claude drifted", "claude did wrong", "how to ask claude", "agent task", "CLAUDE.md", "write a skill", "skill description", "claude ignored", "claude did the wrong thing".

krishamaze Updated

File contents

krishamaze/skills/tree/main/skills-lab/writing-agent-prompts commit ca56dfc826

Frequently asked questions

npx skillmds@latest add krishamaze/writing-agent-prompts