← 返回 Skills 市场
178
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install coding-plan-usage
功能描述
Queries the remaining hours of Alibaba Cloud Coding Plan using a command-line tool. Invoke when user asks for Coding Plan usage.
使用说明 (SKILL.md)
Coding Plan Usage Helper
用于查询阿里云 Coding Plan 余量的命令行工具。
何时使用
在以下场景主动调用:
- 用户希望“查询阿里云 Coding Plan余量”
执行流程
- 直接运行 Python 脚本
scripts/aliyun.py - 若运行时报
agent-browser不存在:先判断是否沙盒环境;仅真实环境缺失时安装依赖,否则提示用户:沙盒中找不到依赖是正常现象 - 输出并解释结果
注意运行时的路径,切换到包含脚本的目录或使用完整路径执行。
如何运行
直接运行 Python 脚本 scripts/aliyun.py:
macOS / Linux:
python scripts/aliyun.py
Windows(PowerShell):
python .\scripts\aliyun.py
如果命令存在,直接进入“输出解释规则”。
输出解释规则
- 未登录:会自动打开阿里云首页并进入登录页,保存截图到当前目录
aliyu-login.png,终端提示你扫码;扫码后再次运行即可。如果频道允许发送图片 你可以直接发给用户,否则可以帮用户打开图片。
截图完成后脚本会停止运行,当用户回复已经完成扫码登陆后,再次运行即可。
示例输出:
Already logged in: false
Entered login page: true
请使用阿里云 App 扫码完成登录后,再次执行此程序以查询用量。
Login screenshot: /opt/coding-plan-usage/aliyu-login.png
Scan completed: false
- 已登录:会自动进入 Coding Plan 页面并输出余量 JSON。
示例输出:
{
"hours5": {
"usage": "0%",
"resetTime": "2026-03-14 18:27:45"
},
"week": {
"usage": "27%",
"resetTime": "2026-03-16 00:00:00"
},
"month": {
"usage": "15%",
"resetTime": "2026-04-09 00:00:00"
}
}
成功读取到用量后,程序会自动关闭浏览器会话。
安全使用建议
This skill appears to be what it claims, but take these precautions before installing/running: 1) Inspect scripts/aliyun.py locally (it will run agent-browser commands and read .env files). 2) Ensure your working directory or repository .env does not contain secrets you don’t want the script to read. 3) If agent-browser is missing, the README suggests running npm install -g agent-browser — installing global npm packages downloads code from the network; verify the package source and prefer installing in an isolated environment or container. 4) Be aware the script will save a login screenshot file in the current directory and may persist browser session data via agent-browser. 5) If you are unsure, run the script in a sandboxed VM/container or ask for the full (untruncated) source to review the rest of the code.
能力评估
Purpose & Capability
The code and instructions align with the description: it automates a browser (via the agent-browser CLI) to open Aliyun pages, take screenshots, and parse usage JSON. Asking for agent-browser and using browsing automation is proportionate to querying the Coding Plan.
Instruction Scope
SKILL.md instructs running scripts/aliyun.py and handling missing agent-browser (with a sandbox check). The README and code reveal additional behaviors: the script reads .env files (parent of scripts/ or current working directory), may save a login screenshot to the working directory, and may launch/close persistent agent-browser sessions. These file reads/writes and session persistence are related to the task but should be expected by the user.
Install Mechanism
There is no install spec in the registry (instruction-only). The README recommends npm install -g agent-browser if the binary is missing. That is an external network install of a global npm package (normal for this tool but potentially risky if you don't trust the package source).
Credentials
The skill declares no required env vars, but the script will read environment variables and parse .env files for AGENT_BROWSER_PATH, AGENT_BROWSER_DEV_MODE, and AGENT_BROWSER_SESSION_NAME. Because it searches for and parses .env files in parent and working directories, it could read other sensitive variables present there (even if it doesn't use them). This is proportionate to configurable CLI path/session behavior, but you should ensure your .env doesn't contain secrets you don't want the script to read.
Persistence & Privilege
always:false and no modifications to other skills or system-wide agent settings. The script may reuse an agent-browser session name (persisting login cookies/localStorage) which is normal for browser automation, but be aware that login state may be stored by agent-browser outside the script.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install coding-plan-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/coding-plan-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added login QR code detection and waiting logic.
v1.0.2
Version 1.0.2 of coding-plan-usage
- Return the full path of the screenshot upon login.
v1.0.1
- Switched from a command-line binary and installation scripts to a single Python script (scripts/aliyun.py) for querying Alibaba Cloud Coding Plan usage.
- Simplified usage: now run the Python script directly, removing all previous platform-specific install/download scripts.
- Updated documentation to reflect new usage instructions and streamlined execution flow.
- Added a sample .env.example for environment configuration.
- Removed all references and content related to the old binary and its installation scripts.
v1.0.0
Initial release of coding-plan-usage.
- Provides a command-line tool to check remaining hours on Alibaba Cloud Coding Plan.
- Automatically attempts to find, download, and run the tool for macOS, Linux, and Windows.
- Handles login flow with screenshot support for QR code scanning when not logged in.
- Interprets and explains both login prompts and quota output in JSON format.
- Includes detailed instructions for script use and troubleshooting across platforms.
元数据
常见问题
Coding Plan Usage 是什么?
Queries the remaining hours of Alibaba Cloud Coding Plan using a command-line tool. Invoke when user asks for Coding Plan usage. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 178 次。
如何安装 Coding Plan Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install coding-plan-usage」即可一键安装,无需额外配置。
Coding Plan Usage 是免费的吗?
是的,Coding Plan Usage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Coding Plan Usage 支持哪些平台?
Coding Plan Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Coding Plan Usage?
由 jeeaay(@jeeaay)开发并维护,当前版本 v1.0.3。
推荐 Skills