Skip to content
Design
Command

/prompt-refine

Diagnose and optimize any AI gen prompt — annotated critique of weak tokens and missing modifiers, optimized prompt with explanations, and a cross-tool variant adapted for a second tool.

From plugin
naksha
35670 skills7 agents70 commands9 hooks
> /plugin marketplace add Adityaraj0421/naksha-studio
> /plugin install naksha@naksha

Command definition

prompt-refine.md
name: prompt-refine
description: Diagnose and optimize any AI gen prompt — annotated critique of weak tokens and missing modifiers, optimized prompt with explanations, and a cross-tool variant adapted for a second tool.
allowed-tools: ["Read", "Write", "Edit", "Bash", "Glob", "Grep", "mcp__*"]
arguments: "<existing prompt> [-- tool: midjourney|dalle|runway|ideogram|sd]"

/prompt-refine $ARGUMENTS

You are activating the **AI Visual Gen Wing**: AI Prompt Engineer.

---

Process

1. Parse the Input

Extract from `$ARGUMENTS`:

  • **Existing prompt:** the full prompt text to audit
  • **Tool:** which tool this is intended for (default: Midjourney if unspecified)
  • **Context:** what the prompt is trying to achieve (if provided)

---

2. Identify the Tool

If tool is not specified in `$ARGUMENTS`, identify it from syntax clues:

  • `--ar`, `--style`, `--no` → Midjourney
  • Instruction-style natural language → DALL-E 3
  • Scene/motion description → Runway
  • Otherwise → ask before proceeding

---

3. Annotated Critique

Run the prompt through the AI Prompt Engineer's 8-failure-mode checklist. For each issue found, annotate inline:

Original prompt:
"[paste original]"

Annotated:
"[token] ← [WEAK: reason] [token] ← [MISSING: what's absent] [token] ← [OK]"

Issues to check:

  • [ ] Are all 6 anatomy elements present (subject, style, lighting, camera, mood, negatives)?
  • [ ] Are style tokens specific or vague? ("photography" is vague; "editorial photography, 35mm film" is specific)
  • [ ] Are there conflicting instructions? (asking for "minimalist" and "highly detailed" simultaneously)
  • [ ] Is the subject specific enough? ("person" vs "founder in her 30s at a standing desk")
  • [ ] Are negatives present and targeting known failure modes for this tool?
  • [ ] Is tool-specific syntax correct? (MJ: `--no`; DALL-E: natural language exclusions)
  • [ ] Is the aspect ratio specified (if needed)?
  • [ ] Any tokens that are likely being ignored due to prompt length or weight distribution?

---

4. Optimized Prompt

Deliver the improved prompt with changes highlighted:

## Optimized Prompt ([tool name])
[full optimized prompt]

## Changes Made
- **Added:** [token] — [reason]
- **Replaced:** "[old token]" → "[new token]" — [reason]
- **Removed:** [token] — [reason it was hurting the output]
- **Reordered:** [what moved where and why]

---

5. Cross-Tool Variant

Translate the optimized prompt to one other tool. Choose the most relevant alternative:

  • If original is MJ → produce DALL-E 3 version
  • If original is Runway → produce Kling version
  • If DALL-E → produce MJ version
## Cross-Tool Variant ([second tool name])
[translated prompt in second tool's syntax]

## Translation Notes
[1-3 notes on what changed and why — syntax differences, unavailable parameters, etc.]

---

MCP Fallback

Not applicable.

---

What's Next

  • Paste the optimized prompt into the target tool and generate
  • If output still misses the brief, run `/prompt-refine` again with the new prompt + note what the issue is
  • Once approved, hand to AI Prompt Engineer to store in the brand prompt library
Read more
@adityaraj0421
Ships withnaksha

Your agency's design brain. Always on, always yours. The Naksha design team, inside your terminal — 30 specialist roles activate automatically based on what you're building.

3561 skill7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
356
Star history of Adityaraj0421/naksha-studio on GitHub, a chart by star-history.com

Other commands on naksha.

ab-variants

ab-variants

Command

Generate A/B test design variants from an existing Figma screen — alternate layouts, CTA placements, color treatments, and copy…

@adityaraj0421@adityaraj0421Install Command
accessibility-audit

accessibility-audit

Command

Full WCAG AA accessibility audit on an HTML file — contrast ratios, keyboard navigation, semantic HTML, ARIA usage, touch…

@adityaraj0421@adityaraj0421Install Command
brand-kit

brand-kit

Command

Generate a complete brand kit from a logo and 1-2 brand colors — full palette, type scale, icon style, component tokens, and…

@adityaraj0421@adityaraj0421Install Command
brand-strategy

brand-strategy

Command

Define or audit a brand — positioning, visual identity system, voice and tone, and brand architecture.

@adityaraj0421@adityaraj0421Install Command
chart-design

chart-design

Command

Design a chart or data visualization — selects the right chart type, applies accessible color palettes, adds annotations, and…

@adityaraj0421@adityaraj0421Install Command
competitive-audit

competitive-audit

Command

Capture a competitor website with Playwright and extract its color system, typography, layout patterns, and 'steal this'…

@adityaraj0421@adityaraj0421Install Command

More commands from other plugins.

od-contribute
Auto-invoked

od-contribute

Command

Open a first-contribution PR (or bug issue) on nexu-io/open-design — works for non-coders too.

@nexu-io@nexu-ioInstall Command
design-deslop

design-deslop

Command

Strip the signatures that make a UI look AI-generated — flat hierarchy, no focal point, monotone layout, timid palettes, generic…

@dammyjay93@dammyjay93Install Command