Communitygithub.com

ComeOnOliver/skillshub

口播视频转录和口误识别。生成审查稿和删除任务清单。触发词:剪口播、处理视频、识别口误

skillshub 是什么?

skillshub is a Claude Code agent skill that 口播视频转录和口误识别。生成审查稿和删除任务清单。触发词:剪口播、处理视频、识别口误.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/Ceeon/videocut-skills/%E5%89%AA%E5%8F%A3%E6%92%AD

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Clip Talking-Head v2

Volcengine Transcription + AI Speech Error Detection + Web Review

Quick Start

User: Help me clip this talking-head video
User: Process this video

Output Directory Structure

output/
└── YYYY-MM-DD_VideoName/
    ├── ClipTalkingHead/
    │   ├── 1_Transcription/
    │   │   ├── audio.mp3
    │   │   ├── volcengine_result.json
    │   │   └── subtitles_words.json
    │   ├── 2_Analysis/
    │   │   ├── readable.txt
    │   │   ├── auto_selected.json
    │   │   └── speech_error_analysis.md
    │   └── 3_Review/
    │       └── review.html
    └── Subtitles/
        └── …

Rule: If a folder already exists, reuse it; otherwise, create a new one.

Flow

0. Create output directory
    ↓
1. Extract audio (ffmpeg)
    ↓
2. Upload to get public URL (uguu.se)
    ↓
3. Volcengine API transcription
    ↓
4. Generate word-level subtitles (subtitles_words.json)
    ↓
5. AI analysis of speech errors/silences -> pre-selected list (auto_selected.json)
    ↓
6. Generate review webpage (review.html)
    ↓
7. Start review server, user confirms via web
    ↓
【Wait for user confirmation】 → click「Execute Clip」on web page or manually /clip

Execution Steps

Step 0: Create Output Directory

# Variable settings (adjust according to actual video)
VIDEO_PATH="/path/to/video.mp4"
VIDEO_NAME=$(basename "$VIDEO_PATH" .mp4)
DATE=$(date +%Y-%m-%d)
BASE_DIR="output/${DATE}_${VIDEO_NAME}/ClipTalkingHead"

# Create subdirectories
mkdir -p "$BASE_DIR/1_Transcription" "$BASE_DIR/2_Analysis" "$BASE_DIR/3_Review"
cd "$BASE_DIR"

Steps 1-3: Transcription

cd 1_Transcription

# 1. Extract audio (if filename has colons, prepend file: prefix)
ffmpeg -i "file:$VIDEO_PATH" -vn -acodec libmp3lame -y audio.mp3

# 2. Upload to get public URL
curl -s -F "files[][email protected]" https://uguu.se/upload
# Returns: {"success":true,"files":[{"url":"https://h.uguu.se/xxx.mp3"}]}

# 3. Invoke Volcengine API
SKILL_DIR="/Users/chengfeng/Desktop/AIos/EditingAgent/.claude/skills/ClipTalkingHead"
"$SKILL_DIR/scripts/volcengine_transcribe.sh" "https://h.uguu.se/xxx.mp3"
# Output: volcengine_result.json

Step 4: Generate Subtitles

node "$SKILL_DIR/scripts/generate_subtitles.js" volcengine_result.json
# Output: subtitles_words.json

cd ..

Step 5: Analyze Speech Errors (Script + AI)

5.1 Generate Readable Format

cd 2_Analysis

node -e "
const data = require('../1_Transcription/subtitles_words.json');
let output = [];
data.forEach((w, i) => {
  if (w.isGap) {
    const dur = (w.end - w.start).toFixed(2);
    if (dur >= 0.5) output.push(i + '|[Sil' + dur + 's]|' + w.start.toFixed(2) + '-' + w.end.toFixed(2));
  } else {
    output.push(i + '|' + w.text + '|' + w.start.toFixed(2) + '-' + w.end.toFixed(2));
  }
});
require('fs').writeFileSync('readable.txt', output.join('\\n'));
"

5.2 Read User Preferences

First, read all rule files in the UserPreferences/ directory.

5.3 Generate Sentence List (Critical Step)

Must split into sentences first, then analyze. Split into sentence list by silence:

node -e "
const data = require('../1_Transcription/subtitles_words.json');
let sentences = [];
let curr = { text: '', startIdx: -1, endIdx: -1 };

data.forEach((w, i) => {
  const isLongGap = w.isGap && (w.end - w.start) >= 0.5;
  if (isLongGap) {
    if (curr.text.length > 0) sentences.push({...curr});
    curr = { text: '', startIdx: -1, endIdx: -1 };
  } else if (!w.isGap) {
    if (curr.startIdx === -1) curr.startIdx = i;
    curr.text += w.text;
    curr.endIdx = i;
  }
});
if (curr.text.length > 0) sentences.push(curr);

sentences.forEach((s, i) => {
  console.log(i + '|' + s.startIdx + '-' + s.endIdx + '|' + s.text);
});
" > sentences.txt

5.4 Script Auto-Tagging Silences (Must Execute First)

node -e "
const words = require('../1_Transcription/subtitles_words.json');
const selected = [];
words.forEach((w, i) => {
  if (w.isGap && (w.end - w.start) >= 0.5) selected.push(i);
});
require('fs').writeFileSync('auto_selected.json', JSON.stringify(selected, null, 2));
console.log('Number of silences >= 0.5s:', selected.length);
"

→ Output auto_selected.json (only silence indices)

5.5 AI Analysis of Speech Errors (Append to auto_selected.json)

Detection Rules (priority order):

#TypeDetection MethodRemoval Range
1Repeated sentenceAdjacent sentences share ≥5 starting charactersShorter entire sentence
2One-sentence-apart repetitionWhen middle is a fragment, compare surrounding sentencesPrevious sentence + fragment
3FragmentHalf-spoken sentence + silenceEntire fragment
4Within-sentence repetitionPattern A + middle + AEarlier part
5Filler words'that that', 'like like' typeEarlier part
6Restart/correctionPartial repetition/negation correctionEarlier part
7Filler words'um', 'ah', 'like'Mark but do not auto-delete

Core Principles:

  • Split sentences first, then compare: Use sentences.txt to compare adjacent sentences
  • Delete entire sentence: Fragments and repeated sentences should be deleted as a whole, not just the anomalous words

Segmented Analysis (loop):

1. Read readable.txt offset=N limit=300
2. Combine with sentences.txt to analyze these 300 lines
3. Append speech error indices to auto_selected.json
4. Record in speech_error_analysis.md
5. N += 300, go back to step 1

🚨 Critical Warning: Line Number ≠ Index

readable.txt format: idx|content|time
                     ↑ Use this value

Line 1500 → "1568|[Sil1.02s]|..."  ← idx is 1568, not 1500!

Format of speech_error_analysis.md:

## Segment N (Line range)

| idx | Time | Type | Content | Action |
|-----|------|------|---------|--------|
| 65-75 | 15.80-17.66 | Repeated sentence | "This is a case I edited" | Delete |

Steps 6-7: Review

cd ../3_Review

# 6. Generate review webpage
node "$SKILL_DIR/scripts/generate_review.js" ../1_Transcription/subtitles_words.json ../2_Analysis/auto_selected.json ../1_Transcription/audio.mp3
# Output: review.html

# 7. Start review server
node "$SKILL_DIR/scripts/review_server.js" 8899 "$VIDEO_PATH"
# Open http://localhost:8899

Users on the webpage can:

  • Play video clips to confirm
  • Check/uncheck deletion items
  • Click「Execute Clip」

Data Format

subtitles_words.json

[
  {"text": "G", "start": 0.12, "end": 0.2, "isGap": false},
  {"text": "", "start": 6.78, "end": 7.48, "isGap": true}
]

auto_selected.json

[72, 85, 120]  // Pre-selected indices generated by Claude analysis

Configuration

Volcengine API Key

cd /Users/chengfeng/Desktop/AIos/EditingAgent/.claude/skills
cp .env.example .env
# Edit .env to fill in VOLCENGINE_API_KEY=xxx

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相关技能