# Usage Query Skill

> Run the usage query script to retrieve account usage information for GLM Coding Plan. Only use when invoked by usage-query-agent. Use when this capability is needed.

- Skill: `tomevault-io/usage-query-skill` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/usage-query-skill`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/usage-query-skill/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/usage-query-skill

---


# 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

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/zai-org) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

