# NotiBuddy Custom Native Screens & Built-In Templates

> Canonical gallery: https://notibuddy.app/screens
> Package: `notibuddy@^0.4.0` (`notibuddy_notify` MCP tool or `nb notify --screen <file.json>` CLI).

NotiBuddy renders rich native SwiftUI screens on iPhone and iPad from structured JSON. Use any of the 8 pre-signed certified templates below by passing `screen: { templateId, labels, data }`, or compose an inline layout with `screen: { template }` from 12 native blocks. The relay validates and caches only the content-free structural skeleton for up to 30 days; all labels, metrics, diffs, and signed replies stay end-to-end encrypted.

Cannot combine `screen` with `message`, `options`, `fields`, `input_placeholder`, `diff`, or `resume_id`.

## 8 Certified Built-In Templates

### Deployment Gate (`deployment_gate`)

- **Template ID:** `tpl_7320257f323bb157a27a9f3eb40ca76a06a63b7cc3a6d877884f2450b68fb75a`
- **Category:** Release & CI
- **Biometric Face ID gate:** Yes
- **Blocks:** badge, alert, kpiStrip, keyValueList, checklist, formField (toggle)
- **Best for:** CI/CD release promotions, canary-to-production cutovers, and agent-triggered deploys.

Production release promotion gate with canary KPIs, artifact manifest, readiness checklist, confirmation toggle, and Face ID sign-off.

```json
{
  "title": "Promote api-gateway v2.4.1 to production",
  "screen": {
    "templateId": "tpl_7320257f323bb157a27a9f3eb40ca76a06a63b7cc3a6d877884f2450b68fb75a",
    "labels": {
      "s0": "Canary status",
      "s1": "Production",
      "s2": "Canary healthy across us-east and eu-central",
      "s3": "All 128 integration checks passed with zero elevated 5xx responses.",
      "s5": "Release manifest",
      "s7": "Pre-flight sign-off",
      "s9": "I verified the rollback image is pinned",
      "s10": "Promote to production",
      "s11": "Hold canary",
      "s12": "Abort deploy"
    },
    "data": {
      "s4": [
        {
          "label": "Success",
          "value": "99.98%"
        },
        {
          "label": "Errors",
          "value": "0.02%"
        },
        {
          "label": "P95",
          "value": "41 ms"
        }
      ],
      "s6": [
        {
          "key": "Service",
          "value": "api-gateway"
        },
        {
          "key": "Version",
          "value": "v2.4.1"
        },
        {
          "key": "Commit",
          "value": "8f3c19a"
        },
        {
          "key": "Triggered by",
          "value": "GitHub Actions"
        }
      ],
      "s8": [
        "Database backup verified",
        "On-call engineer notified",
        "Zero active P1 incidents"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen deployment-gate.json`

### Database Migration Approval (`db_migration_approval`)

- **Template ID:** `tpl_9a64eaa2fbf40f9821af64340dba6788893684e3c1fd39a2651850130c0cdeb3`
- **Category:** Database
- **Biometric Face ID gate:** Yes
- **Blocks:** badge, alert, keyValueList, diffViewer, checklist
- **Best for:** Destructive SQL migrations, index changes, and agent-authored schema updates.

Schema or data migration sign-off with warning banner, target cluster metadata, inline DDL diff viewer, pre-flight checklist, and Face ID gate.

```json
{
  "title": "Run migration 20261123_drop_legacy_tokens.sql",
  "screen": {
    "templateId": "tpl_9a64eaa2fbf40f9821af64340dba6788893684e3c1fd39a2651850130c0cdeb3",
    "labels": {
      "s0": "Migration target",
      "s1": "Destructive DDL",
      "s2": "Table lock expected (~4 seconds)",
      "s3": "Dropping legacy_session_tokens removes 1.2M expired rows and frees 840 MB.",
      "s5": "DDL diff",
      "s7": "Safety checks",
      "s9": "Run migration",
      "s10": "Cancel"
    },
    "data": {
      "s4": [
        {
          "key": "Cluster",
          "value": "prod-postgres-primary"
        },
        {
          "key": "Migration",
          "value": "20261123_drop_legacy_tokens.sql"
        },
        {
          "key": "Estimated lock",
          "value": "4s (ACCESS EXCLUSIVE)"
        }
      ],
      "s6": {
        "filename": "migrations/20261123_drop_legacy_tokens.sql",
        "language": "sql",
        "original": "CREATE TABLE legacy_session_tokens (\n  id uuid PRIMARY KEY,\n  expires_at timestamptz NOT NULL\n);",
        "modified": "DROP TABLE IF EXISTS legacy_session_tokens;\n-- Snapshot archived to s3://db-backups/2026-11-23/"
      },
      "s8": [
        "Point-in-time snapshot completed",
        "Zero active readers on legacy_session_tokens"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen db-migration-approval.json`

### Incident Triage (`incident_triage`)

- **Template ID:** `tpl_efcaca7923b82253ed38e2b0f71950d967bc55d5085fb1d315b55b2953a65294`
- **Category:** Incident Response
- **Biometric Face ID gate:** Yes
- **Blocks:** badge, alert, kpiStrip, keyValueList, divider, formField (picker, text)
- **Best for:** Automated anomaly alerts, agent-detected regressions, and one-tap rollback or escalation.

On-call incident response screen with danger banner, live error KPIs, context metadata, severity picker, response note, and Face ID failover action.

```json
{
  "title": "P1: Elevated 502 rate on checkout-api",
  "screen": {
    "templateId": "tpl_efcaca7923b82253ed38e2b0f71950d967bc55d5085fb1d315b55b2953a65294",
    "labels": {
      "s0": "Active incident",
      "s1": "SEV-1",
      "s2": "502 spike after v2.4.1 rollout",
      "s3": "Error rate crossed 4.8% in us-east-1 for 3 consecutive minutes.",
      "s5": "Response & routing",
      "s7": "Assigned severity",
      "s9": "Action note",
      "s10": "Optional note (required for rollback)",
      "s11": "Acknowledge & investigate",
      "s12": "Rollback to v2.4.0",
      "s13": "Dismiss false positive"
    },
    "data": {
      "s4": [
        {
          "label": "502 Rate",
          "value": "4.8%"
        },
        {
          "label": "P99",
          "value": "1.9 s"
        },
        {
          "label": "Affected",
          "value": "us-east-1"
        }
      ],
      "s6": [
        {
          "key": "Service",
          "value": "checkout-api"
        },
        {
          "key": "Suspect commit",
          "value": "8f3c19a"
        },
        {
          "key": "Alert ID",
          "value": "INC-4921"
        }
      ],
      "s8": [
        "SEV-1 Critical",
        "SEV-2 High",
        "SEV-3 Moderate"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen incident-triage.json`

### Code Review Form (`code_review_form`)

- **Template ID:** `tpl_516ea85f72e98ed524aed18b1fc44b73f63e0b2a18fd1a85e5b6a64a7c0866d3`
- **Category:** Code Review
- **Biometric Face ID gate:** No
- **Blocks:** badge, text, keyValueList, diffViewer, formField (picker, text)
- **Best for:** Reviewing Claude Code, Codex, or Cursor patches from your iPhone before merging or committing.

Patch or pull-request review with summary, repo metadata, inline diff viewer, disposition picker, and required review comment.

```json
{
  "title": "Review patch: rate-limit retry backoff",
  "screen": {
    "templateId": "tpl_516ea85f72e98ed524aed18b1fc44b73f63e0b2a18fd1a85e5b6a64a7c0866d3",
    "labels": {
      "s0": "Patch summary",
      "s1": "Ready for review",
      "s2": "Adds capped exponential backoff with jitter when upstream returns HTTP 429.",
      "s4": "Changed file",
      "s6": "Your review",
      "s7": "Disposition",
      "s9": "Review note",
      "s10": "Explain approval or requested edits",
      "s11": "Submit review",
      "s12": "Cancel"
    },
    "data": {
      "s3": [
        {
          "key": "Repo",
          "value": "yourbit-network/notibuddy"
        },
        {
          "key": "Branch",
          "value": "fix/retry-backoff"
        },
        {
          "key": "Tests",
          "value": "42/42 passing"
        }
      ],
      "s5": {
        "filename": "src/retry.ts",
        "language": "typescript",
        "original": "const delayMs = 1000 * attempt;",
        "modified": "const base = Math.min(30_000, 500 * 2 ** attempt);\nconst delayMs = Math.round(base * (0.8 + Math.random() * 0.4));"
      },
      "s8": [
        "Approve & apply",
        "Request changes",
        "Comment only"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen code-review-form.json`

### KPI Status Card (`kpi_status_card`)

- **Template ID:** `tpl_6fa3fbdf264b1048364bf9b4179464ccc6795a1b5c67ade9e5e2ac8a00262526`
- **Category:** Observability
- **Biometric Face ID gate:** No
- **Blocks:** heading, badge, kpiStrip, divider, text, keyValueList
- **Best for:** Nightly cron digests, training run checkpoints, benchmark summaries, and daily cost reports.

Compact operational report with headline metrics, status badge, narrative summary, and detailed key-value breakdown.

```json
{
  "title": "Eval run #142 completed",
  "screen": {
    "templateId": "tpl_6fa3fbdf264b1048364bf9b4179464ccc6795a1b5c67ade9e5e2ac8a00262526",
    "labels": {
      "s0": "Evaluation summary",
      "s1": "Prompt v14 benchmark",
      "s2": "Pass +4.2%",
      "s4": "Accuracy improved on tool-calling tasks with 18% fewer output tokens than v13.",
      "s5": "Run details",
      "s7": "Promote prompt v14",
      "s8": "Keep v13"
    },
    "data": {
      "s3": [
        {
          "label": "Pass rate",
          "value": "94.6%"
        },
        {
          "label": "Median latency",
          "value": "620 ms"
        },
        {
          "label": "Cost / 1k",
          "value": "$1.84"
        }
      ],
      "s6": [
        {
          "key": "Dataset",
          "value": "agent-eval-500"
        },
        {
          "key": "Baseline",
          "value": "v13 (90.4%)"
        },
        {
          "key": "Duration",
          "value": "11m 42s"
        }
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen kpi-status-card.json`

### Action Checklist (`action_checklist`)

- **Template ID:** `tpl_ab44ab504d7cc01c05bd68f23d0c31550e6f66b6dc02b30f5a5f903dd068dcaa`
- **Category:** Operations
- **Biometric Face ID gate:** Yes
- **Blocks:** heading, text, checklist, divider, formField (toggle)
- **Best for:** App Store release checklists, key rotation runbooks, and irreversible cleanup scripts.

Step-by-step verification checklist paired with a required confirmation toggle that unlocks Face ID submission only when every item is checked.

```json
{
  "title": "Publish notibuddy@0.4.1 to npm",
  "screen": {
    "templateId": "tpl_ab44ab504d7cc01c05bd68f23d0c31550e6f66b6dc02b30f5a5f903dd068dcaa",
    "labels": {
      "s0": "Release overview",
      "s1": "npm publish checklist",
      "s2": "Confirm all release artifacts before the agent runs npm publish and updates the Homebrew formula.",
      "s3": "Required checks",
      "s4": "Pre-publish verification",
      "s6": "I confirm the changelog and git tag match v0.4.1",
      "s7": "Publish release",
      "s8": "Abort"
    },
    "data": {
      "s5": [
        "All unit and integration tests passed",
        "Tarball contents inspected with npm pack --dry-run",
        "No secrets or local fixtures bundled"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen action-checklist.json`

### Parameter Tuning Form (`parameter_tuning_form`)

- **Template ID:** `tpl_dd6f8732c37e901667a0c1e9d9764b36b878121a2ae5beac73bb2ad593dc4e4a`
- **Category:** Tuning
- **Biometric Face ID gate:** Yes
- **Blocks:** text, keyValueList, formField (stepper, picker, toggle, text)
- **Best for:** Adjusting worker concurrency, LLM temperature/budget caps, rate limits, or autoscaling parameters live.

Runtime configuration editor with current settings summary, integer stepper, mode picker, safety toggle, rationale note, and Face ID apply.

```json
{
  "title": "Adjust queue worker concurrency",
  "screen": {
    "templateId": "tpl_dd6f8732c37e901667a0c1e9d9764b36b878121a2ae5beac73bb2ad593dc4e4a",
    "labels": {
      "s0": "Current configuration",
      "s1": "Queue depth reached 4,200 jobs. Adjust concurrency and retry strategy before resuming workers.",
      "s3": "Updated parameters",
      "s4": "Max concurrent workers",
      "s5": "Routing mode",
      "s7": "Enable circuit breaker",
      "s8": "Change rationale",
      "s9": "Optional note for audit log",
      "s10": "Apply settings",
      "s11": "Keep current"
    },
    "data": {
      "s2": [
        {
          "key": "Current workers",
          "value": "10"
        },
        {
          "key": "Queue depth",
          "value": "4,200"
        },
        {
          "key": "Error budget",
          "value": "99.5%"
        }
      ],
      "s6": [
        "Balanced",
        "Throughput-first",
        "Cost-saving"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen parameter-tuning-form.json`

### Multi-Choice Audit (`multi_choice_audit`)

- **Template ID:** `tpl_33d53edadb953581c0d1dfe4c857c86c5a42d53e8dba668a4b091081057dbc99`
- **Category:** Compliance
- **Biometric Face ID gate:** Yes
- **Blocks:** heading, badge, text, keyValueList, formField (picker ×2, text, toggle)
- **Best for:** Access-grant approvals, dependency security audits, and signed compliance attestations.

Structured compliance or security review with evidence rows, dual choice pickers, required auditor note, attestation toggle, and Face ID sign-off.

```json
{
  "title": "Security audit: grant production read token",
  "screen": {
    "templateId": "tpl_33d53edadb953581c0d1dfe4c857c86c5a42d53e8dba668a4b091081057dbc99",
    "labels": {
      "s0": "Audit evidence",
      "s1": "Scoped token request",
      "s2": "Pending review",
      "s3": "Agent requested a 2-hour read-only token to inspect production billing metrics.",
      "s5": "Auditor decision",
      "s6": "Scope grant",
      "s8": "Expiration window",
      "s10": "Auditor rationale",
      "s11": "Required for approval or revocation",
      "s12": "I reviewed the requested scope and ticket",
      "s13": "Approve scoped token",
      "s14": "Revoke & alert security",
      "s15": "Deny"
    },
    "data": {
      "s4": [
        {
          "key": "Requester",
          "value": "billing-agent@mac"
        },
        {
          "key": "Ticket",
          "value": "SEC-1084"
        },
        {
          "key": "Requested scope",
          "value": "metrics:read"
        }
      ],
      "s7": [
        "metrics:read only",
        "logs:read + metrics:read"
      ],
      "s9": [
        "1 hour",
        "2 hours",
        "24 hours"
      ]
    }
  }
}
```

CLI: `npx -y notibuddy@^0.4.0 notify --to personal --screen multi-choice-audit.json`

## 12 Native SwiftUI Blocks

- `vstack` (Layout): Vertical container with compact, regular, or relaxed spacing.
- `card` (Layout): Grouped native surface with an optional encrypted section header.
- `divider` (Layout): Subtle hairline separator between sections inside a card.
- `heading` (Content): Section heading at level 1, 2, or 3 with Dynamic Type scaling.
- `text` (Content): Body, caption, or monospaced text block.
- `badge` (Content): Status pill in neutral, info, success, warning, or danger tone.
- `alert` (Content): Highlighted callout banner with title, body, and severity.
- `kpiStrip` (Data): Compact horizontal metric strip of label/value KPI tiles.
- `keyValueList` (Data): Structured metadata rows for versions, targets, commits, or IDs.
- `diffViewer` (Data): Inline syntax-aware unified or before/after code and DDL diff viewer.
- `checklist` (Interactive): Interactive pre-flight items that can gate action buttons via allChecked.
- `formField` (Interactive): Native text, email, url, secret, date, toggle, stepper, or picker inputs.

## Inline Custom Layout Example

Pre-register reusable templates with `nb screen register <file.json> [--strict]`, or send an inline layout directly:

```json
{
  "title": "Approve nightly model eval",
  "screen": {
    "template": {
      "root": {
        "kind": "vstack",
        "spacing": "regular",
        "children": [
          {
            "kind": "card",
            "header": "Eval summary",
            "children": [
              { "kind": "badge", "tone": "success", "label": "All checks passed" },
              {
                "kind": "kpiStrip",
                "items": [
                  { "label": "Score", "value": "96.4%" },
                  { "label": "Latency", "value": "410 ms" }
                ]
              }
            ]
          }
        ]
      },
      "actions": [
        { "id": "promote", "label": "Promote weights", "role": "primary", "requireBio": true },
        { "id": "cancel", "label": "Cancel", "role": "decline", "requireBio": false }
      ]
    }
  }
}
```

## Related Documentation

- [Full setup & CLI reference](https://notibuddy.app/setup.md)
- [Claude Code & Claude Desktop guide](https://notibuddy.app/claude-code.md)
- [GitHub Actions & CI/CD approvals](https://notibuddy.app/github-actions.md)
- [Agent index](https://notibuddy.app/llms.txt)
