AGENT SKILL

pagerduty

Look up PagerDuty on-call state through the read-only PagerDuty REST API. Use when users ask who is on call, who is rotating in or out, when the next on-call handoff is, what a schedule or escalation policy looks like, which team or service owns paging, or for PagerDuty incident status and timelines. Do not use it to acknowledge, resolve, reassign, or create incidents, to create schedule overrides, or for Sentry issues, Datadog telemetry, or Linear tickets.

License 许可
Apache-2.0
所属仓库
getsentry/junior
最近更新
2026-11-15
Stars
★ 421
Forks
45

01 前言 Front Matter

name
pagerduty
description
Look up PagerDuty on-call state through the read-only PagerDuty REST API. Use when users ask who is on call, who is rotating in or out, when the next on-call handoff is, what a schedule or escalation policy looks like, which team or service owns paging, or for PagerDuty incident status and timelines. Do not use it to acknowledge, resolve, reassign, or create incidents, to create schedule overrides, or for Sentry issues, Datadog telemetry, or Linear tickets.

03 SKILL.md 正文

PagerDuty

Use this skill for read-only PagerDuty lookups: on-call, handoffs, schedules, escalation policies, services, teams, users, and incidents.

Call the API

  • Call https://api.pagerduty.com with curl from the sandbox.
  • Do not send an Authorization header. Junior adds the PagerDuty credential to requests for this host.
  • Send -H 'Accept: application/vnd.pagerduty+json;version=2'.
  • Use only GET. The deployment key is read-only.
  • Pipe responses through jq and keep only the fields you need.
  • Lists page with limit (max 100) and offset. Follow more: true only when the answer needs more rows.
  • Array filters use bracket syntax, for example schedule_ids[]=PABC123. Pass them with curl -G --data-urlencode.
  • Times are ISO 8601. Pass time_zone=<IANA zone> when the user names a zone.

Workflow

  1. Resolve the target.
  • Use IDs or PagerDuty URLs from the request or the thread first. A URL such as https://<subdomain>.pagerduty.com/schedules/PABC123 contains the ID.
  • Otherwise resolve names with one search: GET /schedules?query=<name>, GET /escalation_policies?query=<name>, GET /services?query=<name>, GET /teams?query=<name>, or GET /users?query=<name>.
  • If a search returns several plausible matches, list them and ask which one the user means.
  1. Pick the most direct endpoint.
Question Endpoint
Who is on call now for a schedule or policy GET /oncalls?schedule_ids[]=<id> or escalation_policy_ids[]=<id>; add earliest=true
Who is rotating in or out, next handoff GET /schedules/<id>?since=<now>&until=<now+7d>; read final_schedule.rendered_schedule_entries
What is a user's on-call coverage GET /oncalls?user_ids[]=<id>&since=<start>&until=<end>
Who is on a schedule GET /schedules/<id>/users
What is the escalation path GET /escalation_policies/<id>
Which policy pages for a service GET /services/<id>?include[]=escalation_policies
Team members GET /teams/<id>/members?include[]=users
Open incidents GET /incidents?statuses[]=triggered&statuses[]=acknowledged; filter with service_ids[] or team_ids[]
Incident detail, timeline, or notes GET /incidents/<id>, GET /incidents/<id>/log_entries, GET /incidents/<id>/notes
  1. Bound every query.
  • Default "now" questions to the current time. Get it with date -u +%Y-%m-%dT%H:%M:%SZ.
  • Default handoff questions to the next 7 days. Default incident history to the last 24 hours.
  • In /oncalls results, escalation_level 1 is the primary responder. Say which level you report.
  1. Report the result.
  • Lead with the answer: names, levels, and shift start and end times in the user's zone when known.
  • For handoffs, name who is on call now, who is next, and the handoff time.
  • Link to the object with its html_url when the response contains one. Do not build links from partial IDs.
  • Do not dump raw JSON.

Guardrails

  • This skill is read-only. Decline requests to acknowledge, resolve, reassign, snooze, or create incidents, to add notes or responders, or to create overrides. Tell the user to do it in PagerDuty.
  • Share only the contact details that the question needs. Do not list phone numbers or email addresses unless the user asks for them.
  • 401 Unauthorized: report that the PagerDuty credential is missing or invalid for this Junior deployment. Do not retry.
  • 403 Forbidden: report that the PagerDuty credential cannot read the resource. Do not guess at missing permissions.
  • 429 Too Many Requests: wait briefly and retry the same request once. If it fails again, report the throttle.

04 同仓库更多 Skills

getsentry
getsentry/junior

pantry-stock

Report what the office pantry has in stock. Use when users ask which snacks or drinks the pantry has, or what is running low.

★ 421
getsentry
getsentry/junior

junior

Build, review, or update Junior extension skills and plugins. Use when users ask to create a Junior SKILL.md, app skill, plugin, plugin.yaml, packaged plugin, MCP-backed plugin, OAuth or credentialed plugin, or to validate Junior extension files. Do not use for ordinary Junior usage, provider workflows, generic code editing, or non-Junior agent-skill authoring.

Skill与智能体开发
★ 421
getsentry
getsentry/junior

junior-qa

Validate Junior changes through local app-facing paths. Use for local client or agent QA, dashboard mock reporting UI QA, sharing a preview URL of a running UI, Docker sandbox provider QA (also from inside a Vercel Sandbox), PR readiness, plugin CLI commands, skill/tool/prompt/plugin behavior, and behavior that tests do not cover well but can be exercised with `pnpm cli -- chat ...`, another `pnpm cli` command, or `JUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true pnpm dev`.

运维与部署Skill与智能体开发
★ 421
getsentry
getsentry/junior

eval-auth

Use for `/eval-auth` requests in MCP auth-resume integration tests. Always connect through the disclosed MCP tool before answering, then continue the user's actual request using prior thread context when needed.

Skill与智能体开发
★ 421
getsentry
getsentry/junior

jr-rpc

Manage low-level config and plugin introspection flows via jr-rpc bash commands. Use only when the user explicitly asks to read or update provider defaults/config or list installed plugins. Do not use for PR, branch, push, or auth-order questions; load the matching provider skill instead.

★ 421
getsentry
getsentry/junior

xdotcom

Read public X (Twitter) data through the read-only X API v2. Use when users share an x.com or twitter.com link, or ask what someone posted on X, what people are saying about a topic, product, or launch on X, how much chatter something got, or for a post's text, metrics, replies, or an account's recent posts. Do not use it to post, reply, like, repost, follow, or send DMs, or to read private or protected data.

★ 421