pixiv-cli-native

pixiv-cli-native is a skill for Codex from FlanChanXwO/pixiv-cli. It costs 49 tokens per session (566 once invoked), scanned A, original, MIT.

A maintenance workflow for pixiv-cli's Rust native code and its C-to-Go connection, called FFI. It covers native libraries, vendored dependencies, platform details, encoder behavior, ownership, errors, and release linking.

In plain words
What is it for?
Use it when changing Rust sources, C ABI definitions, cgo selection, static libraries, vendored code, target toolchains, or native media encoding behavior.
Why use it?
It helps prevent unsafe changes at the boundary between languages or operating-system libraries. It also keeps dependency sources, build settings, and evidence consistent across supported platforms.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is CGO_ENABLED=0 go test ./internal/media/ugoira/... -count=1.

Good fit Use it when changing Rust sources, C ABI definitions, cgo selection, static libraries, vendored code, target toolchains, or native media encoding behavior.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/FlanChanXwO/pixiv-cli
agentmods
npx agentmods add skills/flanchanxwo/pixiv-cli/pixiv-cli-native

Made for: 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 pixiv-cli-native

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/flanchanxwo/pixiv-cli/pixiv-cli-native"><img src="https://agentmods.dev/badge/skills/flanchanxwo/pixiv-cli/pixiv-cli-native.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 566 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.00049 $0.00566
Opus 5.5 $0.00020 $0.00226
Sonnet 5.5 $0.00010 $0.00113
Haiku 4.5 $0.00005 $0.00057

Measured 9d ago against content hash 2225e380b081, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pixiv-cli-native 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 9d 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.

.agents/skills/pixiv-cli-native/SKILL.md · 33 lines

How it starts

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

Maintain Encoding and Platform Builds

Read AGENTS.md, the affected encoder/build owner, and Ugoira Go encoder. scripts/build/platforms.json owns runners and capabilities; the coding handbook owns the Go toolchain baseline. scripts/build/platform.sh owns exact-target Go builds and canonical archives; scripts/build/matrix.sh validates the registry.

Change the responsible boundary

Use the test workflow for behavior changes. Keep the downloader's ugoira.Encoder seam: ZIP metadata order, frame timing, resizing, transparency, playback, cancellation and atomic publication belong to internal/media/ugoira. Preserve the documented decoder-derived allocation boundary and buffer ownership. A slow encode is not a timeout failure.

Production builds use CGO_ENABLED=0; only explicit race-detector steps enable cgo. Local vector setup separately installs ONNX Runtime native libraries. Ported algorithms keep their source/license notices. A toolchain change needs verification of affected targets, not just a version-field edit.

Verify the changed behavior

Select the relevant existing checks:

CGO_ENABLED=0 go test ./internal/media/ugoira/... -count=1
sh scripts/build/platform.sh --target linux/amd64 --output-dir /tmp/pixiv-platform-check
sh scripts/build/matrix.sh --capability smoke

For quality/resource comparisons, use the documented offline corpus and fixed legacy/Go settings. Keep frozen baselines and complete inputs; compare each required sample/format rather than hiding failures in an overall average.

CGO_ENABLED=0 with purego produces a dynamic glibc-linked Linux ELF; confirm with file when the build recipe changes. Cross-compilation proves compilation, not native execution. Check the built and unpacked binary's version and archive's sole executable member.

Consume matching evidence

Read the full file on GitHub · 33 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago Changed 2225e380b081
  2. 1mo ago Changed 8376829d06c4
  3. 1mo ago Changed · -1 lines bb3672f2355d
  4. 1mo ago Changed · -2 lines · -3 tokens per session 98d50e9e5193
  5. 1mo ago Changed · -13 lines · -12 tokens per session b5b99cb2d69e
  6. 2mo ago First seen · 49 lines · 64 tokens per session scan A 7a49b676a78f

Subscribe to this mod's changes

pixiv-cli-native is a skill published in the GitHub repository FlanChanXwO/pixiv-cli (140 stars, last pushed 8d ago), licensed MIT. It adds 49 tokens to every session and 566 once invoked, about $0.0002 per session on Opus 5.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-09-24.

Related

pixiv-cli-native compared with skills from other repositories

pixiv-cli-native next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pixiv-cli-nativeFlanChanXwO/pixiv-cliSkill1408d agoMITA49Codex
go-rust-reverserogue-dev-studio/ai-agents-rogueSkill22d agononeA38Claude Code, Codex
rust-checkHmbown/CodeWhaleSkill41kyesterdayMITA15Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
goericrisco/rsc-harnessSkill6824d agoMITA86Claude Code, Codex
gographozgurcd/gographSkill234yesterdayMITA91Claude Code
scaffold-projectMarve10s/Better-FullstackSkill831yesterdayMITA80Claude Code