Agent skill

Mi Ripple

by miyang-ai in miyang-ai/Mi-Ripple

Diagnose and restore grid-like, granular, scale-like, tiled, or ripple artifacts in AI-generated images.

MITAuto-check passedMedia & Creative

Install Mi Ripple

skills CLI
$ npx skills add miyang-ai/Mi-Ripple --skill mi-ripple -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install miyang-ai/Mi-Ripple mi-ripple --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/miyang-ai/Mi-Ripple.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mi-ripple .claude/skills/mi-ripple && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mi-ripple
GitHub stars
250
Token cost
~1.8k tokens
SKILL.md length
831 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Diagnose and restore grid-like, granular, scale-like, tiled, or ripple artifacts in AI-generated images.

  • Works in 3 steps: run the local pipeline → handle the outcome → optional regeneration
  • A user asks to remove digital ripple
  • SKILL.md covers Non-negotiable rules, Locate or install the tool, Inputs and Step 1: run the local pipeline, plus 4 more sections
  • Calls python3 and python; needs MIYANG_API_KEY

What it does

Mi Ripple is an agent skill from miyang-ai/Mi-Ripple. Diagnose and restore grid-like, granular, scale-like, tiled, or ripple artifacts in AI-generated images. Use when a user asks to remove digital ripple, decoder grids, repeating scales, honeycomb texture, granular AI texture, or degradation caused by iterative image-to-image editing.

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Requires Python 3.11+, local file access, and permission to run shell commands. Network access and a MIYANG API key are optional and only needed for…

It sits in Media & Creative, covering Image editing. The repository describes itself as: MIYANG diagnosis-guided restoration for digital ripple artifacts in iteratively edited AI images. The licence is MIT.

When your agent uses it

  • A user asks to remove digital ripple
  • Repeating scales
  • Honeycomb texture
  • Granular AI texture

Example prompts

  • “/mi-ripple”

Requirements

  • Python 3
  • A credential in MIYANG_API_KEY
  • Compatibility (from SKILL.md): Requires Python 3.11+, local file access, and permission to run shell commands. Network access and a MIYANG API key are optional and only needed for explicitly authorized regeneration.

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. run the local pipeline
  2. handle the outcome
  3. optional regeneration

What it can do on your machine

Read from SKILL.md and the folder at commit 865a148. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python3
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MIYANG_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Python 3.11+, local file access, and permission to run shell commands. Network access and a MIYANG API key are optional and only needed for explicitly authorized regeneration.

    From compatibility in the SKILL.md frontmatter.

Context cost

Mi Ripple loads about 1.8k tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 831 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~73
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from miyang-ai/Mi-Ripple at commit 865a148, republished under its MIT licence (© miyang-ai). 831 words, ~1,830 tokens.

Download SKILL.mdSave it as .claude/skills/mi-ripple/SKILL.md (or your agent's skills folder).
name
mi-ripple
description
Diagnose and restore grid-like, granular, scale-like, tiled, or ripple artifacts in AI-generated images. Use when a user asks to remove digital ripple, decoder grids, repeating scales, honeycomb texture, granular AI texture, or degradation caused by iterative image-to-image editing.
compatibility
Requires Python 3.11+, local file access, and permission to run shell commands. Network access and a MIYANG API key are optional and only needed for explicitly authorized regeneration.
license
MIT
metadata.author
MIYANG
metadata.version
0.1.0
metadata.repository
https://github.com/miyang-ai/Mi-Ripple

Restore digital-ripple artifacts

Use the MIYANG mi_ripple package to diagnose first, choose only a compatible treatment, inspect the visual evidence, and return the actual output files to the user.

Do not treat this as a generic denoiser. The workflow distinguishes:

  1. isolated periodic lattice artifacts, which can be selectively notched;
  2. granular artifacts in unstructured areas, which can receive masked reduction;
  3. artifacts entangled with hair, foliage, fabric, stone, or other content, which require human review or optional cleaned-reference regeneration.

Non-negotiable rules

  • Work on the original image at native resolution. Do not resize, recompress, or screenshot it before diagnosis.
  • Run the deterministic local pipeline before proposing regeneration.
  • Never run paid or content-changing regeneration without the user's explicit approval in the current conversation.
  • Never ask the user to paste an API key into chat. Ask them to set MIYANG_API_KEY in their environment.
  • Files containing _refclean are model references, not deliverable images.
  • Do not claim an artifact is removed only because a numeric score decreased. Inspect the heat map and comparison boards.
  • Preserve generated JSON sidecars and the XML trace with the output.
  • A pipeline passed result means measured filtering damage stayed within the configured limits. It does not mean a person has accepted the image.

Locate or install the tool

First check whether the command is available:

bash
mi-ripple --help

If this skill is being used from a checkout of the repository, install that checkout into an isolated environment:

bash
python3 -m venv .venv
.venv/bin/python -m pip install -e .

Otherwise install from the canonical repository into an isolated environment:

bash
python3 -m venv .mi-ripple-venv
.mi-ripple-venv/bin/python -m pip install \
  "git+https://github.com/miyang-ai/Mi-Ripple.git"

Use the corresponding environment's mi-ripple executable for subsequent steps. Do not modify the user's global Python environment.

Inputs

Obtain:

  • the exact local path of one source image;
  • an output directory that will not overwrite the source;
  • optional user priorities such as preserving hair, paper texture, foliage, or color.

If the image path is missing or ambiguous, ask for it. Do not choose a recently used image on the user's behalf.

Supported image decoding is provided by Pillow. Prefer PNG for intermediate and final files.

Step 1: run the local pipeline

bash
mi-ripple "/absolute/path/input.png" "/absolute/path/output"

This performs diagnosis, deterministic routing, safe local treatment when available, aligned verification, and provenance recording.

Read:

  • <stem>_restored.json for the outcome and action sequence;
  • <stem>_input_diag.json for measurements and selected windows;
  • <stem>_input_diag_board.png for native-pixel diagnostic crops;
  • <stem>_input_scaleheat.png for whole-frame flagged tiles;
  • <stem>_verify_board.png when filtering was applied;
  • <stem>_restored.png when a final local result was delivered.

Open the generated boards with the agent's image-reading capability. Do not interpret JSON without checking the images.

Step 2: handle the outcome

delivered

Inspect the source, final image, heat map, and verification board.

Check specifically:

  • hair remains continuous rather than becoming smooth blocks;
  • foliage, flowers, gravel, fabric, stone, and paper texture were not erased;
  • flat gradients did not gain cloudy stains or ringing;
  • no new repeated scales, honeycomb cells, woven meshes, or wave bands appeared;
  • framing, dimensions, and color remain unchanged on local filtering routes.

If the visual check passes, give the user:

  1. the final image path or attachment;
  2. the comparison/verification board;
  3. a short statement of the route taken;
  4. any remaining suspected artifact.
Show full SKILL.md (327 more words)Show less
needs_human_decision

This normally means the measured artifact overlaps image content and filtering cannot safely separate it.

Show the diagnosis board and heat map. Explain which regions triggered review. Then ask whether the user authorizes one regeneration attempt, explicitly stating that it:

  • can incur API cost;
  • can change semantic details and identity;
  • can change dimensions, framing, and color;
  • still requires visual acceptance afterward.

Do not proceed until the user explicitly agrees.

failed

Read the final JSON and the last step's error. Report the concrete failure and retain all artifacts already written. Do not silently switch providers or repeat a possibly billable request.

cancelled or step_limit

Report that no deliverable was produced. Preserve the trace for diagnosis.

Step 3: optional regeneration

Only after explicit approval, verify that MIYANG_API_KEY is set without printing its value:

bash
test -n "$MIYANG_API_KEY"

Run one bounded attempt by default:

bash
mi-ripple "/absolute/path/input.png" "/absolute/path/output-regenerated" \
  --allow-regen --max-regen 1

Never increase --max-regen without separate user approval. A timeout or interrupted response can have unknown billing state; do not automatically retry it.

After regeneration, inspect both the full image and the relevant native-pixel windows. Compare identity, composition, geometry, hair, textured materials, and color against the source. Report semantic or color changes separately from artifact reduction.

Interpretation guide

  • lattice.detected: isolated periodic spectral components were detected. The flag may remain true after safe attenuation near the sampling limit.
  • granule.level=flat: multiple unstructured windows support masked local reduction.
  • granule.level=pervasive: broad evidence; regeneration or human review is normally safer than stronger filtering.
  • scale_index.level=structured: similarly sized components cover at least 6% of grading tiles on the canonical canvas.
  • suspected: report for inspection; it is not sufficient evidence for aggressive automatic treatment.

Legitimate repeated objects can trigger these measurements. Conversely, directional wide scales, woven hair, and long wave bands can look severe while receiving a low scale index. Visual evidence has final authority.

User-facing completion format

Keep the handoff short:

text
处理完成。
路径:诊断 → [实际步骤] → 验收
结果:<final image>
对比:<verification or diagnosis board>
备注:<remaining uncertainty or “未发现明显结构损伤”>

Embed or attach the final image and board when the interface supports it; do not only print filesystem paths if the user cannot access those paths.

© miyang-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/mi-ripple of miyang-ai/Mi-Ripple.

Open the folder on GitHubat commit 865a148

Compare with similar skills

Mi Ripple next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mi Ripple compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mi Ripple this skillmiyang-ai/Mi-Ripple250—~1.8kAutomated safety check: PassMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
Generate Imageynulihao/AgentSkillOS61810 repos~1.7kAutomated safety check: NotesNone
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
HyperFrames Media Useheygen-com/hyperframes60k—~2.4kAutomated safety check: PassApache-2.0
Media Useedenfunf/reelmimic1.9k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Generate Image

    ynulihao/AgentSkillOS

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from ynulihao/AgentSkillOS.

    618 GitHub starsUsed in 10 repos~1.7k tokens
    Media & CreativeAuto-check: notes
  • GPT Image Generation CLI

    wuyoscar/GPT-Image2-Skill

    Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.

    5.7k GitHub stars~2.5k tokensUpdated 11 days ago
    Media & CreativeAuto-check: notes
  • HyperFrames Media Use

    heygen-com/hyperframes

    Finds, generates and edits media for HyperFrames video projects: music, sound effects, images, icons, logos, voiceovers, captions and color grades.

    60k GitHub stars~2.4k tokensUpdated today
    Media & CreativeAuto-check passed
  • Media Use

    edenfunf/reelmimic

    Agent Media OS, the single skill for every media need in a HyperFrames project.

    1.9k GitHub starsUsed in 1 repo~2k tokens
    Media & CreativeAuto-check passed
  • BlockRun Image Generation

    BlockRunAI/ClawRouter

    Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.

    6.6k GitHub stars~2.1k tokensUpdated 6 days ago
    Media & CreativeAuto-check passed

Questions about Mi Ripple

What does Mi Ripple do?

Diagnose and restore grid-like, granular, scale-like, tiled, or ripple artifacts in AI-generated images. Mi Ripple is an agent skill from miyang-ai/Mi-Ripple. Diagnose and restore grid-like, granular, scale-like, tiled, or ripple artifacts in AI-generated images.

When should I use Mi Ripple?

Mi Ripple fits situations like: A user asks to remove digital ripple; repeating scales; honeycomb texture; granular AI texture.

How do I install Mi Ripple in Claude Code?

Run `npx skills add miyang-ai/Mi-Ripple --skill mi-ripple -a claude-code`. Or copy the skill folder (skills/mi-ripple in miyang-ai/Mi-Ripple) into .claude/skills/mi-ripple in your project. Claude Code loads it when a task matches its description.

How do I install Mi Ripple in Codex?

Run `npx skills add miyang-ai/Mi-Ripple --skill mi-ripple -a codex`. Or copy the skill folder (skills/mi-ripple in miyang-ai/Mi-Ripple) into .agents/skills/mi-ripple in your project. Codex loads it when a task matches its description.

Can I use Mi Ripple in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add miyang-ai/Mi-Ripple --skill mi-ripple -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mi-ripple, .gemini/skills/mi-ripple, .github/skills/mi-ripple and .opencode/skills/mi-ripple in your project.

What does Mi Ripple need to run?

Going by SKILL.md and its folder, Mi Ripple needs the command-line tools its instructions call (python3 and python) and credentials named MIYANG_API_KEY. Our summary lists: Python 3; A credential in MIYANG_API_KEY. Compatibility (from SKILL.md): Requires Python 3.11+, local file access, and permission to run shell commands. Network access and a MIYANG API key are optional and only needed for explicitly authorized regeneration..

Does Mi Ripple access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mi Ripple safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mi Ripple use?

Mi Ripple is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mi Ripple use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Mi Ripple?

Skills that share tags, products or a category with Mi Ripple: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), Generate Image (ynulihao/AgentSkillOS, 618 stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars) and HyperFrames Media Use (heygen-com/hyperframes, 60k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mi Ripple?

miyang-ai (a GitHub organization) maintains it in miyang-ai/Mi-Ripple, which has 250 GitHub stars. The repository was last updated on September 10, 2026.

Source: miyang-ai/Mi-Ripple on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.