Methodology for writing or improving prompts and system prompts that drive any LLM. Use when authoring or revising a prompt for a model task — grouping, classification, extraction, generation, copywriting, labeling, agent instructions, prompt templates, skill instructions — to decide how much to constrain the model based on the task type (open-ended vs single-correct-answer) and write the most fitting instructions. Triggers: "write a prompt", "help me write or improve a prompt", "how should I change this prompt", "this prompt isn't working", "write instructions for the model", "prompt-writer". Not for: answering the user's question directly, or writing articles and documents meant for human readers (those are not prompts that drive a model).
$npx -y skills add hacklyc/myagents --skill prompt-writerInstalls into the current project.
Run `npx skills use "https://github.com/hacklyc/myagents" --skill "hacklyc/myagents/prompt-writer"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/hacklyc/myagents" that are relevant to the current task. Run `npx skills add "https://github.com/hacklyc/myagents"` and select the relevant skills, then follow their instructions.