360 Secure SkillHub
360 安全技能中心

Trakt

该 Skill 教 Agent 使用 npm 全局安装的 trakt-cli 访问 trakt.tv:先创建应用并完成设备码授权,凭据存于 ~/.trakt.yaml;随后用 history 命令按条数或分页查看观看历史,用 search 命令检索影视剧,历史查询需认证,搜索无需认证,仅只读。

mjrussell
mjrussell
热度 88.22
最近更新 2026-05-19 05:54:39
分类:搜索依赖:第三方 API / 读写文件应用场景:推荐 / 研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add trakt
Metadata
name
trakt
description
Track and view your watched movies and TV shows via trakt.tv. Use when user asks about their watch history, what they've been watching, or wants to search for movies/shows.
homepage
https://trakt.tv
metadata
{"clawdbot":{"emoji":"🎬","requires":{"bins":["trakt-cli"]}}}

Trakt CLI

Query your trakt.tv watch history and search for movies/TV shows.

Installation

npm install -g trakt-cli

Setup

  1. Create an app at https://trakt.tv/oauth/applications/new
  2. Run: trakt-cli auth --client-id <id> --client-secret <secret>
  3. Visit the URL shown and enter the device code
  4. Credentials saved to ~/.trakt.yaml

Commands

Watch History

trakt-cli history                  # Recent history (default: 10 items)
trakt-cli history --limit 25       # Show more
trakt-cli history --page 2         # Paginate

Search

trakt-cli search "Breaking Bad"
trakt-cli search "The Matrix"

Usage Examples

User: "What have I been watching lately?"

trakt-cli history

User: "Show me my last 20 watched items"

trakt-cli history --limit 20

User: "Find info about Severance"

trakt-cli search "Severance"

Notes

  • Search works without authentication
  • History requires authentication
  • Read-only access to watch history