legnext-midjourney

legnext-midjourney is a skill for Claude Code, Codex from leggiemint/legnext-skills. It costs 62 tokens per session (2,278 once invoked), scanned A, original, MIT.

An image-generation workflow that sends text descriptions to Midjourney, an AI service that creates images from prompts, through the Legnext API, a web service for accessing it.

In plain words
What is it for?
Use it to create images from natural-language descriptions or Midjourney-style requests. It requires a Legnext API key.
Why use it?
It handles the steps of submitting an image request, checking its progress, and retrieving the result instead of requiring you to manage those steps manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create images from natural-language descriptions or Midjourney-style requests. It requires a Legnext API key.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leggiemint/legnext-skills/legnext-midjourney
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add leggiemint/legnext-skills --skill legnext-midjourney
Clone the repo
git clone --depth 1 https://github.com/leggiemint/legnext-skills

Made for: Claude Code, Codex.

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 legnext-midjourney

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/leggiemint/legnext-skills/legnext-midjourney"><img src="https://agentmods.dev/badge/skills/leggiemint/legnext-skills/legnext-midjourney.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,278 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.00062 $0.02278
Opus 5 $0.00031 $0.01139
Sonnet 5 $0.00012 $0.00456
Haiku 4.5 $0.00006 $0.00228

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

Security

Grade A, and why

legnext-midjourney 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 12d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/generate_and_wait.py, scripts/get_task.py, scripts/imagine.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

legnext-midjourney/SKILL.md · 302 lines

How it starts

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

Legnext Midjourney

Generate professional AI images using Midjourney's capabilities through the Legnext API.

Setup

CRITICAL: This skill requires a Legnext API key. Before running, check if the user has configured their API key:

Check for existing configuration:

  • Look for a .env file in the project directory or parent directories
  • Check for LEGNEXT_API_KEY=<key> in the .env file
  • Or check environment variable: echo $LEGNEXT_API_KEY

If not found, inform the user they need to:

Option 1: Create a .env file (recommended)

# Create .env file in the project root
echo "LEGNEXT_API_KEY=your-api-key-here" > .env

Option 2: Set environment variable

export LEGNEXT_API_KEY=your-api-key-here

Get an API key from:

https://legnext.ai/app/api-keys

Verify API key:

python scripts/verify_api_key.py

The scripts will automatically detect the .env file and provide clear error messages if the API key is missing or invalid.

Quick Start

For simple image generation requests:

python scripts/generate_and_wait.py "a beautiful sunset over mountains --v 7 --ar 16:9"

This handles the complete workflow: submit task → poll status → return results.

Complete Workflow

1. Understand the User's Request

Identify what type of image the user wants:

  • Subject matter (people, landscapes, objects, abstract)
  • Style (photographic, illustrated, artistic)
  • Mood and atmosphere
  • Technical requirements (aspect ratio, quality)

2. Craft the Prompt

Transform the user's natural language request into an effective Midjourney prompt.

Use the 7-Element Framework for systematic prompts:

  • Subject, Medium, Environment, Lighting, Color, Mood, Composition

Quick structure:

[Subject] [Description] [Environment] [Lighting] [Style] [Parameters]

Example transformations:

User request: "I need a professional headshot" → Prompt: professional headshot, studio lighting, neutral background, sharp focus, 85mm lens --ar 2:3 --style raw

Read the full file on GitHub · 302 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. 12d ago First seen · 302 lines · 62 tokens per session scan A ac2d305c230a

Subscribe to this mod's changes

legnext-midjourney is a skill published in the GitHub repository leggiemint/legnext-skills (4 stars, last pushed 8mo ago), licensed MIT. It adds 62 tokens to every session and 2,278 once invoked, about $0.0003 per session on Opus 5. 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.

Related

Other skills, from other repositories

top-design

Create award-winning, immersive web experiences at the level of Awwwards-featured agencies. Use when the user mentions "Awwwards quality", "make my site stunning", "scroll animations", "parallax storytelling", "cinematic web design", "portfolio site", or "brand experience". Also trigger when elevating a standard…

wondelai/skills · 113 tokens

traction-eos

Implement the Entrepreneurial Operating System (EOS) to align vision and execution across a company. Use when the user mentions "EOS", "Entrepreneurial Operating System", "V/TO", "quarterly rocks", "Level 10 meetings", "accountability chart", "IDS process", "my company feels chaotic", "we keep having the same…

wondelai/skills · 147 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens

add-cloud-flow

Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding already-registered flows to additional…

microsoft/power-platform-skills · 91 tokens

configure-env-variables

Configures environment variables for Power Pages site settings to support ALM across environments. Creates environment variable definitions in Dataverse, guides the user through linking site settings to those variables via the Power Pages Management app, adds the variables to the solution, and generates a…

microsoft/power-platform-skills · 119 tokens

deploy-site

Deploys an existing Power Pages code site to a Power Pages environment using PAC CLI. Handles tooling verification, authentication, environment confirmation, building, and uploading. Use when the user wants to deploy, upload, or publish their code site.

microsoft/power-platform-skills · 50 tokens