Agent skill

Usage Query Skill

by zai-org in zai-org/zai-coding-plugins

Run the usage query script to retrieve account usage information for GLM Coding Plan.

Apache-2.0Auto-check: notes

Install Usage Query Skill

skills CLI
$ npx skills add zai-org/zai-coding-plugins --skill usage-query-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install zai-org/zai-coding-plugins usage-query-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/zai-org/zai-coding-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/glm-plan-usage/skills/usage-query-skill .claude/skills/usage-query-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
usage-query-skill
GitHub stars
129
Token cost
~237 tokens
SKILL.md length
95 words
Files
2 (incl. scripts)
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Run the usage query script to retrieve account usage information for GLM Coding Plan.

  • Invoked by usage-query-agent
  • SKILL.md covers Critical constraint and Execution
  • Runs JavaScript scripts from its folder; calls node

What it does

Usage Query Skill is an agent skill from zai-org/zai-coding-plugins. Run the usage query script to retrieve account usage information for GLM Coding Plan. Only use when invoked by usage-query-agent.

Its SKILL.md is about 240 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts.

The repository describes itself as: Z.ai Coding Plugins Marketplace in Claude Code. The licence is Apache-2.0.

When your agent uses it

  • Invoked by usage-query-agent

Example prompts

  • “/usage-query-skill”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash, Read

What it can do on your machine

Read from SKILL.md and the folder at commit 0446d0b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Usage Query Skill loads about 237 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 95 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~237

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from zai-org/zai-coding-plugins at commit 0446d0b, republished under its Apache-2.0 licence (© zai-org). 95 words, ~237 tokens.

Download SKILL.mdSave it as .claude/skills/usage-query-skill/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
usage-query-skill
description
Run the usage query script to retrieve account usage information for GLM Coding Plan. Only use when invoked by usage-query-agent.
allowed-tools
Bash, Read

Usage Query Skill

Execute the usage query script and return the result.

Critical constraint

Run the script exactly once — regardless of success or failure, execute it once and return the outcome.

Execution

Run the query

Use Node.js to execute the bundled script, pay attention to the path changes in the Windows:

bash
node scripts/query-usage.mjs

If your working directory is elsewhere, cd into the plugin root first or use an absolute path: node /absolute/path/to/glm-plan-usage/skills/usage-query-skill/scripts/query-usage.mjs

Return the result

After execution, return the result to the caller:

  • Success: display the usage payload (JSON)
  • Failure: show the error details and likely cause

© zai-org, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in plugins/glm-plan-usage/skills/usage-query-skill of zai-org/zai-coding-plugins.

  • SKILL.md
  • scripts/query-usage.mjs

Open the folder on GitHubat commit 0446d0b

Compare with similar skills

Usage Query Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Usage Query Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Usage Query Skill this skillzai-org/zai-coding-plugins129—~237Automated safety check: NotesApache-2.0
Expense Accountingsickn33/agentic-awesome-skills47k1 repos~6.5kAutomated safety check: PassMIT
Purchase Accountingsickn33/agentic-awesome-skills47k1 repos~5.1kAutomated safety check: PassMIT
Odoo Accounting Setupsickn33/agentic-awesome-skills47k2 repos~1kAutomated safety check: PassMIT
Iterative Retrievalaffaan-m/ECC275k7 repos~1.6kAutomated safety check: PassMIT
Accounting Software Selectionsickn33/agentic-awesome-skills47k1 repos~7.4kAutomated safety check: PassMIT

Similar skills

  • Expense Accounting

    sickn33/agentic-awesome-skills

    Expense accounting register: expense number and date, payee with PAN and VAT, bill reference, document type, amount with VAT, ledger account, approver and status.

    47k GitHub starsUsed in 1 repo~6.5k tokens
    Business, Finance & HRAuto-check passed
  • Purchase Accounting

    sickn33/agentic-awesome-skills

    Purchase register: supplier, invoice, gross amount, VAT and TDS, net payable, ledger account and payment balance.

    47k GitHub starsUsed in 1 repo~5.1k tokens
    Business, Finance & HRAuto-check passed
  • Odoo Accounting Setup

    sickn33/agentic-awesome-skills

    Expert guide for configuring Odoo Accounting: chart of accounts, journals, fiscal positions, taxes, payment terms, and bank reconciliation.

    47k GitHub starsUsed in 2 repos~1k tokens
    Business, Finance & HRAuto-check passed
  • Pattern for progressively refining context retrieval to solve the subagent context problem.

    275k GitHub starsUsed in 7 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • Accounting Software Selection

    sickn33/agentic-awesome-skills

    Scores shortlisted accounting packages against 57 evidence-backed fields, emitted as CSV, SQL, JSON Schema or Notion on request.

    47k GitHub starsUsed in 1 repo~7.4k tokens
    Business, Finance & HRAuto-check passed
  • Sales Accounting

    sickn33/agentic-awesome-skills

    Sales register: customer, invoice, gross amount, discount, VAT and TDS, net receivable, credit terms and balance.

    47k GitHub starsUsed in 1 repo~6.4k tokens
    Business, Finance & HRAuto-check passed

More from zai-org/zai-coding-plugins

  • Case Feedback Skill

    zai-org/zai-coding-plugins

    Run the case feedback script to submit feedback for the current conversation.

    129 GitHub stars~591 tokensUpdated 7 mo ago
    Auto-check: notes

Questions about Usage Query Skill

What does Usage Query Skill do?

Run the usage query script to retrieve account usage information for GLM Coding Plan. Usage Query Skill is an agent skill from zai-org/zai-coding-plugins. Run the usage query script to retrieve account usage information for GLM Coding Plan.

When should I use Usage Query Skill?

Usage Query Skill fits situations like: invoked by usage-query-agent.

How do I install Usage Query Skill in Claude Code?

Run `npx skills add zai-org/zai-coding-plugins --skill usage-query-skill -a claude-code`. Or copy the skill folder (plugins/glm-plan-usage/skills/usage-query-skill in zai-org/zai-coding-plugins) into .claude/skills/usage-query-skill in your project. Claude Code loads it when a task matches its description.

How do I install Usage Query Skill in Codex?

Run `npx skills add zai-org/zai-coding-plugins --skill usage-query-skill -a codex`. Or copy the skill folder (plugins/glm-plan-usage/skills/usage-query-skill in zai-org/zai-coding-plugins) into .agents/skills/usage-query-skill in your project. Codex loads it when a task matches its description.

Can I use Usage Query Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zai-org/zai-coding-plugins --skill usage-query-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/usage-query-skill, .gemini/skills/usage-query-skill, .github/skills/usage-query-skill and .opencode/skills/usage-query-skill in your project.

What does Usage Query Skill need to run?

Going by SKILL.md and its folder, Usage Query Skill needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash, Read.

Does Usage Query Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Usage Query Skill safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Usage Query Skill use?

Usage Query Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Usage Query Skill use?

About 237 tokens (SKILL.md is roughly 948 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Usage Query Skill?

Skills that share tags, products or a category with Usage Query Skill: Expense Accounting (sickn33/agentic-awesome-skills, 47k stars), Purchase Accounting (sickn33/agentic-awesome-skills, 47k stars), Odoo Accounting Setup (sickn33/agentic-awesome-skills, 47k stars) and Iterative Retrieval (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Usage Query Skill?

zai-org (a GitHub organization) maintains it in zai-org/zai-coding-plugins, which has 129 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on February 22, 2026.

Source: zai-org/zai-coding-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.