midjourney-cc-skill: Command for Claude Code

.claude/commands/research.md

research is a command for Claude Code from JustinPerea/midjourney-cc-skill. It costs 0 tokens per session (1,020 once invoked), scanned A, original, MIT.

A research command for finding community techniques for a specific Midjourney image-generation problem. Midjourney is a tool that creates images from text instructions.

In plain words
What is it for?
Use it to research a stated Midjourney challenge or examine recent failed attempts and prepare a short research brief.
Why use it?
It gives you a focused way to investigate repeated failures instead of guessing at prompt changes. It can work during an active image-making session or as a separate exploration.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions Claude Code.

This is JustinPerea/midjourney-cc-skill's own configuration. It tells Claude Code how to work on midjourney-cc-skill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything midjourney-cc-skill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to JustinPerea/midjourney-cc-skill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/JustinPerea/midjourney-cc-skill/main/.claude/commands/research.md
Clone the repo
git clone --depth 1 https://github.com/JustinPerea/midjourney-cc-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for research

README.md
[![agentmods](https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/research/github.svg)](https://agentmods.dev/commands/justinperea/midjourney-cc-skill/research)
Your own site
<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/research"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/research/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for research

Your own site · 80×15
<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/research"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/research.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,020 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01020
Opus 5 $0.00000 $0.00510
Sonnet 5 $0.00000 $0.00204
Haiku 4.5 $0.00000 $0.00102

Measured 10d ago against content hash bf3eae89cf30, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/research.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Research

Research community techniques for a specific Midjourney generation challenge. Usable standalone or mid-session.

Instructions

  1. Verify database access. Run SELECT COUNT(*) FROM sessions via sqlite-simple MCP. If the query fails, tell the user: "Database not available. Run claude mcp add sqlite-simple -- npx @anthropic-ai/sqlite-simple-mcp mydatabase.db then restart Claude Code." Do not proceed without database access.

  2. Determine context — check for an active session:

    SELECT id, intent, total_iterations, approach_rationale FROM sessions WHERE status = 'active' LIMIT 1
    
    • Mid-session: The user hit a wall during iteration. Research focus comes from the gap analysis of recent failures.
    • Standalone: No active session. Research is exploratory — produce a brief for future sessions.
  3. Parse research focus from user input ($ARGUMENTS). If empty and mid-session, derive focus from the last 3 iterations:

    SELECT iteration_number, what_failed, gap_analysis, prompt
    FROM iterations
    WHERE session_id = ?
    ORDER BY iteration_number DESC
    LIMIT 3
    

    Extract the recurring failure themes and use them as the research focus.

  4. Check internal knowledge first — what do we already know about this topic?

    SELECT id, category, problem, solution, confidence, success_rate
    FROM patterns
    WHERE is_active = 1
      AND (problem LIKE '%' || ? || '%' OR solution LIKE '%' || ? || '%')
    ORDER BY confidence DESC
    
    SELECT keyword, intended_effect, effectiveness, notes
    FROM keyword_effectiveness
    WHERE intended_effect LIKE '%' || ? || '%'
    ORDER BY effectiveness DESC
    

    Note what's available internally so research can fill the gaps rather than duplicate.

  5. Construct targeted search queries (pick 3-5 most relevant):

    1. Core technique: "midjourney v7" "{primary_concept}" prompt
    2. Reddit community: site:reddit.com/r/midjourney "{concept}" tips
    3. Failure-specific: "midjourney" "{hard_aspect}" how to
    4. Parameter-specific: "midjourney v7" --style raw "{concept}"
    5. Prompt examples: "midjourney prompt" "{concept}" example

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 97 lines · 0 tokens per session scan A bf3eae89cf30

Subscribe to this mod's changes

research is a command published in the GitHub repository JustinPerea/midjourney-cc-skill (12 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,020 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.