Integration authoring

From c9r-io/orchestrator · View interactive version

Integration authoring is an AI agent skill from the GitHub repository c9r-io/orchestrator. Create or update integration manifest packages in the companion repo (orchestrator-integrations). Use when a user asks to add a new integration (Slack, GitHub, Discord, Jira, etc.), create a webhook trigger for an external service, or extend the integrations library. Routes all integration work to t

How to use this skill

Skill file

Integration Authoring

Create, update, or extend integration manifest packages in the companion orchestrator-integrations repository.

Repository Layout

<org-root>/
├── orchestrator/                  # Main project (this repo)
│   ├── crates/                    # Core engine code
│   ├── docs/showcases/            # Execution plans
│   └── .claude/skills/            # Skills (including this one)
└── orchestrator-integrations/     # Integration packages (companion repo)
    ├── slack/
    ├── github/
    ├── line/
    └── <new-integration>/

When to Use This Skill

Workflow

1. Determine Scope

2. Create/Update Integration Package

Work in the companion repo at ../orchestrator-integrations/ (relative to this project root).

Each integration package MUST follow this structure:

<platform>/
├── secrets-template.yaml     # SecretStore with placeholder values
├── trigger-<event>.yaml      # One Trigger per event type
├── step-template-<action>.yaml  # Optional StepTemplate for payload handling
└── README.md                 # Platform setup guide

3. Manifest Standards

SecretStore template:

apiVersion: orchestrator.dev/v2
kind: SecretStore
metadata:
  name: <platform>-secret
spec:
  data:
    signing_secret: "<your-<platform>-secret>"

Webhook Trigger:

apiVersion: orchestrator.dev/v2
kind: Trigger
metadata:
  name: <platform>-<event>
spec:
  event:
    source: webhook
    webhook:
      secret:
        fromRef: <platform>-secret
      signatureHeader: <platform-specific-header>
    filter:
      condition: "<CEL expression for event filtering>"
  action:
    workflow: handle-<platform>-<event>
    workspace: default

4. README Standards

Each integration README MUST include:

  1. Prerequisites — orchestrator version, webhook server (enabled by default on 127.0.0.1:19090)
  2. Platform Setup — step-by-step guide to create app/webhook on the platform
  3. Secret Retrieval — where to find the signing secret/API key
  4. Webhook URL — exact URL format: http://<host>:<port>/webhook/<trigger-name>
  5. Apply Commands — complete orchestrator apply -f commands

5. Validate Manifests

After creating/updating manifests:

# Validate one exact package manifest from the main orchestrator project.
orchestrator manifest validate \
  -f ../orchestrator-integrations/<platform>/trigger-<event>.yaml

Note: Triggers may fail validation if referenced workflows don't exist — that's expected. The important thing is no YAML parse errors or unknown field errors.

6. Commit to Companion Repo

cd ../orchestrator-integrations
git add -A
git commit -m "feat: add <platform> integration — <description>"
git push

7. Update Main Project References (if needed)

If the new integration introduces a pattern worth showcasing:

Integration Checklist

Available Integrations (Current)

| Platform | Directory | Triggers |

|----------|-----------|----------|

| Slack | slack/ | message, slash-command |

| GitHub | github/ | push, pr-opened, issue-comment |

| LINE | line/ | message |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.