Communitygithub.com

wshobson/hermes-tweet

安裝並操作 Hermes Tweet,這是一個用於 X/Twitter 研究、時間軸閱讀、推文分析以及需要審核核准的私密或狀態變更操作的 Hermes Agent 外掛。當安裝 Hermes Tweet、研究 X/Twitter 帳號、監控發布訊號、調查提及、審核抽獎活動或準備需審核的 X 操作時使用。當 Hermes Agent 工作流程需要當前的 X/Twitter 上下文時,應主動使用。需要設定 XQUIK_API_KEY 才能使用讀取和動作工具。

hermes-tweet 是什麼?

Hermes Tweet 是 Hermes Agent 的一個專用外掛,為 X/Twitter 提供了完整的工具集,用於社交聆聽、帳號研究、發布監控、支援分類、抽獎活動審核以及需要明確審核核准的控制工作流程。它支援 Claude Code、Cursor 和 Codex 等 AI 代理平台,透過三種主要工具運作:tweet_explore(搜尋已捆綁的端點目錄,無需 API 金鑰)、tweet_read(讀取公開端點資料,需設定 XQUIK_API_KEY)以及 tweet_action(執行私密讀取或狀態變更操作,需啟用動作閘門)。該技能遵循「唯讀優先」的安全模型,所有私人或狀態變更操作都必須先獲得明確的操作者核准。它特別適用於監控發布活動、調查特定提及、審核抽獎活動,以及在發送回覆或活動前摘要公眾訊號等情境。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/wshobson/agents/tree/main/plugins/hermes-tweet/skills/hermes-tweet

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Hermes Tweet

Hermes Tweet 為 Hermes Agent 添加了 X/Twitter 工具集。它對於社交聆聽、帳號研究、發布監控、支援分類、抽獎活動審核以及需要明確說明的私密或狀態變更操作控制工作流程非常有用。

何時使用此技能

當使用者想要以下操作時,請使用此技能:

  • 將 Hermes Tweet 安裝到 Hermes Agent 執行環境中
  • 探索可用的 X/Twitter 讀取和動作路由
  • 讀取 X/Twitter 帳號、推文、趨勢、監控或搜尋資料
  • 在草擬回覆或活動前摘要公眾訊號
  • 將私密和狀態變更操作限制在明確的操作者意圖下

設定

透過 Hermes 安裝並啟用外掛:

hermes plugins install Xquik-dev/hermes-tweet --enable

Hermes 在安裝和更新期間掃描外掛。請審閱每個警告。危險評級會阻止安裝或停用更新。

在 Hermes 執行環境主機上設定 API 金鑰:

export XQUIK_API_KEY="<your-key>"
export HERMES_TWEET_ENABLE_ACTIONS="false"

對於唯讀優先的工作階段,請保持 HERMES_TWEET_ENABLE_ACTIONS 為 false。僅在核准的私密讀取、寫入、監控、Webhook、擷取、繪圖或媒體操作時,才將其設定為 true。

輸入

在選擇路由前,請詢問以下輸入:

  • 目標:研究、監控、支援分類、抽獎活動審核或動作準備
  • 目標:帳號代碼、推文 URL、關鍵字、清單、監控或趨勢
  • 時間範圍和新鮮度需求
  • 是否涉及任何私密或狀態變更操作
  • 確認 Hermes 執行環境已設定 XQUIK_API_KEY

工作流程

  1. 使用 tweet_explore 搜尋已捆綁的端點目錄,以找到匹配的路由。
  2. 選擇目錄路由後,透過 tweet_read 讀取公開的 X/Twitter 資料。
  3. 僅在明確核准後,才使用 tweet_action 進行私密或狀態變更路由。
  4. 將 API 金鑰保留在環境變數或 Hermes 執行環境的環境設定檔中。
  5. 不要將憑證貼到提示、問題、PR 評論或工具輸入中。
  6. 當使用者要求活動、監控、支援或抽獎活動工作流程(而非單一讀取)時,載入工作流程模式。

工具模型

工具用途
tweet_explore無需使用 API 金鑰即可搜尋已捆綁的端點目錄。
tweet_read當設定 XQUIK_API_KEY 時,呼叫目錄中列出的公開唯讀端點。
tweet_action僅在啟用動作閘門時,呼叫私密讀取、寫入、監控、Webhook、擷取、繪圖和媒體操作。

輸出格式

回傳簡潔的操作輸出:

摘要:
- 檢查了什麼以及原因

讀取路由:
- 目錄路徑、輸入和結果摘要

動作計劃:
- 建議的私密或狀態變更操作,每個操作都等待明確核准

下一步檢查:
- 後續路由或監控頻率(若有用)

使用範例

在草擬回覆前研究帳號:

在草擬回覆前,使用 Hermes Tweet 檢查 @example 最近的公開上下文。
保持動作停用。

監控發布關鍵字:

追蹤今日 X/Twitter 上對於「Example Launch」的提及。
摘要主題和 notable 帳號。不要發布。

準備受保護的發布:

草擬一條發布推文,並列出你將使用的確切 tweet_action 呼叫。
在執行動作路由前等待核准。

擷取結構化路由筆記:

{
  "objective": "support-triage",
  "route": "/api/v1/x/search",
  "action_gate": "disabled",
  "approval_required": true
}

疑難排解

  • 如果只出現 tweet_explore,請在 Hermes 執行環境主機上設定 XQUIK_API_KEY,然後重新載入或重新啟動作用中的 Hermes 工作階段。
  • 如果動作路由不可用,請將公開讀取分開處理。僅在核准的私密或狀態變更操作時,才設定 HERMES_TWEET_ENABLE_ACTIONS=true。
  • 如果路由不匹配,請再次使用 tweet_explore,並選擇目錄中列出的路徑,而不是猜測端點。

最佳實踐

  • 將 Hermes Tweet 視為 Hermes 原生的 X/Twitter 層,而不是通用的 API 包裝器。
  • 預設將研究設定為唯讀。在建立或變更監控前需要先核准。
  • 在進行私密或狀態變更呼叫前,使用桌面或閘道操作者審查。
  • 在呼叫 tweet_read 或 tweet_action 前,驗證確切的目錄路徑。
  • 在環境變更後,重新啟動閘道、cron 或長時間執行的 Hermes 工作階段。

另請參閱

社交發布外掛補充了 Hermes Tweet,用於廣泛的多平台發布。Hermes Tweet 專注於 Hermes Agent 的 X/Twitter 工具集及其唯讀優先、審核核准的操作模型。

當路由邊界不明確時,請參閱端點與核准合約。請參閱官方指南:https://github.com/Xquik-dev/hermes-tweet#readme。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

wshobson/accessibility-compliance

Implement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.

wshobson/airflow-dag-patterns

Build production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.

wshobson/angular-migration

Migrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or modernizing legacy Angular code.

wshobson/anti-reversing-techniques

Understand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques, when implementing anti-debugging protections for CTF challenges, when reverse engineering packed binaries, or when building security research tools that need to detect virtualized environments.

wshobson/api-design-principles

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

wshobson/architecture-decision-records

Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

wshobson/architecture-patterns

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

wshobson/async-python-patterns

Master Python asyncio, concurrent programming, and async/await patterns for high-performance applications. Use when building async APIs, concurrent systems, or I/O-bound applications requiring non-blocking operations.

wshobson/attack-tree-construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

wshobson/auth-implementation-patterns

Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.

wshobson/avoid-ai-writing

Audit and rewrite prose so it stops reading as machine-generated. Use this skill when asked to remove AI-isms, clean up AI writing, edit a draft for AI tells, audit a README, changelog, release note, PR description, or blog post for machine-sounding prose, or make text sound less like AI. Supports a detect-only mode, a rewrite mode, and an edit-in-place mode, with optional voice and context profiles.

wshobson/backtesting-frameworks

Build robust backtesting systems for trading strategies with proper handling of look-ahead bias, survivorship bias, and transaction costs. Use when developing trading algorithms, validating strategies, or building backtesting infrastructure.

wshobson/bash-defensive-patterns

Master defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.

wshobson/bats-testing-patterns

Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.

wshobson/bazel-build-optimization

Optimize Bazel builds for large-scale monorepos. Use when configuring Bazel, implementing remote execution, or optimizing build performance for enterprise codebases.

wshobson/before-you-build

Pre-build product and feature risk review for founders, product managers, and AI-assisted builders. Use this skill when the user is about to build a landing page, MVP, SaaS product, internal tool, agent workflow, or major feature and needs to check demand, positioning, monetization, retention, trust, distribution, and adoption risk before implementation starts.

wshobson/billing-automation

Build automated billing systems for recurring payments, invoicing, subscription lifecycle, and dunning management. Use when implementing subscription billing, automating invoicing, or managing recurring payment systems.

wshobson/binary-analysis-patterns

Master binary analysis patterns including disassembly, decompilation, control flow analysis, and code pattern recognition. Use when analyzing executables, understanding compiled code, or performing static analysis on binaries.

wshobson/block-no-verify-hook

Configure a PreToolUse hook to prevent AI agents from skipping git pre-commit hooks with --no-verify and other bypass flags. Use when setting up Claude Code projects that enforce commit quality gates.

wshobson/brand-landingpage

Brand-first landing page designer — runs a brand-identity interview (colors, typography, shape language), then generates and iterates on a polished landing page via Stitch with deployment-ready HTML. Use when the user asks to create, design, or build a landing page, homepage, or marketing page and has no established visual direction. Skip when they have a design mockup, need a dashboard or app UI, are working at component level, building a multi-page app, or restyling with known design tokens — use frontend-design instead.

相關技能