cto51
БесплатноЗапускает вложенные скриптыНе проверенRead 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…
от AceDataCloud★ 17 звёзд на GitHubОб этом скилле
cto51 — read & draft on 51CTO 博客 via your own cookies
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.
Important: draft only
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.
Verify the connection first
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.
Create a draft — GATED
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.
Gotchas
- 51CTO sits behind a WAF that answers a bare request with HTTP 567. The CLI
always sends a full browser fingerprint, so do not strip its headers or
re-implement the calls with plain
curl. - Both the identity and the
_csrftoken come from the publish page. A redirect there means the session is dead — reconnect, do not retry. - Content is sent as Markdown (
is_old=0). Do not pre-render it to HTML. - Images referenced by external URL are not re-hosted. If the source host blocks hotlinking they will not render; mention this when the article has images.
- Do not retry a timed-out write automatically — the outcome may be unknown and a retry can create a duplicate draft.
Record the output
This skill only produces drafts, so do not call publish_artifact. Report
the returned draft_id and edit_url to the user instead.
Установить cto51 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл cto51?
Read 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.
Как установить скилл cto51?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cto51 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic