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.
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.
npx agentmods add skills/coderwanfeng/python-office/video_editnpx skills add CoderWanFeng/python-office --skill video_editgit clone --depth 1 https://github.com/CoderWanFeng/python-officeWrote 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.
[](https://agentmods.dev/skills/coderwanfeng/python-office/video_edit)<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>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.
| Model | Per session | Once 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 |
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.
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.
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 个核心剪辑功能:
cut_video: 截取视频指定时间段片段cut_audio: 截取音频指定时间段片段crop_video: 裁剪视频画面的坐标区域与尺寸concat_videos: 多个视频文件顺序拼接合并concat_audios: 多个音频文件顺序拼接合并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' |
输出文件名 |
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.
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.
- yesterday First seen · 120 lines · 79 tokens per session scan A 8056841cc004
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.
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…
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.
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…
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…
wxjava-module-selector
根据微信公众号、小程序、微信支付、企业微信、开放平台、视频号或微信小店、腾讯企点和微信智能对话等业务场景,为用户选择合适的 WxJava Maven 模块、BOM 和示例入口。适用于用户询问“该用哪个模块”、依赖坐标、产品边界或单/多账号 Starter 选择时。.
wxjava-integration-guide
为 Java、Spring Boot 或 Solon 项目生成可验证的 WxJava 接入方案,包括模块选择、BOM、配置、最小调用代码以及单/多账号集成。适用于用户要求接入公众号、小程序、支付、企业微信、开放平台、视频号或微信小店时。.