agentleFS
shoot16625shoot16625/note-cli/skills/publish/SKILL.md

publish

Skill2 starsChanged 9 days agoMITView on GitHub

Publish, schedule, unpublish or delete note.com articles; hashtags, price, paywall, magazines.

  • Pipes a download into a shell

64 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create, render and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    create

    Also in 4 projects that use this

  • suxrobGMSkill

    render

    Generate raster images (PNG, JPEG, WebP) from natural language prompts using Python rendering engines. Covers graphics, charts, layouts, and procedural art. Not for SVG output.

    Also in 3 projects that use this

  • JaimeGBASkill

    ingest

    Digest an external source (article, paper, transcript, URL, book chapter) and integrate its content into the knowledge base

    Also in 6 projects that use this

  • genomewalkerSkill

    explore

    RLM-style recursive memory exploration - dynamically navigate the memory graph

    Also in 4 projects that use this

  • GoogleSkill

    translate

    Translates a common phrase into one or more languages.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 14 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 53 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

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

    If note-cli is on PATH, use it.

    line 14
  2. Very specific:

    If bun is missing, ask the user to install it (curl -fsSL https://bun.sh/install | bash).

    line 17
  3. Very specific:

    Make sure the draft is final (note-cli draft get <key>) or have the Markdown file ready.

    line 72
  4. Very specific:

    Run publish ... --dry-run with the intended options and show the user the summary (title, hashtags, price, free/paid split, schedule).

    line 73
  5. Very specific:

    After the user confirms, run the same command with --yes instead of --dry-run.

    line 74

“Common” is measured: kept by at least 6 in 10 of the 53 edited versions of this file we could read. “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

note-cli:publish

Publish and manage articles on note.com through the unofficial API wrapper note-cli. Publishing is public and visible to followers: always confirm the title, hashtags, price and timing with the user before running a command with --yes.

Running note-cli

This skill ships with the CLI. This file lives at <plugin root>/skills/<skill>/SKILL.md; the CLI is a dependency-free bundle at <plugin root>/dist/note-cli.js (requires Bun).

  • If note-cli is on PATH, use it.
  • Otherwise, if <plugin root>/dist/note-cli.js exists, run bun <plugin root>/dist/note-cli.js ... with the absolute path.
  • Otherwise (the skill was installed on its own, e.g. with npx skills add), ask the user before installing the CLI globally with bun add -g github:shoot16625/note-cli, then use note-cli.
  • If bun is missing, ask the user to install it (curl -fsSL https://bun.sh/install | bash). Below, note-cli means whichever of these works.

Output is JSON on stdout. Errors are JSON on stderr ({"error": {"code", "message"}}) with exit code 1 (2 for usage errors). Codes: NOT_LOGGED_IN, AUTH_ERROR, FORBIDDEN (note refused, with its reason in message), NOT_FOUND, RATE_LIMITED, API_ERROR, USAGE.

Login (only for commands that need it)

note-cli auth status tells you whether a session exists. To log in, run note-cli auth login yourself with a command timeout of at least 300 seconds. It opens a Chrome/Edge/Chromium window on the note.com login page and waits for the user to finish logging in there. Tell the user to log in in that window. Never ask for their password. If no browser is found, pass --browser <path>, or have the user copy the Cookie request header (or just the _note_session_v5 value) from DevTools and pipe it to note-cli auth import.

How publishing works

note requires reCAPTCHA v3 to publish, which only a real browser can pass. note-cli publish therefore opens a Chrome/Edge/Chromium window with a throwaway profile, copies the saved session into it, runs note's own publish request inside the page, and closes the window (about 10–30 seconds). Run it with a command timeout of at least 180 seconds. The user does not need to do anything in the window. If no browser is found, pass --browser <path>.

The article must already exist as a draft (create one with note-cli draft create, see note-cli:draft). Passing a Markdown file to publish saves it to the draft first, so edits and publishing happen in one step.

Commands

note-cli publish <key|url> --dry-run [options]        # show what would be sent: title, hashtags, price, free/paid lengths; no browser
note-cli publish <key|url> [file.md] --yes [options]  # -> {published: true, url, ...}
  --hashtag <tag>        # repeatable or comma-separated: --hashtag AI --hashtag ClaudeCode,生成AI
  --price <yen>          # 0 (free, default) or 100–50000; paid articles need a paywall (see below)
  --refund               # allow refunds on a paid article
  --magazine <key>       # add to your magazine on publish (repeatable)
  --membership <v>       # membership-only article: `all` (every member), plan keys (repeatable), or `none` to remove it
  --hide-from-profile    # keep it off your profile's article list (still reachable by URL, search and magazines)
  --toc                  # show a table of contents
  --disable-comments     # turn comments off (may need note premium)
  --no-notify            # do not send the subscriber notification
  --schedule <time>      # scheduled post, e.g. 2026-12-01T09:00+09:00 (needs note premium)
  --eyecatch <image>     # with a file: set the cover image (1280:670, or a `photo search` stock:... value)
  --no-embed             # with a file: keep bare URLs as links instead of embeds
note-cli reserved                         # your scheduled articles
note-cli unpublish <key|url> --yes        # back to draft (also cancels a scheduled post)
note-cli delete <key|url> --yes           # delete for good (published ones are unpublished first)
note-cli magazines [--note <key>]         # your magazines; with --note, whether the article is in each
note-cli magazine add <magazineKey> <noteKey>
note-cli magazine remove <magazineKey> <noteKey>

Running publish on an already published article re-publishes it with the current draft content and the given settings (pass the hashtags again; they are replaced).

Hashtags cannot contain spaces or dots: note silently drops all of an article's hashtags when one is invalid, so note-cli rejects them up front.

Membership articles

--membership all publishes the article for every member of the user's membership; --membership <planKey> limits it to specific plans (note-cli membership plans lists keys). An unknown plan key fails with the list of valid ones. --membership none takes an article out of the membership; do that before trying to unpublish a membership article.

Paid articles

Put a line containing only <!-- paywall --> in the Markdown where the paid part starts, then publish with --price. Everything above the line is free to read. --dry-run reports freeLength and paidLength so you can check the split. Without --price the marker is ignored and the whole article is free.

Paid articles, articles that ever sold, and articles in paid or membership magazines cannot be unpublished or deleted. note answers FORBIDDEN with that reason. Tell the user before publishing a paid article.

Workflow

  1. Make sure the draft is final (note-cli draft get <key>) or have the Markdown file ready.
  2. Run publish ... --dry-run with the intended options and show the user the summary (title, hashtags, price, free/paid split, schedule).
  3. After the user confirms, run the same command with --yes instead of --dry-run.
  4. Give the user the returned url.

Errors

  • CONFIRMATION_REQUIRED: --yes was missing. Confirm with the user, then add it.
  • FORBIDDEN on --schedule: the account has no note premium, so scheduled posting is unavailable. Offer to publish now instead.
  • FORBIDDEN on unpublish/delete: the article is paid, sold, or in a paid/membership magazine. It can only be edited, not removed.
  • PUBLISH_FAILED: note rejected the request; message and detail carry note's reason. detail.challenges lists the verification note asked for. If it contains something other than reCAPTCHAv3, the account may need to publish once from the editor.
  • AUTH_ERROR: the session has expired; log in again (note-cli auth login).

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.