← Back to Skills Marketplace
jeeaay

Coding Plan Usage

by jeeaay · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
178
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install coding-plan-usage
Description
Queries the remaining hours of Alibaba Cloud Coding Plan using a command-line tool. Invoke when user asks for Coding Plan usage.
README (SKILL.md)

Coding Plan Usage Helper

用于查询阿里云 Coding Plan 余量的命令行工具。

何时使用

在以下场景主动调用:

  • 用户希望“查询阿里云 Coding Plan余量”

执行流程

  1. 直接运行 Python 脚本 scripts/aliyun.py
  2. 若运行时报 agent-browser 不存在:先判断是否沙盒环境;仅真实环境缺失时安装依赖,否则提示用户:沙盒中找不到依赖是正常现象
  3. 输出并解释结果

注意运行时的路径,切换到包含脚本的目录或使用完整路径执行。

如何运行

直接运行 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"
  }
}

成功读取到用量后,程序会自动关闭浏览器会话。

Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install coding-plan-usage
  3. After installation, invoke the skill by name or use /coding-plan-usage
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug coding-plan-usage
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 178 downloads so far.

How do I install Coding Plan Usage?

Run "/install coding-plan-usage" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Coding Plan Usage free?

Yes, Coding Plan Usage is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Coding Plan Usage support?

Coding Plan Usage is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Coding Plan Usage?

It is built and maintained by jeeaay (@jeeaay); the current version is v1.0.3.

💬 Comments