Agent skill

Glm Delegation

by athola in athola/claude-night-market

Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap.

MITAuto-check passedAgent Workflows

Install Glm Delegation

skills CLI
$ npx skills add athola/claude-night-market --skill glm-delegation -a claude-code

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

GitHub CLI
$ gh skill install athola/claude-night-market glm-delegation --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/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/conjure/skills/glm-delegation .claude/skills/glm-delegation && 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
glm-delegation
GitHub stars
341
Token cost
~1.1k tokens
SKILL.md length
460 words
Files
1
Skills in repo
152
Repo updated
First seen
Licence
MIT

At a glance

Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap.

  • Delegation-core selects GLM
  • SKILL.md covers Overview, When To Use, When NOT To Use and Prerequisites, plus 4 more sections
  • Calls claude, npm and uv; reaches api.z.ai; needs ZAI_API_KEY and ANTHROPIC_AUTH_TOKEN
  • A 1M-token context is needed

What it does

Glm Delegation is an agent skill from athola/claude-night-market. Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap. Use when delegation-core selects GLM or a 1M-token context is needed.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. It works with Zhipu GLM. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Delegation-core selects GLM
  • A 1M-token context is needed

Example prompts

  • “Use the glm-delegation skill to delegate tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap”
  • “/glm-delegation”

Requirements

  • Python 3
  • Node.js
  • A credential in ZAI_API_KEY
  • A credential in ANTHROPIC_AUTH_TOKEN

What it can do on your machine

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

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • claude
    • npm
    • uv
    • make

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.z.ai

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ZAI_API_KEY
    • ANTHROPIC_AUTH_TOKEN
    • ANTHROPIC_API_KEY

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

Context cost

Glm Delegation loads about 1.1k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 460 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 460 words, ~1,147 tokens.

Download SKILL.mdSave it as .claude/skills/glm-delegation/SKILL.md (or your agent's skills folder).
name
glm-delegation
description
Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap. Use when delegation-core selects GLM or a 1M-token context is needed.
alwaysApply
false
category
delegation-implementation
tags
glm, zai, endpoint-swap, delegation, large-context
dependencies
delegation-core
tools
claude, delegation_executor.py
usage_patterns
endpoint-swap-integration, large-context-analysis, coding-plan-routing
complexity
intermediate
model_hint
standard
estimated_tokens
650
references
delegation-core/shared-shell-execution.md

GLM Delegation

Overview

GLM ships no CLI of its own. Z.ai serves an Anthropic-compatible endpoint, so the stock claude binary reaches GLM by changing two environment variables and nothing else. This is the endpoint-swap archetype: the redirection is environment, never argv.

GLM-5.3 was released on 2026-08-14 and claims a large coding gain over GLM-5.2 from post-training alone.

When To Use

  • delegation-core selected glm for the task
  • A 1M-token context is wanted through glm-5.3[1m]
  • A GLM Coding Plan subscription should absorb the work instead of the Anthropic quota

When NOT To Use

  • ZAI_API_KEY is unset. Verification refuses rather than sending an unauthenticated request
  • The claude binary is not installed. GLM has no fallback CLI
  • A pinned GLM-5.3 identifier is required in a script that must not break: see the rollout note below

Prerequisites

Installation

Only the stock Claude Code binary is needed:

bash
npm install -g @anthropic-ai/claude-code
Authentication
bash
export ZAI_API_KEY="<your-zai-key>"

The delegation service builds the child environment from that one variable. Z.ai requires ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. Putting the key in the wrong one is the most common way to get a 401 here, so the service names the correct variable and the overlay references ${ZAI_API_KEY} rather than storing a secret.

Quick Start

Using the shared delegation executor
bash
uv run python scripts/delegation_executor.py glm "Review this design" \
  --files docs/
Through the Makefile
bash
make -C plugins/conjure delegate-glm PROMPT='Review this design'
Direct CLI usage
bash
ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic \
ANTHROPIC_AUTH_TOKEN="$ZAI_API_KEY" \
claude --model glm-5.3 -p "Review this design"

Smart Delegation

glm declares code_execution and large_context strengths and ranks behind gemini, qwen and minimax in the candidate order. It declares glm-5.3 as its default, glm-5.3[1m] for large context, and glm-4.7 for fast response.

Show full SKILL.md (221 more words)Show less

GLM-Specific Details

PropertyValue
Binaryclaude (stock)
Base URLhttps://api.z.ai/api/anthropic
Auth variableANTHROPIC_AUTH_TOKEN, from ZAI_API_KEY
Default modelglm-5.3
Large contextglm-5.3[1m]
OpenAI-compatible URLhttps://api.z.ai/api/coding/paas/v4

The [1m] suffix is what unlocks the 1M-token window. Omitting it is a documented setup mistake. Pair it with CLAUDE_CODE_AUTO_COMPACT_WINDOW=1000000 when driving claude directly.

Two operational notes. Environment changes only take effect in a freshly launched shell, so an already-open session keeps reaching Anthropic's real endpoint. And claude shows a first-run trust prompt when it sees a non-Anthropic base URL. The -p non-interactive form this service uses does not block on it.

Rollout caveat: at the time of writing, docs.z.ai/devpack/latest-model documented glm-5.3 while docs.z.ai/guides/llm/glm-5.3 still read "coming soon" and the base connection page still showed glm-5.2. GLM_52 stays defined for that reason, and glm-4.7 remains the fast-response id rather than being promoted on assumption.

The same archetype generalizes: MiniMax, Moonshot/Kimi, DeepSeek and OpenRouter all expose Anthropic-compatible endpoints, so adding one is a ServiceConfig with a different base URL.

Exit Criteria

  • claude resolves on PATH and answers claude --version
  • ZAI_API_KEY is set, and --verify reports the service available rather than naming an unset variable
  • The built command contains no z.ai URL: the endpoint travels in the child environment, not argv
  • The child environment carries ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY
  • Output saved to delegations/glm/YYYYMMDD_HHMMSS.md
  • This skill ran because delegation-core selected glm

© athola, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/conjure/skills/glm-delegation of athola/claude-night-market.

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

Glm Delegation 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.

Glm Delegation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Glm Delegation this skillathola/claude-night-market341—~1.1kAutomated safety check: PassMIT
Consult Zaicentminmod/my-claude-code-setup2.7k—~4.1kAutomated safety check: PassMIT
Gh Issuestrpc-group/trpc-agent-go1.9k8 repos~8.7kAutomated safety check: PassApache-2.0
Auto Review Loop LLMAI4Scientist/nano-scientist1283 repos~1.8kAutomated safety check: WarnNone
Moai Ref Cross Model Auditmodu-ai/moai-adk1.2k—~4.8kAutomated safety check: PassApache-2.0
Higress Openclaw Integrationhigress-group/higress9.5k—~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Consult Zai

    centminmod/my-claude-code-setup

    Dual-AI code analysis pairing z.ai GLM 5.2 with Claude code-searcher — a lightweight two-model second opinion.

    2.7k GitHub stars~4.1k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed
  • Gh Issues

    trpc-group/trpc-agent-go

    Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments.

    1.9k GitHub starsUsed in 8 repos~8.7k tokens
    Agent WorkflowsAuto-check passed
  • Auto Review Loop LLM

    AI4Scientist/nano-scientist

    Autonomous research review loop using any OpenAI-compatible LLM API.

    128 GitHub starsUsed in 3 repos~1.8k tokens
    Agent WorkflowsAuto-check: warnings
  • Cross-model audit convergence reference for the plan-auditor and sync-auditor agents.

    1.2k GitHub stars~4.8k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Higress Openclaw Integration

    higress-group/higress

    Deploy and configure Higress AI Gateway for OpenClaw integration.

    9.5k GitHub stars~2.5k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Stands up the Weave model router in Docker Compose and drives it with claude -p against a real or mocked upstream to reproduce and verify routing and streaming behavior.

    5.6k GitHub stars~3.1k tokensUpdated today
    DevOps & CloudAuto-check: notes

More from athola/claude-night-market

All 152 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated yesterday
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Glm Delegation

What does Glm Delegation do?

Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap. Glm Delegation is an agent skill from athola/claude-night-market.x via the stock claude binary and an endpoint swap.

When should I use Glm Delegation?

Glm Delegation fits situations like: delegation-core selects GLM; A 1M-token context is needed.

How do I install Glm Delegation in Claude Code?

Run `npx skills add athola/claude-night-market --skill glm-delegation -a claude-code`. Or copy the skill folder (plugins/conjure/skills/glm-delegation in athola/claude-night-market) into .claude/skills/glm-delegation in your project. Claude Code loads it when a task matches its description.

How do I install Glm Delegation in Codex?

Run `npx skills add athola/claude-night-market --skill glm-delegation -a codex`. Or copy the skill folder (plugins/conjure/skills/glm-delegation in athola/claude-night-market) into .agents/skills/glm-delegation in your project. Codex loads it when a task matches its description.

Can I use Glm Delegation 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 athola/claude-night-market --skill glm-delegation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/glm-delegation, .gemini/skills/glm-delegation, .github/skills/glm-delegation and .opencode/skills/glm-delegation in your project.

What does Glm Delegation need to run?

Going by SKILL.md and its folder, Glm Delegation needs the command-line tools its instructions call (claude, npm, uv and make) and credentials named ZAI_API_KEY, ANTHROPIC_AUTH_TOKEN and ANTHROPIC_API_KEY. Our summary lists: Python 3; Node.js; A credential in ZAI_API_KEY; A credential in ANTHROPIC_AUTH_TOKEN.

Does Glm Delegation access the network?

SKILL.md names 1 domain. In commands or code: api.z.ai; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Glm Delegation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Glm Delegation use?

Glm Delegation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Glm Delegation use?

About 1.1k tokens (SKILL.md is roughly 4.6k 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 Glm Delegation?

Skills that share tags, products or a category with Glm Delegation: Consult Zai (centminmod/my-claude-code-setup, 2.7k stars), Gh Issues (trpc-group/trpc-agent-go, 1.9k stars), Auto Review Loop LLM (AI4Scientist/nano-scientist, 128 stars) and Moai Ref Cross Model Audit (modu-ai/moai-adk, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Glm Delegation?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 152 skills in this directory. The repository was last updated on October 9, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.