AGENT SKILL

funclip

Guide FunClip ASR video/audio clipping, LLM-assisted clipping providers, and release packaging workflows.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
funclip
license
MIT
metadata
{ "disco-role": "operating" }
description
Guide FunClip ASR video/audio clipping, LLM-assisted clipping providers, and release packaging workflows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

FunClip repo skill

Use this skill when the task names FunClip or asks for ASR-driven video/audio clipping, transcript timestamp clipping, speaker clipping, subtitle generation, LLM-assisted highlight selection, or FunClip release packaging.

FunClip is a checkout-oriented Python application. Prefer the documented script entry points (python funclip/launch.py and python funclip/videoclipper.py) instead of assuming a packaged console entry point exists.

Start here

  1. Read references/installation-and-runtime.md before installing, launching, or debugging optional media/model/provider dependencies.
  2. Run scripts/check_environment.py with --repo-root <funclip-checkout> when you need a no-network import, requirement, model-selection, and launch-policy smoke check.
  3. Read references/troubleshooting.md for cross-cutting install/import, model-download, optional-provider, media-binary, and repo-maintenance routing failures.
  4. Read references/repo-provenance.md before deciding whether this skill is stale for a checkout.

Sub-skill routes

User task Go to Why
Launch the Gradio app, choose Paraformer/Fun-ASR-Nano/SenseVoice, bind a remote server, run CLI stage 1/2, clip by transcript text or speaker, generate SRT/subtitle overlays, or debug no-match behavior clip-workflows Owns the ASR, media, subtitle, CLI, and VideoClipper workflows.
Configure GPT/Qwen/DeepSeek/AtlasCloud/MiniMax/LiteLLM/g4f/TwelveLabs Pegasus, fix API-key/base-url/model-prefix errors, or make LLM output parseable by AI Clip llm-providers Owns provider routing, prompt format, timestamp normalization, and no-live-call route smoke tests.
Build FunClip release archives, regenerate SHA256SUMS, align VERSION/README/release notes, inspect release workflow failures, or validate issue/PR templates release-packaging Owns versioned source archives, checksums, GitHub release contracts, and maintainer validation.

Minimal install and smoke check

From a FunClip checkout, install the declared runtime dependencies:

python -m pip install -r requirements.txt

For a no-network local smoke check after installation, run the bundled helper from the generated skill tree:

python scripts/check_environment.py --repo-root <funclip-checkout> --check-binaries

That helper verifies the requirements markers, imports core modules with the checkout's funclip/ directory on sys.path, checks launch kwargs, and uses a fake AutoModel to verify model selection without downloading weights.

Important boundaries

  • Model weights are not bundled with FunClip. First real recognition may need network access or a pre-populated model cache.
  • Live provider calls need provider-specific API keys and are not checked by the deterministic smoke scripts.
  • Full video clipping and subtitle burn-in can require ffmpeg, ImageMagick, and a usable font.
  • --listen binds all interfaces but does not create a public Gradio link; add --share only when that is intended.
  • For programmatic use from a checkout, add the checkout's funclip/ directory to sys.path before importing launch, videoclipper, or llm.* helpers, because the source files use top-level imports.

Verification anchors

Useful native candidates for a current checkout include:

  • tests/test_model_selection.py, tests/test_duplicate_text_matching.py, tests/test_recognition_result_compat.py, tests/test_gradio_runtime_compat.py, and tests/test_funasr_requirement.py for ASR/clip workflows.
  • tests/test_openai_api.py, tests/test_minimax_api.py, tests/test_litellm_api.py, tests/test_twelvelabs_pegasus.py, and tests/test_minimax_launch_integration.py for LLM provider routing.
  • tests/test_release_contract.py and tests/test_github_templates.py for release packaging and maintainer templates.

Run native tests only after choosing the relevant workflow and preparing the matching optional dependencies. The bundled smoke scripts are safer first checks because they avoid model downloads, credentials, and long media processing.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351