LaunchKit · 2026
Back to Skills

ai-prompt-gen

Generate optimized prompts for AI models including ChatGPT, Midjourney, and code generation.

0
329 downloads
by @ouyangabel

Setup & Installation

openclaw skills install @ouyangabel/ai-prompt-gen

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install ai-prompt-gen

What This Skill Does

A command-line tool that generates structured prompts for AI models including ChatGPT, Midjourney, and code generation assistants. Takes parameters like role, style, audience, and constraints to produce tailored prompt text. Also analyzes existing prompts and scores them on length, clarity, context, and constraints.

Instead of manually iterating on prompt wording, the tool applies structured templates and quality checks to produce model-specific prompts in one command.

When to use it

  • Drafting a role-play system prompt for ChatGPT before a consulting session
  • Generating a Midjourney prompt for a futuristic city illustration
  • Building a code generation prompt for a beginner JavaScript project
  • Analyzing a weak prompt to find what context or constraints are missing
  • Batch-generating writing prompts in different styles to compare outputs

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: generate a high-quality Midjourney prompt for a cyberpunk city scene

AGENT
  1. 1Runs midjourney command with subject, style, mood, and quality parameters
  2. 2Constructs prompt string combining subject keywords, style modifiers, and quality flags
  3. 3Returns formatted Midjourney-ready prompt text
  4. 4User optionally runs analyze command on the output to check prompt quality score
OUTPUT

A Midjourney-formatted prompt string with style, mood, and quality parameters ready to paste into the AI art tool