Back to skills
SKILL.md
Hosted App Integrations
ASecurityTitle: Hosted App & Owner-Connected Integrations Keywords: apps-tab, owner-connected, slack, discord, telegram, supabase, dreambase, vercel, github-app, github-ci, secret-box, chat-relay, scaffold Agents: lobby-architect, backend, infrastructure, security, integration-reliability-engineer When to use: When adding, modifying, or auditing owner-connected integrations in the hosted Apps tab — Slack, Discord, Telegram chat relays, GitHub App/CI, Vercel deploy scaffolds, Supabase hosted DB, or dre...
- 4 stars
- 0 votes
- 0 copies
- 1 view
- Added December 5, 2026
Works with
Security analysis
100/100npx -y skills add ronnikc/agent-os-protocol --skill hosted-app-integrations --agent claude-codeAre you the author of Hosted App Integrations?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ronnikc-hosted-app-integrations)Title: Hosted App & Owner-Connected Integrations
Keywords: apps-tab, owner-connected, slack, discord, telegram, supabase, dreambase, vercel, github-app, github-ci, secret-box, chat-relay, scaffold
Agents: lobby-architect, backend, infrastructure, security, integration-reliability-engineer
When to use: When adding, modifying, or auditing owner-connected integrations in the hosted Apps tab — Slack, Discord, Telegram chat relays, GitHub App/CI, Vercel deploy scaffolds, Supabase hosted DB, or dreambase.io stats.
Version: 1.0.0
Last updated: 2026-12-05
Build and audit owner-connected integrations across `packages/lobby-server/src/integrations/`, `packages/slack-relay/`, and `agent-os-panel/tabs/apps.js`. Enforces per-lobby sealed credentials (`secret-box.ts`), masked status hints, explicit revocation audit trails, and repo-scoped scaffolding without ever exposing owner secrets across lobbies or in client responses.
---
## Workflow
### Step 1 — Route credentials through `ownerConnectedApp.ts` + `secret-box.ts`
- Use `connectOwnerIntegration`, `ownerIntegrationStatus`, and `revokeOwnerIntegration` for Slack, Discord, Telegram, Supabase, and dreambase.io.
- Seal credentials per-lobby in `IntegrationSecret` via `saveIntegrationSecret`. Never store plaintext tokens in lobby state JSON, logs, or repo files.
- Reconnecting an existing provider MUST revoke the prior integration record first so stale tokens cannot linger.
### Step 2 — Enforce masked status responses and authorization
- Status endpoints (`/api/lobby/remote/integrations/<provider>`) MUST return only `{ connected, account, external_id, scopes, secret_hint }` using `maskSecret()`. Never return raw tokens or service keys.
- Verify lobby owner authorization (`lobbyAuthz.ts` / `slackAuthorization.ts`) on every connect, disconnect, and scaffold mutation.
### Step 3 — Verify repo scaffolds (Vercel, GitHub CI, Supabase)
- Keep scaffolds idempotent: re-running `scaffold-vercel`, `scaffold-ci`, or `scaffold-supabase` must not clobber customized repo workflows or leak credentials into committed files.
- Secrets required for CI/deploy (e.g. Vercel or Supabase Actions secrets) belong strictly in the owner's GitHub Actions secrets — document them in generated setup docs, never commit them.
### Step 4 — Verify chat relays & webhooks
- For Slack (`packages/slack-relay`, `slackApp.ts`), Discord, and Telegram (`chatRelay.ts`, `chatWebhook.ts`), verify request signature validation, per-lobby channel scoping, and non-blocking outbound relay error handling so a chat API outage never stalls lobby execution.
### Step 5 — Run lobby & hosted verification suites
Run `npm run verify-lobby` and `npm run verify-hosted`.
---
## Input Schema
```yaml
input:
provider:
type: string
required: true
enum: [slack, discord, telegram, supabase, dreambase, vercel, github_app, github_ci]
operation:
type: string
required: true
enum: [add_provider, audit_secrets, verify_scaffold, verify_relay, revoke_flow]
```
## Output Schema
```yaml
output:
sealed_per_lobby: { type: boolean }
status_masked_only: { type: boolean }
reconnect_revokes_prior: { type: boolean }
scaffold_idempotent: { type: boolean }
verify_hosted_passed: { type: boolean }
```
## Quality Gate
- All owner credentials sealed via `secret-box.ts` and scoped to a single `lobby_id`.
- Status responses return only masked hints (`maskSecret`), never raw secrets.
- Reconnect revokes previous active integration record; disconnect marks status `revoked`.
- Generated repo scaffolds contain zero credentials and tolerate repeated runs.
- `npm run verify-lobby` and `npm run verify-hosted` pass.
## Chain Metadata
```yaml
chain_metadata:
skill_slug: "hosted-app-integrations"
stage: "S1"
suggested_next:
- slug: "hosted-sandbox-workspaces"
stage: "S1"
reason: "Verify disposable cloud workspace allocation and cleanup alongside Apps tab integrations"
- slug: "security-and-hardening"
stage: "S3"
reason: "Audit webhook signatures, SSRF allowlists, and owner authz boundaries"
```
## Error Handling
- Missing or unreadable sealed secret during status lookup → return `{ connected: true }` without `secret_hint`; never crash or dump decryption internals.
- Repo not connected in Lobby tab → block scaffold actions with explicit guidance rather than throwing an unhandled error.
- Outbound Slack/Discord/Telegram API rate-limit or 5xx → log sanitized failure and continue lobby turn without blocking agents.
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.