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 chainingUse for visual content analysis, web search, page reading, or GitHub exploration. Requires Z_AI_API_KEY.
Installation
Details
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
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
# Explore a GitHub repo
npx zai-cli repo search facebook/react "server components"
# Check setup
npx zai-cli doctor
Output
Default: data-only (raw output for token efficiency).
Use --output-format json for { success, data, timestamp } wrapping.
More by numman-ali
View allExample skill demonstrating Anthropic SKILL.md format. Load when learning to create skills or testing the OpenSkills loader.
CLI tool for managing team tasks outside of Claude Code's built-in tools. Use this skill when tasks need to be archived, bulk cleaned up, or when you need a high-level view of task dependencies. Triggers: (1) User asks to clean up or archive completed tasks, (2) Too many resolved tasks cluttering the list, (3) Need to visualize task dependencies, (4) Want to manage tasks via command line.
MANDATORY - You must load this skill before doing anything else. This defines how you operate.
dev-browser: Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.