Logotipo de Captions

Captions

Comunidad
fahniazz
captions

Crea subtítulos sincronizados palabra a palabra para un vídeo corto, como un clip independiente con fondo verde (y, opcionalmente, alfa ProRes 4444) para After Effects. Texto en mayúsculas blancas, contorno negro y sombra paralela marcada; 2-3 palabras cada vez, centradas en la parte inferior del encuadre, sin tapar la interfaz de YouTube Shorts y sincronizadas con la voz en off. Úsalo cuando el usuario pida captions, subtítulos, «caption greenscreen», «teks ikut suara» o «captions skill» para cualquier vídeo corto.

Descripción general

Editorfahniazz
Repositorioclaude-shorts-skills
Nombre de la habilidadcaptions
Estrellas
486
Forks
67
Archivos incluidos
Solo instrucciones
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por fahniazz en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Captions en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/fahniazz/claude-shorts-skills/tree/main/skills/captions
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fahniazz/claude-shorts-skills.git /tmp/claude-shorts-skills
mkdir -p .claude/skills
cp -r /tmp/claude-shorts-skills/skills/captions .claude/skills/captions
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Captions en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Captions automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Captions no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Captions (green screen, voice-synced, Shorts-safe)

The user edits captions further in After Effects, so captions are NEVER burned into the film. Deliver a separate clip on pure green (#00FF00), same size, fps and frame count as the film, which they key with Keylight.

Look (agreed 2026-11-11, from the user's "LOCKED" reference frame)

  • Position: centred horizontally; the middle of the capitals at 71.5 % of the frame height (under the character's chest). The middle of the capitals is the anchor, so a comma or a Q never moves a caption.
  • White, UPPERCASE, Arial Black, 3.2 % of frame height (82 px at 2560). It was 4 % at first, and the user asked for smaller so the Shorts UI never covers it. Black outline; hard black drop shadow down-right. The shadow is solid on purpose: a blurred/semi-transparent shadow keys into a green-grey fringe.
  • Punctuation is kept as in the script (MONA LISA. / PARIS, / 1911.). The user asked for it. --strip-punct removes trailing . , ; :
  • 2-3 words max per caption. A caption never crosses a sentence/comma or a pause in the voice, never ends on a glue word (the, of, with, yang, di, dengan ...), never splits a name (Mona | Lisa), avoids lone single words.
  • Each caption appears on the frame its first word is spoken (a 5-frame pop 0.85 -> 1.06 -> 1) and holds until the next one. After a pause in the voice it leaves 0.25 s after its last word.

YouTube Shorts safe zone (must hold for every caption, at the pop's 1.06 peak)

Conservative overlay areas:

  • action buttons: right 16 % of the width
  • title/channel/music: bottom 25 % of the height
  • top bar: top 8 % of the height

The script measures every caption's ink, prints WARNING outside the Shorts safe zone: <text> for any that cross a zone, and prints the reach (should be about "83.8 % of width, 69.8-74.0 % of height"). Chunks are split so they fit --max-width 0.68. A single long word is shrunk to fit. Never deliver with a WARNING: lower --size, or raise --y a little.

Model (token saving, approved 2026-11-12)

Run captions on Haiku 5.5 (remotion-renderer agent with model: "haiku", or a Haiku session): the script does the timing, splitting and safe-zone checks and prints them as text. Sonnet only to judge a new caption look; Opus only to change scripts/captions.py logic.

Steps

  1. Word timings: the short's stories/<slug>/voice/words.json. It is made by scripts/words_from_voice.py (faster-whisper aligned to the script's spelling). If it is missing, make it first: python scripts/words_from_voice.py <voice.wav> <SCRIPT.md> <words.json> [en|id]. The times must match the film's audio (the final's voice starts at 0 s).
  2. Test span first (the user wants to SEE a short test before a full render):
    python scripts/captions.py stories/<slug>/voice/words.json out/<slug>/captions --start 0 --dur 10 \
      --preview "out/<slug>/final/<Title>.mp4" --alpha
    It prints every caption with its times and the safe-zone check, and writes:
    • captions_green.mp4
    • captions_alpha.mov
    • captions.json
    • captions_preview.mp4 (film + keyed captions + sound, for checking only)
  3. Check:
    • Pull frames of the widest captions from the preview with the Shorts zones drawn in red (ffmpeg drawbox: x=iw0.84 from y=ih0.45, y=ih0.75 to the bottom, the top ih0.08), hstack them into one sheet, and look.
    • Look at one full-res crop for green fringe.
    • Send the user captions_preview.mp4, captions_green.mp4 and the printed caption list.
  4. After the user's OK, render full length with --dur <film frames / fps> so the clip has exactly the film's frame count (check with ffprobe -count_packets).

Knobs (scripts/captions.py)

  • --y 0.715: position
  • --size 0.032: font size
  • --max-width 0.68: widest caption
  • --font <ttf>
  • --max-words 3
  • --gap 0.30: pause that breaks a phrase
  • --hold 0.25
  • --lead 0: frames early
  • --no-pop
  • --lower: keep case
  • --strip-punct
  • --key-color FFD21F: the script's KEY WORDS (CAPS in words.json) in yellow, the rest white (mc-cobblegen 2026-11-24, user choice)
  • --alpha: ProRes 4444
  • --keep "the snail hole" (repeatable): never split this phrase across captions; a 4-word caption is allowed only for it and must still fit --max-width. Read the full caption list after every full render and fix names or phrases that got split. If a breath of just over 0.30 s splits a phrase, raise --gap to 0.35.

AE notes for the user

  • Green clip: use Keylight with Screen Colour = pure green. It is yuv444 crf 8, so edges stay clean.
  • Alpha .mov: needs no key at all (drop it on top). With --key-color prefer it: a green despill (Keylight too) pushes yellow toward orange; the preview then uses the alpha clip.
  • captions.json: lists each caption's text and in/out seconds, for rebuilding them as text layers.

Preguntas frecuentes

¿Qué hace la habilidad de IA Captions?

Crea subtítulos sincronizados palabra a palabra para un vídeo corto, como un clip independiente con fondo verde (y, opcionalmente, alfa ProRes 4444) para After Effects. Texto en mayúsculas blancas, contorno negro y sombra paralela marcada; 2-3 palabras cada vez, centradas en la parte inferior del encuadre, sin tapar la interfaz de YouTube Shorts y sincronizadas con la voz en off. Úsalo cuando el usuario pida captions, subtítulos, «caption greenscreen», «teks ikut suara» o «captions skill» para cualquier vídeo corto.

¿Por qué usar Captions en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Captions está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Captions en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/fahniazz/claude-shorts-skills/tree/main/skills/captions. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Captions?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Captions?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Captions con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Captions?

fahniazz la ha publicado en GitHub. Consulta el repositorio para conocer las condiciones de la licencia. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇