consult-zai

consult-zai is a skill for Claude Code from centminmod/my-claude-code-setup. It costs 44 tokens per session (4,254 once invoked), scanned B, a copy of consult-codex, MIT.

A second-opinion code analysis workflow that compares an answer from z.ai’s GLM 5.2 with analysis from Claude’s code-search tool. It is intended for questions where more than one view of the code may help.

In plain words
What is it for?
Investigating complex code issues, debugging, reviewing changes, considering designs, and locating specific implementations across a codebase.
Why use it?
It helps expose missed details in difficult debugging, architecture, review, or code-search problems.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: reads .claude/ paths; mentions subagents; names the NotebookEdit tool.

Good fit Investigating complex code issues, debugging, reviewing changes, considering designs, and locating specific implementations across a codebase.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/centminmod/my-claude-code-setup/consult-zai
About the project

my-claude-code-setup is a starter configuration and memory-bank template for Claude Code, providing project guidance and reusable setup for Claude Code sessions. Developers use it to organize Claude Code behavior, memory, commands, skills, subagents, hooks, and settings. The catalogue entries are components of this Claude Code workflow.

centminmod/my-claude-code-setup · 2,751 stars · on GitHub · threads.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add centminmod/my-claude-code-setup --skill consult-zai
Clone the repo
git clone --depth 1 https://github.com/centminmod/my-claude-code-setup

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 consult-zai

README.md
[![agentmods](https://agentmods.dev/badge/skills/centminmod/my-claude-code-setup/consult-zai/github.svg)](https://agentmods.dev/skills/centminmod/my-claude-code-setup/consult-zai)
Your own site
<a href="https://agentmods.dev/skills/centminmod/my-claude-code-setup/consult-zai"><img src="https://agentmods.dev/badge/skills/centminmod/my-claude-code-setup/consult-zai/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 consult-zai

Your own site · 80×15
<a href="https://agentmods.dev/skills/centminmod/my-claude-code-setup/consult-zai"><img src="https://agentmods.dev/badge/skills/centminmod/my-claude-code-setup/consult-zai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod 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.00044 $0.04254
Opus 5.5 $0.00018 $0.01702
Sonnet 5.5 $0.00009 $0.00851
Haiku 4.5 $0.00004 $0.00425

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

Security

Grade B, and why

consult-zai scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`~/.claude/settings.json` allow-list would otherwise re-permit write-capable Bash on the
Origin

This is a copy

88% identical to consult-codex — 313 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/consult-zai/SKILL.md · 322 lines

How it starts

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

Dual-AI Consultation: z.ai GLM 5.2 vs Code-Searcher

You orchestrate consultation between z.ai's GLM 5.2 model and Claude's code-searcher to provide comprehensive analysis with comparison.

When to Use This Skill

High value queries:

  • Complex code analysis requiring multiple perspectives
  • Debugging difficult issues
  • Architecture/design questions
  • Code review requests
  • Finding specific implementations across a codebase

Lower value (single AI may suffice):

  • Simple syntax questions
  • Basic file lookups
  • Straightforward documentation queries

Workflow

When the user asks a code question:

1. Build Enhanced Prompt

Problem-restate pre-flight (non-blocking). Before building the prompt, emit ONE line restating the code question you are about to dispatch (and, only if genuinely ambiguous, the alternative reading), then proceed:

Reading this as: «one-line restatement» (alt: «other reading», if any) — proceeding to consult; interrupt now to correct the framing.

Emit-and-proceed — do not ask-and-wait (the orchestrator can't reliably detect its own misframing). One line, and it guards the whole dispatch against a wrong-framing run.

Wrap the user's question with structured output requirements:

[USER_QUESTION]

=== Analysis Guidelines ===

**Structure your response with:**
1. **Summary:** 2-3 sentence overview
2. **Key Findings:** bullet points of discoveries
3. **Evidence:** file paths with line numbers (format: `file:line` or `file:start-end`)
4. **Confidence:** High/Medium/Low with reasoning
5. **Limitations:** what couldn't be determined

**Line Number Requirements:**
- ALWAYS include specific line numbers when referencing code
- Use format: `path/to/file.ext:42` or `path/to/file.ext:42-58`
- For multiple references: list each on a SEPARATE line with its own file path
  (avoid comma-separated multi-citation like `file.ts:45, 67, 98`)
- Include brief code snippets for key findings

**Examples of good citations:**
- "The authentication check at `src/auth/validate.ts:127-134`"
- "Configuration loaded from `config/settings.json:15`"
- "Error handling in `lib/errors.ts:45`, `lib/errors.ts:67-72`, and `lib/errors.ts:98`"

**Citations Index (required):** end your response with a fenced block, one line per
Key Finding (repeat each block entry's `file:line` inline in the finding as usual):
```citations
<finding #> — path/to/file.ext:LINE[-END]
```

Read the full file on GitHub · 322 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 · 322 lines · 44 tokens per session scan B de640403ea14

Subscribe to this mod's changes

consult-zai is a skill published in the GitHub repository centminmod/my-claude-code-setup (2,751 stars, last pushed 7d ago), licensed MIT. It adds 44 tokens to every session and 4,254 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 88% identical to consult-codex, differing in 313 lines, and is treated as a copy.

Related

consult-zai compared with skills from other repositories

consult-zai next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
consult-zaicentminmod/my-claude-code-setupSkill2.8k7d agoMITB44Claude Code
code-healthdavepoon/buildwithclaudeSkill3.8kyesterdayMITA35Claude Code
review-findingsdavepoon/buildwithclaudeSkill3.8kyesterdayMITA43Claude Code
octocode-roastbgauryy/octocodeSkill969todayMITA71Claude Code, Codex
OCR Review-to-Approval Loopspencermarx/open-code-reviewSkill39519d agoApache-2.0A213Claude Code
ocrspencermarx/open-code-reviewSkill39519d agoApache-2.0A44Claude Code, Codex
generic-fullstack-code-reviewertravisjneuman/.claudeSkill115yesterdayMITA64Claude Code