video_edit

video_edit is a skill for Claude Code, Codex from CoderWanFeng/python-office. It costs 79 tokens per session (1,384 once invoked), scanned A, original, Apache-2.0.

An audio and video editing toolkit for cutting clips, cropping video frames, joining files, and adding or replacing a video's audio track.

In plain words
What is it for?
Trimming videos or audio, cropping video images, combining multiple files, and adding background music or voice tracks.
Why use it?
It handles common media edits through code instead of requiring manual work in a video editor.

Skill for Claude CodeCodex

About the project

python-office is a Python library that provides ready-to-use modules for automating office and media tasks such as PDF, Word, Excel, PowerPoint, email, WeChat, images, video, and OCR. It is for people who want to automate common work activities with short Python calls, including users with little Python experience. Its catalogue skills expose the library's individual automation areas to coding agents.

CoderWanFeng/python-office · 1,348 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/coderwanfeng/python-office/video_edit
Any agent
npx skills add CoderWanFeng/python-office --skill video_edit
Clone the repo
git clone --depth 1 https://github.com/CoderWanFeng/python-office

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for video_edit

README.md
[![agentmods](https://agentmods.dev/badge/skills/coderwanfeng/python-office/video_edit.svg)](https://agentmods.dev/skills/coderwanfeng/python-office/video_edit)
Your own site
<a href="https://agentmods.dev/skills/coderwanfeng/python-office/video_edit"><img src="https://agentmods.dev/badge/skills/coderwanfeng/python-office/video_edit.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,384 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00079 $0.01384
Opus 5 $0.00039 $0.00692
Sonnet 5 $0.00016 $0.00277
Haiku 4.5 $0.00008 $0.00138

Measured yesterday against content hash 8056841cc004, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

video_edit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (__init__.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/video/video_edit/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

video_edit Skill

音视频剪辑功能集(截取、裁剪、拼接、配音/音轨替换)

功能描述

本 Skill 将所有音视频剪辑相关功能合并为一个统一的 API 模块,包含以下 6 个核心剪辑功能:

  1. cut_video: 截取视频指定时间段片段
  2. cut_audio: 截取音频指定时间段片段
  3. crop_video: 裁剪视频画面的坐标区域与尺寸
  4. concat_videos: 多个视频文件顺序拼接合并
  5. concat_audios: 多个音频文件顺序拼接合并
  6. add_audio_to_video: 视频合成/替换背景音乐或音频

所属分类

office/skills/video/video_edit/

调用方式

from skills.video.video_edit import (
    cut_video,
    cut_audio,
    crop_video,
    concat_videos,
    concat_audios,
    add_audio_to_video,
)

或从 skills.video 模块导入:

from skills.video import video_edit

video_edit.cut_video(video_path='./test.mp4', start_time='00:00:10', end_time='00:00:30')

功能与参数说明

1. 视频截取 cut_video

参数 类型 必填 默认值 说明
video_path str - 视频文件路径
start_time float/str 0 开始时间(秒数或格式如 '00:01:10'
end_time float/str None 结束时间(秒数或格式如 '00:02:30',默认结尾)
output_path str './' 输出目录
output_name str None 输出文件名(默认原名后加 _cut

2. 音频截取 cut_audio

参数 类型 必填 默认值 说明
audio_path str - 音频文件路径
start_time float/str 0 开始时间(秒数或格式如 '00:00:05'
end_time float/str None 结束时间
output_path str './' 输出目录
output_name str None 输出文件名

3. 画面裁剪 crop_video

参数 类型 必填 默认值 说明
video_path str - 视频文件路径
x1 int 0 左上角 x 坐标
y1 int 0 左上角 y 坐标
x2 int None 右下角 x 坐标
y2 int None 右下角 y 坐标
width int None 裁剪宽度(可代替 x2)
height int None 裁剪高度(可代替 y2)
output_path str './' 输出目录
output_name str None 输出文件名

4. 视频拼接 concat_videos

参数 类型 必填 默认值 说明
video_list list[str] - 视频路径列表
output_path str './' 输出目录
output_name str 'concat_video.mp4' 输出文件名

Read the full file on GitHub · 120 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 120 lines · 79 tokens per session scan A 8056841cc004

Subscribe to this mod's changes

video_edit is a skill published in the GitHub repository CoderWanFeng/python-office (1,348 stars, last pushed 16d ago), licensed Apache-2.0. It adds 79 tokens to every session and 1,384 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

docx

Read, create, or edit Microsoft Word .docx files — extract/summarize text and tables, generate reports/letters/memos with headings, tables, images, TOC and page numbers, do find-and-replace, or apply tracked changes (redlines) and comments. Use whenever the user has a .docx or wants a Word deliverable. Not for PDF…

HKUDS/DeepTutor · 91 tokens

pptx

Read, create, or edit PowerPoint .pptx decks — build slides from an outline, extract slide text/speaker notes, edit shapes/tables/charts, replace images, or export to PDF/images. Use whenever a .pptx (or .ppt) file is an input or output, or the user mentions a deck, slides, or a presentation.

HKUDS/DeepTutor · 76 tokens

xlsx

Read, create, or edit Excel spreadsheets (.xlsx/.xlsm) — sheet data, formulas, styles, charts, multi-sheet workbooks — and bulk .csv/.tsv tables; use whenever a spreadsheet is the input or the deliverable (extract/analyze data, add columns/formulas/formatting/charts, clean messy tables, build from scratch), but not…

HKUDS/DeepTutor · 88 tokens

analyzing-macro-malware-in-office-documents

Analyzes malicious VBA macros embedded in Microsoft Office documents (Word, Excel, PowerPoint) to identify download cradles, payload execution, persistence mechanisms, and anti-analysis techniques. Uses olevba, oledump, and VBA deobfuscation to extract the attack chain. Activates for requests involving Office macro…

mukul975/Anthropic-Cybersecurity-Skills · 90 tokens

wxjava-module-selector

根据微信公众号、小程序、微信支付、企业微信、开放平台、视频号或微信小店、腾讯企点和微信智能对话等业务场景,为用户选择合适的 WxJava Maven 模块、BOM 和示例入口。适用于用户询问“该用哪个模块”、依赖坐标、产品边界或单/多账号 Starter 选择时。.

binarywang/WxJava · 86 tokens

wxjava-integration-guide

为 Java、Spring Boot 或 Solon 项目生成可验证的 WxJava 接入方案,包括模块选择、BOM、配置、最小调用代码以及单/多账号集成。适用于用户要求接入公众号、小程序、支付、企业微信、开放平台、视频号或微信小店时。.

binarywang/WxJava · 72 tokens