autoclip

autoclip is a cursor rule for Cursor from zhouxiaoka/autoclip. It costs 40 tokens per session (679 once invoked), scanned A, original, MIT.

A video-clipping workflow for turning YouTube, Bilibili, podcasts, and OBS game recordings into vertical short-video publishing kits.

In plain words
What is it for?
It helps create Shorts, TikTok, Douyin, X, and Xiaohongshu clips from long videos, podcasts, and gaming recordings.
Why use it?
It removes the manual work of finding highlights, formatting them for vertical video, adding captions and covers, and preparing posts for different platforms.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Codex; mentions Cursor.

Good fit It helps create Shorts, TikTok, Douyin, X, and Xiaohongshu clips from long videos, podcasts, and gaming recordings.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/zhouxiaoka/autoclip/autoclip
About the project

AutoClip is an AI video-processing system that downloads videos, finds notable moments, cuts them into clips, and groups the results into collections. It is for people who want to turn YouTube, Bilibili, or uploaded videos into highlight content, and its catalogue add-ons extend the system's workflows.

zhouxiaoka/autoclip · 21,590 stars · on GitHub · zhouxiaoka.github.io

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.

Clone the repo
git clone --depth 1 https://github.com/zhouxiaoka/autoclip

Made for: Cursor.

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 autoclip

README.md
[![agentmods](https://agentmods.dev/badge/rules/zhouxiaoka/autoclip/autoclip/github.svg)](https://agentmods.dev/rules/zhouxiaoka/autoclip/autoclip)
Your own site
<a href="https://agentmods.dev/rules/zhouxiaoka/autoclip/autoclip"><img src="https://agentmods.dev/badge/rules/zhouxiaoka/autoclip/autoclip/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for autoclip

Your own site · 80×15
<a href="https://agentmods.dev/rules/zhouxiaoka/autoclip/autoclip"><img src="https://agentmods.dev/badge/rules/zhouxiaoka/autoclip/autoclip.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00040 $0.00679
Opus 5.5 $0.00016 $0.00272
Sonnet 5.5 $0.00008 $0.00136
Haiku 4.5 $0.00004 $0.00068

Measured 2d ago against content hash 1561b3ab189d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

autoclip 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 2d ago.

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.

.cursor/rules/autoclip.mdc · 33 lines

How it starts

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

AutoClip Agent Workflow (Cursor Rule)

When the user asks to clip long videos, scan OBS/gaming recordings, extract podcast highlights, add stylized captions/covers, or build short-video publish kits:

1. Cold-Start Check

  • Prefer AutoClip MCP tools (uvx autoclip-mcp) when available; never shell out manually if MCP tools are present.
  • On the first call in a session (or if any tool fails), call check_environment and get_version first. If ffmpeg / ffprobe or model credentials are missing, guide the user clearly before starting a job.
  • Never hardcode or print API keys in tool arguments or chat; AutoClip reads the desktop app's saved settings or AUTOCLIP_API_KEY.

2. Choose the Right Flow

  • OBS / Gaming Highlights ("扫描昨晚的 OBS 录屏,找团灭和尖叫片段,导出 5 条竖屏 Shorts"):
    1. Call list_recordings(since_hours=24, limit=10) (or explicit directory) to locate the recording path.
    2. Call list_styles and choose a high-impact caption template (street, streamer_pip, streamer_split, etc.).
    3. Call start_quick_output(source=..., platforms=['youtube_shorts'], goal='highlight', replay_source='obs', max_clips=5, portrait_layout='crop', template='street', instruction='...').
    4. For 3h+ recordings without subtitles, optionally pass start_sec / end_sec to process a targeted window first.
  • Podcast / Interview / Course URL or Local Video:
    1. Call list_styles to pick an installed style (editorial, street, cinema, classic, or gallery templates).
    2. Call start_quick_output(source=..., platforms=[...], goal='content', template=..., max_clips=...).
  • Zero-API-Key Mode (Reuse Cursor / Claude / Codex Subscription):
    1. Call prepare_media(source=...) (0 LLM calls; downloads & transcribes locally).
    2. Read the returned srt_path / transcript directly in this Agent, choose clip timestamps + titles + hooks.
    3. Call render_from_plan(project_id=..., clips=[...], platforms=[...], template=..., export_kits=True).

3. Polling & Delivery

  • Poll get_quick_output_status(project_id) at poll_after_sec (default 10s), summarizing progress, stage, and eta.
  • Once terminal (completed / partial), call get_quick_output_status(project_id, export_kits=True) and deliver full local paths for: video, cover, post copy, and publish kit ZIP.
  • Batch jobs: submit strictly one video at a time (never in parallel).

Read the full file on GitHub · 33 lines

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. 2d ago First seen · 33 lines · 40 tokens per session scan A 1561b3ab189d

Subscribe to this mod's changes

autoclip is a cursor rule published in the GitHub repository zhouxiaoka/autoclip (21,590 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 679 once invoked, about $0.0002 per session on Opus 5.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-12-02.

Related

autoclip compared with cursor rules from other repositories

autoclip next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
autoclipzhouxiaoka/autoclipCursor rule22ktodayMITA40Cursor
gonavi-goSyngnat/GoNaviCursor rule2.1kyesterdayApache-2.0A0Cursor
gonavi-coreSyngnat/GoNaviCursor rule2.1kyesterdayApache-2.0A417Cursor
project4DA-Systems/4DACursor rule2todaynoneA1,868Cursor
fcop-protocoljoinwell52-AI/CodeFlowMu-openCursor rule23mo agoMITA34,375Cursor
ponytailDietrichGebert/ponytailCursor rule204k12d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor