Communitygithub.com

Amadeus1P048596/mteam-pt-codex-skill

Portable Codex Skill for M-Team search, favorites, tracker state, and daily keepalive

What is mteam-pt-codex-skill?

mteam-pt-codex-skill is a Codex agent skill that portable Codex Skill for M-Team search, favorites, tracker state, and daily keepalive.

Works with~Claude CodeCodex CLI~Cursor
npx skills add Amadeus1P048596/mteam-pt-codex-skill

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

M-Team PT

Use the deterministic CLI in scripts/mteam_pt.py. It reads MTEAM_API_KEY from the environment and never accepts secrets on the command line.

Search

Run:

python "{baseDir}/scripts/mteam_pt.py" search --query-base64 <UTF8_BASE64> --sort seeders --limit 10
  • Base64-encode user search text before passing it through a shell.
  • Default to --sort seeders --direction desc. A user-requested sort applies only to that invocation; never persist it as a new default.
  • Supported sorts: seeders, leechers, completed, size, created, title, progress.
  • Use --discount FREE for “只看免费”;use --mode movie|tvshow|normal when the intent is clear.
  • Present the numbered results returned by the script. Include title, size, format, resolution, seeders/leechers, completed count, favorite state, download progress, promotion, and useful optional fields when present.
  • Keep the returned search_id available in the current conversation; it binds a later numbered action to the exact displayed list.

Favorite a numbered result

“收藏第 N 个” is explicit authorization to change that item’s M-Team collection state. Run:

python "{baseDir}/scripts/mteam_pt.py" favorite --pick N --search-id <SEARCH_ID>

Do not reinterpret “下载第 N 个” as favorite. If the numbered list is missing, expired, or ambiguous, search again instead of guessing. Report the exact title and torrent ID returned by the script. Any RSS downloader configured by the user—not this Skill—is responsible for the later download.

Only run unfavorite after an explicit request to cancel/remove a favorite.

Other useful modes

  • Account status or manual keepalive: profile
  • Current favorites: favorites
  • Full data for one numbered result: detail --pick N --search-id <SEARCH_ID>
  • M-Team API configuration check without mutation: doctor
  • Random keepalive schedule state: schedule-status

The optional daily service calls only /member/profile, chooses and persists one random Asia/Shanghai time in [08:00, 24:00) per day, and sends success/final-failure messages through a compatible authenticated push endpoint. Read references/operations.md only when installing, repairing, or inspecting that service. Read references/api-notes.md only when changing endpoints or result-field normalization.

Search results use M-Team's own collection field and tracker/queryHistory data for favorite/download state. Do not connect to a downloader for list enrichment; a downloader remains downstream of any existing RSS automation only.

Never print API keys, push tokens, RSS URLs containing secrets, or raw private configuration. Do not use M-Team Cookie authentication.

Related Skills