juejin-publisher

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

A command-line tool for saving drafts and publishing Markdown articles on Juejin, a Chinese developer publishing community, through its website interface.

In plain words
What is it for?
Find category and tag IDs, save a Markdown article as a draft, and publish it with its category, tags, and summary.
Why use it?
It avoids repeating manual editor actions and lets you review the planned request before it is sent. Juejin’s internal interfaces can change and must be checked first.

Skill for Claude CodeCodex

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

Good fit Find category and tag IDs, save a Markdown article as a draft, and publish it with its category, tags, and summary.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/juejin-publisher/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/juejin-publisher)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/juejin-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/juejin-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 juejin-publisher

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/juejin-publisher"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/juejin-publisher.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 733 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00083 $0.00733
Opus 5 $0.00042 $0.00367
Sonnet 5 $0.00017 $0.00147
Haiku 4.5 $0.00008 $0.00073

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

Security

Grade A, and why

juejin-publisher scanned grade A with 0 findings 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/juejin_publish.py, tests/test_juejin_publish.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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/writing/juejin/juejin-publisher/SKILL.md · 77 lines

What it actually says

掘金发布 Skill

compatibility

  • Python 3.8+(仅标准库)
  • 掘金账号登录态 Cookie(含 sessionid_a1

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

掘金没有公开开放 API。本技能使用 Web 编辑器同款内部接口, 社区通用端点已写入 scripts/juejin_publish.py 顶部 ENDPOINTS 常量。 平台可能随时调整——首次使用前核对一次:

  1. 浏览器登录 juejin.cn → 打开创作者编辑器 → F12 → Network 面板
  2. 手动保存一次草稿、发布一次文章
  3. 找到 content_api/v1/article/... 相关请求,对照修改脚本中的 URL 与字段名

认证管理

export JUEJIN_COOKIE="sessionid_a1=...; 其他必要字段..."

从浏览器 DevTools → Application → Cookies 复制完整值。 Cookie 过期的表现:接口返回 err_no 非 0 或 HTTP 401/403——重新复制即可。 禁止把 Cookie 写入任何进仓库的文件。

工作流

1. 查分类 / 标签 ID

python3 scripts/juejin_publish.py --execute categories | head -50

记下目标分类的 category_id(如后端的 hex 字符串),以及标签 tag_ids。

2. 保存草稿(默认 dry-run)

python3 scripts/juejin_publish.py draft-save \
  --title "文章标题" --markdown article.md \
  --category-id <id> --tag-ids <id1>,<id2> \
  --brief "摘要"
# 输出确认无误后加 --execute 执行;返回 data.article_id

3. 发布

python3 scripts/juejin_publish.py publish <article_id> \
  --title "文章标题" --markdown-file article.md \
  --category-id <id> --tag-ids <id1>,<id2>

发布走平台审核(need_review=true),几分钟后在个人主页确认状态。

安全规则

  1. 默认 dry-run,--execute 才真正发送——AI 必须先展示计划等确认
  2. Cookie 只放环境变量或本地文件,绝不入库
  3. 掘金对高频发布有风控,一天多篇时拉开间隔

已知限制

  • 无官方 API,端点属于内部实现,可能随版本变动(核对步骤见上)
  • 封面图:Web 端上传走独立图片服务,本脚本暂未封装;可先用外链 cover-image
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. 11d ago First seen · 77 lines · 83 tokens per session scan A e362dd3f5c6d

Subscribe to this mod's changes

juejin-publisher is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 83 tokens to every session and 733 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. 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

agentic-webdesign-html-anything

Install and use html-anything — the agentic HTML editor where your local AI agent writes HTML and you ship it. 75 skills × 9 surfaces, BYOK, zero API key. Use when building magazine articles, keynote decks, resumes, posters, social cards, web prototypes, data reports, or Hyperframes videos with AI coding agents.

S3YED/appie-kit · 78 tokens

blog-post

Full-stack blog post production — turns a topic, idea, or brief into a complete publishing package across written, social, and multimedia surfaces. Generates broomva.tech .mdx posts (or Substack/other long-form), X posts and threads, LinkedIn posts, Instagram posts and reel scripts, plus multimedia asset plans…

broomva/skills · 182 tokens

content-creation

Full-stack content creation pipeline: idea or reference to published blog post, audio narration, video, and social media distribution. Orchestrates research, reference extraction, storytelling, AI visual assets (Nano Banana, Veo 3.1), TTS audio (Voicebox, kokoro-tts, Edge TTS), Remotion video, and social copy into a…

broomva/skills · 239 tokens

revenuecast

/revenuecast is the verb that turns what you can do into a machine that makes the world want it. You have a real capability — a craft, an expertise, a running system. revenuecast builds the loop where the capability's output becomes its own advertisement, and the demand that output creates is monetized by selling the…

broomva/skills · 389 tokens

citable

Make authored content survive the two selection surfaces it now faces: human engagement and LLM retrieval for citation. These partially anti-correlate, and the tactics that raise reactions are in two measured cases the ones that suppress citation. Encodes effect sizes from published causal studies (Scrunch, 12,000…

broomva/skills · 304 tokens

claude-md-improver

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project…

anthropics/claude-plugins-official · 82 tokens