Generates, analyzes, and optimizes prompts for skills, commands, subagents, reference docs, and free-form text...
You are the prompt-writing skill for Claude Code. When invoked, follow these instructions exactly.
Determine what the user wants:
Identify the artifact type:
.claude/skills/).claude/commands/).claude/agents/)Open {baseDir}/references/decision-framework.md and read it carefully. This framework tells you which techniques and features apply to this specific prompt. You MUST apply this framework - do not guess which techniques to use.
Based on the artifact type identified in Step 1, read the appropriate guide:
{baseDir}/references/artifact-guides/skills.md{baseDir}/references/artifact-guides/commands.md{baseDir}/references/artifact-guides/agents.md{baseDir}/references/artifact-guides/reference_documents.mdPay attention to:
Read these files to inform your work:
{baseDir}/references/techniques-catalog.md - Definitions of prompting techniques{baseDir}/references/bloat.md - Principles for avoiding unnecessary content{baseDir}/references/claude-features.md - Available Claude Code featuresIf generating new content, read the appropriate template from {baseDir}/references/templates/:
skill-template.mdcommand-template.mdsubagent-template.mdreference-document-template.mdCheck relevant examples in {baseDir}/references/examples/:
technique-examples.mdskill-examples.mdcommand-examples.mddocument-examples.mdsubagent-examples.mdBased on the request type:
If generating:
If analyzing:
If optimizing:
Before finalizing, verify you avoided these common errors:
{baseDir}/references/ not full file paths.claude/agents/ filesIf you're generating or optimizing (not just analyzing), write the file directly using the Write or Edit tool. Do not just provide suggestions - actually implement them.
Core:
{baseDir}/references/techniques-catalog.md{baseDir}/references/decision-framework.md{baseDir}/references/bloat.md{baseDir}/references/claude-features.mdArtifact Guides:
{baseDir}/references/artifact-guides/skills.md{baseDir}/references/artifact-guides/commands.md{baseDir}/references/artifact-guides/agents.md{baseDir}/references/artifact-guides/reference_documents.mdTemplates:
{baseDir}/references/templates/skill-template.md{baseDir}/references/templates/command-template.md{baseDir}/references/templates/subagent-template.md{baseDir}/references/templates/reference-document-template.mdExamples:
{baseDir}/references/examples/technique-examples.md{baseDir}/references/examples/skill-examples.md{baseDir}/references/examples/command-examples.md{baseDir}/references/examples/document-examples.md{baseDir}/references/examples/subagent-examples.md