habr
Installation
SKILL.md
Habr Cookie client
Habr does not publish a supported write API. This Skill uses the current
https://habr.com/kek/v2/* endpoints used by Habr's own web editor. The
connector encrypts the Cookie jar at rest, then injects a transient decrypted
JSON copy as $HABR_COOKIES only inside the Skill sandbox. Never print it,
pass it in command arguments, or write it to disk.
H="$SKILL_DIR/scripts/habr.py"
[ -f "$H" ] || H=$(find /tmp -maxdepth 8 -path '*/skills/*/habr/scripts/habr.py' 2>/dev/null | head -1)
[ -f "$H" ] || { echo "habr script not found" >&2; exit 1; }
python3 "$H" drafts --limit 20
python3 "$H" get --id ARTICLE_ID > draft.json
An auth error means the Cookie expired. Ask the user to reconnect Habr at https://studio.acedata.cloud/console/connectors; never retry in a loop.