Logo Tautulli

Tautulli

Cộng đồng
jmagar
tautulli

Monitor and analyze Plex Media Server usage via Tautulli analytics API. Use when the user asks to "check Tautulli", "Plex analytics", "watch statistics", "current streams", "who's watching", "Plex history", "most watched", "user activity", "library stats", or mentions Tautulli/Plex monitoring.

Add to TypingMind

Tổng quan

Nhà phát hànhjmagar
Kho mãclaude-homelab
Tên kỹ năngtautulli
Sao
87
Bản fork
11
Tệp đi kèm
5
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jmagar công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Tautulli trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/jmagar/claude-homelab/tree/main/skills/tautulli
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagar/claude-homelab.git /tmp/claude-homelab
mkdir -p .claude/skills
cp -r /tmp/claude-homelab/skills/tautulli .claude/skills/tautulli
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Tautulli trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Tautulli ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Tautulli với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Tautulli Analytics Skill

⚠️ MANDATORY SKILL INVOCATION ⚠️

YOU MUST invoke this skill (NOT optional) when the user mentions ANY of these triggers:

  • "Tautulli", "Plex analytics", "watch statistics"
  • "current streams", "who's watching Plex", "active sessions"
  • "Plex history", "watch history", "playback history"
  • "most watched", "top content", "popular media"
  • "user activity", "user stats", "library statistics"
  • "Plex monitoring", "stream analytics", "viewing trends"
  • Any mention of Tautulli or Plex usage analytics

Failure to invoke this skill when triggers occur violates your operational requirements.

Monitor and analyze Plex Media Server usage through Tautulli's comprehensive analytics API. Track current streams, historical playback data, user activity, and library statistics.

Purpose

This skill provides read-only access to Tautulli analytics:

  • Monitor current activity and active streams
  • View playback history with detailed filtering
  • Track user statistics and viewing patterns
  • Analyze library statistics and popular content
  • View recently added media with metadata
  • Monitor concurrent stream limits and bandwidth
  • Analyze usage by time, platform, and stream type
  • Track server and library performance metrics

All operations are GET-only and safe for monitoring and analytics.

Note: This skill complements the plex skill by adding analytics and historical data that Plex Media Server doesn't expose directly.

Setup

Add your Tautulli credentials to ~/.claude-homelab/.env:

bash
# Tautulli Analytics
TAUTULLI_URL="http://192.168.1.100:8181"
TAUTULLI_API_KEY="<your_tautulli_api_key>"
  • TAUTULLI_URL: Your Tautulli server URL with port (default: 8181)
  • TAUTULLI_API_KEY: Your Tautulli API key

Getting your API key:

  1. Open Tautulli web UI
  2. Go to Settings → Web Interface → API
  3. Enable "API enabled"
  4. Copy the API key
  5. Optionally set API HTTP Basic Authentication if desired

Commands

All commands use the tautulli-api.sh wrapper script and return JSON output.

The helper script is located at: skills/tautulli/scripts/tautulli-api.sh

Server Information

Get server identity and version:

bash
./skills/tautulli/scripts/tautulli-api.sh server-info

Current Activity

Monitor active streams and current playback:

bash
# All active sessions
./skills/tautulli/scripts/tautulli-api.sh activity

# Activity with session details
./skills/tautulli/scripts/tautulli-api.sh activity --details

Returns: Current streams with user, media, player, bandwidth, transcode info

Playback History

View historical playback data:

bash
# Recent history (default: 25 items)
./skills/tautulli/scripts/tautulli-api.sh history

# History with filters
./skills/tautulli/scripts/tautulli-api.sh history --user "username" --limit 50
./skills/tautulli/scripts/tautulli-api.sh history --days 7 --media-type movie
./skills/tautulli/scripts/tautulli-api.sh history --section-id 1 --limit 100

# Search history
./skills/tautulli/scripts/tautulli-api.sh history --search "Inception"

Parameters:

  • --user <username>: Filter by username
  • --section-id <id>: Filter by library section
  • --media-type <type>: Filter by movie, episode, track, etc.
  • --days <n>: History from last N days
  • --limit <n>: Maximum results (default: 25)
  • --search <query>: Search in titles

User Statistics

Track user activity and viewing patterns:

bash
# All users watch stats
./skills/tautulli/scripts/tautulli-api.sh user-stats

# Specific user details
./skills/tautulli/scripts/tautulli-api.sh user-stats --user "username"

# Top users by play count
./skills/tautulli/scripts/tautulli-api.sh user-stats --sort-by plays --limit 10

Parameters:

  • --user <username>: Specific user statistics
  • --sort-by <metric>: Sort by plays, duration, last_seen
  • --limit <n>: Maximum results
  • --days <n>: Stats from last N days

Library Statistics

Analyze library usage and popular content:

bash
# All library sections
./skills/tautulli/scripts/tautulli-api.sh libraries

# Specific library stats
./skills/tautulli/scripts/tautulli-api.sh library-stats --section-id 1

# Popular content in library
./skills/tautulli/scripts/tautulli-api.sh popular --section-id 1 --limit 10
./skills/tautulli/scripts/tautulli-api.sh popular --media-type movie --days 30

Parameters:

  • --section-id <id>: Specific library section
  • --media-type <type>: Filter by type (movie, show, artist)
  • --days <n>: Timeframe for popularity
  • --limit <n>: Maximum results

Recently Added

View recently added media with rich metadata:

bash
# Recently added (default: 25 items)
./skills/tautulli/scripts/tautulli-api.sh recent

# Recent with filters
./skills/tautulli/scripts/tautulli-api.sh recent --section-id 1 --limit 50
./skills/tautulli/scripts/tautulli-api.sh recent --media-type movie --days 7

Home Statistics

Get homepage dashboard statistics:

bash
# Overview stats (most popular, most active, etc.)
./skills/tautulli/scripts/tautulli-api.sh home-stats

# Stats for specific timeframe
./skills/tautulli/scripts/tautulli-api.sh home-stats --days 30

Stream Analytics

Analyze stream types and platform usage:

bash
# Plays by stream type (direct/transcode)
./skills/tautulli/scripts/tautulli-api.sh plays-by-stream --days 30

# Plays by platform
./skills/tautulli/scripts/tautulli-api.sh plays-by-platform --days 30

# Plays by date/time
./skills/tautulli/scripts/tautulli-api.sh plays-by-date --days 30
./skills/tautulli/scripts/tautulli-api.sh plays-by-hour --days 7
./skills/tautulli/scripts/tautulli-api.sh plays-by-day --days 30

Concurrent Streams

Monitor concurrent stream patterns:

bash
# Concurrent stream history
./skills/tautulli/scripts/tautulli-api.sh concurrent-streams --days 30

# Peak concurrent streams
./skills/tautulli/scripts/tautulli-api.sh concurrent-streams --days 7 --peak

Media Metadata

Get detailed metadata for specific media:

bash
# By rating key
./skills/tautulli/scripts/tautulli-api.sh metadata --rating-key 12345

# By GUID
./skills/tautulli/scripts/tautulli-api.sh metadata --guid "plex://movie/5d776..."

Workflow

When the user asks about Plex analytics:

  1. "Who's watching right now?" → Run activity
  2. "What are the most watched movies?" → Run popular --media-type movie --days 30
  3. "Show me recent watch history" → Run history --limit 25
  4. "How much has [user] watched this week?" → Run user-stats --user "username" --days 7
  5. "What's new in my library?" → Run recent --limit 10
  6. "When do people watch most?" → Run plays-by-hour --days 30
  7. "Are we hitting stream limits?" → Run concurrent-streams --days 7 --peak

Activity Monitoring Flow

  1. Check current activity for active streams
  2. If issues detected (buffering, transcoding), investigate specific session
  3. Review user's watch history to understand patterns
  4. Check library statistics to identify popular content
  5. Analyze stream types to optimize server settings

Analytics Flow

  1. Get home statistics for overview
  2. Drill into specific libraries with library-stats
  3. Identify popular content with popular command
  4. Analyze user behavior with user-stats
  5. Review temporal patterns with plays-by-hour/date/day
  6. Monitor platform distribution with plays-by-platform

Output Format

All commands return JSON with standard Tautulli response structure:

json
{
  "response": {
    "result": "success",
    "message": null,
    "data": { ... }
  }
}

Use jq to extract and format data:

bash
# Get just the data
./skills/tautulli/scripts/tautulli-api.sh activity | jq '.response.data'

# Extract specific fields
./skills/tautulli/scripts/tautulli-api.sh history | jq '.response.data.data[] | {user: .friendly_name, title: .full_title, date: .date}'

Notes

  • Requires network access to your Tautulli server
  • All operations are read-only GET requests
  • Tautulli must be connected to your Plex Media Server
  • Library section IDs match Plex library section keys
  • Historical data depends on Tautulli's configured retention period
  • Some statistics require sufficient historical data to be meaningful
  • Response times may vary based on database size and query complexity
  • Rating keys are Plex's unique identifiers for media items
  • User-friendly names are shown by default (can show usernames with flags)

Integration with Plex Skill

This skill complements the plex skill:

  • Plex skill: Real-time server state (libraries, search, sessions)
  • Tautulli skill: Historical analytics (trends, statistics, watch history)

Use both together:

  1. Find content with plex skill search
  2. Check popularity with tautulli skill analytics
  3. Monitor current playback with either skill
  4. Analyze viewing patterns with tautulli skill

Multiple Servers

To use multiple Tautulli instances (monitoring different Plex servers):

bash
# In ~/.claude-homelab/.env
TAUTULLI1_URL="http://server1:8181"
TAUTULLI1_API_KEY="key1"

TAUTULLI2_URL="http://server2:8181"
TAUTULLI2_API_KEY="key2"

Then override environment variables:

bash
# Use server 1 (default)
./skills/tautulli/scripts/tautulli-api.sh activity

# Use server 2
TAUTULLI_URL="$TAUTULLI2_URL" TAUTULLI_API_KEY="$TAUTULLI2_API_KEY" \
  ./skills/tautulli/scripts/tautulli-api.sh activity

Reference

For detailed API reference, see:


🔧 Agent Tool Usage Requirements

CRITICAL: When invoking scripts from this skill via the zsh-tool, ALWAYS use pty: true.

Without PTY mode, command output will not be visible even though commands execute successfully.

Correct invocation pattern:

typescript
<invoke name="mcp__plugin_zsh-tool_zsh-tool__zsh">
<parameter name="command">./skills/tautulli/scripts/tautulli-api.sh [command] [args]</parameter>
<parameter name="pty">true</parameter>
</invoke>

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Tautulli làm được gì?

Monitor and analyze Plex Media Server usage via Tautulli analytics API. Use when the user asks to "check Tautulli", "Plex analytics", "watch statistics", "current streams", "who's watching", "Plex history", "most watched", "user activity", "library stats", or mentions Tautulli/Plex monitoring.

Vì sao nên dùng Tautulli trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Tautulli là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Tautulli trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jmagar/claude-homelab/tree/main/skills/tautulli. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Tautulli?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Tautulli với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Tautulli với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Tautulli có miễn phí không?

Có. Kỹ năng này được jmagar phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇