CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

seer-automations-box

Create a box with Seer running and a breached metric monitor, Seer automation run and investigation already in it, for testing Seer automations end to end. Use when asked for "a Seer automations box", "a new box with the breach script run", "a box with a metric breach", or fresh Seer automation test data on a box.

Quality

96%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Seer Automations Box

Sets up a new box (Sentry's cloud dev VMs) with Seer serving and one realistic breached metric monitor. bin/seer/trigger-metric-breach seeds the monitor's data from Seer's investigation evals, breaches it, and starts a Seer automation run that opens an investigation.

Run every step with the box CLI from the user's laptop (or another box). Don't stop to ask between steps.

1. Create the box

box create <name> --json

Use the name the user gave, or let box pick one.

2. Check out branches (optional)

If the user named sentry or seer branches to test, check them out on the box in /workspace/sentry and /workspace/seer:

box exec <name> 'cd sentry && git fetch origin <branch> && git checkout -B <branch> FETCH_HEAD'

3. Turn on the Seer flags

Flagpole's rules for these flags include a sentry_cell condition a box never matches, so they're off until overridden. Write ~/feature-overrides.json on the box, before box serve, with this content (getsentry's org on a box has the slug sentry):

{
  "feature.organizations:seer-automations": {
    "created_at": "2026-10-14",
    "enabled": true,
    "owner": {"team": "ml-ai"},
    "segments": [
      {
        "name": "box",
        "rollout": 100,
        "conditions": [
          {"property": "organization_slug", "operator": "equals", "value": "sentry"}
        ]
      }
    ]
  },
  "feature.organizations:investigations": {
    "created_at": "2026-08-25",
    "enabled": true,
    "owner": {"team": "ml-ai"},
    "segments": [
      {
        "name": "box",
        "rollout": 100,
        "conditions": [
          {"property": "organization_slug", "operator": "equals", "value": "sentry"}
        ]
      }
    ]
  },
  "feature.organizations:investigations-issue-links": {
    "created_at": "2026-11-10",
    "enabled": true,
    "owner": {"team": "issues"},
    "segments": [
      {
        "name": "box",
        "rollout": 100,
        "conditions": [
          {"property": "organization_slug", "operator": "equals", "value": "sentry"}
        ]
      }
    ]
  },
  "feature.organizations:seer-explorer": {
    "created_at": "2025-07-10",
    "enabled": true,
    "owner": {"team": "ml-ai"},
    "segments": [
      {
        "name": "box",
        "rollout": 100,
        "conditions": [
          {"property": "organization_slug", "operator": "equals", "value": "sentry"}
        ]
      }
    ]
  },
  "feature.organizations:seer-primary-nav": {
    "created_at": "2026-10-22",
    "enabled": true,
    "owner": {"team": "ml-ai"},
    "segments": [
      {
        "name": "box",
        "rollout": 100,
        "conditions": [
          {"property": "organization_slug", "operator": "equals", "value": "sentry"}
        ]
      }
    ]
  }
}

4. Serve Sentry and Seer

box serve <name> --seer

Wait until Seer answers: box exec <name> 'until curl -sf localhost:9091/health/live; do sleep 2; done'.

5. Run the breach script

A box serves getsentry's devserver and its getsentry database, while a box shell's SENTRY_CONF points at plain Sentry's, so point the script at getsentry's settings:

box exec <name> 'cd sentry && SENTRY_CONF=/workspace/getsentry/getsentry/settings.py .venv/bin/python bin/seer/trigger-metric-breach'

It takes about a minute and prints the issue, automation and investigation links. Each run seeds a new project and monitor, so rerunning always fires a new automation run.

6. Report

Give the user the box name and box's URL for people (from box serve's output). The script's printed links use http://dev.getsentry.net:8000, which only works on the box, so swap that prefix for the box's URL. The investigation finishes in about 8 minutes.

Repository

getsentry/sentry

Path

.agents/skills/seer-automations-box/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.