Airsc miễn phí cho tất cả. Nếu nó giúp bạn, hãy ủng hộ $2–$20.

Ủng hộ
PluginAn toànQuy trình & bộ nhớ agentCần cài đặt chút

sre-skills

anyshift-io · anyshift-io/sre-skills

Thư viện này cung cấp các kỹ năng SRE theo phương pháp luận được đóng gói sẵn cho các tác nhân AI để điều tra sự cố, quản lý chuyển giao trực ban và viết báo cáo sau sự cố.

Thư viện mã nguồn mở các skill SRE được định hình theo phương pháp luận cho tác nhân AI (Apache 2.0).

17 sao0Giấy phép: Apache-2.0Cập nhật 2 tháng trước0 lượt mở

Xem trước

▍

Bạn có thể làm gì với nó

  • Tự động hóa điều tra sự cố bằng cách để tác nhân tương quan các tín hiệu.
  • Hướng dẫn tác nhân thực hiện quy trình bàn giao trực ban theo các phương pháp hay nhất của SRE.
  • Tạo báo cáo sau sự cố có cấu trúc từ dữ liệu sự cố bằng cách sử dụng kỹ năng của tác nhân.

Kiểm tra an toàn

An toàn

Không thấy dấu hiệu rủi ro trong các file đã quét.

Quét tự động các file trong repo. Luôn xem lại code trước khi chạy.

Trích từ README

sre-skills

SRE methodology skills for AI agents. Each skill packages one reliability workflow (investigating a live incident, handing over oncall, writing a postmortem) as a self-contained module your agent loads and runs.

Built and maintained by Anyshift.

Why use these

Your agent already writes code and runs commands. It does not know how a seasoned SRE actually works an incident: which signals to correlate first, when a deploy is the prime suspect, when to stop digging and page a human. These skills encode that methodology so the agent follows a real playbook instead of improvising.

Every skill runs end-to-end with no Anyshift account and no external credentials. The methodology, the worked examples, and the replay tests all work offline against fixtures.

Skills

Each skill targets one real product and one job over it: audit an IAM policy, triage a Terraform plan, resolve an S3 bucket's effective access. It does that job end-to-end, offline, against fixtures. Not a wrapper that dumps the API response back: each one carries the judgment a senior engineer applies to that one source, the thresholds and known-bad combinations that separate signal from a clean-looking config.

Then it stops. A single source only knows itself. The moment a question needs a join (this role to everything it can actually reach, this queue to its producers and consumers, this plan to the running infrastructure it will move) the data runs out. Each skill names exactly where that happens and what's missing, so the boundary is explicit instead of a silent wrong answer. That boundary is the same one every time: the join across resources, across sources, or across time.

SkillDomainWhat it does
sqs-queue-auditorAWSAudits redrive/DLQ wiring, maxReceiveCount, retention ordering against the DLQ, and a visibility timeout left at the risky default: the queue-side config that silently drops or re-delivers messages while every attribute reads as fine.
iam-deceptive-escalation-auditorAWSResolves the effective permission set across every policy on a principal (Allow minus blanket Deny), flags the cross-statement escalation combos (PassRole+compute-launch, policy-rewrite-in-place, trust-policy rewrite) that no single statement reveals, and stays symmetric: it does not flag an escalation already killed by a Deny, a scoped wildcard, or a sealed Condition.
sg-deceptive-reachability-auditorAWSBuilds a directed reachability graph from SG-to-SG references plus internet edges, composes the transitive closure from a named entry point, and reports the shortest path to the crown-jewel tier and the bridging hub SGs that a per-rule read misses, reporting clean when a segmented fleet has no reachable path.
s3-estate-calibration-auditorAWSResolves each bucket's effective verdict by composing all four layers (Block Public Access, bucket policy, ACL, access points), then calibrates across an estate: it names the one bucket that is genuinely public or cross-account exposed without over-flagging the many siblings that read as exposed but are neutralised, and reports clean when nothing is live.
terraform-plan-risk-reporterIaCRanks plan changes by blast risk, isolating destroys and force-replacements of stateful or irreplaceable resources from the harmless in-place updates they hide among.
github-actions-flake-reporterCI/CDDetects flaky jobs (pass-on-rerun on an unchanged SHA), clusters failures by cause, and flags duration regressions across run history, not just the last red run.

sqs-queue-auditor, iam-deceptive-escalation-auditor, sg-deceptive-reachability-auditor, and s3-estate-calibration-auditor are built out, each with fixture-based replay tests and a committed control-vs-treatment lift eval; the rest are planned. kubectl-investigator stays as the methodology-shaped reference template: it shows the directory shape, the worked-example format, and the fixture-based replay tests every skill above follows.

Using a skill

Claude Code (recommended)

These skills ship as a plugin in Anyshift's Claude Code marketplace. In a Claude Code session:

/plugin marketplace add anyshift-io/claude-plugins
/plugin install sre-skills@anyshift

The skills are now loaded. The agent reaches for the right one whenever you ask something that maps to an incident, a change review, an oncall handover, a postmortem, or a reliability audit. Pull new skills and versions later with /plugin marketplace update anyshift.

Any other agent

Clone the repo and point your agent at the skill you want. Each skill directory is self-contained: the methodology, the worked examples, and the fixture-based replay tests live together, so you can run the skill against the fixtures before pointing it at your own infrastructure.

git clone https://github.com/anyshift-io/sre-skills.git

Every skill also documents its failure modes: where it is likely to be wrong, and where the agent should escalate to a human instead of acting.

Going deeper with Anyshift (optional)

The skills work standalone. Two optional layers add infrastructure context:

  • Anyshift MCP as a context primer. Skills can opt into richer context from the Anyshift MCP server. When the integration is wired up for a skill, that skill publishes a measured "with vs without" delta, so the added value is explicit rather than assumed.
  • Annie, pre-loaded. Running Anyshift's Annie agent gives you these skills already loaded, with your Terr
Xem mã nguồn trên GitHub