midjourney-cc-skill: Command for Claude Code

.claude/commands/new-session.md

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

A command that starts a structured session for planning image-generation prompts and applying previously learned guidance. It also checks a local SQLite database for earlier sessions and patterns.

In plain words
What is it for?
Use it when beginning a new image-prompt project, especially when you have a reference image, style, mood, or other requirements to discuss.
Why use it?
It keeps new prompt work connected to earlier results instead of starting with no context. It stops when the required database is unavailable.

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/new-session.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 new-session

README.md
[![agentmods](https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/new-session/github.svg)](https://agentmods.dev/commands/justinperea/midjourney-cc-skill/new-session)
Your own site
<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/new-session"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/new-session/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 new-session

Your own site · 80×15
<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/new-session"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/new-session.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 3,871 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.03871
Opus 5 $0.00000 $0.01936
Sonnet 5 $0.00000 $0.00774
Haiku 4.5 $0.00000 $0.00387

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

Security

Grade A, and why

new-session scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o sessions/{id}/reference-1.png <url>
.claude/commands/new-session.md · 257 lines

How it starts

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

New Session

Start a new prompt engineering session with full knowledge application.

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. Gather the user's intent:

    • What are they trying to create?
    • Do they have a reference image? They can share the image, describe it in text, or both.
    • Any specific requirements (aspect ratio, style, mood, use case)?
  3. Check for unreflected sessions before starting new work:

    SELECT id, intent, total_iterations, status
    FROM sessions
    WHERE status IN ('success', 'abandoned') AND reflected = 0
    

    If any unreflected sessions exist:

    • For each, run the lightweight reflection extraction (see "Session Lifecycle & Automatic Reflection" in rules/learn-reflection.md)
    • Mark each session as reflected = 1
    • Briefly inform the user: "Extracted patterns from N previous session(s) before starting."

    Also check for sessions left in 'active' status that aren't the current one:

    SELECT id, intent, total_iterations FROM sessions WHERE status = 'active'
    

    If found, ask the user: should these be marked as abandoned (triggers reflection) or are they still in progress?

  4. Analyze the reference — image(s), text, or both:

    If the user shares a single reference image:

    • Look at it and produce the full reference analysis: subject, lighting (type, key light, fill, rim, atmosphere), colors (palette, temperature, saturation), material/texture, composition (framing, subject position, depth, negative space), mood, style, render quality.
    • Think about it from a prompt-engineering perspective: what makes this image look this way, what would be hardest to reproduce in MJ, what could MJ misinterpret, and what keywords map to each visual quality.
    • Map visual qualities to prompt language using the keyword effectiveness database.
    • Present your analysis to the user. Let them correct, confirm, or add context that the image alone doesn't convey.

Read the full file on GitHub · 257 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 · 257 lines · 0 tokens per session scan A a7f7d423b003

Subscribe to this mod's changes

new-session 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 3,871 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.