agentleFS
FlanChanXwOFlanChanXwO/pixiv-cli/AGENTS.md

pixiv-cli

AGENTS.md140 starsChanged 11 days agoMITView on GitHub

Use the relevant checked-in maintenance skill for the workflow and its linked handbook or reference for the rules. If skill discovery is unavailable, open the linked SKILL.md directly.

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

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

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

    Use the relevant checked-in maintenance skill for the workflow and its linked handbook or reference for the rules.

    line 5
  2. Very specific:

    Keep production builds permanently CGO-free and use only pure-Go dependencies.

    line 30
  3. Distinctive:

    Keep CLI machine output clean, reserve MCP stdio stdout for JSON-RPC, and require OAuth bearer authorization for HTTP.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md

pixiv-cli Agent Contract

Task routes

Use the relevant checked-in maintenance skill for the workflow and its linked handbook or reference for the rules. If skill discovery is unavailable, open the linked SKILL.md directly.

TaskRead firstBefore completion, check
Implement, debug, refactor, or design Go codepixiv-cli-develop, coding standards, architecture, developmentConfirm the owning package and callers, apply the handbook to touched code, run the relevant tests/build/vet, and inspect the final diff.
Decide test admission, write tests, or validate a changepixiv-cli-test, test submission rules, developmentMatch each maintained test to a contract; respect size caps and CI exemptions; report actual pass, fail, skip, and unrun checks.
Write or review code comments, API docs, or numbered stagespixiv-cli-code-commenting, package documentation and commentsCheck comment language, package-doc placement, references, and any directive's actual consumer.
Change package ownership or a shared mechanismarchitecture, coding standardsVerify the owner, allowed dependency direction, and all affected callers against the current package map.
Add or change an MCP toolpixiv-cli-mcp-tool, MCP contract, MCP architectureCheck product-local ownership, schema and structured errors, authorization, and the stdio/HTTP output boundary.
Change ugoira encoding, platform builds, or native smokepixiv-cli-native, developmentVerify the required target builds and native evidence; distinguish fixture results from platform execution.
Change frontend pages or embedded assetspixiv-cli-docs, frontend architectureCheck the embedded source and exercise the affected page in its browser or MCP host.
Edit documentation, skills, or agent routingpixiv-cli-docs, English documentation index, 简体中文文档索引, and the relevant maintainer referenceVerify source claims, paired locale content, local links/anchors, metadata routes, and git diff --check.
Review code or assess a pull requestpixiv-cli-review, coding standardsTie each finding to changed lines and evidence; identify unresolved risks and required checks.
Diagnose checks or operate an authorized workflow runpixiv-cli-ci, the relevant workflow under .github/workflows/Check the exact revision and report each required check's actual conclusion, including skips and failures.
Prepare, update, or verify a pull requestpixiv-cli-pr, contributingValidate PR metadata and inspect required checks and review threads on the current head.
Prepare a release or recover a publisherpixiv-cli-release-notes, release development guideVerify the authorized version, release assets, and required release gates.
Write a commit messagepixiv-cli-commit-messageBase it on the staged diff and name only the change it contains.
Use an installed pixiv binaryproduct skillFollow the documented command and credential flow for the installed version.
Follow contributor setup or project expectationscontributingCheck the documented local workflow and the contribution requirements for this change.

Hard constraints

  • Keep credentials and other secrets out of logs, errors, fixtures, pull requests, and artifacts; never inspect the auth.json account store as a debugging shortcut. An explicitly requested pixiv auth export [UID], pixiv auth export --all, or local pixiv mcp auth init [--reset] may emit its documented secret to stdout. pixiv config get prints configuration values directly, including API keys and their environment overrides. Other credential exports use the documented private-output or transfer path.
  • Explain network access and material side effects before execution. Real Pixiv/FANBOX calls, browser-credential access, image uploads, and account writes require explicit scope and authorization.
  • Obtain approval before adding a dependency or installing a tool.
  • Keep production builds permanently CGO-free and use only pure-Go dependencies. Race instrumentation follows the development guide's C-toolchain requirement. Local vector models load ONNX Runtime native libraries only after explicit pixiv vector setup.
  • A pull request does not authorize merging, force-pushing, tagging, publishing, changing branch protection, or using production secrets. Release authorization is separate and version-specific.
  • Preserve the App-only boundary: content operations require an authenticated local account or an eligible locally stored pool account, and errors never select an anonymous Web path. Data commands do not accept --uid or --refresh-token; the public SDK and MCP retain their explicit credential contracts.
  • Keep CLI machine output clean, reserve MCP stdio stdout for JSON-RPC, and require OAuth bearer authorization for HTTP. Preserve MCP runtime isError=true and report cancellation, transport, authentication, upstream, and persistence failures instead of returning success-shaped empty data.
  • Perform Git write operations in an independent worktree and preserve existing changes.

Authoritative references

  • Coding rules: English handbook · 简体中文手册
  • Ownership and dependency direction: English architecture · 简体中文架构 · MCP architecture
  • Toolchain, tests, native checks, and releases: English development guide · 简体中文开发流程
  • Contributor expectations: English · 简体中文
  • Public behavior: CLI reference · MCP tools
  • Workflow YAML, scripts/build/platforms.json, and tool manifests define executable CI/build configuration.

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.