mcpField
M
midjourney-prompt-engineering

midjourney-prompt-engineering

github.com/justinpereaCreative & media16339 installsUpdated 37w ago
Repository

About midjourney-prompt-engineering

A prompt-engineering skill for Midjourney V7 creators, combining parameter and syntax guidance with evidence-based learning from image iterations. It supports manual use, persistent cross-session learning, and optional browser automation.

Key features

  1. 01Midjourney V7 parameter and syntax reference
  2. 02Image analysis and prompt rewriting
  3. 03Seven-dimension image scoring
  4. 04Cross-session pattern tracking
  5. 05Optional browser automation

Use cases

  1. 01Building Midjourney V7 prompts
  2. 02Revising prompts based on image gaps
  3. 03Recording and validating recurring creative patterns

MCP support

The skill can use sqlite-simple MCP to persist learned patterns and playwright MCP to automate midjourney.com; its core rules require neither.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/justinperea/midjourney-cc-skill --skill midjourney-prompt-engineering

After installing, type/midjourney-prompt-engineeringin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

.gitignore
LICENSE
AGENTS.md
STATUS.md
README.md
metadata.json
.claude/commands/
apply-knowledge.md
research.md
show-knowledge.md
discover-styles.md
forget-pattern.md
validate-pattern.md
reflect.md
log-iteration.md
new-session.md
knowledge/
failure-modes.md
keyword-effectiveness.md
learned-patterns.md
official-docs.md
translation-tables.md
knowledge/prompt-templates/
3d-abstract.md
product-photography.md
hero-backgrounds.md
rules/
_template.md
_sections.md
auto-reference-patterns.md
core-prompt-construction.md
auto-core-workflows.md
core-assessment-scoring.md
core-research-phase.md

Details

From the project README

Midjourney Prompt Learning System

A skill that knows Midjourney. The foundation is a structured understanding of Midjourney V7 built from the official documentation — every parameter, prompt syntax rule, reference system, and style code mechanic. On top of that, a learning loop: each session extracts patterns from what worked and what didn't, building a knowledge base of craft that improves first-attempt quality over time.

Architecture

You are a multimodal reasoning model. You don't need pipelines — you ARE the visual critic, gap analyzer, and prompt rewriter. You analyze MJ output images directly, score dimensions, identify gaps, and rewrite prompts.

The one thing you can't do natively is remember across sessions. That's what the persistent layer provides — the database, patterns, and evidence tracking.

Knowledge Foundation (ships with the skill)

FileWhat It ContainsSource
knowledge/v7-parameters.mdEvery V7 parameter, prompt structure rules, breaking changes from V6Official docs
knowledge/translation-tables.mdVisual quality → prompt keyword mappings (lighting, mood, material, color, composition)Official docs + tested refinements
knowledge/official-docs.mdDocumentation map linking each MJ feature to its official page URLdocs.midjourney.com
knowledge/failure-modes.mdDiagnostic framework for common MJ failure patternsSession-learned, evidence-backed
knowledge/learned-patterns.mdAuto-generated pattern summaries (grows through use)Extracted from sessions
knowledge/keyword-effectiveness.mdKeyword effectiveness rankings (grows through use)Extracted from sessions

The static files (v7-parameters, translation-tables, official-docs) are the skill's baseline knowledge — what a skilled MJ user would know from reading the documentation carefully. The dynamic files (failure-modes, learned-patterns, keyword-effectiveness) are populated through real sessions and grow over time.

Module Dependencies

ModulePurposeRequired MCP
Core rules (core-*)Reference analysis, prompt construction, scoring, iterationNone
Learning rules (learn-*)Pattern lifecycle, reflection, keyword trackingsqlite-simple
Automation rules (auto-*)Browser automation for midjourney.complaywright

Core only (manual): Load core-* rules. Copy prompts to MJ manually. Core + Learning: Add learn-* rules + sqlite MCP. Patterns persist across sessions. Full system: Add auto-* rules + playwright MCP. Hands-free iteration.

# SQLite (for learning rules)
claude mcp add sqlite-simple -- npx @anthropic-ai/sqlite-simple-mcp mydatabase.db

# Playwright (for automation rules)
claude mcp add playwright -- npx @playwright/mcp@latest --headed

# Initialize the database
sqlite3 mydatabase.db < schema.sql

Rules Quick Reference

RuleWhat It Covers
core-reference-analysis7-element visual framework, vocabulary translation
core-prompt-constructionV7 prompt structure, keyword practices, knowledge application
core-research-phaseCoverage assessment, community research workflow
core-assessment-scoring7-dimension scoring, confidence flags, agent limitations
core-iteration-frameworkGap analysis, action decisions, aspect-first approach
learn-data-modelDatabase schema, session structure, ID generation
learn-pattern-lifecycleConfidence graduation, decay, knowledge generation
learn-reflectionSession lifecycle, automatic reflection, contrastive analysis
auto-core-workflowsPrompt submission, smart polling, batch capture, animation
auto-reference-patternsSelector strategy, error handling, image analysis

Scoring

All iterations scored on 7 dimensions: subject, lighting, color, mood, composition, material, spatial. All 7 always scored (1.0 for "not applicable"). Scores are preliminary until user-validated. See rules/core-assessment-scoring.md.

Commands

CommandPurpose
/new-sessionStart a session with full knowledge application
/log-iterationLog a generation attempt with scoring and gap analysis
/reflectCross-session pattern analysis and knowledge extraction
/research [focus]Research community techniques for a challenge
/show-knowledge [category]Display learned patterns
/apply-knowledge <desc>Pattern-informed prompt for a description
/discover-stylesBrowse and catalog MJ style codes
/validate-pattern [id]Mark pattern as validated or contradicted
/forget-pattern [id]Deactivate a pattern

Key Principle

Every pattern must have logged evidence. The system learns from real iteration data, not assumptions. Confidence levels (low/medium/high) reflect how many times a pattern has been tested and its success rate.

Full Reference

For the complete compiled reference combining all rules, see AGENTS.md.

Comments

Markdown supported