Logo Peloton

Peloton

Cộng đồng
win4r
peloton

Connect to Peloton to browse fitness classes, check schedules, and book workouts.

Tổng quan

Nhà phát hànhwin4r
Kho mãMuseAI-Skills
Tên kỹ năngpeloton
Sao
382
Bản fork
116
Tệp đi kèm
1
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ộ.

  • 1 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 win4r 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 Peloton 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/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/peloton
  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/win4r/MuseAI-Skills.git /tmp/MuseAI-Skills
mkdir -p .claude/skills
cp -r /tmp/MuseAI-Skills/opt/hatch/skills/peloton .claude/skills/peloton
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 Peloton 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 Peloton 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 Peloton 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.

Peloton

Purpose

Connect to Peloton to browse on-demand and live fitness classes, manage schedules, and book workouts.

Tooling

Use the installed CLI directly from PATH.

Core auth commands:

  • peloton status
  • peloton authorize-url
  • peloton disconnect

Class Browsing

  • peloton ride-archived [--limit 10] [--page 0] [--fitness-discipline cycling] [--duration 1800] [--sort-by popularity] [--difficulty-level beginner] [--has-closed-captions true] [--super-genre-id <ID>] [--browse-category cycling] [--class-type-id <ID>] [--instructor <ID>] [--desc true]
  • peloton ride-live [--limit 10] [--schedule-type live] [--exclude-complete true] [--days 7] [--fitness-discipline cycling] [--super-genre-id <ID>] [--browse-category cycling] [--class-type-id <ID>] [--instructor <ID>] [--desc true]
  • peloton search-class --query "<text>" --limit 10 --page 0 [--include-raw] [--include-schema] — search classes by natural-language or partner-provided terms such as "seated strength". Always pass --limit and --page; use --limit 10 --page 0 unless the user asks for a different local result window. Use --include-raw or --include-schema only when inspecting the response shape.

Response structure: class browsing commands return a presentation-ready body.classes[] array. search-class also returns local-window fields: body.count, body.total, body.page, body.limit, body.has_more, and body.pagination_mode: "local_window". Peloton search does not support API pagination; --limit and --page only slice the returned result set locally. For different results, refine the query instead of trying to fetch another provider page. Raw provider arrays may be present only for debug commands that request them.

Class reads preserve Peloton's raw epoch fields and add semantic class_scheduled_start_at, class_starts_at, class_ends_at, and class_originally_aired_at values with UTC and user-local forms when those source fields are present. Prefer the semantic fields.

Filter IDs
  • peloton metadata-mappings — returns all filter taxonomies: instructors, class_types, equipment, fitness_disciplines, difficulty_levels, and content_formats. Use the returned IDs for --super-genre-id, --class-type-id, and --instructor filters instead of hardcoding values.

Scheduling

  • peloton schedule-event --ride-id <ID> --scheduled-start-time <EPOCH> — schedule an on-demand class
  • peloton schedule-event --join-token <TOKEN> — schedule a live class
  • peloton delete-scheduled-event --join-token <TOKEN> — remove a scheduled class
  • peloton reschedule-event --join-token <TOKEN> --scheduled-start-time <EPOCH> — move to new time

Deeplinks

  • peloton deeplink --class-id <ID> — generate a link to view the class in Peloton

Auth

Peloton is an OAuth-backed skill.

For normal class reads, call the requested read command directly; do not add a peloton status preflight. If a command reports not_connected, or the user asks to manage the connection:

  1. Run peloton status.
  2. If status is not_connected, complete the link flow first.
  3. Before running peloton authorize-url, ask for explicit confirmation:
    • state the provider name: peloton
    • warn: This stores a persistent access token for Peloton. Your assistant will have ongoing access until you disconnect it locally or revoke it in Peloton settings.
    • never show raw OAuth scope strings or scope names in the connection message
  4. Run peloton authorize-url once. When connect_url is present, replace <connect_url> with the returned URL and share exactly this Markdown link: [Connect Peloton](<connect_url>); do not paste the raw URL separately.
  5. Do not call peloton authorize-url again while waiting for the user to approve the link or for the callback to complete; use peloton status to check pending connection state.
  6. After callback completion, run peloton status again and continue only when status is connected. If status is still not_connected, say the connection is still pending or failed and ask whether to generate a new link.

Credential storage:

  • Never print client_secret, access_token, or refresh_token.

Operating Rules

  1. For account linking, follow the Auth section.
  2. Do not show raw internal identifiers, difficulty scores, star ratings, rating counts, or class URLs in user-facing results unless the user explicitly asks for technical/debug details. Use titles, instructor names, and times for fallback text.
  3. For natural-language class searches, call peloton search-class with --limit 10 --page 0. Use ride-archived only when the user requests its structured filters or unsearched archived browsing. Present the returned body.classes[] with widget.create, using kind: "list" and a list title and items inside data. Put each class title in title, instructor and duration_minutes in subtitle, and a relevant class time in tertiary_title when available. Copy thumbnail_url into image_url when present. Use type: "link" with data.url copied from the returned HTTP(S) deeplink_url; use type: "generic" when no such link is returned. Place the returned embed_token in the reply. Do not duplicate the class list in plain text. If there are no classes, say so; if widget creation fails, use concise Markdown bullets with title, instructor, and duration. Do not print class IDs or image CDN URLs as text.
  4. For other class browsing commands, use the same list presentation with body.classes[]. Use raw provider arrays only for requested debugging. Do not construct class URLs yourself.
  5. Use the CLI-provided duration_minutes field for displaying class duration.
  6. For live classes, default to a 7-day window using --days 7 --exclude-complete true.
  7. Scheduling and deleting scheduled classes may proceed from a clear, unambiguous user request without an additional confirmation.
  8. Token refresh on expired-token errors is automatic. If API calls still fail after auto-refresh, re-check peloton status and re-link if needed.

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 Peloton làm được gì?

Connect to Peloton to browse fitness classes, check schedules, and book workouts.

Vì sao nên dùng Peloton 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. Peloton 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 Peloton trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/win4r/MuseAI-Skills/tree/main/opt/hatch/skills/peloton. 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 Peloton?

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 Peloton 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 Peloton 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 Peloton có miễn phí không?

Kỹ năng này được win4r phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. 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 👇