Fediverse Crudのロゴ

Fediverse Crud

組織
OpenLinkSoftware
fediverse-crud

Perform ActivityPub read/write operations against Fediverse instances (Note, Like, Announce, Follow, Delete, Undo). Handles OAuth Authorization Code flow, WebFinger resolution, ActivityPub content negotiation, and server-to-server delivery verification.

概要

公開者OpenLinkSoftware
リポジトリai-agent-skills
スキル名fediverse-crud
スター
42
フォーク
10
同梱ファイル
20
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 20個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    OpenLinkSoftwareがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFediverse CrudをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/fediverse-crud
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenLinkSoftware/ai-agent-skills.git /tmp/ai-agent-skills
mkdir -p .claude/skills
cp -r /tmp/ai-agent-skills/fediverse-crud .claude/skills/fediverse-crud
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFediverse Crudを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFediverse Crudを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Fediverse Crudは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Fediverse CRUD

Create, read, and manage ActivityPub activities on any Fediverse server.

Triggers

  • "post a note/toot/status" — create a Note
  • "like/boost/favourite" — Like or Announce an object
  • "follow/unfollow @user" — Follow or Undo-Follow
  • "delete my post/activity" — Delete your own activity
  • "read/show my inbox/outbox" — GET and paginate collections
  • "send an ActivityPub activity" — any of the above
  • "test the fediverse" — run the test harness
  • "remote delivery" — verify server-to-server fan-out

Workflow

Step 1: Elicit server and identity

Prompt the user for:

VariablePromptExample
INSTANCE"Fediverse instance hostname"localhost or fediverse.demo.openlinksw.com
USER_HANDLE"Your handle"demo
SECOND_USER"Target handle (for Follow/delivery)"kidehen
SCOPES"OAuth scopes"read write follow push

Step 2: Resolve actor

  1. WebFinger: Discover the WebFinger endpoint from https://{instance}/.well-known/host-meta.json (lrdd link template)
  2. Query: WebFinger acct:{handle}@{instance} with Accept: application/jrd+json
  3. Extract: Pull the actor URI from the self link with type: application/activity+json

Step 3: Fetch actor document

bash
curl -sL -H "Accept: application/activity+json" "{actor_uri}"

Parse the response to extract:

  • inbox
  • outbox
  • followers
  • following
  • endpoints.sharedInbox
  • endpoints.oauthAuthorizationEndpoint
  • endpoints.oauthTokenEndpoint

Step 4: Authenticate

Delegated to the existing OAuth Authorization Code flow:

  • Reference: agent-rdf-memory/howto/uriburner-oauth-authcode-flow.ttl
  • Implementation: oa2.py (in this repo's root) or equivalent
  • OIDC discovery: {instance}/.well-known/openid-configuration
  • Scopes at runtime: elicit from user (read write follow push)

Do not create new auth scripts. Use the existing pattern.

Step 5: Elicit operation parameters from the user

Before building any payload, capture the user's input for the operation:

OperationWhat to elicitExample
Note"What content for the note?"Hello from the Fediverse!
Like"What object URI to like?"https://.../note/123
Announce"What object URI to boost?"https://.../note/123
Follow"What actor URI to follow?"https://.../person/other
Delete"What activity URI to delete?"https://.../activity/456
Undo"What type and object URI to undo?"Like / https://.../note/123

Present the user's input back for confirmation before proceeding.

Step 6: Execute ActivityPub operation

Write operations: Populate the template from assets/templates/{type}.jsonld with the user's captured input and POST to the actor's outbox:

bash
sed -e "s|{ACTOR_URI}|$ACTOR|g" \
    -e "s|{OBJECT_URI}|$OBJECT|g" \
    -e "s|{CONTENT}|$CONTENT|g" \
    -e "s|{TO}|$TO|g" \
    -e "s|{PUBLISHED}|$(date -u +%Y-%m-%dT%H:%M:%SZ)|g" \
    assets/templates/{type}.jsonld > /tmp/payload.json

LOCATION=$(curl -sk -D - -X POST "$OUTBOX" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"" \
  -d @/tmp/payload.json 2>&1 | grep -i "^location:" | sed 's/[Ll]ocation: //;s/\r//')

Always capture the Location header from the 201 response — this is the canonical ActivityPub resource URL. The response body HTML may contain a different internal ID.

Read operations: Bearer GET on inbox/outbox/object URIs with Accept: application/activity+json. Walk pagination via first/next.

Step 7: Verify delivery (for Follow)

  1. POST a Follow activity to User A's outbox targeting User B's actor URI
  2. GET User B's inbox (with User B's token) to confirm the Follow arrived
  3. Server-to-server delivery via sharedInbox happens automatically

Test Harness

Run the end-to-end test script:

bash
fediverse-crud/scripts/test-fediverse.sh

The script elicits the server, handles, and scopes at runtime. It does not hardcode any accounts.

Template Variables

VariableDescription
{ACTOR_URI}Actor performing the activity
{OBJECT_URI}Activity target (Note, actor, etc.)
{TARGET_ACTOR_URI}Target actor for Follow
{CONTENT}Note body content (HTML)
{TO}Primary audience URI
{CC}Secondary audience URI
{PUBLISHED}ISO 8601 timestamp
{UNDO_TYPE}Type being undone (e.g. "Like")

Auth Reference

See agent-rdf-memory/howto/uriburner-oauth-authcode-flow.ttl for the complete OAuth Authorization Code flow with dynamic client registration and local callback server.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Fediverse Crud」では何ができますか?

Perform ActivityPub read/write operations against Fediverse instances (Note, Like, Announce, Follow, Delete, Undo). Handles OAuth Authorization Code flow, WebFinger resolution, ActivityPub content negotiation, and server-to-server delivery verification.

TypingMindでFediverse Crudを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Fediverse Crudはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFediverse Crudをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/fediverse-crudを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Fediverse Crudを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Fediverse Crudは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFediverse Crudを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Fediverse Crud」は無料ですか?

はい。OpenLinkSoftwareがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇