From phntm
Write, review, or tune prompts and system instructions for LLMs, including AGENTS.md, CLAUDE.md, agent skills, tool descriptions, and per-model prompt adaptation. Use when crafting a new prompt, improving an existing one, designing an agent, or asking how to prompt GPT-5, Claude, Gemini, Kimi, Qwen, DeepSeek, or smaller/local models.
How this skill is triggered — by the user, by Claude, or both
Slash command
/phntm:prompt-craftThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to write prompts that are clear, testable, and portable across modern LLMs. Start with the universal guidance below, then read a model-specific reference only when the prompt targets that model family or the user asks for model-specific tuning.
Use this skill to write prompts that are clear, testable, and portable across modern LLMs. Start with the universal guidance below, then read a model-specific reference only when the prompt targets that model family or the user asks for model-specific tuning.
Prompting is context engineering: choose the smallest set of high-signal tokens that makes the desired behavior likely. Every section must earn its place. Start minimal, add instructions only for observed failure modes, and keep stable reusable content before dynamic task-specific context when caching matters.
Model-specific guidance changes quickly. When the user asks for the latest guidance, verify the primary docs before relying on these references.
Write prompts in this order unless the target model's guide says otherwise:
Use Markdown headings for ordinary structure. Use XML tags when separating instructions from untrusted/user-supplied data, examples, or multiple documents.
For tool descriptions, lead with when to use the tool, not what the tool is. Include required inputs, optional inputs, return shape, side effects, retry safety, and one example when the interface is not obvious.
For tool-using agents, add small reusable blocks only when the behavior matters:
<tool_persistence_rules>
- Use tools when they materially improve correctness or completeness.
- If a lookup returns empty or suspiciously narrow results, retry once with a broader or alternate strategy before reporting not found.
- Stop tool use when additional calls would not change the answer.
</tool_persistence_rules>
<dependency_checks>
- Before acting, check whether prerequisite lookup or retrieval is needed.
- Resolve prerequisites before downstream or irreversible actions.
</dependency_checks>
<parallel_tool_calls>
- Parallelize independent lookups and reads.
- Sequence actions that depend on prior results or have side effects.
- Never invent missing tool parameters.
</parallel_tool_calls>
<completeness_contract>
- Treat the task as incomplete until all requested items are covered or marked blocked.
- Track processed items against expected scope.
- If anything is blocked, state exactly what is missing.
</completeness_contract>
<verification_loop>
Before finalizing:
- Correctness: does the output satisfy every requirement?
- Grounding: are factual claims backed by provided context or tool outputs?
- Formatting: does the output match the requested schema or style?
- Safety: if the next step has external side effects, confirm first.
</verification_loop>
<grounding_rules>
- Use the provided sources as the authority for this task.
- If the sources do not contain the answer, say what is missing instead of guessing.
- Cite the source ID, file, section, or tool output for non-obvious factual claims.
</grounding_rules>
Before finalizing a prompt, check:
To initialize AGENTS.md and CLAUDE.md for a project, also use the agents-md-init skill; to audit, refactor, or sync existing files, use agents-md-maintain. To create or refine a SKILL.md, use skill-create. The rules below apply universally.
For repository or agent instruction files:
AGENTS.md or CLAUDE.md; put one-task instructions in chat; put reusable workflows in skills.pnpm test:unit" is better than "always be careful."description trigger-focused and keep detailed model notes in references/.## Prompt
[final prompt: copy-pasteable, with no commentary inside the prompt]
## Notes
- [key changes and why they matter]
- [model-specific assumptions and references consulted]
## Findings
[highest-impact issues first; each finding includes what is wrong, why it matters, and a concrete fix]
## Revised Prompt
[include only when the changes are concrete enough to be worth pasting]
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub phntm7/skills --plugin phntm