agentleFS
FlanChanXwOFlanChanXwO/pixiv-cli/.agents/skills/pixiv-cli-mcp-tool/SKILL.md

pixiv-cli-mcp-tool

Skill140 starsChanged 13 days agoMITView on GitHub

Add, change, or review a pixiv-cli Pixiv or FANBOX MCP tool, including schema, SDK routing, structured output, errors, stdio delivery and HTTP authorization boundaries. Use for MCP tool implementation or compatibility work, not routine installed-CLI operation.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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:

    Keep context.Context, cancellation, account selection, resource lifetime, and operation-specific permissions intact.

    line 22
  2. Very specific:

    Run handler/schema tests, registration tests, and relevant SDK/stdio/HTTP integration tests.

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill 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
SKILL.md

Maintain pixiv-cli MCP Tools

Read root AGENTS.md, pixiv-cli-develop, and the relevant locale MCP reference. Find a current neighboring tool and its registration/tests; do not copy an obsolete bootstrap or application-service pattern. register.go is the only registration entry; domain files (accounts.go, media.go, bookmarks.go, …) hold the tool definitions and <tool>Handler methods on the product tool set.

Identify ownership and contract

Pixiv tools live in the single package internal/mcpserver/pixiv/tools; FANBOX tools in the parallel internal/mcpserver/fanbox/tools. Their product roots register into one server constructed by internal/mcpserver.New; product runtimes remain independent. Pixiv tool names use pixiv_, FANBOX uses fanbox_, and old unprefixed aliases are not registered. pixiv mcp defaults to stdio, with local filesystem downloads injected only for that transport; explicit --port enables HTTP with OAuth/bearer checks. Register Gallery and owner operations only when their media/account/login ports exist. Use existing owner-local runtime, record, output, and filter helpers, and the public SDK for product operations.

For reverse search, tool code may depend on the top-level reverse-search service contract, never provider/assembly internals. Keep provider transport and credential wiring in production assembly. Do not introduce a general service locator, shared mutable global client, or anonymous Web fallback.

Define the tool name, input validation, output schema, optional fields, cursor/record semantics, side effects, standard tool annotations, and error result before implementation. Distinguish unsupported upstream behavior from locally implementable filtering. Exposing a parameter without working semantics is not a capability.

Implement through tests

  1. Apply the coding handbook's test submission rules at a registration/schema or real-handler boundary, using synthetic SDK/HTTP fixtures. Add coverage for a missing contract; use the test workflow for execution and regression evidence.
  2. Validate schema and local inputs before opening an SDK snapshot or issuing requests. Reuse typed enums and shared record/pagination contracts where they are the owner.
  3. Keep context.Context, cancellation, account selection, resource lifetime, and operation-specific permissions intact. FANBOX sessions and Pixiv pool selection remain separate.
  4. Emit the declared structured result; failures set isError=true without exposing credentials. HTTP authentication failures remain HTTP errors, not tool results. Legitimate empty results remain successful; partial outcomes must not be mislabeled complete.
  5. Run handler/schema tests, registration tests, and relevant SDK/stdio/HTTP integration tests. A built MCP server is long-lived: use an existing fixture client for smoke verification instead of starting it and waiting for output indefinitely.

Update both locale MCP references and any affected CLI/SDK/product-skill documentation. Run the existing documentation tests and review the actual diff. Record live/network behavior as unverified unless an authorized real test ran; do not create a new release note or publish a tool as part of ordinary implementation.

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.