Building Automationsのロゴ

Building Automations

組織
rejot-dev
building-automations

イベントやスケジュールに基づいて、Backofficeで継続的に動作する処理を自動化します。後で実行する自動化、イベント起動型ルート、スケジュール型ルート、保存済みワークフローの作成や変更をユーザーが明示的に依頼した場合に使用します。

概要

公開者rejot-dev
リポジトリfragno
スキル名building-automations
スター
62
フォーク
6
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rejot-dev/fragno.git /tmp/fragno
mkdir -p .claude/skills
cp -r /tmp/fragno/apps/backoffice/content/static/skills/building-automations .claude/skills/building-automations
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Building Automations

Treat every automation as a route with one trigger → action. Event triggers select catalog events; scheduled triggers own their cadence. The action starts or signals a saved workflow or forwards the event.

Required process

  1. Read the live declarations before editing:

    • "/static/codemode/providers/events.d.ts" for the event catalog;
    • "/static/codemode/providers/router.d.ts" for route schemas and actions;
    • "/static/codemode/workflow-authoring.d.ts" when saving a workflow;
    • "/static/codemode/providers/store.d.ts" only when durable key/value coordination is needed.

    Then inspect the event descriptor and existing artifacts:

    js
    async () => {
      const catalog = await events.catalogList({});
      const eventDescriptor = await events.catalogGet({
        source: "telegram",
        eventType: "message.received",
      });
      const routes = await router.list({});
      const workflowFiles = await state.glob({
        pattern: "/workspace/automations/**/*.workflow.js",
      });
      return { catalog, eventDescriptor, routes, workflowFiles };
    };

    Complete when the exact catalog source and eventType, relevant existing routes and workflow files are known.

  2. Choose the smallest topology that satisfies the request:

    • External or product event: route with an event trigger.
    • Time-based trigger: route with a schedule trigger.
    • New work: start_workflow.
    • Resume waiting work: send_workflow_event.
    • Cross-scope delivery: forward_event.

    Use stable, namespaced ids. For start_workflow, make workflowScriptPath point to a saved file containing exactly one statically named defineWorkflow(...). Backoffice validates the authored name from the file and keeps workflow-host routing internal. Complete when every trigger, action, file path, and instance-id template has one unambiguous value.

  3. Check prerequisites. When an external capability is involved, inspect it with connections.get({ id }). If configuration is incomplete, use the Configuring Connections skill and collect the missing values from the user. Complete when every provider the automation will call is configured or the user has been told exactly what remains missing.

  4. Create the required artifacts in dependency order: saved workflow, then route.

    Save workflow implementations in /workspace/automations/ with a .workflow.js suffix:

    js
    async () => {
      const path = "/workspace/automations/telegram-hello.workflow.js";
      await state.writeFile({
        path,
        content: `defineWorkflow(
    { name: "telegram-hello" },
    async (event, step) => {
     return await step.do("capture-event", async () => {
       return { receivedEventId: event.id };
     });
    },
    );
    `,
      });
      return { path };
    };

    Grants

    Choose authority from the workflow's user source:

    • delegated-user: the triggering event already carries an internal user principal.
    • linked-user: resolve the external initiator's active user binding.

    For either user-backed mode, use grants: "inherit" when the workflow should retain the user's current permissions. The route remains a delegate, while role changes, bans, membership removal, and route disablement still apply. Use an explicit canonical grant array only when the route must narrow the user's authority.

    organization-automation has no user principal to inherit from. Give it the explicit canonical permissions used by its runtime tools. Creating or updating an explicit grant array requires the configuring execution to hold every requested grant. Complete when the authority mode names the intended principal and its grant policy is either inherited user authority or the smallest explicit automation grant set.

    Signal an existing durable workflow on a schedule, with an explicit IANA time zone:

    js
    async () =>
      await router.create({
        id: "daily-digest",
        name: "Daily digest",
        trigger: {
          kind: "schedule",
          cadence: {
            kind: "cron",
            expression: "0 9 * * 1-5",
            timeZone: "America/New_York",
          },
        },
        action: {
          kind: "send_workflow_event",
          target: { kind: "instance_id", template: "daily-digest" },
          eventType: "scheduled",
        },
      });

    Create event-triggered routes with the router provider:

    js
    async () => {
      return await router.create({
        id: "telegram-hello",
        name: "Telegram hello",
        trigger: {
          kind: "event",
          source: "telegram",
          eventType: "message.received",
          matcher: { path: "$.payload.text", op: "startsWith", value: "/hello" },
        },
        priority: 1000,
        action: {
          kind: "start_workflow",
          authority: { kind: "linked-user", grants: "inherit" },
          workflowScriptPath: "/workspace/automations/telegram-hello.workflow.js",
          instanceIdTemplate: "telegram-hello-${event.id}",
        },
      });
    };

    For send_workflow_event, identify the durable run only by its instance ID. Use { kind: "instance_id", template } when the event can render the workflow instance id directly. Use { kind: "stored_instance_id", keyTemplate } when a prior run stored the instance id under a rendered store key. Complete when every required artifact has been created or updated successfully.

  5. Use the automation store only for small durable coordination values. Values are strings, structured values use JSON.stringify, and keys are stable and namespaced. Store inputs contain domain data only; trusted execution provenance is recorded by the kernel. Categories are ordinary labels. Use verification for JSON text that must satisfy a schema.

  6. Re-read the completed route with router.get({ id }) and state.readFile({ path: workflowScriptPath }) when saved. Run connections.verify({ id }) for external providers. Complete only when the route trigger, action, workflow name, file path, and connection status all line up end to end.

Legacy router.cm.js files are outside this topology. Database-backed router rules are the routing source of truth; saved workflow files contain the behavior.

よくある質問

AIスキル「Building Automations」では何ができますか?

イベントやスケジュールに基づいて、Backofficeで継続的に動作する処理を自動化します。後で実行する自動化、イベント起動型ルート、スケジュール型ルート、保存済みワークフローの作成や変更をユーザーが明示的に依頼した場合に使用します。

TypingMindでBuilding Automationsを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/rejot-dev/fragno/tree/main/apps/backoffice/content/static/skills/building-automationsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Building Automationsを使えるAIモデルはどれですか?

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

Building Automationsで使えるAIモデルの数に制限はありますか?

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

AIスキル「Building Automations」は無料ですか?

はい。rejot-devがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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