executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
cto51Read the connected 51CTO 博客 (blog.51cto.com) account and create Markdown article drafts with the user's own login cookies (BYOC). Use when the user mentions 51CTO, wants to save a 51CTO draft, or asks who their connected 51CTO account is.
Independent GitHub snapshot · Automated classification · Original documentation governs
Drives the user's real 51CTO account through the same blog.51cto.com
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 a JSON env var $CTO51_COOKIES. Never
print it.
python3 "$SKILL_DIR/scripts/cto51.py" whoami
If $SKILL_DIR points at a different skill loaded in the same turn, resolve
this skill's directory explicitly before running the commands below.
51CTO's write endpoint creates a draft. This skill returns the draft's editor URL and does not publish. Tell the user plainly that they must open that URL and publish themselves — do not claim the article went live.
python3 "$SKILL_DIR/scripts/cto51.py" whoami
If this fails with a redirect or auth error, the cookie has expired. Ask the
user to reconnect at https://studio.acedata.cloud/console/connectors rather than
retrying.
Prepare the complete Markdown in a file. The first call is always a dry run and does not write anything.
# Dry run — shows exactly what would be written.
python3 "$SKILL_DIR/scripts/cto51.py" draft \
--title "标题" --content-file /tmp/article.md --tags "python,api"
# Actually create the draft after the user confirms.
python3 "$SKILL_DIR/scripts/cto51.py" draft \
--title "标题" --content-file /tmp/article.md --tags "python,api" --confirm
Options: --content-file <path.md> (preferred) or --content "<markdown>" for
short inline text; --tags "a,b" comma-separated; --abstract "…" sets the
summary shown in listings. The dry run echoes every field that will be written,
including the abstract — show that output to the user before confirming.
--confirm is valid only as the final argument. Show the title, tags and full
content to the user before writing.
curl._csrf token come from the publish page. A
redirect there means the session is dead — reconnect, do not retry.is_old=0). Do not pre-render it to HTML.This skill only produces drafts, so do not call publish_artifact. Report
the returned draft_id and edit_url to the user instead.