返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
m

mastodon-scout

Read-only Mastodon skill. Outputs human-readable timeline summaries or raw JSON.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 2.0.1
安全检测
已通过
1,976
下载量
5
收藏
概述
安装方式
版本历史

mastodon-scout

# Mastodon Scout ## Purpose Read-only Mastodon skill. Fetches data from the Mastodon API via a bundled Python script (`scripts/mastodon_scout.py`). Returns human-readable summaries by default, or raw JSON with `--json`. --- ## Invocation Rules (MANDATORY) ```bash python3 ./scripts/mastodon_scout.py <command> [options] ``` ### Commands | Command | What it fetches | |---------|----------------| | `home` | Authenticated user's home timeline | | `user-tweets` | Authenticated user's own posts | | `mentions` | Mentions of the authenticated user | | `search <query>` | Posts matching the query | ### Options ``` --instance <url> Mastodon instance base URL (default: $MASTODON_INSTANCE or https://mastodon.social) --limit <int> Number of items to return (default: $LIMIT or 20) --json Output raw JSON instead of human-readable text ``` ### Environment Variables ``` MASTODON_TOKEN Required. OAuth bearer token. MASTODON_INSTANCE Optional. Instance base URL (default: https://mastodon.social). ``` ### Examples ```bash python3 ./scripts/mastodon_scout.py home python3 ./scripts/mastodon_scout.py mentions --limit 10 python3 ./scripts/mastodon_scout.py search "golang" python3 ./scripts/mastodon_scout.py home --json python3 ./scripts/mastodon_scout.py home --instance https://fosstodon.org ``` --- ## Output Modes ### Text Mode (Default) The script formats each post as: ``` [N] Display Name (@user@instance) · <timestamp> <content> ↩ <replies> 🔁 <reblogs> ⭐ <favourites> <url> ``` The agent MAY add a brief summary after the list. ### JSON Mode (`--json`) Returns raw Mastodon API JSON. Return it verbatim — no interpretation. --- ## Error Handling The script prints a human-readable error to stderr and exits non-zero: | Condition | Message | |-----------|---------| | Token missing | `Error: MASTODON_TOKEN is not set` | | 401 | `Mastodon API error: 401 Unauthorized — check MASTODON_TOKEN` | | 403 | `Mastodon API error: 403 Forbidden` | | 422 | `Mastodon API error: 422 Unprocessable Entity` | | 429 | `Mastodon API error: 429 Rate Limited — try again later` | Do not retry on error. Guide the user to Authentication Setup if the token is missing or invalid. --- ## Examples That Trigger This Skill - `mastodon-scout home` - `show my mastodon timeline` - `check mastodon mentions` - `search mastodon for "golang"` - `get my mastodon posts` --- ## Notes - This skill is **read-only** (no posting, following, or other mutations) - `scripts/mastodon_scout.py` uses stdlib only — no pip install required - In JSON mode: output verbatim, no interpretation --- ## Authentication Setup (Agent MAY Help) **EXCEPTION TO STRICT MODE**: If the user needs help obtaining a token, the agent **may** provide guidance before executing the skill. ### How to Obtain a Token: **Step 1: Access Development Settings** - Log into your Mastodon instance (e.g., mastodon.social, fosstodon.org) - Navigate to: **Settings → Development** (or Preferences → Development) - Direct URL: `https://[instance-domain]/settings/applications` **Step 2: Create Application** - Click "New Application" - **Application name**: `mastodon-scout` (or any name) - **Redirect URI**: `urn:ietf:wg:oauth:2.0:oob` - **Scopes**: **CRITICAL — only select `read`** (uncheck write, follow, push) **Step 3: Get Access Token** - Click Submit, then open the created application - Copy the **"Your access token"** value **Step 4: Set Environment Variable** ```bash export MASTODON_TOKEN="paste_token_here" ``` **Step 5: Verify** ```bash python3 ./scripts/mastodon_scout.py home --limit 5 ``` ### Common Mastodon Instances: - `mastodon.social` — General purpose (default) - `fosstodon.org` — FOSS/tech community - `mas.to` — Tech focused - `hachyderm.io` — Tech/infosec community ### Security Notes: - Token is **read-only** (cannot post, follow, or delete) - Keep token secret (don't commit to git) - Can be revoked anytime in Development settings - Each Mastodon instance requires its own token

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mastodon-scout-1776372590 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mastodon-scout-1776372590 技能

通过命令行安装

skillhub install mastodon-scout-1776372590

下载 Zip 包

⬇ 下载 mastodon-scout v2.0.1

文件大小: 4.46 KB | 发布时间: 2026-4-17 14:11

v2.0.1 最新 2026-4-17 14:11
- Updated the SKILL.md metadata section for improved structure and compatibility.
- No changes to commands, options, examples, error handling, or usage details.
- No functional changes to the skill's capabilities or invocation.
- Documentation now uses a new metadata format.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部