ASR
Implement speech-to-text (ASR/automatic speech recognition) capabilities using the z-ai-web-dev-sdk. Use this skill when the user…
Implement specialized video understanding capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze video content, understand motion and temporal sequences, extract information from video frames, describe video scenes, or perform video-based AI
Claude Code
$ npx -y skills add jjyaoao/helloagents --skill video-understand --agent claude-code
Codex
$ npx skills add jjyaoao/helloagents --skill video-understand -a codex -y
Cursor
$ npx skills add jjyaoao/helloagents --skill video-understand -a cursor -y
Gemini CLI
$ npx skills add jjyaoao/helloagents --skill video-understand -a gemini-cli -y
GitHub Copilot
$ npx skills add jjyaoao/helloagents --skill video-understand -a github-copilot -y
OpenCode
$ npx skills add jjyaoao/helloagents --skill video-understand -a opencode -y
Windsurf
$ npx skills add jjyaoao/helloagents --skill video-understand -a windsurf -y
name: video-understand description: Implement specialized video understanding capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze video content, understand motion and temporal sequences, extract information from video frames, describe video scenes, or perform video-based AI analysis. Optimized for MP4, AVI, MOV, and other common video formats. license: MIT
This skill provides specialized video understanding functionality using the z-ai-web-dev-sdk package, enabling AI models to analyze, describe, and extract information from video content including motion, temporal sequences, and scene changes.
**Skill Location**: `{project_path}/skills/video-understand`
this skill is located at above path in your project.
**Reference Scripts**: Example test scripts are available in the `{Skill Location}/scripts/` directory for quick testing and reference. See `{Skill Location}/scripts/video-understand.ts` for a working example.
Video Understanding focuses specifically on video content analysis, providing capabilities for:
**IMPORTANT**: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code.
The z-ai-web-dev-sdk package is already installed. Import it as shown in the examples below.
For quick video analysis tasks, you can use the z-ai CLI instead of writing code. This is ideal for simple video descriptions, testing, or automation.
# Analyze a video from URL z-ai vision --prompt "Summarize what happens in this video" --image "https://example.com/video.mp4" # Note: Use --image flag for video URLs as well z-ai vision -p "Describe the key events" -i "https://example.com/presentation.mp4"
# Analyze a local video file z-ai vision -p "What activities are shown in this video?" -i "./recording.mp4" # Save response to file z-ai vision -p "Provide a detailed summary" -i "./meeting.mp4" -o summary.json
# Complex scene understanding with thinking z-ai vision \ -p "Analyze this video and identify: 1) Main events, 2) People and their actions, 3) Timeline of key moments" \ -i "./event.mp4" \ --thinking \ -o analysis.json # Action detection z-ai vision \ -p "Identify all actions performed by people in this video" \ -i "./sports.mp4" \ --thinking
# Stream the video analysis z-ai vision -p "Describe this video content" -i "./video.mp4" --stream
**Use CLI for:**
**Use SDK for:**
For better performance and reliability with local videos, consider: 1. Uploading videos to a CDN and using URLs 2. For shorter videos, convert key frames to images for faster analysis 3. For long videos, consider chunking or sampling at intervals
import ZAI from 'z-ai-web-dev-sdk';
async function analyzeVideo(videoUrl, prompt) {
const zai = await ZAI.create();
const response = await zai.chat.completions.createVision({
messages: [
{
role: 'user',
content: [
{
type: 'text',
text: prompt
},
{
type: 'video_url',
video_url: {
url: videoUrl
}
}
]
}
],
thinking: { type: 'disabled' }
});
return response.choices[0]?.message?.content;
}
// Usage examples
const summary = await analyzeVideo(
'https://example.com/presentation.mp4',
'Summarize the key points presented in this video'
);
const actionDetection = await analyzeVideo(
'https://example.com/sports.mp4',
'Identify and describe all athletic actions performed in this video'
);import ZAI from 'z-ai-web-dev-sdk';
async function understandVideoScenes(videoUrl) {
const zai = await ZAI.create();
const prompt = `Analyze this video and provide:
1. Overall summary of the video content
2. Main scenes or segments (with approximate timestamps if possible)
3. Key people or characters and their roles
4. Important actions or events in chronological order
5. Setting and environment description
6. Overall mood or tone`;
const response = await zai.chat.completions.createVision({
messages: [
{
role: 'user',
content: [
{ type: 'text', text: prompt },
{ type: 'video_url', video_url: { url: videoUrl } }
]
}
],🤖 组件化多智能体框架 - Agent Loop、工具执行、上下文工程、知识检索与持久记忆 HelloAgents 是一个围绕原生 Function Calling 构建的组件化多智能体框架,从简单的工具调用循环,到具备上下文管理、知识检索、持久记忆与多智能体协作的应用,为智能体开发提供可组合的工程组件。 框架集成工具响应协议、上下文工程、会话持久化、子代理、Skills、流式输出与运行追踪,并提供 MCP 工具接入、RAG 与 GraphRAG、结构化用户画像、语义记忆检索和后台任务。通过
Implement speech-to-text (ASR/automatic speech recognition) capabilities using the z-ai-web-dev-sdk. Use this skill when the user…
Implement large language model (LLM) chat completions using the z-ai-web-dev-sdk. Use this skill when the user needs to build…
Implement text-to-speech (TTS) capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to convert text into…
Implement vision-based AI chat capabilities using the z-ai-web-dev-sdk. Use this skill when the user needs to analyze images,…
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration