← ClaudeAtlas

juejinlisted

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 掘金.
AceDataCloud/Skills · ★ 13 · AI & Automation · score 73
Install: claude install-skill AceDataCloud/Skills
# juejin — read & publish on 掘金 via your own cookies Drives the user's **real** 掘金 account through the same `api.juejin.cn` web endpoints the site uses, authenticated by the login cookie they captured with the ACE extension. No browser, no third-party deps — just `urllib`. The connector injects the cookie jar as an env var: - `JUEJIN_COOKIES` — a JSON array of cookies. **Secret — never echo or print it.** ## CLI The skill ships [`scripts/juejin.py`](scripts/juejin.py) — self-contained, stdlib only. ```sh # $SKILL_DIR can point at another skill loaded this turn — anchor on our own # script, and re-run this at the top of every Bash block (fresh shell each time). JJ="$SKILL_DIR/scripts/juejin.py"; [ -f "$JJ" ] || JJ=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/juejin.py' 2>/dev/null | head -1) [ -f "$JJ" ] || { echo "juejin script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; } 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 stats ``` Stats come straight from 掘金: `view_count` (阅读), `digg_count` (点赞), `comment_count` (评论), `collect_count` (收藏). `audit_status` 2 = online. ## Verify the connection first ```sh JJ="$SKILL_DIR/scripts/juejin.py"; [ -f "$JJ" ] || JJ=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/juejin.py' 2>/dev/null | head -1) python3 "$JJ" whoami # → {"user_id": "...", "name": "...", "post_article_