/ego-skills:__SKILL_ID__from ego-skills
Drives a website using Ego Lite via ego-browser. Checks login status first and soft-fails with exit 2 if ego-browser is missing or the site is logged out. Never types passwords.
Ships in ego-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
TEMPLATE.
npm run new-skill -- <id>copies this directory and replaces__SKILL_ID__. Do not open a pull request that addsskills/_templateas a product skill. Delete every TEMPLATE note, replacehttps://example.com/login, and write the real success state before review.
用 Ego Lite 会话完成 <一句话目标>。缺 ego-browser 或未登录时 soft-fail(退出码 2),不要硬调浏览器。
Do the task through Ego Lite. If ego-browser is missing or the site is logged out, soft-fail with exit 2. Do not drive a browser any other way.
先装 Ego Lite,保证 ego-browser 在 PATH。缺失则 soft-fail / 告知用户去装,不要改用 Playwright、Puppeteer 或云端浏览器。
Install Ego Lite and put ego-browser on PATH. If it is missing, soft-fail and tell the user. Do not switch to Playwright, Puppeteer, or a cloud browser.
Agent 在上传、下载或改页面之前必须跑:
node scripts/check-login.mjs
# 需要把窗口留给人登录时:
node scripts/check-login.mjs --keep
| 退出码 | 含义 | Agent 做什么 |
|---|---|---|
0 | 已登录 | 把 login_tip 告诉用户,继续 |
2 | 未登录 / 无 ego-browser | 展示 how_to_login / how_to_login_zh,停。请人在 Ego 里登录后再跑 |
1 | 其它错误 | 报告 JSON error,不要假装已经成功 |
详见 references/login.md。不要另做 cookie-healthcheck。不要代填密码,不要粘贴 Cookie,不要自动扫码。
仓库根目录:node skills/__SKILL_ID__/scripts/check-login.mjs。
这个模板在二进制存在时仍返回退出码 1 和 TEMPLATE 错误。换成真正的 ego-browser nodejs 探测后再说技能可用。wechat-channels-video 与 youtube-video 把这一步拆成 launch-check.mjs / run-check.mjs;可测试的判断留在 scripts/lib/pure.mjs,ego-deps.mjs 只放 ego 全局对象。
调用方提供路径和文案。本技能不写死 ~/… 或任何个人/产品目录。示例只用 /tmp/... 或 /absolute/path/to/video.mp4。
Replace this sentence with the observable result. Until you do, this template has not succeeded at a real task.
npm test
npm test 用 glob 收录 skills/*/scripts/test/*.test.mjs。c8 统计 scripts/lib/**/*.mjs(不含 ego-deps.mjs),行覆盖率不低于 80%。
agents/openai.yaml (opens in a new tab)references/login.md (opens in a new tab)references/tos-notes.md (opens in a new tab)scripts/check-login.mjs (opens in a new tab)scripts/lib/ego-deps.mjs (opens in a new tab)scripts/lib/pure.mjs (opens in a new tab)scripts/test/pure.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/bilibili-videoPublish a local video to the Bilibili creator platform (member.bilibili.com) with Ego Lite via ego-browser. Login-check first. Bilibili wants TWO covers uploaded separately: --cover-4x3 (首页推荐) and --cover-16x9 (个人空间). Nothing is submitted without --yes: that run only prints a local plan and exits 3. --type selects a partition from the human-type list and reads it back; a missing name stops before 立即投稿. Success is 投稿成功 / 审核中, with a BV URL or identity unconfirmed. Bilibili has no private visibility on web upload: approved submissions go public. Use when the user asks to post to B站, 哔哩哔哩, B站投稿, or publish a video to bilibili./chatgpt-image-genExpand a rough image idea with the six-axis domain engine from codex-imagegen, then create one image on the free ChatGPT website inside Ego Lite. Login-check first. Soft-fail with exit 2 when ego-browser is missing, chatgpt.com is logged out, or login cannot be proven. enrich and generate without --yes are offline. --yes sends one prompt and saves the image to --out. Flowcharts and timelines are SVG, not images. Does not call codex exec and does not use an API key. Use when the user asks to generate an image, enrich a prompt, or use ChatGPT Images without a Codex subscription./douyin-videoPublish a local video to the Douyin creator center (creator.douyin.com) with Ego Lite via ego-browser. Login-check first. Title is a separate field of at most 30 characters. Success is a redirect to content management or a publish-success message. The caller supplies a local video file. This skill does not download video. Use when the user asks to post to 抖音, 抖音发视频, 发布到抖音创作者中心, or creator.douyin.com.npx claudepluginhub terryso/ego-skills --plugin ego-skillsOther plugins' skills for the same job