pixiv-cli copilot-instructions.md

pixiv-cli copilot-instructions.md is an instructions file for GitHub Copilot from FlanChanXwO/pixiv-cli. It costs 424 tokens per session, scanned A, original, MIT.

Short project instructions for Copilot working on the Pixiv CLI, a Go program that provides Pixiv and FANBOX commands and services. They describe the code structure, supported commands, and rules for connecting components.

In plain words
What is it for?
Use them when completing or reviewing changes to the Pixiv CLI, public SDKs, MCP adapter, authentication storage, media handling, or tests.
Why use it?
They reduce the risk of suggesting files, packages, commands, or APIs that the repository does not contain.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

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

Made for: GitHub Copilot.

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 copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/flanchanxwo/pixiv-cli/copilot-instructions.svg)](https://agentmods.dev/instructions/flanchanxwo/pixiv-cli/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/flanchanxwo/pixiv-cli/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/flanchanxwo/pixiv-cli/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 424 This file is loaded in full into every session.
When invoked 424 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00424 $0.00424
Opus 5 $0.00212 $0.00212
Sonnet 5 $0.00085 $0.00085
Haiku 4.5 $0.00042 $0.00042

Measured 5d ago against content hash b06ec757212e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pixiv-cli copilot-instructions.md 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 5d 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.

.github/copilot-instructions.md · 33 lines

What it actually says

Pixiv CLI Copilot Instructions

本仓库的主规则在 AGENTS.md。本文件只给 Copilot 提供短提示,避免补全时发明不存在的包、命令或 API。

Project Shape

  • Go module: github.com/FlanChanXwO/pixiv-cli
  • Binary: cmd/pixiv
  • CLI controller: internal/cli
  • Public SDKs: sdk/pixiv, sdk/fanbox
  • CLI production wiring: internal/cli/root.go and owner-local narrow ports
  • Pixiv/FANBOX protocol adapters: internal/services/{pixiv,fanbox} (internal only)
  • MCP tool adapter: internal/mcpserver
  • Download and ugoira owners: internal/media/{downloader,ugoira}
  • Config/auth storage: internal/config/settings, internal/storage/database; legacy auth.json is never auto-read

Commands

go test ./...
sh scripts/build.sh

Do not suggest package-manager, frontend, database, Docker, or release commands unless the repository already contains that workflow.

Guardrails

  • Keep internal/cli as the controller and composition root; command owners use explicit narrow ports and public sdk/pixiv or sdk/fanbox clients.
  • CLI/MCP capabilities must not import internal/services/{pixiv,fanbox} protocol adapters directly. There is no cross-product internal/application.SDKService or internal/bootstrap layer in the v1 architecture.
  • MCP tool changes must update focused tests plus docs/en/mcp-tools.md and docs/zh-CN/mcp-tools.md; update localized README files or CHANGELOG.md when user-visible behavior changes.
  • Do not print refresh tokens or hide authentication, network, Pixiv API, or filesystem errors behind empty success results.
  • Do not add arbitrary truncation, retry limits, item caps, timeout behavior, or silent fallback without evidence and documentation.
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. 5d ago First seen · 33 lines · 424 tokens per session scan A b06ec757212e

Subscribe to this mod's changes

pixiv-cli copilot-instructions.md is an instructions file published in the GitHub repository FlanChanXwO/pixiv-cli (130 stars, last pushed 2d ago), licensed MIT. It adds 424 tokens to every session, about $0.0021 per session on Opus 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-08-30.