Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

transfer-failed-retry传输失败重试

Agent Skill

transfer-failed-retry 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

930

周安装

38

GitHub Stars

10,976

下载量

298
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:transfer-failed-retry(传输失败重试)
来源仓库:https://github.com/jxxghp/moviepilot
仓库路径:skills/transfer-failed-retry
安装命令:
npx skills add https://github.com/jxxghp/moviepilot --skill transfer-failed-retry
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jxxghp/moviepilot --skill transfer-failed-retry

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 建议结合原始 README 核验具体用法和功能边界。

SKILL.md

Transfer Failed Retry (整理失败重试)

This skill handles retrying failed file transfers/organizations. When file transfers fail, you can use this skill to analyze the failures, remove stale history records, and attempt to re-identify and re-organize the files. It supports both single-file and batch retry scenarios.

Prerequisites

You need the following tools:

  • query_transfer_history - Query transfer history records
  • delete_transfer_history - Delete a transfer history record
  • recognize_media - Recognize media info from file path or title
  • transfer_file - Transfer/organize files to the media library
  • search_media - Search TMDB for media information

Workflow

Step 1: Query the Failed Transfer History

Use query_transfer_history to get details about the failed record(s). Filter by status failed to find the specific records.

If you are given a specific history record ID (or multiple IDs), query with those IDs to understand the failure context:

query_transfer_history(status="failed")

From each record, extract the following key information:

  • id: The history record ID
  • src: Source file path
  • title: The recognized title (may be incorrect)
  • errmsg: The error message explaining why the transfer failed
  • type: Media type (movie/tv)
  • tmdbid: TMDB ID (if available)
  • seasons/episodes: Season/episode info (if TV show)
  • downloader: Which downloader was used
  • download_hash: The torrent hash

Step 2: Analyze the Failure Reason

Common failure reasons and how to handle them:

Error MessageCauseSolution
未识别到媒体信息File name couldn't be matched to any mediaUse search_media to find the correct TMDB ID, then use transfer_file with explicit tmdbid
源目录不存在Source file was moved or deletedCannot retry - skip this record
目标路径不存在Target directory issueRetry transfer - the directory config may have been fixed
文件已存在Target file already existsMay need to use force mode or skip
未找到有效的集数信息Episode number not recognizedUse recognize_media with the file path to get better metadata, or specify season/episode in transfer_file
未获取到转移目录设置No transfer directory configured for this media typeCannot auto-fix - notify user about directory configuration

Step 3: Delete the Failed History Record(s)

Before retrying, you must delete the old failed history record(s). The system skips files that already have a transfer history entry (even failed ones).

delete_transfer_history(history_id=<record_id>)

Step 4: Re-identify and Re-organize

Based on the failure analysis in Step 2:

Case A: Unrecognized Media (未识别到媒体信息)

  1. Try recognizing the media from file path: recognize_media(path="<source_file_path>")
  2. If recognition fails, try searching TMDB with keywords extracted from the filename: search_media(title="<extracted_title>", media_type="movie" or "tv")
  3. Once you have the correct TMDB ID, re-transfer with explicit identification: transfer_file(file_path="<source_path>", tmdbid=<tmdb_id>, media_type="movie" or "tv")

Case B: Transfer Error (file operation failed)

Simply retry the transfer:

transfer_file(file_path="<source_path>")

Case C: Episode Recognition Issue

For TV shows where episode info couldn't be determined:

  1. Use recognize_media to get better metadata
  2. Re-transfer with explicit season info: transfer_file(file_path="<source_path>", tmdbid=<tmdb_id>, media_type="tv", season=<season_number>)

Step 5: Report Result

After the retry attempt, report the result:

  • If successful: Confirm the file(s) have been organized correctly
  • If failed again: Report the new error and suggest manual intervention
  • For batch operations: Report a summary (e.g., "成功 8/10,失败 2/10")

Batch Processing (批量处理)

When multiple files from the same source fail simultaneously (e.g., 10 episodes of the same TV show all fail with the same error), the system groups them and triggers a single batch retry.

Key Optimization Rules for Batch Processing:

  1. Identify media ONCE, apply to ALL files: Since batch files typically belong to the same media, perform media recognition (recognize_media) or search (search_media) only ONCE using the first file, then reuse the result (tmdbid, media_type) for all subsequent files.
  2. Process each file individually for delete + transfer: Even though the media identity is shared, you must still:

- Delete each failed history record individually - Transfer each file individually (they have different source paths)

  1. Stop early if root cause is unfixable: If the first file fails due to an unfixable issue (e.g., missing directory configuration), skip all remaining files with the same error rather than retrying each one.
  2. Process in order: Handle files sequentially to avoid race conditions.

Batch Example Flow:

# Given failed records: IDs = [42, 43, 44, 45] (4 episodes of the same show)
# All have errmsg="未识别到媒体信息"

# 1. Query all failed records
query_transfer_history(status="failed")

# 2. Identify media ONCE using the first file
recognize_media(path="/downloads/Show.Name.S01E01.1080p.mkv")
# Found: tmdb_id=789, media_type="tv"

# 3. For each record: delete history, then re-transfer
delete_transfer_history(history_id=42)
transfer_file(file_path="/downloads/Show.Name.S01E01.1080p.mkv", tmdbid=789, media_type="tv")

delete_transfer_history(history_id=43)
transfer_file(file_path="/downloads/Show.Name.S01E02.1080p.mkv", tmdbid=789, media_type="tv")

delete_transfer_history(history_id=44)
transfer_file(file_path="/downloads/Show.Name.S01E03.1080p.mkv", tmdbid=789, media_type="tv")

delete_transfer_history(history_id=45)
transfer_file(file_path="/downloads/Show.Name.S01E04.1080p.mkv", tmdbid=789, media_type="tv")

# 4. Report summary: "重试完成:4/4 成功"

Important Notes

  • Always delete the old history record first before retrying. The system will skip files with existing history.
  • Do not retry if the source file no longer exists (源目录不存在).
  • Do not retry if the error is about missing directory configuration - this requires user intervention.
  • For unrecognized media, always try recognize_media with the file path first before falling back to search_media.
  • Be cautious with TV shows - ensure the correct season and episode information is used.
  • For batch processing, always reuse media identification results across all files to save time and resources.
  • When this skill is triggered automatically by the system, it provides the history_id(s) directly. Start from Step 1 with those specific IDs.

Example: Single File Retry Flow

# 1. Query the failed record
query_transfer_history(status="failed", page=1)
# Found: id=42, src="/downloads/Movie.Name.2024.1080p.mkv", errmsg="未识别到媒体信息"

# 2. Try to recognize the media from path
recognize_media(path="/downloads/Movie.Name.2024.1080p.mkv")
# Recognition failed

# 3. Search TMDB
search_media(title="Movie Name", year="2024", media_type="movie")
# Found: tmdb_id=123456

# 4. Delete old history record
delete_transfer_history(history_id=42)

# 5. Re-transfer with correct identification
transfer_file(file_path="/downloads/Movie.Name.2024.1080p.mkv", tmdbid=123456, media_type="movie")
# Success!

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.6%
按下载量换算112

Claude

29.43%
按下载量换算88

Cursor

19.31%
按下载量换算58

Gemini CLI

8.56%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills