From glm
Use when assembling a prompt to send to z.ai's GLM-5.1 model — either as the body of a `glm-companion task` call, or when extending review/specialty prompt templates. Covers the prompt block library, GLM-5.1's response biases, recipes for common task shapes (review, refactor, design), and antipatterns that consistently degrade output quality.
How this skill is triggered — by the user, by Claude, or both
Slash command
/glm:glm-5-1-promptingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill is for *assembling* the prompt body. The transport (how the prompt reaches GLM) is covered by `[[glm-cli-runtime]]`; interpreting what comes back is `[[glm-result-handling]]`.
This skill is for assembling the prompt body. The transport (how the prompt reaches GLM) is covered by [[glm-cli-runtime]]; interpreting what comes back is [[glm-result-handling]].
GLM-5.1 is broadly compatible with Anthropic's prompt conventions (it speaks the Anthropic API over z.ai's endpoint), but in practice you'll get noticeably better output if you treat these as defaults:
## A, ## B" in the prompt and it follows reliably. Don't rely on JSON-mode coercion for v0.4.0 — the markdown contract works better.## Background
[Why this task exists, prior conversation summary if relevant.
GLM has NO conversation memory — every prompt is fresh.]
## Request
[Exactly what you want GLM to do. One paragraph.]
## Context
[Embedded files, diffs, logs. Quote precisely, not entire files.
Use fenced code blocks with language tags.]
Every dispatched prompt should fit this skeleton. Even a tiny "rename this variable" request benefits — ## Request forces you to state the goal cleanly.
For common pieces you'll glue together, see references/prompt-blocks.md. Examples:
## You are)## Output format)## Verify before answering)See references/glm-prompt-recipes.md. Covers:
See references/glm-prompt-antipatterns.md. The top offenders, summarized:
| Goal | Block |
|---|---|
| Want structured output | Add ## Output format with a literal template |
| Want depth | Add "Be thorough — at least N angles" |
| Want refusal on precondition fail | Add ## Refuse if block |
| Want GLM to verify before answering | Add ## Verify before answering block |
| Want one of N alternatives | Add ## Constraints with the rejection criteria |
[[glm-cli-runtime]] — how the assembled prompt actually reaches GLM.[[glm-result-handling]] — how to present what comes back.references/prompt-blocks.md, references/glm-prompt-recipes.md, references/glm-prompt-antipatterns.md for the long-form library.npx claudepluginhub yhzion/claude-plugin-models --plugin glmCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.