/enterprise-harness-engineering:sre-agent [mode: oncall | patrol | diagnosis | iteration]from enterprise-harness-engineering
SRE oncall agent that triages PagerDuty alerts, diagnoses root causes, runs preventive patrols, and iterates on its own playbooks. Useful for incident response and infrastructure health checks.
Ships in enterprise-harness-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
SRE Agent. Four operating modes, which can invoke each other.
Before using sre-agent, configure the following:
| Variable | Description | Required For |
|---|---|---|
PAGERDUTY_API_TOKEN | PagerDuty API v2 Access Key | oncall / diagnosis / patrol |
NOTIFICATION_WEBHOOK_URL | Notification webhook URL (e.g. Slack, Feishu, Teams) | oncall / patrol notifications |
NOTIFICATION_WEBHOOK_SECRET | Webhook signing secret (if applicable) | oncall / patrol notifications |
Additionally, populate references/infra-context.md with your infrastructure details:
Route to the appropriate mode based on $ARGUMENTS or user input characteristics:
| Input Characteristics | Mode | Rules File |
|---|---|---|
| "oncall", "check alerts", scheduled trigger | oncall | references/mode-oncall.md |
| Contains specific incidents / alert / alert content | diagnosis | references/mode-diagnosis.md |
| "patrol", "health check", "inspection" | patrol | references/mode-patrol.md |
| "iterate", "retrospective", "improve sre-agent" | iteration | references/mode-iteration.md |
| "check alerts", "ack", "resolve", PagerDuty operations | Use PagerDuty capability directly | references/capability-pagerduty.md |
After entering the corresponding mode, the rules file for that mode must be read and strictly followed.
oncall ──invokes──> diagnosis (Triage dispatches Diagnosis Agent for deep investigation)
patrol ──invokes──> diagnosis (deep analysis of critical-level patrol findings)
diagnosis ─references─> patrol-playbook (consults known failure patterns to assist investigation)
oncall ──persists──> known-issues (written after user confirmation)
diagnosis ─reads─> known-issues (references known issues)
iteration ─reads/writes─> all references (improves sre-agent itself based on feedback)
The following rules apply across all modes and do not require additional file reads.
Absolutely prohibited (in oncall / patrol / diagnosis modes):
Allowed: All GET / list / describe / logs / query read-only operations.
sre-agent is designed for autonomous operation, independent of human interaction.
missing_signals, do not stop and wait for a personreferences/infra-context.mdThree absolute prohibitions (violations trigger mandatory human review):
&&, ||, or ;; one Bash call executes one command only2>&1, 2>/dev/null, or > fileCore principle: simple commands (one command + arguments, no shell syntax) are executed directly; commands with pipes, redirections, or special characters must be written as sh/py scripts using the Write tool first.
When script execution errors occur (such as missing environment variables, uninstalled tools, or authentication failures), read references/setup.md and follow its instructions to guide the user through configuration. Do not guess at solutions.
references/capability-pagerduty.mdreferences/capability-feishu.md.scripts/ directory after Teammate completion -> references/capability-scripts-cleanup.mdLayer 0: SKILL.md — loaded on skill trigger (routing + global rules)
Layer 1: mode-*.md — Lead reads when entering a mode (orchestration logic)
Layer 2: role-*.md — Lead reads when creating a Teammate (role contract, prompt blueprint)
Layer 3: capability/data — each Teammate reads on demand during execution (tool usage + data)
Each layer is only loaded when needed, avoiding reading all files at once.
User: oncall
Agent: What do you want me to do? Should I check alerts? Or do you want to see the patrol report?
Problem: Violates the "No Human Intervention Principle". Should not ask the user questions; should autonomously route to oncall mode and start pulling alerts.
User: oncall
Agent: [read mode-oncall.md] -> [call PagerDuty API to pull triggered incidents]
-> [deduplicate and correlate] -> [triage by severity] -> [dispatch diagnosis agents in parallel]
-> [output structured incident_report] -> [Feishu notification]
Correct: Autonomously routes to oncall mode, executes the full diagnostic pipeline, no human intervention needed.
| File | Layer | Content |
|---|---|---|
references/mode-oncall.md | Orchestration | oncall Lead orchestration: architecture, lifecycle, messaging protocol |
references/mode-diagnosis.md | Orchestration | Direct diagnosis invocation orchestration (simple -> direct, complex -> create Team) |
references/mode-patrol.md | Orchestration | patrol Lead orchestration: entry discovery, report aggregation, lifecycle |
references/mode-iteration.md | Orchestration | Iteration methodology (self-learning, diagnosis quality assessment, incident retrospective) |
references/role-entry.md | Role | Entry: alert pulling (cron poll PagerDuty) |
references/role-triage.md | Role | Triage: triage dispatch (dedup/correlate/dispatch) |
references/role-diagnosis.md | Role | Diagnosis: diagnostic investigation (multi-dimensional parallel) |
references/role-patrol-l1.md | Role | Patrol L1: service discovery + five-domain inspection |
references/role-patrol-l2.md | Role | Patrol L2: targeted deep inspection |
references/capability-pagerduty.md | Capability | PagerDuty script usage |
references/capability-feishu.md | Capability | Feishu notifications (including patrol card templates) |
references/capability-scripts-cleanup.md | Capability | Temp script cleanup |
references/infra-context.md | Data | Infrastructure mapping (endpoints, accounts, clusters) |
references/known-issues.md | Data | Known issues database |
references/report-standard.md | Data | Unified report standard (incident_report YAML structure + Feishu mapping, shared by Diagnosis + Triage) |
references/known-issue-evidence-standard.md | Data | expected_evidence quality standard (shared by Triage + iteration mode) |
references/patrol-playbook.md | Data | Patrol experience database |
references/setup.md | Data | Installation and configuration (environment variables, required tools, troubleshooting) |
references/capability-feishu.md (opens in a new tab)references/capability-pagerduty.md (opens in a new tab)references/capability-scripts-cleanup.md (opens in a new tab)references/infra-context.md (opens in a new tab)references/known-issue-evidence-standard.md (opens in a new tab)references/known-issues.md (opens in a new tab)references/mode-diagnosis.md (opens in a new tab)references/mode-iteration.md (opens in a new tab)references/mode-oncall.md (opens in a new tab)references/mode-patrol.md (opens in a new tab)references/patrol-playbook.md (opens in a new tab)references/report-standard.md (opens in a new tab)references/role-diagnosis.md (opens in a new tab)references/role-entry.md (opens in a new tab)references/role-patrol-l1.md (opens in a new tab)references/role-patrol-l2.md (opens in a new tab)references/role-triage.md (opens in a new tab)references/setup.md (opens in a new tab)scripts/feishu_notify.py (opens in a new tab)scripts/pagerduty_api.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sre, oncall, incident-response, pagerduty, alert-triage, root-cause-analysis
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./", skills.11: Invalid string: must start with "./", skills.12: Invalid string: must start with "./", skills.13: Invalid string: must start with "./", skills.14: Invalid string: must start with "./", skills.15: Invalid string: must start with "./", skills.16: Invalid string: must start with "./", skills.17: Invalid string: must start with "./", skills.18: Invalid string: must start with "./", skills.19: Invalid string: must start with "./", s…
.claude-plugin/plugin.json: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./", skills.3: Invalid string: must start with "./", skills.4: Invalid string: must start with "./", skills.5: Invalid string: must start with "./", skills.6: Invalid string: must start with "./", skills.7: Invalid string: must start with "./", skills.8: Invalid string: must start with "./", skills.9: Invalid string: must start with "./", skills.10: Invalid string: must start with "./", skills.11: Invalid string: must start with "./", skills.12: Invalid string: must start with "./", skills.13: Invalid string: must start with "./", skills.14: Invalid string: must start with "./", skills.15: Invalid string: must start with "./", skills.16: Invalid string: must start with "./", skills.17: Invalid string: must start with "./", skills.18: Invalid string: must start with "./", skills.19: Invalid string: must start with "./", s…
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
25 skills in this plugin
/architectUse when designing a new feature or system, making architecture decisions, writing technical design docs, or structuring project documentation. Triggers on "design", "architecture", "technical design", "ADR", "system decomposition", "how should I structure this", "设计方案", "架构设计", "技术方案", "文档体系", "写 User Story", "写文档". Also use when reviewing existing architecture docs or asking "where should I put this doc?"/clean-cacheBatch-scan workspace Flutter/Android/iOS/Node.js projects, report cache usage, and perform tiered cleanup to free disk space. Triggers when the user says "clean cache", "disk space low", "free up space", or similar./code-reviewUse when reviewing code changes — MR/PR review, local commits, or uncommitted changes. Reviews document compliance, content quality (architecture soundness, test completeness, observability coverage), and end-to-end consistency (User Story ↔ design ↔ code ↔ tests ↔ observability). Triggers on "review MR", "review this commit", "review my changes", "code review", "help me review"./code-submitCross-platform code submission workflow - Lint check, non-destructive review, manual verification document, smart staging, clean commit, MR creation. Auto-detects project type (Android/iOS/backend) and adapts to the corresponding lint/build tools. Triggers when the user says "submit code", "prepare to submit", "submit", "start submission flow", or "code submit"./dev-workflowStandard R&D process orchestrator — guides the full development lifecycle from User Story to CD. Invoke when user says "start a new feature", "new requirement", "我要开发一个新功能", "开始需求", "next step?", "研发流程", or resumes work on an existing feature. Also invoke proactively when any non-trivial feature work begins, even if the user just says "let's build X". Do NOT invoke for one-off bug fixes, hotpatches, or purely exploratory tasks with no deliverable./doc-writingWrite documents using the HWPR/AWOR framework -- separating human value judgments from AI-expanded content so critical information is not buried. Triggers when the user requests writing, rewriting, or reviewing document quality.Other plugins' skills for the same job