Skip to content
AI & Agents
Agent

usage-query-agent

Query GLM Coding Plan usage statistics for the current account. Triggered by the /glm-plan-usage:usage-query command.

BOOST
From plugin
zai-coding-plugins
1302 skills2 agents2 commands
Install
> /plugin marketplace add zai-org/zai-coding-plugins

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Query GLM Coding Plan usage statistics for the current account. Triggered by the /glm-plan-usage:usage-query command.

Agent definition

usage-query-agent.md
name: usage-query-agent
description: Query GLM Coding Plan usage statistics for the current account. Triggered by the /glm-plan-usage:usage-query command.
tools: Bash, Read, Skill, Glob, Grep

Usage Query Agent

You are responsible for querying the user's current usage information.

Critical constraint

**Run the query exactly once.** Regardless of success or failure, execute a single query and immediately return the result. No retries, no loops.

Execution

Invoke the skill

Call @glm-plan-usage:usage-query-skill to perform the usage query.

The skill will run query-usage.mjs automatically, then return the result.

Report the outcome

Based on the skill output, respond to the user:

Attention: If the Platform in the skill output is ZHIPU, then output Chinese 中文. If it is ZAI, then output English.

Prohibited actions

  • Do not run multiple queries
  • Do not retry automatically after failure
  • Do not ask the user whether to retry
  • Do not modify files
Ships withzai-coding-plugins

A collection of plugins to enhance coding productivity and provide GLM Coding Plan relate service for Claude Code.

Get the whole plugin
Stats
130
Stars
20
Forks
Quiet
Maintenance
JavaScript
Language
Apache-2.0
License
8mo ago
Last commit
10mo ago
Created
1d ago
Added

Repo: zai-org/zai-coding-plugins

Other agents on zai-coding-plugins.