用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Vesely/skills --skill ai-gateway命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Upload an image, GIF or video into a GitHub PR or issue body and get back a github.com/user-attachments URL. `gh` has no native command for this — this is the same endpoint the web UI's drag-and-drop uses, so the asset inherits the repo's visibility instead of sitting on a public host. Use when embedding a screenshot, before/after collage, screencast or UI proof into a PR description, an issue, or a review comment. Triggers on "put this screenshot in the PR", "attach this to the issue", "embed this video in the PR description", "upload proof to GitHub", "nahraj to do PR".
Generates annotated browser screenshots of every UI change as the primary PR deliverable — plus an optional GIF screencast for multi-step or animated flows — then writes a concise PR title and description ready to paste into GitHub, and optional data-model documentation notes. Reviews the current branch diff against the default branch, captures every affected user-facing surface with the agent-browser CLI, marks the changed elements in red, stitches the shots into a collage with ImageMagick, hosts it through a configured uploader (or leaves it local for drag-and-drop), and embeds it in the PR body with per-panel captions. Use whenever the user wants to write a PR description, document branch changes for a reviewer, create a PR writeup, prepare a handoff, or says things like "write PR description", "prep the PR", "PR handoff", "document my changes", "screenshot my PR", or "generate PR notes". Also trigger when the user just says "PR" in the context of finishing or shipping work.
Turn an agent-browser session into a polished product-demo video — fully local, free, no cloud upload. Records the browser to WebM while logging every action, then composites an MP4 with automatic zoom-to-click, a smooth animated cursor with trail, click ripples, a keystroke overlay (keycast), idle trimming, chapters (burned-in lower-thirds plus embedded MP4 chapters), and a gradient background with a rounded, shadowed browser card. Use this whenever the user wants to record or generate a demo video, screencast, walkthrough, "how it works" clip, or animated screen recording of a web flow — especially one that looks like Screen Studio (auto-zoom, keystrokes, chapters) but produced by the agent itself. Trigger on "record a demo", "make a screencast", "generate a walkthrough video", "demo video with zooms and chapters", "record the signup/onboarding flow". Built on the agent-browser CLI; requires ffmpeg and Node. Not for live screen capture of the whole desktop — it records a browser flow the agent drives.
基于 SOC 职业分类
正在显示 SKILL.md
| name | ai-gateway |
| description | Generate text, images, and video from the CLI via the Vercel AI Gateway (one key, hundreds of models). |
| allowed-tools | ["Bash(ai-gateway:*)","Bash(npm install -g @vesely/ai-gateway-cli)","Bash(npm list -g @vesely/ai-gateway-cli)","Bash(which ai-gateway)","Read"] |
| when_to_use | Use when the user (or your own task) needs to generate text, images, or video via an AI model and prefers a quick CLI call over writing SDK code. Trigger phrases: "generate an image of...", "make an image with AI", "make a video of...", "generate a clip of...", "ask an LLM to...", "use ai-gateway to...", "draft text with AI", "summarize via CLI", "use a Vercel AI Gateway model". Examples: "Generate a hero image of a snow leopard and save it as hero.png", "Use Nano Banana to make a logo", "Make a 5-second video of waves at sunset", "Pipe this README into an LLM and get a summary". Skip when the user wants to integrate AI into source code (use the AI SDK directly), or when they need streaming UI / tool-use / multi-turn chat. |
| argument-hint | <text|image|video> <prompt> [-m model] [-o file] [-n count] [--duration s] [--aspect r] [--resolution r] |
A thin wrapper around the ai-gateway CLI (https://vercel.com/ai-gateway) for one-shot text, image, and video generation. Use it whenever a single CLI call beats writing SDK code.
xai/grok-4.1-fast-non-reasoning (cheap + capable)google/imagen-4.0-fast-generate-001xai/grok-imagine-video-m <model-id>. Browse with ai-gateway models --type image|language|video.bfl/flux-2-pro, bfl/flux-pro-1.1, openai/gpt-image-2, google/imagen-4.0-generate-001, xai/grok-imagine-image.google/gemini-2.5-flash-image (Nano Banana), google/gemini-3.1-flash-image-preview (Nano Banana 2), google/gemini-3-pro-image.anthropic/claude-opus-4.6, openai/gpt-5.4, xai/grok-4.3.xai/grok-imagine-video (cheap), bytedance/seedance-v1.0-lite-t2v, google/veo-3.1-fast-generate-001 (premium, audio), klingai/kling-v2.6-t2v.Run which ai-gateway. If missing, install: npm install -g @vesely/ai-gateway-cli.
Success criteria: which ai-gateway returns a path.
The CLI looks for the key in this order: --key flag → AI_GATEWAY_API_KEY env → ~/.config/ai-gateway-cli/config.json. If AI_GATEWAY_API_KEY is unset AND the config file is missing/empty, ask the user for it once: tell them to either export AI_GATEWAY_API_KEY=... or run ai-gateway config set key <value>. Get a key at https://vercel.com/ai-gateway.
Success criteria: ai-gateway config shows a key (masked) OR $AI_GATEWAY_API_KEY is set.
Text (streamed to stdout):
ai-gateway "<prompt>" # default model
ai-gateway -m anthropic/claude-opus-4.6 "<prompt>"
ai-gateway --json "<prompt>" # full JSON response (.text, .usage)
cat file.md | ai-gateway "<prompt>" # piped stdin is prepended as context
Image (saves to disk, prints path):
ai-gateway image "<prompt>" # ./ai-image-<timestamp>.png
ai-gateway image -o output.png "<prompt>" # custom path
ai-gateway image -n 4 "<prompt>" # 4 images, auto-suffixed
ai-gateway image -m bfl/flux-2-pro -o cover.png "<prompt>" # specific image-only model
ai-gateway image -m google/gemini-2.5-flash-image "<prompt>" # Nano Banana (auto-routed via chat completions)
Video (saves .mp4 to disk, multi-minute job — prints a spinner with elapsed time):
ai-gateway video "<prompt>" # default model, ./ai-video-<timestamp>.mp4
ai-gateway video -o clip.mp4 --duration 5 "<prompt>" # 5-second clip
ai-gateway video -m google/veo-3.1-fast-generate-001 \
--aspect 9:16 --resolution 1080p -o vertical.mp4 "<prompt>" # vertical 1080p Veo
ai-gateway video --json --duration 5 "<prompt>" # JSON with cost + elapsed
Success criteria:
Saved: <absolute path> and the file exists on disk.Saved: <absolute path> to a non-empty .mp4 (or .webm).For text: relay the model output to the user (it's already on stdout). For image: report the absolute path(s) printed by the CLI. Do not re-encode or open the file unless asked.
Success criteria: User has the answer/file path.
~/.config/ai-gateway-cli/config.json directly.n times against /v1/chat/completions since chat has no native batch — be patient with -n 4.ai-gateway models --search <substring> to discover it instead of guessing.--json to the image/video command if the user wants a human-readable result; it suppresses the friendly "Saved: ..." lines.xai/grok-4.1-fast-reasoning, anthropic/claude-opus-4.6, or openai/gpt-5.4 via -m.Unauthorized (401) → key is wrong/expired. Reset with ai-gateway config set key <value>.Not found (404). Unknown model? → run ai-gateway models --search <hint>.Model "<id>" does not support image generation → the chosen model isn't an image-only model and lacks the image-generation tag. Pick from ai-gateway models --type image or use a multimodal LLM listed above.Video generation requires a minimum balance of $10 → top up at https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Fmodal%3Dtop-up before retrying.