Revise Docstrings
pymc-labs/pathmc
Review and improve Python docstrings for Great Docs API reference generation.
Procedure for adding tests for Matft's image processing (Matft.image., indexing or channel swapping on images, etc.), generating comparison images that put the result next to an OpenCV reference…
$ npx skills add jjjkkkjjj/Matft --skill image-visual-check -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jjjkkkjjj/Matft image-visual-check --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jjjkkkjjj/Matft.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/image-visual-check .claude/skills/image-visual-check && rm -rf skills-srcUse ~/.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/
Install the "image-visual-check" agent skill from https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-check into .claude/skills/image-visual-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-visual-check", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-checkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jjjkkkjjj/Matft --skill image-visual-check -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jjjkkkjjj/Matft image-visual-check --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjjkkkjjj/Matft.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/image-visual-check .agents/skills/image-visual-check && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "image-visual-check" agent skill from https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-check into .agents/skills/image-visual-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-visual-check", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jjjkkkjjj/Matft --skill image-visual-check -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jjjkkkjjj/Matft image-visual-check --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjjkkkjjj/Matft.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/image-visual-check .cursor/skills/image-visual-check && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "image-visual-check" agent skill from https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-check into .cursor/skills/image-visual-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-visual-check", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jjjkkkjjj/Matft.git --path .claude/skills/image-visual-check--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jjjkkkjjj/Matft --skill image-visual-check -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jjjkkkjjj/Matft image-visual-check --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjjkkkjjj/Matft.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/image-visual-check .gemini/skills/image-visual-check && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "image-visual-check" agent skill from https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-check into .gemini/skills/image-visual-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-visual-check", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jjjkkkjjj/Matft image-visual-checkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jjjkkkjjj/Matft --skill image-visual-check -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jjjkkkjjj/Matft.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/image-visual-check .github/skills/image-visual-check && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "image-visual-check" agent skill from https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-check into .github/skills/image-visual-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-visual-check", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jjjkkkjjj/Matft --skill image-visual-check -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jjjkkkjjj/Matft image-visual-check --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jjjkkkjjj/Matft.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/image-visual-check .opencode/skills/image-visual-check && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "image-visual-check" agent skill from https://github.com/jjjkkkjjj/Matft/tree/main/.claude/skills/image-visual-check into .opencode/skills/image-visual-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "image-visual-check", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
image-visual-checkProcedure for adding tests for Matft's image processing (Matft.image., indexing or channel swapping on images, etc.), generating comparison images that put the result next to an OpenCV reference…
Image Visual Check is an agent skill from jjjkkkjjj/Matft. Procedure for adding tests for Matft's image processing (Matft.image., indexing or channel swapping on images, etc.), generating comparison images that put the result next to an OpenCV reference, and visually checking that the conversion is correct. Use this skill whenever the conversation is about adding, fixing, testing, or checking Matft features that handle images — e.g. "add an image processing test", "visually check resize / warpAffine / color", "see if the image is converted correctly", "compare with…
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering iOS development and Technical documentation. It works with OpenCV, NumPy and Python. The repository describes itself as: Numpy-like library in swift. (Multi-dimensional Array, ndarray, matrix and vector library). The licence is BSD-3-Clause.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 618dcfc. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
swiftpython3pip3gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip3 and git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Image Visual Check loads about 2.3k tokens when it runs. Until then it costs about 191 tokens; SKILL.md has 1,018 words of instructions outside code blocks.
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.
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.
The full file from jjjkkkjjj/Matft at commit 618dcfc, republished under its BSD-3-Clause licence (© jjjkkkjjj). 1,018 words, ~2,292 tokens.
.claude/skills/image-visual-check/SKILL.md (or your agent's skills folder).With numeric asserts alone, image processing bugs like vertical flips, swapped RGB, or shifted interpolation are easy to miss. So pin down the spec with numeric tests, then build a comparison image that lays out input | Matft | OpenCV | diff side by side, and have both Claude and the user check it visually. The comparison images are committed to the repository so they can be reviewed in the PR.
| Location | Role |
|---|---|
Tests/MatftTests/files/images/rena.png | Input image (225x225, RGBA). Lossless PNG, because JPEG mixes in decoder differences |
Tests/MatftTests/ImageSnapshot.swift | Test helper. loadFixture() loads a CGImage; check(_:as:) compares Matft's output with the committed opencv/<case>.png by tolerances[<case>] and then saves it as PNG (save(_:as:)) |
Tests/MatftTests/ImageTest.swift | Image processing tests (create it if missing) |
scripts/image_compare.py | Runs the OpenCV version of each conversion registered in CASES and writes reference images, comparison images, and diff metrics |
files/images/matft/<case>.png | Matft's output (committed) |
files/images/opencv/<case>.png | OpenCV's output (committed) |
files/images/compare/<case>.png | Comparison image (committed). This is what you look at |
ImageSnapshot.save writes files only when run with the environment variable MATFT_IMAGE_SNAPSHOT=1,
so that a regular swift test does not modify files in the repository.
python3 -c "import cv2, numpy; print(cv2.__version__, numpy.__version__)"If cv2 is missing, suggest pip3 install --user opencv-python-headless. Install only with the user's consent.
Follow TDD as CLAUDE.md requires. If ImageTest.swift does not exist, create it in this form.
Wrap the whole file in #if so it still builds where Accelerate/ImageIO are unavailable (WASI, Linux).
#if canImport(Accelerate) && canImport(ImageIO)
import XCTest
@testable import Matft
final class ImageTest: XCTestCase {
func test_resize() {
let image = Matft.image.cgimage2mfarray(ImageSnapshot.loadFixture()) // Float [0, 1], RGBA, shape=(225, 225, 4)
let ret = Matft.image.resize(image, width: 300, height: 150)
XCTAssertEqual(ret.shape, [150, 300, 4])
XCTAssertEqual(ret.mftype, .Float)
// Assert whatever can be checked numerically, e.g. representative pixel values
ImageSnapshot.check(ret, as: "resize_300x150")
}
}
#endifTips for numeric asserts:
rena.png in Python (numpy / cv2). Write the Python expression in a comment so it is clear where the embedded values come from.check a case name that tells the operation and its conditions (e.g. warpAffine_rotate30_edgeExtend).check fails until the case has a tolerance in ImageSnapshot.tolerances and a committed reference opencv/<case>.png (step 4). Pick .exact, .rounding(n) or .interpolation(meanAbs:minPSNR:) from the metrics of step 4, with a little margin, and write the measured values in a comment.Confirm it fails with swift test --filter MatftTests.ImageTest.
Add the OpenCV operation to CASES in scripts/image_compare.py under the same case name.
"resize_300x150": Case("rena.png",
lambda x: cv2.resize(x, (300, 150), interpolation=cv2.INTER_LANCZOS4),
"Matft.image.resize(width: 300, height: 150) vs cv2.resize(LANCZOS4)"),op receives an RGBA uint8 array. It may return either uint8 or float in [0, 1] (converted to uint8 automatically).
Differences in conventions between Matft and OpenCV often make a correct result look "off". Watch for:
COLOR_BGR2GRAY, etc.) inside op.cv2.resize takes (width, height); Matft's shape is (height, width, channel).borderValue and the like by 255.INTER_LINEAR. Pick the closest interpolation and state in the description what it was compared against.mfarray2cgimage supports only 1 and 4 channels. For results with 3 channels, such as RGBA2RGB, convert back to 4 channels with Matft.image.color(ret, conversion: .RGB2RGBA) before save. Do the same on the OpenCV side.Write the minimal implementation that passes the test, and confirm all tests pass with swift test.
When no change to Matft itself is needed (just adding tests and a visual check to an existing feature), this step is only a check.
MATFT_IMAGE_SNAPSHOT=1 swift test --filter MatftTests.ImageTest
python3 scripts/image_compare.py --filter '<regex of case names>'Check the status column of the table the script prints.
missing-matft: check was not called on the Swift side. Either MATFT_IMAGE_SNAPSHOT=1 was forgotten or the case names do not match.missing-case: not registered in CASES.Open compare/<case>.png with the Read tool and actually look at the image. Do not decide pass/fail from the metrics alone.
A high PSNR is still wrong if the image is mirrored, and a diff can be fine if only the interpolation differs.
Look in this order:
Rough metric guidelines (guidelines only):
| Kind of operation | Expected |
|---|---|
| Indexing (flip, slice, channel swap) | `max |
| Color conversion | `max |
| resize, warpAffine | No pixel match expected. Fine if PSNR is roughly 30 dB or higher and the diff is confined to edges |
When a result falls outside the guidelines, before calling it a bug, suspect the convention differences in step 2 (a mistake on the OpenCV side), and decide which is right by comparing against the input image.
open Tests/MatftTests/files/images/compare/<case>.png # pass several at once if there are multipleInclude in the report:
Let the user make the final call on correctness.
Commit files/images/{matft,opencv,compare}/<case>.png together with the tests.
Check with git status that images of existing cases have not changed unintentionally. If they have, tell the user about that diff too.
To show a new case in the docs, add #### <function name> and  to the "Visual check against OpenCV" section of website/docs/guide/image.md. website/scripts/copy-assets.mjs copies the images into static at build time, so do not commit them a second time on the website side.
© jjjkkkjjj, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/image-visual-check of jjjkkkjjj/Matft.
Open the folder on GitHubat commit 618dcfc
Image Visual Check 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Image Visual Check this skilljjjkkkjjj/Matft | 147 | — | ~2.3k | Automated safety check: Pass | BSD-3-Clause | |
| Revise Docstringspymc-labs/pathmc | 132 | — | ~2.3k | Automated safety check: Pass | MIT | |
| Scientific DocumentationYikai-Liao/symusic | 189 | — | ~5.5k | Automated safety check: Pass | MIT | |
| Torch Performance Optimizationalbumentations-team/albucore | 123 | — | ~895 | Automated safety check: Pass | MIT | |
| ComfyUI Custom Node BuilderConstantineB6/comfy-pilot | 230 | — | ~897 | Automated safety check: Pass | MIT | |
| Dbgtheodo-group/debug-that | 158 | — | ~2.5k | Automated safety check: Pass | MIT |
pymc-labs/pathmc
Review and improve Python docstrings for Great Docs API reference generation.
Yikai-Liao/symusic
Set up and maintain documentation for scientific Python packages.
albumentations-team/albucore
Optimize or review eager CPU-only Albucore PyTorch runtime paths with benchmark-backed decisions.
ConstantineB6/comfy-pilot
Helps an agent write ComfyUI custom nodes in Python, including wrapping an existing script, mapping data types and handling image batches.
theodo-group/debug-that
Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.
wwwzhouhui/skills_collection
Checking and provisioning the machine's environment for the video-agent-kit plugin — probing for ffmpeg/ffprobe that actually carry the encoders and filters we render with (libx264/aac/libmp3lame…
jjjkkkjjj/Matft
Procedure for writing and updating Matft's documentation (the Docusaurus site in website/ and the doc comments on the public API that become the Swift-DocC API reference).
jjjkkkjjj/Matft
Procedure for designing and writing Matft's XCTest cases with high coverage — boundary values, dtypes, memory layouts, NaN/inf, empty arrays, broadcasting, platform differences, performance and…
jjjkkkjjj/Matft
Procedure for benchmarking Matft's PerformanceTests against Numpy and reporting the results (and, when asked, updating the speed comparison table on the docs site, website/docs/performance.md).
jjjkkkjjj/Matft
Procedure for releasing a new version of Matft (decide the version → check tests → write release notes → create and push an annotated tag → publish a GitHub Release).
Categories
Procedure for adding tests for Matft's image processing (Matft.image., indexing or channel swapping on images, etc.), generating comparison images that put the result next to an OpenCV reference…. Image Visual Check is an agent skill from jjjkkkjjj/Matft.), generating comparison images that put the result next to an OpenCV reference, and visually checking that the conversion is correct.
Image Visual Check fits situations like: the conversation is about adding; checking Matft features that handle images — e.g.
Run `npx skills add jjjkkkjjj/Matft --skill image-visual-check -a claude-code`. Or copy the skill folder (.claude/skills/image-visual-check in jjjkkkjjj/Matft) into .claude/skills/image-visual-check in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jjjkkkjjj/Matft --skill image-visual-check -a codex`. Or copy the skill folder (.claude/skills/image-visual-check in jjjkkkjjj/Matft) into .agents/skills/image-visual-check in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jjjkkkjjj/Matft --skill image-visual-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/image-visual-check, .gemini/skills/image-visual-check, .github/skills/image-visual-check and .opencode/skills/image-visual-check in your project.
Going by SKILL.md and its folder, Image Visual Check needs the command-line tools its instructions call (swift, python3, pip3 and git). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
Image Visual Check is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Image Visual Check: Revise Docstrings (pymc-labs/pathmc, 132 stars), Scientific Documentation (Yikai-Liao/symusic, 189 stars), Torch Performance Optimization (albumentations-team/albucore, 123 stars) and ComfyUI Custom Node Builder (ConstantineB6/comfy-pilot, 230 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jjjkkkjjj (a GitHub user) maintains it in jjjkkkjjj/Matft, which has 147 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 27, 2026.
Source: jjjkkkjjj/Matft on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.