Skip to content
Agentmart
Submit a tool

agentic-edit

Run an agentic / LLM-driven cut-down on a long video — "make a 60-second highlight reel of this hour-long stream", "cut the boring parts from this lecture"…

Skill by danielrosehill

IndexedMIT★ 6
Write a review

Chalk Labs

Need help deploying agentic-edit?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/danielrosehill-agentic-edit

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run an agentic / LLM-driven cut-down on a long video — "make a 60-second highlight reel of this hour-long stream", "cut the boring parts from this lecture", "find the best moments in this footage". Wraps `video-use` (browser-use) by default; falls back to `VideoAgent` (HKU) for research-grade understanding. Both come from the shared uv venv set up by `deps-setup`. Outputs a cut-list (timestamps + reasons) and an optional rendered preview.

Use cases: ml, writing, research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/agentic-edit

Tools it pre-approves 15

From allowed-tools in SKILL.md: the agent may use these without asking you each time.

  • Bash(test
  • *),
  • Bash(ls
  • Bash(mkdir
  • Bash(jq
  • Bash(basename
  • Bash(dirname
  • Bash(realpath
  • Bash(command
  • Bash(ffmpeg
  • Bash(ffprobe
  • Bash(*/python
Show 3 more
  • Bash(python3
  • Read,
  • Write

What's inside

Skill name
agentic-edit
Description
Run an agentic / LLM-driven cut-down on a long video — "make a 60-second highlight reel of this hour-long stream", "cut the boring parts from this lecture", "find the best moments in this footage". Wraps `video-use` (browser-use) by default; falls back to `VideoAgent` (HKU) for research-grade understanding. Both come from the shared uv venv set up by `deps-setup`. Outputs a cut-list (timestamps + reasons) and an optional rendered preview.
License
MIT
Allowed tools
Bash(test, *),, Bash(ls, *),, Bash(mkdir, *),, Bash(jq, *),, Bash(basename, *),, Bash(dirname, *),, Bash(realpath, *),, Bash(command, *),, Bash(ffmpeg, *),, Bash(ffprobe, *),, Bash(*/python, *),, Bash(python3, *),, Read,, Write
Instructions
118 lines in SKILL.md · view on GitHub

Before installing

  • Pre-approves some shell commands

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Agentic Edit

Drive an LLM-based agent over a long video to produce a shorter cut. The agent watches the video (or samples it), proposes timestamped segments worth keeping, and emits a cut-list. The skill optionally renders the cut.

## Procedure

### 1. Resolve backend

Two backends, picked by user preference (or by what's installed):

| Backend | Best for | Source |
|---|---|---|
| `video-use` | conversational queries over a video, fast iteration | `pip install git+https://github.com/browser-use/video-use` |
| `VideoAgent` | research-grade multi-agent reasoning over long video | `git clone https://github.com/HKUDS/VideoAgent` |

```bash
DATA_DIR="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/video-editing"
PREFS="$DATA_DIR/preferences.json"
VENV=$(jq -r '.python_venv // empty' "$PREFS" 2>/dev/null)
PYBIN="$VENV/bin/python"
test -x "$PYBIN" || { echo "No plugin venv. Run deps-setup first."; exit 1; }

# default backend = video-use if installed
if "$PYBIN" -c 'import video_use' 2>/dev/null; then
  BACKEND="video-use"
elif [ -d "$DATA_DIR/tools/VideoAgent" ]; then
  BACKEND="VideoAgent"
else
  echo "Neither video-use nor VideoAgent is installed. Run deps-setup."; exit 1
fi
```

### 2. Inputs

| Field | Default |
|-------|---------|
| Source video | required |
| Goal / prompt | required ("60-second highlight reel", "remove the audience-Q&A sections", etc.) |
| Target duration | optional — only used as a hint to the agent |
| Mode | `cut-list-only` (default) or `cut-list-and-render` |
| Backend | auto (preferences.preferred_video_agent_backend) |

### 3. Drive the backend

**3a. video-use** — uses its own conversational loop. Send the prompt + video path; capture the structured cut list.

```bash
"$PYBIN" - <<PY
from video_use import VideoAgent  # API may differ — check installed version
agent = VideoAgent(video_path="$SRC")
result = agent.ask("$GOAL — return JSON list of {start, end, reason}")
import json; print(json.dumps(result, indent=2))
PY
```

> **Version drift warning.** `video-use` is young and its API is not yet stable. Before assuming the snippet above runs, the skill should `"$PYBIN" -c 'import video_use; print(video_use.__version__, dir(video_use))'` and adapt. If the import path or method signature differs, surface that to the user and ask them to upgrade or pin a version.

**3b. VideoAgent** — invoked from its cloned repo:

```bash
cd "$DATA_DIR/tools/VideoAgent"
"$PYBIN" -m videoagent.cli --video "$SRC" --task "$GOAL" --output /tmp/cutlist.json
```

Exact entrypoint depends on the upstream layout — read the repo's README at first use and write the resolved command back to `preferences.tools.VideoAgent.entrypoint` so it's cached.

### 4. Validate the cut list

Expect JSON: `[{ "start": "00:01:23.4", "end": "00:01:55.0", "reason": "..." }, ...]`. Reject and re-prompt if:

- timestamps overlap or run backwards
- any cut extends past the source duration (compare against `ffprobe -show_entries format=duration`)
- total kept duration exceeds the requested target by >20% (warn but allow)

### 5. Save the cut-list

```bash
mkdir -p "$DATA_DIR/cut-lists"
OUT_JSON="$DATA_DIR/cut-lists/$(basename "$SRC")_$(date +%s).json"
cp /tmp/cutlist.json "$OUT_JSON"
```

### 6. (Optional) Render the cut

If mode = `cut-list-and-render`:

```bash
# Build a concat list of trimmed segments
TMPDIR=$(mktemp -d)
i=0
for row in $(jq -c '.[]' "$OUT_JSON"); do
  s=$(jq -r .start <<<"$row"); e=$(jq -r .end <<<"$row")
  ffmpeg -y -ss "$s" -to "$e" -i "$SRC" -c copy "$TMPDIR/seg_$i.mp4"
  echo "file '$TMPDIR/seg_$i.mp4'" >> "$TMPDIR/list.txt"
  i=$((i+1))
done
ffmpeg -f concat -safe 0 -i "$TMPDIR/list.txt" -c copy "$OUT_VIDEO"
```

Stream-copy by default; if the segments fail to concat losslessly (timestamp gaps, codec quirks), fall back to a re-encode through `render-from-library`.

### 7. Confirm

Print:
- backend used + version
- cut-list path + segment count + total kept duration
- (if rendered) output video path, duration, size
- token / time cost reported by the backend, if available

Suggest follow-ups: review the cut-list manually, refine the goal and re-run, or run `generate-deliverables` on the rendered cut.

## Notes

- This skill is a **driver**, not the agent itself. All semantic decisions come from the backend.
- Treat all proposed cuts as a draft. Always show the cut-list to the user before rendering.
- For repeatable / declarative cuts (no LLM), use `editly-render` instead.

From danielrosehill/Claude-Video-Editor-Plugin, MIT.

More from danielrosehill/Claude-Video-Editor-Plugin

Signals

Stars
6
Forks
0
Open issues
0
Last commit (this folder)
Apr 30, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from danielrosehill

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get agentic-edit running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying agentic-edit?

CallGet help
Cite this page

agentic-edit skill. Agent Mart. https://agentmart.dev/skills/danielrosehill-agentic-edit (last updated 2026-10-24)