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.
curl -O https://raw.githubusercontent.com/JustinPerea/midjourney-cc-skill/main/.claude/commands/log-iteration.mdgit clone --depth 1 https://github.com/JustinPerea/midjourney-cc-skillWrote 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.
[](https://agentmods.dev/commands/justinperea/midjourney-cc-skill/log-iteration)<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/log-iteration"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/log-iteration/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.
<a href="https://agentmods.dev/commands/justinperea/midjourney-cc-skill/log-iteration"><img src="https://agentmods.dev/badge/commands/justinperea/midjourney-cc-skill/log-iteration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02532 |
| Opus 5.5 | $0.00000 | $0.01013 |
| Sonnet 5.5 | $0.00000 | $0.00506 |
| Haiku 4.5 | $0.00000 | $0.00253 |
Grade A, and why
log-iteration 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Log Iteration
Log a Midjourney generation attempt. This captures the prompt, parameters, result assessment, and user feedback for later pattern extraction.
Instructions
-
Verify database access. Run
SELECT COUNT(*) FROM sessionsvia sqlite-simple MCP. If the query fails, tell the user: "Database not available. Runclaude mcp add sqlite-simple -- npx @anthropic-ai/sqlite-simple-mcp mydatabase.dbthen restart Claude Code." Do not proceed without database access. -
Check for an active session. Query the database:
SELECT id, intent, total_iterations FROM sessions WHERE status = 'active' ORDER BY created_at DESC LIMIT 1 -
If no active session exists, ask the user:
- What are you trying to create? (intent)
- Do you have a reference image to describe? (reference_description)
- Then create a new session with a generated UUID.
-
Determine what data is available. There are five scenarios:
Scenario A: Browser automation capture (richest data path). If the generation was submitted via Playwright MCP (from
/new-sessionor manual browser control):- Create the iteration screenshot directory:
mkdir -p sessions/{session_id_first_8}/iter-{NN}/ - Use batch capture via
browser_run_codeto capture all 4 images in one tool call (see "Batch Image Capture" inrules/auto-core-workflows.md). This saves ~40-50% context compared to individual navigate/screenshot calls:browser_run_code({ code: `async (page) => { const jobId = '[JOB_ID]'; const dir = 'sessions/[ID]/iter-[NN]'; for (let i = 0; i < 4; i++) { await page.goto('https://www.midjourney.com/jobs/' + jobId + '?index=' + i); await page.waitForTimeout(3000); await page.screenshot({ path: dir + '/img-' + (i + 1) + '.png' }); } return 'All 4 images captured'; }` }) - You already know the exact prompt and parameters (from the session)
- Analyze all 4 images in the grid using the 7 standard scoring dimensions (subject, lighting, color, mood, composition, material, spatial) — see
rules/core-assessment-scoring.md. Score every dimension for every image, even if "not applicable" (score 1.0).- Flag any dimensions where agent confidence is low (especially spatial_relationships)
- Identify the best candidate and explain why
- Note consistency patterns: if all 4 miss the same thing, it's a prompt-level issue; if they diverge, it's MJ interpretation variance
- Formulate gap analysis per image and overall
- Present scores as PRELIMINARY — ask the user to validate before logging, especially for low-confidence dimensions
- After user confirms/corrects, recommend next action using the Iteration Action Decision Framework: Upscale best, Vary promising (specify which image), or prompt edit
- If user approves an action, perform it via browser and capture the result
- Create the iteration screenshot directory:
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.
- 2mo ago First seen · 185 lines · 0 tokens per session scan A 93602209cc44
log-iteration is a command published in the GitHub repository JustinPerea/midjourney-cc-skill (16 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,532 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.
log-iteration compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| log-iterationJustinPerea/midjourney-cc-skill | Command | 16 | 9mo ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |