midjourney-cc-skill: Command for Claude Code

.claude/commands/reflect.md

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

A command for studying records of previous work sessions and extracting recurring lessons into a knowledge base. It compares successful and failed attempts and handles conflicting patterns.

In plain words
What is it for?
Use it to find patterns across sessions, resolve contradictory lessons, and regenerate the knowledge base from stored session data.
Why use it?
It reduces the need to manually review many session logs and helps turn past mistakes and successes into reusable guidance.

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/reflect.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 reflect

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/reflect"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/reflect.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 2,652 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.02652
Opus 5 $0.00000 $0.01326
Sonnet 5 $0.00000 $0.00530
Haiku 4.5 $0.00000 $0.00265

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

Security

Grade A, and why

reflect 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/reflect.md · 218 lines

How it starts

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

Reflect

Analyze iteration logs and extract/update patterns in the knowledge base.

Updated Role

This command now serves as the deep analysis layer. Lightweight pattern extraction and markdown regeneration happen automatically when sessions close (see "Session Lifecycle & Automatic Reflection" in rules/learn-reflection.md). Pattern confidence graduates automatically based on times_tested and success_rate thresholds — no manual review gate.

/reflect adds:

  • Contrastive analysis across sessions (success vs failure comparison)
  • Cross-session pattern discovery
  • Contradiction resolution (when patterns conflict, produce conditional rules)
  • Force full knowledge base regeneration

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 recent data. Query the database for sessions and iterations that haven't been reflected on yet (or all data if this is the first reflection):

    SELECT s.id, s.intent, s.status, s.final_successful_prompt, s.reference_analysis,
      i.iteration_number, i.prompt, i.parameters, i.result_assessment, i.user_feedback,
      i.gap_analysis, i.success, i.what_worked, i.what_failed, i.action_type, i.parent_image
    FROM sessions s
    JOIN iterations i ON s.id = i.session_id
    WHERE s.reflected = 0
    ORDER BY s.created_at DESC, i.iteration_number ASC
    
  3. Analyze successful iterations. Look for recurring themes in what_worked:

    SELECT what_worked FROM iterations WHERE success = 1 AND what_worked IS NOT NULL
    

    Parse the JSON arrays and count frequency of each technique across sessions.

  4. Analyze failures. Look for recurring themes in what_failed and gap_analysis:

    SELECT what_failed, gap_analysis FROM iterations WHERE (what_failed IS NOT NULL OR gap_analysis IS NOT NULL)
    

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

Subscribe to this mod's changes

reflect 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 2,652 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.