juejin
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Read and publish on 掘金 / Juejin (juejin.cn) with the user's own login cookies (BYOC) — list their published articles with view/like/comment stats, inspect one article, and publish a new article. Use when the user mentions 掘金 / Juejin, "我的掘金文章", reading their article stats (阅读/点赞), or publishing/发文 to 掘金.
20installs
Sourceacedatacloud/skills
Added on
NPX Install
npx skill4agent add acedatacloud/skills juejinTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →juejin — read & publish on 掘金 via your own cookies
Drives the user's real 掘金 account through the same web
endpoints the site uses, authenticated by the login cookie they captured with
the ACE extension. No browser, no third-party deps — just .
api.juejin.cnurllibThe connector injects the cookie jar as an env var:
- — a JSON array of cookies. Secret — never echo or print it.
JUEJIN_COOKIES
CLI
The skill ships — self-contained, stdlib only.
scripts/juejin.pysh
JJ=$SKILL_DIR/scripts/juejin.py
python3 $JJ whoami # who is logged in (+ totals)
python3 $JJ articles --limit 20 # my published articles + stats
python3 $JJ article <article-id> # one article's statsStats come straight from 掘金: (阅读), (点赞),
(评论), (收藏). 2 = online.
view_countdigg_countcomment_countcollect_countaudit_statusVerify the connection first
sh
python3 $JJ whoami
# → {"user_id": "...", "name": "...", "post_article_count": 336}On an auth error ( 401 / "请登录") the cookie is expired — have the user
reconnect at https://auth.acedata.cloud/user/connections. Do not loop-retry.
err_noPublishing — GATED (dry-run unless trailing --confirm
)
--confirmpublish--confirm--confirmsh
python3 $JJ publish --title "标题" --content-file a.md # dry-run
python3 $JJ publish --title "标题" --content-file a.md --draft-only --confirm # private draft
python3 $JJ publish --title "标题" --content-file a.md \
--category-id 6809637769959178254 --tag-ids 6809640407484334093 --confirm # PUBLIC- creates a private draft (掘金
--draft-only) — safe.article_draft - To actually publish (go through 审核), 掘金 requires a valid and at least one
--category-id. Without them, use--tag-idand let the user pick category/tags in the 掘金 editor. Default to--draft-only.--draft-only
Gotchas
- This is the user's real 掘金 account. Confirm before any publish.
- Publishing without a category + tag is rejected in 审核; prefer .
--draft-only - Never print — it is full account access.
JUEJIN_COOKIES - ToS: acts only on the user's own account with their own captured cookie.
Record the output
After you successfully publish and obtain the live result URL, call the built-in
tool ONCE so the user can track this deliverable in My Outputs:
publish_artifactpublish_artifact(kind="article", channel="juejin", title="<title>", url="<the REAL returned URL>", status="delivered")Use the real returned URL — never fabricate one. Call it once per published item,
only after delivery is confirmed; skip it (or use ) if publishing failed.
See .
status="failed"_shared/artifacts.md