Logo: Building Automations

Building Automations

Organisatioun
rejot-dev
building-automations

Automatiséiert permanent Backoffice-Aktiounen op Basis vun Events oder Zäitpläng. Benotzt dëst, wann Dir ausdrécklech eng Automatiséierung, eng Event-baséiert Route, eng geplangte Route oder e gespäicherte Workflow erstelle oder ännere wëllt, deen zu engem spéideren Zäitpunkt lafe soll.

Iwwersiicht

Editeurrejot-dev
Repositoryfragno
Skill-Nummbuilding-automations
Stären
62
Forks
6
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    rejot-dev huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Building Automations an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/rejot-dev/fragno/tree/main/apps/backoffice/content/static/skills/building-automations
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Building Automations an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Building Automations automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Building Automations net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Building Automations?

Automatiséiert permanent Backoffice-Aktiounen op Basis vun Events oder Zäitpläng. Benotzt dëst, wann Dir ausdrécklech eng Automatiséierung, eng Event-baséiert Route, eng geplangte Route oder e gespäicherte Workflow erstelle oder ännere wëllt, deen zu engem spéideren Zäitpunkt lafe soll.

Firwat Building Automations op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Building Automations besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Building Automations an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/rejot-dev/fragno/tree/main/apps/backoffice/content/static/skills/building-automations an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Building Automations benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Building Automations benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Building Automations domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Building Automations gratis?

Jo. rejot-dev huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇