pixiv-cli-native

pixiv-cli-native is a skill for Codex from FlanChanXwO/pixiv-cli. It costs 64 tokens per session (770 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 go test ./internal/media/ugoira/staticlib -run '^TestCommittedManifestWhenPresent$' -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 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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.00064 $0.00770
Opus 5.5 $0.00026 $0.00308
Sonnet 5.5 $0.00013 $0.00154
Haiku 4.5 $0.00006 $0.00077

Measured 22d ago against content hash 7a49b676a78f, 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 22d 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 · 49 lines

How it starts

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

Maintain pixiv-cli Native Code

Read AGENTS.md, the affected FFI/encoder owner, and the Rust/staticlib sections of docs/en/maintainers/development.md. Use ci/platforms.json for target/compiler/toolchain metadata; do not maintain a second platform list in a new helper or skill.

Change safely

  1. Identify whether the change affects Rust source, the C ABI, cgo selection, vendoring, staticlib provenance, or release linking. Record the affected behavior and evidence required before altering binary inputs.
  2. Use the repository's Red/Green workflow for behavior changes. Keep unsafe FFI ownership, allocation/free pairing, panic containment, cancellation, and error translation explicit. Avoid unwrap/expect on fallible external input or crossing the FFI boundary with unwinding.
  3. Work in internal/media/ugoira/rust for Cargo commands so its .cargo/config.toml source replacement applies. Use locked/offline dependency resolution. Never hand-edit vendored crates or hide a network fallback; approved dependency changes must regenerate the complete closure and license evidence.
  4. Preserve the single encoder/FFI seam. A slow normal encode is not a timeout failure. Keep decoder-derived resource constraints and explicit errors; do not add another encoder or ffmpeg runtime fallback.

Verify the touched boundary

From the crate directory, run the appropriate focused test, then:

cargo fmt --check
cargo test --locked --offline
cargo clippy --locked --offline --all-targets -- -D warnings

From the repository root, relevant checks include:

go test ./internal/media/ugoira/staticlib -run '^TestCommittedManifestWhenPresent$' -count=1
go test ./internal/media/ugoira/... -count=1
go run ./scripts/cmd/licensebundle --check
sh scripts/test-build-staticlibs.sh
sh scripts/test-build-platform.sh
sh scripts/test-rust-vendor.sh

These commands can compile native code and consume significant resources; confirm the required existing toolchains and scope first. Report missing targets, compilers, or components instead of installing or pretending to validate them.

Read the full file on GitHub · 49 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. 22d 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 (134 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 770 once invoked, about $0.0003 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

Other skills, from other repositories

rust-check

Run cargo check on the current Rust project to find compile errors.

Hmbown/CodeWhale · 15 tokens

go-rust-reverse

Use for reverse engineering stripped Go and Rust binaries including runtime recognition, pclntab/moduel data recovery, panic strings, and idiomatic decompilation recovery.

zhaoxuya520/reverse-skill · 38 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

printing-press

Set up a new integration, connector, or CLI binding for any API. Wrap or generate a ship-ready Go CLI from an OpenAPI, HAR, or Postman spec via the lean research -> generate -> build -> shipcheck loop. Use when the user says build a CLI, wrap this API, set up a new integration, add a connector, integrate with a…

mvanhorn/cli-printing-press · 86 tokens

zapier-sdk

Zapier SDK for TypeScript. Programmatic access to 9,000+ apps on a user's behalf via Zapier's OAuth and audit layer. Use when writing code that needs to run actions in third-party apps (send an email, upsert a CRM record, look up a spreadsheet row, post to a chat) without managing per-app OAuth or vendor SDKs.…

zapier/sdk · 151 tokens

scaffold-project

Scaffold a new app, API, backend, fullstack project, mobile app, polyglot service, monorepo, or starter with Better Fullstack. Use when the user wants to create, start, bootstrap, initialize, or generate a project from a stack description. Prefer the bundled Better Fullstack MCP server: guidance, schema…

Marve10s/Better-Fullstack · 80 tokens