agentleFS
danielrosehilldanielrosehill/Claude-Image-Production-Plugin/skills/from-jxl/SKILL.md

from-jxl

Skill21 starsChanged 7 days agoMITView on GitHub

Decode JPEG XL images (.jxl) to PNG or JPEG. Use when you need to convert JXL files back to standard formats for compatibility, display, or further editing.

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Recursive: use find to locate .jxl files in the tree.

    line 38
  2. Very specific:

    If the JXL was created via cjxl in.jpg out.jxl, this recovers the original JPEG bitstream byte-exact:

    line 58
  3. Distinctive:

    If batch, show a summary of converted files.

    line 79
  4. Very specific:

    Lossless JPEG recovery: Only use djxl --jpeg if you are confident the .jxl source was created via lossless JPEG transcode (i.e., cjxl …

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Decode JPEG XL Images

Extract images from JPEG XL (.jxl) files using djxl. Outputs PNG or JPEG, with optional recovery of original JPEG bitstream if the source JXL was a lossless JPEG transcode.

When to use

  • Converting JXL files back to PNG for general use or compatibility.
  • Recovering the original JPEG bitstream from a lossless-transcoded JXL file via djxl --jpeg.
  • Batch-decoding a JXL archive to portable formats.

Inputs to gather

  • Input .jxl file or directory — single file or folder.
  • Output format — png (default) or jpeg. If the user has a JXL that came from a lossless JPEG transcode and wants to recover the original JPEG byte-exact, offer the jpeg format and explain the --jpeg flag.
  • Output directory — optional. Default: same directory as input.

Procedure

1. Check tooling

command -v djxl || echo "djxl not installed — install with: sudo apt install libjxl-tools"

Abort if missing.

2. Determine scope and format

  • Single file: direct conversion.
  • Directory (non-recursive): loop over all .jxl files.
  • Recursive: use find to locate .jxl files in the tree.

Confirm the output format with the user.

3. Decode

Single file to PNG (default):

djxl input.jxl output.png

Single file to JPEG (standard):

djxl input.jxl output.jpg

Single file to original JPEG (lossless transcode recovery):

If the JXL was created via cjxl in.jpg out.jxl, this recovers the original JPEG bitstream byte-exact:

djxl --jpeg input.jxl recovered.jpg

Batch (folder or recursive):

find <target> -maxdepth <1|999> -type f -iname '*.jxl' \
  -exec djxl {} {.}.<format> \;

(Replace <format> with png or jpg, or —jpeg flag for JPEG recovery.)

4. Report

After decoding:

  • Count of files decoded, skipped, failed.
  • Output file sizes and locations.
  • If batch, show a summary of converted files.

Output / side effects

  • New PNG or JPEG files created in the output directory.
  • Original .jxl files remain unchanged.

Notes

  • Lossless JPEG recovery: Only use djxl --jpeg if you are confident the .jxl source was created via lossless JPEG transcode (i.e., cjxl original.jpg encoded.jxl). For JXL files created from PNG or other sources, --jpeg may produce incorrect results.
  • Alpha channels: JXL alpha is preserved when decoding to PNG. JPEG does not support transparency, so any alpha will be lost if decoding to JPEG.
  • Color profile: JXL can carry ICC color profiles; djxl preserves them in the output.
  • Depends: apt install libjxl-tools.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.