Guides users through adapting unstructured prompts into structured ones using a tiered framework. Use when prompts lack clear success criteria or output shape.
How this skill is triggered — by the user, by Claude, or both
Slash command
/prompt-best-practices:skillThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **MANDATORY on slash-command invocation**: proceed to Step 0 — Quick Assessment. Do not refuse. The user can shortcut execution at Step 1 (see Fast-Track Exit).
MANDATORY on slash-command invocation: proceed to Step 0 — Quick Assessment. Do not refuse. The user can shortcut execution at Step 1 (see Fast-Track Exit).
Intercept unstructured prompts and guide users through an adaptive dialogue that builds a prompt sized to the task. The skill uses a modular 7-component framework derived from Anthropic's official prompting best practices.
references/framework.md is the single source of truth for component definitions and the tier mapping. references/component-rubrics.md operationalizes the [OK] / [~~] / [--] classification so two runs on the same prompt produce the same diagnostic. For model-specific tuning, see references/claude-considerations.md (Anthropic Claude) and references/codex-considerations.md (OpenAI Codex). For accuracy techniques (investigate before answering, ground in quotes, self-check), see references/grounding-techniques.md.
tests/benchmark-protocol.md for how contributors measure effect size.framework.md > Component 7)./prompt-best-practices. Assessment is mandatory; the dialogue itself is shortcut-able via the Fast-Track Exit in Step 1.framework.md > Task Tiers). Quick-tier tasks are not auto-activated — they are self-contained enough that a 2-component prompt is sufficient.framework.md).component-rubrics.md).At Step 1 the user can type skip, go, execute, or as-is (any language equivalent) to exit the dialogue and run the original prompt unchanged. This is the documented escape; always offer it in the Step 1 message.
Two-pass assessment:
Pass A: Task tier classification. Read the prompt and pick one tier (definitions in framework.md > Task Tiers):
Pass B: Component count. Check the 7 components against references/component-rubrics.md and mark each [OK], [~~], or [--]. The rubric turns subjective judgment into a checklist.
Slash-command invocation always proceeds to Step 1. Auto-activation follows the Activation Rules.
Present the diagnostic with the tier, the component grid, and the Fast-Track Exit offer.
Template:
Prompt analysis:
Tier detected: {quick|standard|complex} (required: {N} components)
[OK] Task — <one-line rationale>
[~~] Role — <one-line rationale>
[--] Context — <one-line rationale>
[--] Examples — <one-line rationale>
[--] Output spec — <one-line rationale>
[--] Constraints — <one-line rationale>
[--] Structure — <one-line rationale>
{M} of {N} required components are already in place.
Want to build the missing pieces together (≈{K} quick questions), or should I run it as-is?
Reply: "go" to build, "skip" to execute unchanged.
K is the remaining dialogue length (never more than the tier's ceiling: quick=2, standard=3, complex=5).
Ask ONE question per message, capped by tier:
Priority order (run only the top K from this list, where K = tier cap minus components already [OK]):
references/grounding-techniques.md.Dialogue rules:
Construct the final prompt using the template in framework.md > Final Prompt Template. Apply Component 7 (Structure) using the format appropriate for the target runtime:
codex-considerations.md)Adapt the template: include only the sections the tier and dialogue produced. Quick-tier prompts with just <task> and <output_spec> are valid and preferred to padding.
Present the prompt, then ask for one-word confirmation before executing.
If the user asks to modify the generated prompt, adjust only the requested components and re-present. Do not restart the dialogue.
[OK], [--], [~~].references/codex-considerations.md — no upfront plans, explicit parallelization, apply_patch format, phase-aware output. The 7 components map directly onto Codex's Starter Prompt sections.Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub gquattromani/prompt-best-practices --plugin prompt-best-practices