generate-identifiers
Qué hace
Construye reglas que limpian o corrigen los nombres de torrents y archivos antes de que MoviePilot los reconozca, y luego las guarda en tus ajustes. Está pensada para usuarios de MoviePilot cuyos contenidos se asocian con el título equivocado.
Cuándo usarla
- ✓Cuando un nombre de torrent o de archivo se reconoce como una película o serie equivocada.
- ✓Cuando quieres añadir una regla de identificador personalizada a MoviePilot.
- ✓Cuando quieres comprobar si una regla nueva duplica una existente.
Link de la skill
https://github.com/jxxghp/MoviePilot/blob/v3/skills/generate-identifiers/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Este nombre de archivo se asoció con la película equivocada. ¿Puedes crear una regla para que MoviePilot lo reconozca bien?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA lee tus reglas existentes, escribe una nueva en un formato compatible, comprueba que no haya duplicados y guarda la lista completa mediante la API de MoviePilot.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Generate Custom Identifiers (生成自定义识别词)
This skill helps generate custom identifier rules for MoviePilot's media recognition system. Custom identifiers preprocess torrent/file names before the recognition engine runs, correcting naming issues that cause misidentification.
Prerequisites
Use these moviepilot_api operations:
config.identifiers.get- Query all existing custom identifier rulesconfig.identifiers.update- Save the updated identifier list (replaces the full list)media.recognize- Test recognition of a torrent title or file path (optional)
Supported Rule Formats
There are four formats. Operators must have spaces on both sides.
1. Block Word (屏蔽词)
Removes matched text from the title. Supports regex.
SomeUniqueAlias
Use a bare block word only when the token itself is specific enough globally, or when the user explicitly wants a global cleanup rule.
2. Replacement (被替换词 => 替换词)
Regex substitution. The left side is a regex pattern, the right side is the replacement (supports backreferences).
被替换词 => 替换词
Special replacement for direct ID specification:
被替换词 => {[tmdbid=xxx;type=movie/tv;s=xxx;e=xxx]}
被替换词 => {[doubanid=xxx;type=movie/tv;s=xxx;e=xxx]}
Use the source-specific field that matches the target metadata provider:
tmdbid, doubanid, bangumiid, or anilistid. Where s (season) and e
(episode) are optional. For TMDB TV recognition, add g=xxx to specify an
episode group:
被替换词 => {[tmdbid=xxx;type=tv;g=xxx;s=xxx;e=xxx]}
3. Episode Offset (集偏移)
Shifts episode numbers found between the front and back delimiter words. EP is the placeholder for the original episode number.
前定位词 <> 后定位词 >> EP-12
4. Combined Replacement + Episode Offset
First performs replacement; episode offset only runs if replacement succeeded.
被替换词 => 替换词 && 前定位词 <> 后定位词 >> EP-12
Comments
Lines starting with # are comments and will be skipped during processing.
Important Rules for Writing Identifiers
- Regex support: All patterns support regular expressions. Special characters (
. * + ? ^ $ { } [ ] ( ) | \) must be escaped with\when matching literally. - Spaces matter: The operators
=>,<>,>>,&&must have spaces on both sides. - One rule per string: Each element in the identifiers list is one rule.
- EP placeholder: In episode offset expressions,
EPrepresents the original episode number. Common patterns:EP-12means subtract 12EP+5means add 5EP*2means multiply by 2
- Chinese number support: Episode offset handles Chinese numbers (一二三四五六七八九十).
- Empty replacement: Using nothing after
=>is equivalent to a block word.
Global Scope Guardrails
Custom identifiers are global. A new rule affects all future torrent/file recognition, not just the sample provided by the user.
When generating a new rule, default to the narrowest regex that still fixes the user's sample:
- Extract the sample's unique anchors first: wrong title alias, year, season/episode marker, group tag, source, resolution, release tag, file extension, or other distinctive fragments.
- The matching side should usually contain at least two meaningful anchors, and one of them should normally be the title alias or another highly distinctive identifier from the user-provided sample.
- Prefer matching the full wrong alias or a stable unique fragment from the sample, not a short generic substring.
- Avoid generic global rules such as bare
1080p,WEB-DL,中字,国配,REPACK,S01E01, or pure numbers unless the user explicitly wants a global cleanup rule. - If the rule only needs to fix one specific naming pattern, prefer a contextual replacement with capture groups/backreferences over a bare block word.
- For episode offset rules, the
前定位词and后定位词should use sample-specific context so the offset only runs on the intended naming pattern. - For direct media binding, the left side should match the user's specific wrong alias or naming pattern, not a broad season/episode pattern that could hit other media.
Narrow vs Broad Examples
Bad (too broad for a global rule):
REPACK
1080p
S01E01 => {[tmdbid=12345;type=tv;s=1;e=1]}
Better (scoped to the user's sample pattern):
(\[SubGroup\].*?My\.Show.*?2024.*?)REPACK => \1
Some\.Weird\.Name(?:\.2024)?(?:\.S01E\d+)? => {[tmdbid=12345;type=tv;s=1]}
\[Baha\] <> \[1080P\] >> EP-12
Be
Preguntas frecuentes
¿Se aplican las reglas a todo?
Sí. Los identificadores personalizados son globales, así que la habilidad aconseja mantener las reglas concretas para evitar efectos secundarios.
¿Qué tipos de reglas puede escribir?
Puede escribir palabras bloqueadas, reglas de sustitución y reglas que asocian un título con un ID concreto de TMDB, Douban, Bangumi o AniList.
¿Guardar reemplaza mis reglas existentes?
El guardado reemplaza la lista completa, así que la habilidad se asegura de incluir tus reglas existentes al guardar.
Detalles
Descripción original del autor
Use this skill when a user provides a torrent name or file name and wants to fix recognition issues, or asks to add/manage custom identifiers (自定义识别词). This skill generates identifier rules based on the WordsMatcher preprocessing logic, checks for duplicates against existing rules, and saves them through the structured MoviePilot API gateway. Because custom identifiers are global, generated rules must default to conservative, sample-specific regex patterns instead of broad matches unless the user explicitly wants global cleanup. Applicable scenarios include: 1) A torrent or file name is incorr
repo: jxxghp/MoviePilot
Popularidad
- Estrellas en GitHub
- 12 mil
- Posición en el ranking
- #11484
- Licencia
- GPL-3.0
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
anysearch
12 milAyuda a tu agente a buscar en la web en tiempo real, consultar fuentes especializadas como datos financieros o académicos, y leer páginas web completas.
browser-use
12 milAyuda a tu agente a abrir páginas web, leerlas, hacer clic en botones, rellenar formularios y tomar capturas para comprobar los resultados.
command-dispatch
12 milAyuda a tu agente a encontrar y ejecutar comandos de sistema o de plugins de MoviePilot a partir de una petición, después de comprobar qué comandos existen.
create-moviepilot-plugin
12 milAyuda a tu agente a crear o arreglar un plugin de MoviePilot, usando la estructura de archivos y la configuración correctas para la versión de MoviePilot.
Skills parecidas
knowledge-automation
394 milAyuda a tu agente a configurar una tarea recurrente que añade contenido nuevo a tu bóveda de Knowledge según un horario, y después comprueba que la tarea funciona.
knowledge-source-ingest
394 milAyuda a tu agente a mantener al día una bóveda de Knowledge con elementos nuevos de canales de chat, fuentes o buzones, sin volver a añadir lo que ya tiene.
benchmark
280 milAyuda a tu agente a medir la velocidad y el rendimiento del código. Es útil para asegurar que todo vaya rápido y encontrar problemas de lentitud.