Agent skill

Pixiv CLI Code Commenting

by FlanChanXwO in FlanChanXwO/pixiv-cli

In pixiv-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages.

MITAuto-check passedDevelopment

Install Pixiv CLI Code Commenting

skills CLI
$ npx skills add FlanChanXwO/pixiv-cli --skill pixiv-cli-code-commenting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install FlanChanXwO/pixiv-cli pixiv-cli-code-commenting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/FlanChanXwO/pixiv-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pixiv-cli-code-commenting .claude/skills/pixiv-cli-code-commenting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pixiv-cli-code-commenting
GitHub stars
134
Token cost
~2.4k tokens
SKILL.md length
1,159 words
Files
2
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

In pixiv-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages.

  • Works in 5 steps: Read the affected symbol, enclosing… → Identify the missing information before… → Choose the nearest useful location: API… → …
  • An implementation changes a contract
  • SKILL.md covers Repository context, Editing workflow, Language and syntax and Documentation comments, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pixiv CLI Code Commenting is an agent skill from FlanChanXwO/pixiv-cli. In pixiv-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages. Use when an implementation changes a contract or non-obvious invariant, a multi-stage function needs navigation, or existing comments are noisy or stale. Keep natural-language choice neutral and preserve compiler/tool directives. Do not require comments for every function or statement.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Technical documentation. The repository describes itself as: Pixiv, in your terminal — a CLI, MCP server, and Go SDK for discovery, accounts, creators, collections, and downloads. The licence is MIT.

When your agent uses it

  • An implementation changes a contract
  • Non-obvious invariant
  • A multi-stage function needs navigation
  • Existing comments are noisy

Example prompts

  • “/pixiv-cli-code-commenting”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Read the affected symbol, enclosing flow, nearby comments, and applicable repository conventions. Inspect callers or tests when a claimed…
  2. Identify the missing information before adding prose. Keep accurate contract and intent comments, correct stale ones, and remove narration…
  3. Choose the nearest useful location: API documentation for a caller contract, a type/field comment for an invariant or unit, an inline…
  4. Keep edits within the requested scope. A comment review is not permission to rename APIs, extract helpers, redesign modules, add tests, or…
  5. Re-read comments against the final code and applicable documentation output. Confirm stage order, symbol references, factual guarantees…

What it can do on your machine

Read from SKILL.md and the folder at commit 2b3ccbb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are go).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • go.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pixiv CLI Code Commenting loads about 2.4k tokens when it runs. Until then it costs about 109 tokens; SKILL.md has 1,159 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~109
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from FlanChanXwO/pixiv-cli at commit 2b3ccbb, republished under its MIT licence (© FlanChanXwO). 1,159 words, ~2,375 tokens.

Download SKILL.mdSave it as .claude/skills/pixiv-cli-code-commenting/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pixiv-cli-code-commenting
description
In pixiv-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages. Use when an implementation changes a contract or non-obvious invariant, a multi-stage function needs navigation, or existing comments are noisy or stale. Keep natural-language choice neutral and preserve compiler/tool directives. Do not require comments for every function or statement.

pixiv-cli Code Commenting

Expose information that names and structure cannot express clearly: caller contracts, intent, constraints, invariants, and meaningful workflow stages. Optimize understanding, not comment count or code length.

Repository context

Read root AGENTS.md and the affected owner before editing. This checked-in skill is self-contained; it does not require the personal code-commenting skill. Review caller contracts across CLI, SDK, and MCP without duplicating them in every layer. Keep machine-output, credential, transaction outcome, and Rust/cgo ownership comments precise; an ordinary prose cleanup must not change build directives or the cgo preamble. Use pixiv-cli-test for verification scope and pixiv-cli-develop for any authorized structural change.

Editing workflow

  1. Read the affected symbol, enclosing flow, nearby comments, and applicable repository conventions. Inspect callers or tests when a claimed contract is unclear; do not infer thread safety, atomicity, retry safety, or ownership from a name.
  2. Identify the missing information before adding prose. Keep accurate contract and intent comments, correct stale ones, and remove narration that adds no information. Leaving self-explanatory code uncommented is a valid outcome.
  3. Choose the nearest useful location: API documentation for a caller contract, a type/field comment for an invariant or unit, an inline comment for a surprising choice, or numbered comments for a meaningful multi-stage flow.
  4. Keep edits within the requested scope. A comment review is not permission to rename APIs, extract helpers, redesign modules, add tests, or introduce dependencies. Report structural or behavioral defects separately unless their correction is authorized.
  5. Re-read comments against the final code and applicable documentation output. Confirm stage order, symbol references, factual guarantees, and protected directives. Report uncertain claims rather than documenting them as facts.

Language and syntax

  • Accept either English or Chinese source comments; this skill's English instructions do not select a comment language. Follow the explicit task preference, otherwise the surrounding code and intended readers. Keep a coherent language within a comment; do not bulk-translate unrelated code or duplicate every comment bilingually.
  • Preserve identifier spelling, protocol values, units, URLs, issue references, and required documentation tags. Natural-language freedom does not waive language-specific syntax.
  • Use the repository's existing formatter and documentation conventions. For Go, place a doc comment directly before its declaration, normally start with the declared identifier (or Package name for a package), and use complete sentences. Chinese prose can follow the unchanged identifier.
  • Document newly added or changed exported Go declarations and caller-visible field semantics. A concise, accurate contract is enough; avoid boilerplate headings and parameter lists that only repeat the signature. A private helper does not automatically need a doc comment.

Documentation comments

Describe only the caller-relevant facts that apply: observable behavior, preconditions, zero/nil/absent semantics, units or formats, ordering, side effects, ownership/lifetime, concurrency, cancellation, and error or partial-commit outcomes.

Give important structs and domain types their meaning and invariants. Document fields individually only when their meaning is not already clear from the type contract and names. Keep implementation walkthroughs out of API documentation.

For example, a useful contract states an ownership rule:

go
// Snapshot returns a copy of the current settings.
// The caller may modify the result without changing the store.

Use that wording only when the implementation actually provides a copy. Avoid vacuous prose such as Snapshot returns a snapshot, and do not promise guarantees that the code or accepted contract does not establish.

Keep a shared contract in its authoritative location and link or name it where helpful; do not copy long explanations into every caller.

Numbered workflow comments

Use // 1. ..., // 2. ..., and // 3. ... when stable, meaningful phases make an orchestration function easier to scan. Number phases, not statements; there is no mandatory number of stages, comments, or function length.

A useful outline reveals sequencing constraints rather than translating helper names. For a workflow that actually enforces these boundaries:

go
// 1. Validate the complete batch before any record becomes visible.
// 2. Recheck revisions under the transaction lock to avoid lost updates.
// 3. Publish the batch; report post-commit cleanup errors as committed.

Place each comment immediately before its actual block, not as a detached table of contents. Use the native comment syntax in languages other than Go.

  • Keep stages at one abstraction level with parallel action wording and sequential numbering. Renumber after reordering, insertion, or deletion.
  • Prefer a flat sequence. Nested numbering is justified only by a real nested workflow that benefits from navigation, not by nested if statements.
  • Leave trivial getters, setters, forwarding wrappers, obvious short flows, assignments, and ordinary error checks unnumbered. If helper names already tell the whole story, omit the redundant outline.
  • Keep an independent intent comment next to a subtle operation inside a stage; not every explanation needs a number.
  • A difficult outline may reveal mixed responsibilities, but do not split code merely to shorten functions or obtain neat numbering. Preserve a coherent local flow unless an in-scope extraction reduces the reader's total effort.
Show full SKILL.md (409 more words)Show less

Intent, constraints, and temporary work

Explain why the obvious alternative is wrong, why ordering matters, which invariant later code depends on, or which external constraint requires a workaround. State uncertainty honestly and keep sensitive inputs out of examples and links.

go
// Ranking positions change between requests; key by the stable artwork ID.
key := strconv.FormatInt(artwork.ID, 10)

The comment Convert the ID to a string adds no information to that statement.

For a timeout, retry, limit, or fallback, identify its actual requirement, platform constraint, established protocol, or demonstrated failure. A comment does not justify an arbitrary restriction or a hidden fallback. Explain the relevant trigger and successful-path impact without inventing measurements or evidence.

Make TODO/FIXME comments actionable with the specific issue or removal condition when known. Preserve real references; do not invent issue IDs, owners, deadlines, or speculative future work. Prefer Remove this compatibility path when the upstream v1 API is retired over fix this later.

Protected comments and behavior

Treat compiler, build, generator, linter, type-checker, and tooling directives as executable inputs, not expendable prose. Examples include Go build/embed/generate directives, cgo preambles, shell shebangs, type-checker directives, and snapshot or documentation-test markers. Preserve required position, spacing, and scope. Keep license notices and generated-file provenance intact; change a generator's source rather than its output when applicable.

Ordinary prose-only edits need a diff/doc/formatter check appropriate to the repository, not a new behavioral test per comment or function. A directive, doctest, reflected docstring, generated schema description, or other consumed comment can affect behavior; inspect its consumer and run the relevant existing check. Any actual behavior change follows the project's test-first contract. Do not create a scanner, new test framework, or exact-comment wording test merely to enforce this style.

Readability review and completion

Check whether each edited comment adds a contract, reason, invariant, or navigation cue. Remove line-by-line narration, decorative banners, repeated function names, and unsupported guarantees; preserve meaningful explanations and required legal/tooling text.

Keep clear names, explicit data flow, and cohesive responsibilities ahead of prose. A short expression is not inherently clearer, and extracting many tiny helpers may make a flow harder to follow. Do not replace good structure with explanations or force unrelated refactoring to reduce comments.

Finish when affected contracts are accurate, helpful comments remain close to their code, numbering follows actual phases, and required document/tool checks have been observed. No comment-density target, per-function quota, mandatory translation, or new-test count defines success.

For Go-specific details, consult Go Doc Comments and Go Code Review Comments when needed. Repository behavior and verified evidence still determine what a comment may claim.

© FlanChanXwO, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/pixiv-cli-code-commenting of FlanChanXwO/pixiv-cli.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 2b3ccbb

Compare with similar skills

Pixiv CLI Code Commenting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pixiv CLI Code Commenting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pixiv CLI Code Commenting this skillFlanChanXwO/pixiv-cli134—~2.4kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design45k1 repos~7.5kAutomated safety check: PassMIT
Simple Englishmoeru-ai/airi50k2 repos~4.6kAutomated safety check: PassMIT
Get API Docs with chubandrewyng/context-hub14k2 repos~775Automated safety check: PassMIT
Doc SyncJetBrains/ideavim10k2 repos~2.6kAutomated safety check: PassMIT
Mailspring App ScreenshotsFoundry376/Mailspring18k—~1.5kAutomated safety check: PassGPL-3.0

Similar skills

  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    45k GitHub starsUsed in 1 repo~7.5k tokens
    DevelopmentAuto-check passed
  • Simple English

    moeru-ai/airi

    Write or rewrite technical text with the rules of ASD-STE100 Simplified Technical English so it is clear, unambiguous, and free of AI slop.

    50k GitHub starsUsed in 2 repos~4.6k tokens
    DevelopmentAuto-check passed
  • Get API Docs with chub

    andrewyng/context-hub

    Fetches current documentation for third-party APIs and SDKs with the chub CLI before the agent writes code against them, instead of relying on remembered API shapes.

    14k GitHub starsUsed in 2 repos~775 tokens
    DevelopmentAuto-check passed
  • Doc Sync

    JetBrains/ideavim

    Official

    Keeps IdeaVim documentation in sync with code changes. An agent skill from JetBrains/ideavim.

    10k GitHub starsUsed in 2 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Mailspring App Screenshots

    Foundry376/Mailspring

    Captures screenshots of the running Mailspring dev app for docs, PRs or visual checks by launching it with a debugging port, driving the UI and clipping to an element.

    18k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 5 days ago
    DevelopmentAuto-check: notes

More from FlanChanXwO/pixiv-cli

All 11 skills in this repo
  • Pixiv CLI

    FlanChanXwO/pixiv-cli

    Operate the installed pixiv CLI to search works and users, reverse-search images with SauceNAO or ascii2d, inspect Pixiv references, read feeds and rankings, and perform explicitly authorized…

    134 GitHub stars~2.8k tokensUpdated yesterday
    Auto-check passed
  • Pixiv CLI CI

    FlanChanXwO/pixiv-cli

    Diagnose pixiv-cli GitHub Actions failures and verify current-head quality, platform, PR-verification, native/browser, and release evidence.

    134 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Pixiv CLI Native

    FlanChanXwO/pixiv-cli

    Change or validate pixiv-cli Rust ugoira, cgo/FFI, committed static libraries, vendored dependencies, Linux ABI, and native runner evidence.

    134 GitHub stars~948 tokensUpdated yesterday
    Auto-check passed
  • Pixiv CLI PR

    FlanChanXwO/pixiv-cli

    Prepare, update, or verify a pixiv-cli pull request using its current template, trusted verification policy, reviewed diff, and head-specific check results.

    134 GitHub stars~802 tokensUpdated yesterday
    Auto-check passed
  • Pixiv CLI Docs

    FlanChanXwO/pixiv-cli

    Edit pixiv-cli documentation, AGENTS.md, client bridges, repository maintenance skills, or the distributed product skill.

    134 GitHub stars~997 tokensUpdated yesterday
    Auto-check passed
  • Pixiv CLI MCP Tool

    FlanChanXwO/pixiv-cli

    Add, change, or review a pixiv-cli Pixiv or FANBOX MCP tool, including schema, SDK routing, structured output, errors, and stdio behavior.

    134 GitHub stars~750 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Pixiv CLI Code Commenting

What does Pixiv CLI Code Commenting do?

In pixiv-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages. Pixiv CLI Code Commenting is an agent skill from FlanChanXwO/pixiv-cli. In pixiv-cli, write and review intent-focused code comments, API documentation, docstrings, and numbered workflow stages.

When should I use Pixiv CLI Code Commenting?

Pixiv CLI Code Commenting fits situations like: an implementation changes a contract; non-obvious invariant; A multi-stage function needs navigation; existing comments are noisy.

How do I install Pixiv CLI Code Commenting in Claude Code?

Run `npx skills add FlanChanXwO/pixiv-cli --skill pixiv-cli-code-commenting -a claude-code`. Or copy the skill folder (.agents/skills/pixiv-cli-code-commenting in FlanChanXwO/pixiv-cli) into .claude/skills/pixiv-cli-code-commenting in your project. Claude Code loads it when a task matches its description.

How do I install Pixiv CLI Code Commenting in Codex?

Run `npx skills add FlanChanXwO/pixiv-cli --skill pixiv-cli-code-commenting -a codex`. Or copy the skill folder (.agents/skills/pixiv-cli-code-commenting in FlanChanXwO/pixiv-cli) into .agents/skills/pixiv-cli-code-commenting in your project. Codex loads it when a task matches its description.

Can I use Pixiv CLI Code Commenting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add FlanChanXwO/pixiv-cli --skill pixiv-cli-code-commenting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pixiv-cli-code-commenting, .gemini/skills/pixiv-cli-code-commenting, .github/skills/pixiv-cli-code-commenting and .opencode/skills/pixiv-cli-code-commenting in your project.

What does Pixiv CLI Code Commenting need to run?

SKILL.md names no scripts, command-line tools or credentials: Pixiv CLI Code Commenting is instructions for the agent only.

Does Pixiv CLI Code Commenting access the network?

SKILL.md names 1 domain. As links in the text: go.dev. This is read from the text; nothing was executed.

Is Pixiv CLI Code Commenting safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pixiv CLI Code Commenting use?

Pixiv CLI Code Commenting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pixiv CLI Code Commenting use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pixiv CLI Code Commenting?

Skills that share tags, products or a category with Pixiv CLI Code Commenting: Diagram Design (cathrynlavery/diagram-design, 45k stars), Simple English (moeru-ai/airi, 50k stars), Get API Docs with chub (andrewyng/context-hub, 14k stars) and Doc Sync (JetBrains/ideavim, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pixiv CLI Code Commenting?

FlanChanXwO (a GitHub user) maintains it in FlanChanXwO/pixiv-cli, which has 134 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 6, 2026.

Source: FlanChanXwO/pixiv-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.