From acedatacloud-content
Reads and publishes articles on CSDN using the user's own login cookies. Lists published articles with view/like/comment stats, inspects one article, and publishes new articles.
How this skill is triggered — by the user, by Claude, or both
Slash command
/acedatacloud-content:csdnWhen to use
Trigger for anything on the user's CSDN (blog.csdn.net) account driven by their own login cookie: show who they are, list their published articles with view / like / comment counts, look at one article's stats, or publish a new article. This acts as the user's real account, so writes are gated behind an explicit confirmation.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Drives the user's **real** CSDN account through the same web APIs the site's own
Drives the user's real CSDN account through the same web APIs the site's own
editor uses, authenticated by the login cookie they captured with the ACE
extension. No browser, no third-party deps — urllib + hmac (the editor's
save endpoint requires an HMAC signature, computed with stdlib).
The connector injects the cookie jar as an env var:
CSDN_COOKIES — a JSON array of cookies. Secret — never echo or print it.
The CLI reads it for you.CSDN fronts its APIs with a WAF; the CLI already sends a full browser fingerprint so reads aren't 403'd. If you still get a WAF 403, the cookie expired — have the user reconnect.
The skill ships scripts/csdn.py — self-contained, stdlib only.
# $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).
CSDN="$SKILL_DIR/scripts/csdn.py"; [ -f "$CSDN" ] || CSDN=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/csdn.py' 2>/dev/null | head -1)
[ -f "$CSDN" ] || { echo "csdn script not found (SKILL_DIR=$SKILL_DIR)" >&2; exit 1; }
python3 "$CSDN" whoami # who is logged in (+ total article count)
python3 "$CSDN" articles --limit 20 # my published articles + stats
python3 "$CSDN" article <article-id> # one article's stats
Stats come straight from CSDN: view_count (阅读), digg_count (点赞),
comment_count (评论), collect_count (收藏).
CSDN="$SKILL_DIR/scripts/csdn.py"; [ -f "$CSDN" ] || CSDN=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/csdn.py' 2>/dev/null | head -1)
python3 "$CSDN" whoami
# → {"username": "...", "nickname": "...", "articles_total": 1597}
On a WAF 403 / auth error the cookie is expired — tell the user to reconnect at https://auth.acedata.cloud/user/connections. Do not retry in a loop.
--confirm)publish writes to the user's real account. Content is Markdown. Without a
trailing --confirm it dry-runs. --confirm is honored only as the last
argument. Always show the dry-run, get an explicit "yes", then re-run with
--confirm last.
CSDN="$SKILL_DIR/scripts/csdn.py"; [ -f "$CSDN" ] || CSDN=$(find /tmp -maxdepth 8 -path '*/skills/*/scripts/csdn.py' 2>/dev/null | head -1)
python3 "$CSDN" publish --title "标题" --content-file a.md # dry-run
python3 "$CSDN" publish --title "标题" --content-file a.md --draft-only --confirm # private draft (status=2)
python3 "$CSDN" publish --title "标题" --content-file a.md --tags "AI,Python" --confirm # PUBLIC, goes live
--draft-only saves a private draft (CSDN status=2) — safe, nothing public.--draft-only the article is published publicly under the user's
name. Default to --draft-only unless the user clearly asked to go live.--tags is a comma-separated list of article tags.publish automatically re-hosts external markdown images () onto
CSDN's own CDN (i-blog.csdnimg.cn) before saving — CSDN 防盗链 blocks external
images, and saving an article full of external URLs can even time out. Images
already on csdnimg.cn are left alone; pass --no-rehost-images to skip. An
image that fails to upload keeps its original URL (never blocks the post).
CSDN_COOKIES — it is full account access.After you successfully publish and obtain the live result URL, call the built-in
publish_artifact tool ONCE so the user can track this deliverable in My Outputs:
publish_artifact(kind="article", channel="csdn", 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 status="failed") if publishing failed.
See _shared/artifacts.md.
npx claudepluginhub acedatacloud/skills --plugin acedatacloud-contentReads and publishes articles on 掘金 (Juejin) using the user's own login cookies. Lists published articles with stats, inspects individual articles, and publishes new content.
Multi-platform article publisher for syncing Markdown/HTML to 29+ platforms including Zhihu, Juejin, CSDN, Weibo, WordPress, WeChat, and more. Use for cross-posting content to Chinese tech communities and blogging sites.
Manages velog.io developer blog posts from terminal: create/edit/publish Markdown files or stdin as drafts/posts, list personal/drafts/trending/recent, authenticate via browser tokens.