jianshu-publisher

jianshu-publisher is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 19 tokens per session (977 once invoked), scanned A, original, Apache-2.0.

An automation client for 简书 (Jianshu), a Chinese publishing platform, using its website's internal interfaces. It can save drafts, publish, edit, and delete articles.

In plain words
What is it for?
Use it to manage 简书 articles from scripts, including creating drafts, publishing them, updating published articles, and deleting articles.
Why use it?
It removes repetitive manual publishing tasks, while its default dry-run mode lets you review write actions before they are sent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to manage 简书 articles from scripts, including creating drafts, publishing them, updating published articles, and deleting articles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/jianshu-publisher
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.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill jianshu-publisher
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

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 jianshu-publisher

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/jianshu-publisher/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/jianshu-publisher)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/jianshu-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/jianshu-publisher/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jianshu-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/jianshu-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/jianshu-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.00977
Opus 5 $0.00010 $0.00489
Sonnet 5 $0.00004 $0.00195
Haiku 4.5 $0.00002 $0.00098

Measured 12d ago against content hash a9e1401ce410, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

jianshu-publisher scanned grade A with 1 finding 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 12d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/jianshu_publisher.py, tests/test_jianshu_publisher.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- 标准库(`argparse` `json` `os` `sys` `urllib`)
skills/writing/blog/jianshu-publisher/SKILL.md · 102 lines

What it actually says

简书 Publisher

简书发布/管理自动化客户端,基于简书 Web 端内部接口(无公开 API)。

功能

  • draft-save —— 保存草稿,返回 note_id
  • publish —— 发布草稿
  • edit —— 编辑已发布文章
  • delete —— 删除文章

安全设计

  • 默认 dry-run:所有写操作默认只打印请求计划,不联网;加 --execute 才真正发送。
  • 凭据隔离:Cookie 从环境变量 JIANSHU_COOKIE--cookie-file 读取,绝不写入代码仓库。
  • 端点声明:所有端点在 ENDPOINTS 常量中集中维护,标注 VERIFY BEFORE USE

使用示例

# 1. 保存草稿
export JIANSHU_COOKIE="your_cookie_here"
python jianshu_publisher.py draft-save --execute \
  --title "我的新文章" \
  --markdown "# 标题\n内容..." \
  --brief "文章摘要" \
  --tags "Python,AI" \
  --cover-image "https://example.com/cover.png"

# 2. 发布草稿(拿到 draft-save 返回的 note_id)
python jianshu_publisher.py publish --execute <note_id>

# 3. 编辑已发布文章
python jianshu_publisher.py edit --execute <note_id> \
  --markdown-file article.md \
  --title "更新后的标题" \
  --tags "Python,AI"

# 4. 删除文章
python jianshu_publisher.py delete --execute <note_id>

端点核对(首次使用必做)

简书无公开 API,端点可能随时变更。首次使用前请按以下步骤核对:

  1. 打开浏览器 DevTools(F12),切到 Network 标签
  2. www.jianshu.com 登录并执行对应操作(新建草稿/发布/编辑/删除)
  3. 观察 XHR 请求,确认:
    • Request URL 与 ENDPOINTS 中对应值一致
    • Request Method / Headers / Payload 结构一致
  4. 如有出入,直接修改脚本顶部 ENDPOINTS 常量

当前端点(需核对):

  • draft_save: POST https://www.jianshu.com/notes
  • publish: PUT https://www.jianshu.com/notes/{note_id}/publish
  • edit: PUT https://www.jianshu.com/notes/{note_id}
  • delete: DELETE https://www.jianshu.com/notes/{note_id}

认证

Cookie 从环境变量 JIANSHU_COOKIE--cookie-file 读取。需包含简书登录态 Cookie(通常包含 remember_user_token_m7e_session 等字段)。

export JIANSHU_COOKIE="remember_user_token=xxx; _m7e_session=xxx; ..."
# 或
python jianshu_publisher.py draft-save --cookie-file ~/.jianshu_cookie ...

退出码

  • 0 成功
  • 1 API 错误或参数错误

依赖

  • Python 3.8+
  • 标准库(argparse json os sys urllib
  • publish_common(打包后与技能目录平级的 _common/publish_common.py;仓库内位于 skills/writing/_common/

相关技能

  • cnblogs-skill — 博客园发布
  • csdn-publisher — CSDN 发布
  • wechat-mp-publisher — 微信公众号发布
  • juejin-publisher — 掘金发布
  • cross-post-orchestrator — 多平台编排
  • ai-cover-generator — AI 封面图生成
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 102 lines · 19 tokens per session scan A a9e1401ce410

Subscribe to this mod's changes

jianshu-publisher is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 19 tokens to every session and 977 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

js-reverse-automation

A workflow for examining JavaScript in a real browser to find where login data, API requests, form fields, or responses are encrypted or signed. It then produces code and connection documentation for using that logic elsewhere.

Fausto-404/js-reverse-automation--skill · 48 tokens

yao-chatgpt-crawler

Use when a user provides ChatGPT web AI-search keywords, repeat count, target entity, entity type, OpenCLI profile, and crawl interval preference, then needs repeated crawls aggregated into JSON plus a Kami HTML GEO report. Not for generic crawling, ChatGPT API chat, SEO writing, or one-off answers.

yaojingang/yao-geo-skills · 71 tokens

yao-doubao-crawler

Use when a user needs repeated Doubao AI-search collection from web or Android Appium into compatible JSON plus Markdown/Excel/HTML GEO reports. Requires keywords/questions and repeat count; target entity/type are required only for target-vs-competitor diagnosis. Not for generic scraping, Doubao API chat, hidden API…

yaojingang/yao-geo-skills · 85 tokens

browser-harness-authoring

Use when mapping a repeatable website workflow into a verified Hermes skill so later runs can follow known steps instead of rediscovering the site. Surveys browser compatibility, semantic targets, failure modes, recovery paths, decision gates, and expiry using dummy data and no irreversible submissions.

AtlasOmnia/hermes-custom-pack · 60 tokens

reddit-browse-and-post

Let an agent read Reddit by default, and publish only after the user explicitly opts in and approves the exact post. Everything here is account-agnostic: the user supplies credentials through environment variables or a browser login, never through chat.

AtlasOmnia/hermes-custom-pack · 54 tokens

openclaw-browser-auto

A setup guide for connecting OpenClaw, an AI-agent platform, to a remote Chrome browser through CDP, a browser control interface. It covers Docker-hosted browsers and Browserless.io, a hosted browser service.

davidtoby/agent-skills · 0 tokens