Skip to content

AgriciDaniel/claude-shorts

shorts

Verified

Interactive longform-to-shortform video creator. Extracts viral-ready short clips from long videos using Claude as the orchestrator. Transcribes with faster-whisper (GPU), Claude scores and presents candidate segments interactively, user picks and adjusts, Remotion renders premium animated captions (Bold/Bounce/Clean styles), FFmpeg exports platform-optimized files (YouTube Shorts, TikTok, Instagram Reels). Use when user says "shorts", "short clips", "shortform", "extract clips", "tiktok from video", "reels from video", "vertical clips", or "create shorts".

FileKindSize
SKILL.mdskill md12.5 KB
references/caption-styles.mdmarkdown3.5 KB
references/platform-specs.mdmarkdown4.3 KB
references/remotion-patterns.mdmarkdown5.0 KB
references/scoring-rubric.mdmarkdown4.2 KB
scripts/compute_reframe.pyexecutablescript14.4 KB
scripts/detect_content.pyexecutablescript6.8 KB
scripts/detect_gpu.shexecutablescript1.9 KB
scripts/export.shexecutablescript5.5 KB
scripts/preflight.shexecutablescript3.4 KB
scripts/snap_boundaries.pyexecutablescript9.4 KB
scripts/transcribe.pyexecutablescript6.7 KB
scripts/validate.shexecutablescript4.6 KB

scripts/detect_gpu.sh

View on GitHub
#!/usr/bin/env bash
# Detect NVIDIA GPU and available NVENC encoders for FFmpeg
# Usage: bash scripts/detect_gpu.sh
# Output: JSON with gpu_name, driver, encoders[], cuda_filters[]
set -euo pipefail

json_output() {
    local gpu_name="${1:-none}"
    local driver="${2:-none}"
    local has_nvenc="${3:-false}"
    local encoders="${4:-[]}"
    local cuda_filters="${5:-[]}"

    cat <<EOF
{
  "gpu_detected": $([ "$gpu_name" != "none" ] && echo "true" || echo "false"),
  "gpu_name": "$gpu_name",
  "driver_version": "$driver",
  "nvenc_available": $has_nvenc,
  "encoders": $encoders,
  "cuda_filters": $cuda_filters,
  "recommendation": $([ "$has_nvenc" = "true" ] && echo '"Use NVENC for 5-10x faster encoding"' || echo '"No GPU detected, using CPU encoding"')
}
EOF
}

# Check for nvidia-smi
if ! command -v nvidia-smi &>/dev/null; then
    json_output
    exit 0
fi

# Get GPU info
GPU_NAME=$(nvidia-smi --query-gpu=name --format=csv,noheader 2>/dev/null | head -1 | xargs) || GPU_NAME="none"
DRIVER=$(nvidia-smi --query-gpu=driver_version --format=csv,noheader 2>/dev/null | head -1 | xargs) || DRIVER="none"

if [ "$GPU_NAME" = "none" ]; then
    json_output
    exit 0
fi

# Check FFmpeg NVENC encoders
ENCODERS="[]"
if command -v ffmpeg &>/dev/null; then
    ENC_LIST=$(ffmpeg -hide_banner -encoders 2>/dev/null | grep -oP '(h264|hevc|av1)_nvenc' | sort -u)
    if [ -n "$ENC_LIST" ]; then
        ENCODERS=$(echo "$ENC_LIST" | jq -R . | jq -s .)
    fi
fi

# Check CUDA filters
CUDA_FILTERS="[]"
if command -v ffmpeg &>/dev/null; then
    FILTER_LIST=$(ffmpeg -hide_banner -filters 2>/dev/null | grep -oP '\S*cuda\S*' | sort -u)
    if [ -n "$FILTER_LIST" ]; then
        CUDA_FILTERS=$(echo "$FILTER_LIST" | jq -R . | jq -s .)
    fi
fi

HAS_NVENC="false"
if [ "$ENCODERS" != "[]" ]; then
    HAS_NVENC="true"
fi

json_output "$GPU_NAME" "$DRIVER" "$HAS_NVENC" "$ENCODERS" "$CUDA_FILTERS"
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall