set-core: Skill for Claude Code

.claude/skills/set/glm/SKILL.md

glm is a skill for Claude Code from tatargabor/set-core. It costs 115 tokens per session (2,981 once invoked), scanned A, original, MIT.

A runner for using Claude Code with z.ai GLM models, either for one request, repeated batch requests, or an interactive session. GLM models are language models provided by z.ai.

In plain words
What is it for?
Use it to check the setup, run prompts on GLM, start an interactive GLM session, inspect environment settings, or compare model runs on the same task.
Why use it?
It handles model selection and context-window settings explicitly and avoids silently switching back to another model when configuration is missing.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents; mentions Claude Code.

This is tatargabor/set-core's own configuration. It tells Claude Code how to work on set-core itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything set-core configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tatargabor/set-core. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tatargabor/set-core/main/.claude/skills/set/glm/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tatargabor/set-core

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for glm

README.md
[![agentmods](https://agentmods.dev/badge/skills/tatargabor/set-core/glm/github.svg)](https://agentmods.dev/skills/tatargabor/set-core/glm)
Your own site
<a href="https://agentmods.dev/skills/tatargabor/set-core/glm"><img src="https://agentmods.dev/badge/skills/tatargabor/set-core/glm/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for glm

Your own site · 80×15
<a href="https://agentmods.dev/skills/tatargabor/set-core/glm"><img src="https://agentmods.dev/badge/skills/tatargabor/set-core/glm.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,981 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 107
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium Data Exfiltration · line 69
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.02981
Opus 5.5 $0.00046 $0.01192
Sonnet 5.5 $0.00023 $0.00596
Haiku 4.5 $0.00012 $0.00298

Measured 3mo ago against content hash 7e0c099052f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

glm scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • glm — 100% identical, 0 lines differ
.claude/skills/set/glm/SKILL.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Running GLM — set-glm

The hard part is not switching the model — it is the context window. The Claude Code CLI does not know GLM's window, so it cuts to a conservative value (~200k) — and a long prompt either fails loudly or runs in a silent compact loop. This skill exists so that nobody has to measure that again.

⚠ Switching is always a USER decision. No automatics and no silent fallback: on missing config the runner stops, it does not fall back to Claude. A silent fallback is the worst outcome because the run would still finish — just inside the other framework, with nothing telling you which one.

Usage

set-glm --check                     # config + LIVE probe call — start here
set-glm -p "prompt"                 # one-shot call
set-glm -p "…" --output-format json # structured output (with token- and cost-fields)
set-glm                             # interactive session on GLM
set-glm --print-env                 # what it sets (token masked)

Every other flag passes through to claude unchanged (--allowedTools, --json-schema, --append-system-prompt, …). --model and --autocompact are only added when the caller did not supply them.

Configuration — ONE central file (since 2026-08-29)

~/.config/set-core/providers.json, mode 0600. This is the only place the framework reads a provider credential from; set-glm and the fleet's agent-owner call the same resolver, so the measured launch parameters live in one place and do not drift apart.

set-providers path        # where it is expected
set-providers show        # what is in it — token masked
set-providers migrate     # carry the old glm.env over, ONE command

Precedence has three levels: machine-level default → project override → the request itself. The model is decided per field; the credential and its endpoint are ONE block — a level either provides both or is rejected. A key is issued for one endpoint, and taking the two from different levels is a combination nobody has described: best case a 401, worst case the other bill.

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 199 lines · 115 tokens per session scan A 7e0c099052f4

Subscribe to this mod's changes

glm is a skill published in the GitHub repository tatargabor/set-core (36 stars, last pushed yesterday), licensed MIT. It adds 115 tokens to every session and 2,981 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-06.

Related

glm compared with skills from other repositories

glm next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
glmtatargabor/set-coreSkill36yesterdayMITA115Claude Code
forming-an-openrig-mental-modelmvschwarz/openrigSkill9.0ktodayApache-2.0A117Claude Code
orienting-to-an-inherited-seatmvschwarz/openrigSkill9.0ktodayApache-2.0A212Claude Code
agent-browsermvschwarz/openrigSkill9.0ktodayApache-2.0A108Claude Code
applying-a-permission-policymvschwarz/openrigSkill9.0ktodayApache-2.0A46Claude Code
messaging-the-humanmvschwarz/openrigSkill9.0ktodayApache-2.0A70Claude Code
openrig-upgrademvschwarz/openrigSkill9.0ktodayApache-2.0A43Claude Code, Codex