开发工具/ZAI命令行/SKILL.md
Z.AI CLI 提供: - 视觉:图像/视频分析、OCR、UI 到代码、错误诊断(GLM-4.6V) - 搜索:带有域名/时间过滤的实时网络搜索 - 阅读器:网页到 Markdown 提取 - 仓库:通过 ZRead 进行 GitHub 代码搜索和阅读 - 工具:MCP 工具发现和原始调用 - 代码:TypeScript 工具链 用于视觉内容分析、网络搜索、页面阅读或 GitHub 探索。需要 Z_AI_API_KEY。
npx skillsauth add tiandiyiqi/ai-skills ZAI命令行Install this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Access Z.AI capabilities via npx zai-cli. The CLI is self-documenting - use --help at any level.
export Z_AI_API_KEY="your-api-key"
Get a key at: https://z.ai/manage-apikey/apikey-list
| 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 | |
# 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
Default: data-only (raw output for token efficiency).
Use --output-format json for { success, data, timestamp } wrapping.
For raw MCP tool calls (tools, tool, call), Code Mode, and performance tuning (cache/retries),
see references/advanced.md.
business
为 Slack 优化创建动画 GIF 的知识和工具。提供约束、验证工具和动画概念。当用户请求为 Slack 创建动画 GIF 时使用,如"为我制作一个关于 X 做 Y 的 Slack GIF"。
development
从列表、电子表格或 Google 表格中为赠品、抽奖和竞赛随机选择获奖者。确保公平、公正的选择和透明度。
development
为你的项目生成创意域名创意,并检查多个顶级域名(.com、.io、.dev、.ai 等)的可用性。节省数小时的头脑风暴和手动检查时间。
development
使用 Twitter 开源算法洞察分析和优化推文以获得最大覆盖范围。根据推荐系统对内容排名的方式重写和编辑用户推文,以提升参与度和可见性。