Automated summary
A powerful CLI tool for analyzing images, performing web searches, extracting web pages, and exploring GitHub repositories using Z.AI capabilities.
Strengths
- Advanced visual analysis (images, videos, OCR, UI-to-code conversion)
- Real-time web search with domain and recency filtering
- Web page extraction to Markdown, ideal for LLM ingestion
- GitHub code exploration with tree browsing and search
Limitations
- Requires a Z.AI API key, adding external dependency
- Advanced features (MCP, Code Mode) are documented separately, slowing onboarding
- Default output is data-only, which may confuse new users
Best for developers needing to analyze screenshots, search real-time info, or browse source code quickly from the terminal.
Avoid if no Z.AI API key is available or if you need a non-CLI integration (prefer direct API).
Security analysis
SafeThe skill is a documentation reference for the ZAI CLI tool. It does not contain any destructive, exfiltrating, or obfuscated instructions. It simply describes how to use the CLI with an API key and various subcommands. No dangerous payloads or unsafe directives are present.
No concerns found
How this analysis is madeExamples
Analyze the screenshot at ./screenshot.png for any errors or issues using npx zai-cli vision analyze.Search the web for the latest React 19 features with npx zai-cli search 'React 19 new features' --count 5.Explore the directory structure of the openai/codex repo up to depth 2 using npx zai-cli repo tree openai/codex --depth 2.name: zai-cli description: | Z.AI CLI providing:
- Vision: image/video analysis, OCR, UI-to-code, error diagnosis (GLM-4.6V)
- Search: real-time web search with domain/recency filtering
- Reader: web page to markdown extraction
- Repo: GitHub code search and reading via ZRead
- Tools: MCP tool discovery and raw calls
- Code: TypeScript tool chaining Use for visual content analysis, web search, page reading, or GitHub exploration. Requires Z_AI_API_KEY.
ZAI CLI
Access Z.AI capabilities via npx zai-cli. The CLI is self-documenting - use --help at any level.
Setup
export Z_AI_API_KEY="your-api-key"
Get a key at: https://z.ai/manage-apikey/apikey-list
Commands
| Command | Purpose | Help |
|---------|---------|------|
| vision | Analyze images, screenshots, videos | --help for 8 subcommands |
| search | Real-time web search | --help for filtering options |
| read | Fetch web pages as markdown | --help for format options |
| repo | GitHub code search and reading | --help for tree/search/read |
| tools | List available MCP tools | |
| tool | Show tool schema | |
| call | Raw MCP tool invocation | |
| code | TypeScript tool chaining | |
| doctor | Check setup and connectivity | |
Quick Start
# Analyze an image
npx zai-cli vision analyze ./screenshot.png "What errors do you see?"
# Search the web
npx zai-cli search "React 19 new features" --count 5
# Read a web page
npx zai-cli read https://docs.example.com/api
npx zai-cli read https://docs.example.com/api --with-images-summary --no-gfm
# Explore a GitHub repo
npx zai-cli repo search facebook/react "server components"
npx zai-cli repo search openai/codex "config" --language en
npx zai-cli repo tree openai/codex --path codex-rs --depth 2
# Check setup
npx zai-cli doctor
Output
Default: data-only (raw output for token efficiency).
Use --output-format json for { success, data, timestamp } wrapping.
Advanced
For raw MCP tool calls (tools, tool, call), Code Mode, and performance tuning (cache/retries),
see references/advanced.md.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/z-ai-cli-multimodal-analysis-search-mm5t8cib/download' --output '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md.part' && mv '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md.part' '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Setup
export Z_AI_API_KEY="your-api-key"
Get a key at: https://z.ai/manage-apikey/apikey-list
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md' && test -s '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/zai-cli' && cp -R '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib' '.claude/skills/zai-cli'Cursor
test -f '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md' && test -s '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/zai-cli' && cp -R '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib' '.cursor/skills/zai-cli'Codex
test -f '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md' && test -s '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/zai-cli' && cp -R '.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib' '.agents/skills/zai-cli'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib'openskills read 'z-ai-cli-multimodal-analysis-search-mm5t8cib'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/z-ai-cli-multimodal-analysis-search-mm5t8cib/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.