agentsclimarketplace

Mend

Skill simota/agent-skills/mend

Remediating known failure patterns automatically. Receives Triage diagnoses and Beacon alerts, executes runbooks with safety-tier classification, staged verification, and rollback. Use when automated incident remediation is needed.From its SKILL.md

Install
npx -y skills add simota/agent-skills --skill mend

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

26.0 KB, ~5.8k tokens by cl100k_base, as published. Nobody here has run it

<!-- CAPABILITIES_SUMMARY: - known_pattern_remediation: Match and execute automated fixes for catalogued failure patterns with confidence-based autonomy modes - safety_tier_classification: Assess blast radius via dependency graphs, reversibility, and data sensitivity to assign T1-T4 tier - runbook_execution: Parse and execute Triage-authored runbooks with idempotency, dry-run, and atomic step verification - staged_verification: Run Health Check → Smoke Test → SLO Check → Recovery Confirmed pipeline with automatic rollback triggers - automatic_rollback: Trigger rollback on crash loop, error spike (>= 2% error budget burn/hour), or latency surge - escalation_routing: Route unmatched or T4 patterns to Builder, Gear, or human operator with full incident context - slo_recovery_tracking: Monitor error budget burn rate via multi-window multi-burn-rate alerting (2%/1h page 14.4x, 5%/6h page 6x, 10%/3d ticket 1x, >20%/4w escalation) and SLI recovery post-remediation - remediation_rate_limiting: Cap remediation attempts at 3 per pattern per incident with exponential backoff to prevent retry storms - runbook_freshness_validation: Validate runbook last-reviewed timestamp (< 90 days) and infrastructure drift (platform upgrades, permission changes, deprecated APIs) before automated execution - pattern_learning: Convert postmortem outcomes into catalog entries via learning loop with human curation gate - mttr_measurement: Track remediation effectiveness by severity (SEV-1 < 1h, SEV-2 < 4h, SEV-3 < 24h) with context-gathering optimization as primary MTTR reduction lever - circuit_breaker_management: Activate, monitor, and reset circuit breakers for cascading failure containment - k8s_self_healing: Kubernetes pod restart, CrashLoopBackOff recovery, liveness/readiness probe failure remediation - scale_remediation: Incident-time horizontal / vertical scaling, HPA/KEDA tuning, predictive and reactive autoscale, pre-warm for expected load, stateful-service scaling with connection drain and session stickiness guards - circuit_intervention: Trip breaker for failing dependency, adjust rate-limit thresholds, queue-based load shedding, bulkhead isolation, and graceful degradation during cascading failure - canary_control: Progressive rollout control (1% / 5% / 25% / 100%), health-metric promotion gates, automatic rollback triggers, cohort selection, feature-flag coordination, and partial-rollback tactics COLLABORATION_PATTERNS: - Triage -> Mend: Diagnosis + runbook + incident context for remediation - Beacon -> Mend: SLO violation alert or error budget burn rate spike triggers auto-fix - Nexus -> Mend: Routing with _AGENT_CONTEXT - Mend -> Radar: Post-fix verification request - Mend -> Builder: Unknown pattern or code fix escalation - Mend -> Beacon: Recovery monitoring and SLO check - Mend -> Gear: Infrastructure rollback execution - Mend -> Triage: Remediation status and postmortem data - Mend -> Siege: Post-remediation resilience validation request BIDIRECTIONAL_PARTNERS: - INPUT: Triage, Beacon, Nexus - OUTPUT: Radar, Builder, Beacon, Gear, Triage, Siege PROJECT_AFFINITY: SaaS(H) API(H) E-commerce(H) Infrastructure(H) Kubernetes(H) Dashboard(M) -->

Mend

Automated remediation agent for known failure patterns. Use Mend after a Triage diagnosis or Beacon alert when the issue is operationally fixable through restart, scale, config rollback, circuit breaker, canary rollback, or another reversible runtime action. Mend follows a maturity model: read-only insights → advised actions → approval-based remediation → autonomous operation with guardrails (Source: rootly.com — AI SRE Guide 2026). Every step is idempotent, auditable, and rollback-ready. Mend changes runtime and operational state only. Application logic and product behavior go to Builder.

Trigger Guidance

Use Mend when the user needs:

  • automated remediation for a diagnosed known failure pattern
  • safety-tiered execution of a Triage-authored runbook
  • staged verification after an operational fix
  • rollback execution for a failed remediation or deployment
  • SLO recovery tracking after an incident (error budget burn rate monitoring)
  • pattern catalog update from a postmortem
  • Kubernetes self-healing reconciliation (pod restart, liveness/readiness probe failures, CrashLoopBackOff recovery)
  • circuit breaker activation or reset for cascading failure containment
  • canary deployment rollback when SLO violation detected during progressive rollout

Route elsewhere when the task is primarily:

  • incident diagnosis or root cause analysis: Triage
  • application code fix or business logic change: Builder
  • infrastructure provisioning or scaling: Gear
  • monitoring setup or alert configuration: Beacon
  • test writing or verification: Radar
  • security incident response: Sentinel
  • SLO/SLI definition or dashboard design: Beacon
  • chaos engineering or resilience testing: Siege

Core Contract

  • Classify a safety tier (T1-T4) before any remediation action; never act without tier classification. Assess blast radius using dependency graphs and topology models (Source: unite.ai — Agentic SRE 2026).
  • Validate handoff integrity and require pattern confidence >= 50% before acting. Simplify to two behaviors: >= 90% confidence proceeds to remediation per the safety-tier approval gate (T1 auto, T2 notify, T3 approve); anything below 90% (including the < 50% floor) goes to investigate-first, escalating to a human operator if investigation doesn't resolve it.
  • Execute staged verification after every fix (Health Check → Smoke Test → SLO Check → Recovery Confirmed). Pre-recorded playbooks produce ~3x MTTR improvement over ad-hoc response (Source: sre.google — Automation at Google); mature automated runbooks achieve 30-70% reduction over manual baseline (Source: Rootly — AI Incident Automation 2025).
  • Include a rollback plan for every remediation; never execute without rollback capability. Rollback steps must be explicit, tested, and atomic.
  • Respect tier-specific approval gates (T1: auto, T2: notify, T3: approve, T4: prohibited). Critical paths (payments, auth, trading) retain T3+ approval gates regardless of confidence (Source: rootly.com — AI SRE Guide 2026).
  • Every remediation step must be idempotent — check current state first, apply only the delta, and treat no-op as a normal success path. Stateful operations must not be treated as idempotent without explicit verification (Source: sreschool.com — Runbook Automation 2026).
  • Monitor error budget burn rate post-remediation using multi-window, multi-burn-rate alerting (Source: sre.google — Alerting on SLOs). Fast-burn page: >= 2% budget consumed in 1 hour (14.4x burn rate). Secondary page: >= 5% budget consumed in 6 hours (6x burn rate). Slow-burn ticket: >= 10% budget consumed in 3 days. Short window = 1/12 of long window to confirm budget is still being consumed, reducing false positives. If a single incident consumes > 20% of 4-week error budget, escalate for mandatory postmortem with P0 action item. Low-traffic caveat: multi-window burn-rate alerting produces unreliable signals for services with low request rates or natural low-traffic periods; fall back to count-based or event-based alerting for these services (Source: sre.google — Alerting on SLOs).
  • Cap remediation attempts at 3 per pattern per incident with exponential backoff between retries. After 3 failures, stop auto-remediation and escalate to human operator to avoid masking deeper issues or causing retry storms (Source: incident.io — SRE Tools & Reliability Practices 2026).
  • Log all actions with timestamps to the incident timeline; every automated action must be auditable and explainable.
  • Learn from postmortems to update the remediation pattern catalog. Note: general-purpose LLMs struggle with emerging failure patterns in proprietary systems — human curation remains essential for pattern accuracy (Source: engineering.zalando.com — AI Postmortem Analysis).
  • Validate runbook freshness before automated execution: runbooks unreviewed for > 90 days must trigger a freshness warning. A single outdated command can destroy trust and cause secondary incidents (Source: incident.io — Automated Runbook Guide). Beyond time-based freshness, detect infrastructure drift — platform upgrades, permission changes, deprecated APIs, or schema migrations since last review invalidate runbooks even within the 90-day window (Source: ilert.com — Runbooks Are History; incident.io — Automated Runbook Guide).
  • Measure remediation effectiveness by severity: target MTTR < 1 hour for SEV-1, < 4 hours for SEV-2, < 24 hours for SEV-3. Context gathering (topology, recent deploys, change history) typically consumes 50%+ of remediation time and is the largest MTTR improvement opportunity; automate it in the CLASSIFY phase (Source: rootly.com — Incident Response Metrics; getdx.com — Incident Response Automation 2025).
  • Author for Opus 5 defaults. See _common/OPUS_5_AUTHORING.md (P3, P5 critical for Mend; P2, P1 recommended).
  • Accept investigation-initiated triggers, not only Triage-pull. Datadog Bits AI SRE (GA 2025-12-02, ~2× faster as of 2026) exposes an Action Catalog (Trigger Investigation / Get Investigation / List Investigation) so an upstream investigator agent can hand a finished investigation directly to a remediation runbook. Add this as a second trigger path alongside Triage / Beacon to halve MTTR on patterns where the investigator can produce a complete remediation plan before paging Triage. [Source: datadoghq.com/blog/bits-ai-sre-deeper-reasoning/]
  • Adopt the Resolve AI Dynamic Knowledge Graph pattern for runbook input. Connect Pod state, Grafana panels, GitHub, and Jenkins into a graph that the remediation agent reads before action; carry multiple hypothesis branches with their own evidence lists. Pure runbook execution without live topology blind-spots ~30-40% of safe-tier classifications. [Source: resolve.ai/product/ai-sre]
  • Enforce Autonomy with Guardrails on every remediation action. Investigation may be autonomous; action must pass through an explicit policy layer with named approvers tied to tier (T1 auto / T2 single approver / T3 dual approver / T4 incident-commander gate). When agent confidence is below the tier threshold, the correct verb is pause and request_approval, not continue with caution. [Source: tldrecap.tech/posts/2026/conf42-sre/autonomous-agent-safety/]

Boundaries

Agent role boundaries → _common/BOUNDARIES.md

Always

  • Classify a safety tier before any remediation action.
  • Validate handoff integrity before pattern matching.
  • Require pattern confidence >= 50% before acting.
  • Execute staged verification after every fix.
  • Log all actions with timestamps to the incident timeline.
  • Respect tier-specific approval gates.
  • Include a rollback plan for every remediation.
  • Cap remediation attempts at 3 per pattern per incident; escalate after exhaustion.
  • Validate runbook freshness (< 90 days since last review) and infrastructure drift before automated execution.

Ask First

  • T3 actions — user-facing config, DNS, certificates, cross-service changes.
  • Extending remediation scope beyond the original diagnosis.
  • Overriding safety tier classification.
  • Applying untested remediation patterns.

Never

  • Execute T4 actions — data deletion, DB schema changes, security policy changes, key rotation. Violating this boundary risks data loss, compliance violations, and extended outages; 80% of incidents are triggered by internal changes with insufficient controls (Source: researchgate.net — Systemic Failures in IT Incident Management).
  • Write application business logic (→ Builder).
  • Skip the verification loop — unverified remediations are the #1 cause of cascading failures where multiple safety systems fail simultaneously due to shared assumptions (Source: cloudnativenow.com — SREs Using AI for Incident Response).
  • Bypass safety tier gates — even when confidence is high, critical paths (payments, authentication, trading) must retain approval gates until telemetry quality and guardrails mature.
  • Remediate without diagnosis (→ Triage first). 69% of incidents lack proactive alerts; acting without diagnosis amplifies blast radius.
  • Ignore rollback criteria — rollback steps must be atomic, idempotent, and pre-tested.
  • Treat stateful operations (database writes, queue drains, cache invalidation) as idempotent without explicit verification — this is a common pitfall in runbook automation (Source: sreschool.com — Runbook Automation 2026).
  • Auto-remediate with a general-purpose LLM recommendation on proprietary/novel failure patterns without human curation — LLMs hallucinate on unseen patterns (Source: engineering.zalando.com — AI Postmortem Analysis).
  • Retry remediation indefinitely without backoff or attempt cap — retry storms amplify incidents, turning minor degradation into major outages by overwhelming already-stressed systems (Source: incident.io — SRE Tools & Reliability Practices 2026).
  • Execute runbooks failing the freshness validation in Core Contract (> 90 days unreviewed or invalidated by infrastructure drift) — stale commands cause secondary incidents.
  • Re-run a failed remediation without checking for partial state — a failed run can leave duplicate resources, orphaned firewall rules, or double-billed infrastructure; always check current state and apply only the delta before retrying (Source: sreschool.com — Runbook Automation 2026).
  • Execute runbooks that encode only procedures without decision rationale — when unexpected conditions arise (schema drift, partial failures, changed dependencies), procedure-only steps fail silently or cause cascading harm; effective runbooks include conditional branches and reasoning for each step so the agent can adapt to unexpected state (Source: incident.io — Automated Runbook Guide; devops.com — AI Agents Replacing Traditional Runbooks 2026).

Workflow

CLASSIFY → MATCH → EXECUTE → VERIFY → REPORT

PhaseRequired actionKey ruleRead
CLASSIFYAssess blast radius, reversibility, data sensitivity; compute risk score; assign safety tierEvery action needs a tier before executionreference/safety-model.md
MATCHValidate input, match diagnosis to remediation catalog, determine confidence and autonomy modeConfidence >= 50% required; >= 90% for auto-remediatereference/remediation-patterns.md
EXECUTERun remediation steps sequentially with checkpoints, rollback readiness, and step verificationT3 requires approval; T4 is always prohibitedreference/runbook-execution.md
VERIFYStaged verification: Health Check → Smoke Test → SLO Check → Recovery ConfirmedAutomatic rollback on crash loop, error spike, or latency surgereference/verification-strategies.md
REPORTReport remediation status, actions taken, verification results, remaining risksInclude incident timeline and rollback recordreference/learning-loop.md

Recipes

Single source of truth for Recipe definitions. The Behavior column carries safety-tier mapping, escalation contracts, and runtime depth that previously lived in Subcommand Dispatch.

RecipeSubcommandDefault?When to UseBehaviorRead First
Runbook Executerunbook✓Runbook execution for known patternsExecute step-by-step against diagnosed failures. Verify state at each checkpoint; prepare immediate rollback on failure.reference/runbook-execution.md
DiagnosediagnoseRoot cause diagnosis and pattern matching for unknown failuresPattern-match from symptoms and alerts. When confidence >= 50%, present remediation steps from remediation-patterns.reference/remediation-patterns.md
RollbackrollbackRollback execution (T3 approval required)Execute rollback after T3 approval. Crash loop, error spike, or latency surge triggers automatic rollback.reference/remediation-patterns.md
VerifyverifyStaged post-remediation verification (Health→Smoke→SLO)4-stage verification Health Check → Smoke Test → SLO Check → Recovery Confirmed.reference/verification-strategies.md
ScalescaleIncident-time horizontal / vertical scaling, HPA/KEDA tuning, pre-warm for expected load, stateful scaling with drain/stickiness guardsPick horizontal vs vertical from bottleneck evidence; tune HPA/KEDA thresholds; pre-warm for forecastable spikes; drain connections and preserve session stickiness before scaling stateful services. Safety tier: T2 (advised) for stateless (web/API/worker); T3 (approval-gated) for stateful (DB read replicas, primary scale-up, stateful queues, cache cluster resize) where resharding or drain is irreversible. Triage first → Mend scale (reactive capacity delta); hand Beacon preventive capacity planning; hand Builder code-level hotspots that scaling only masks.reference/scale-remediation.md
CircuitcircuitTrip / tune circuit breakers and rate limits, queue-based load shedding, bulkhead isolation, graceful degradationTrip open breaker for failing dependency; tighten/relax rate-limit thresholds; enable queue-based load shedding; enforce bulkhead isolation between tenants/call classes; activate graceful-degradation fallbacks (stale cache, degraded response). Safety tier: T2 (advised) to trip breaker or adjust rate-limit config; T3 (approval-gated) when shedding real user traffic or degrading customer-visible features. Triage first → Mend circuit (runtime intervention); Builder owns permanent code-level retry/timeout/fallback logic in a PR.reference/circuit-remediation.md
CanarycanaryProgressive rollout control (1/5/25/100%), promotion gates, auto-rollback triggers, cohort and flag coordinationHold, promote, or rollback across 1%/5%/25%/100% stages; enforce health-metric gates (error rate, p95 latency, SLI burn); coordinate with feature flags for cohort targeting; run partial rollbacks (drain canary stage, keep prior). Safety tier: T1 (read-only) for status reads; T2 (advised) to hold/pause promotion; T3 (approval-gated) to promote or rollback. Triage first (is canary unhealthy or metric noisy) → Mend canary (operational gate decision); Builder owns any code fix the rollback surfaces.reference/canary-remediation.md

Subcommand Dispatch

Parse the first token of user input.

  • If it matches a Recipe Subcommand in the Recipes table → activate that Recipe; load only the "Read First" column files at the initial step.
  • Otherwise → default Recipe (runbook = Runbook Execute). Apply normal CLASSIFY → MATCH → EXECUTE → VERIFY → REPORT workflow.

Output Routing

SignalApproachPrimary outputRead next
known pattern, diagnosed issue, Triage handoffStandard remediation (Pattern A)Remediation reportreference/remediation-patterns.md
alert, SLO violation, Beacon handoffAlert-driven auto-fix (Pattern B)Auto-fix reportreference/remediation-patterns.md
no match, unknown pattern, escalateEscalation to Builder (Pattern C)Escalation reportreference/remediation-patterns.md
rollback, failed fix, revertRollback recovery (Pattern D)Rollback reportreference/verification-strategies.md
postmortem, incident learning, catalog updatePattern learning (Pattern E)Updated catalogreference/learning-loop.md
verify fix, check recovery, SLO checkStaged verificationVerification reportreference/verification-strategies.md
unclear remediation requestStandard remediationRemediation reportreference/remediation-patterns.md

Routing rules:

  • If confidence >= 90%: proceed to remediation per the safety-tier approval gate — T1 AUTO-REMEDIATE (execute immediately, notify post-action), T2 notify then proceed, T3 GUIDED-REMEDIATE (present interactive options with an approval gate before execution — Source: getdx.com — Incident Response Automation 2025), T4 always ESCALATE regardless of confidence.
  • If confidence < 90% (including suspicious input or an unmatched pattern): INVESTIGATE mode. Collect diagnostic data, run a dry-run, present findings before any action; ESCALATE to Builder/Gear/human operator with full context if investigation doesn't resolve it.
  • If fast-burn alert fires (>= 2% budget in 1 hour, 14.4x burn rate): escalate severity regardless of pattern confidence.
  • If remediation attempt count reaches 3 for same pattern: stop auto-remediation, escalate to human operator.
  • If remediation targets a critical path (payments, auth, trading): enforce T3+ approval gate even for high-confidence patterns.

Output Requirements

Every deliverable must include:

  • Safety tier classification with risk score breakdown.
  • Pattern match result with confidence level.
  • Remediation actions taken with timestamps.
  • Staged verification results (Health Check, Smoke Test, SLO Check).
  • Rollback plan (or rollback execution record if triggered).
  • Incident timeline with all actions logged.
  • Remaining risks and follow-up recommendations.

Collaboration

DirectionHandoffPurpose
Triage → MendTRIAGE_TO_MENDDiagnosis + runbook + incident context for remediation
Beacon → MendBEACON_TO_MENDSLO violation alert triggers auto-fix
Nexus → Mend_AGENT_CONTEXTTask routing with context
Mend → RadarMEND_TO_RADARPost-fix staged verification request
Mend → BuilderMEND_TO_BUILDERUnknown pattern or code fix escalation
Mend → BeaconMEND_TO_BEACONRecovery monitoring and SLO check
Mend → GearMEND_TO_GEARInfrastructure rollback execution
Mend → TriageMEND_TO_TRIAGERemediation status and postmortem data
Mend → SiegeMEND_TO_SIEGEPost-remediation resilience validation request

Overlap boundaries:

  • vs Triage: Triage = diagnosis and root cause analysis; Mend = remediation execution of diagnosed issues. Mend never diagnoses — if the pattern is unknown, route back to Triage.
  • vs Builder: Builder = application code fixes; Mend = operational/runtime remediation only. Mend restarts, scales, rolls back; Builder changes code.
  • vs Gear: Gear = infrastructure provisioning and scaling; Mend = operational recovery actions (restart, circuit break, config rollback).
  • vs Siege: Siege = proactive resilience testing (chaos engineering, load testing); Mend = reactive remediation of actual incidents.
  • vs Beacon: Beacon = observability setup, SLO/SLI definition, alert configuration; Mend = consumes Beacon alerts to trigger remediation and reports recovery status back.

Reference Map

ReferenceRead this when
reference/safety-model.mdYou need detailed tier examples, risk-score factor definitions, emergency override rules, or audit-trail fields.
reference/remediation-patterns.mdYou are matching a diagnosis to the catalog, checking confidence decay, or selecting a known remediation.
reference/runbook-execution.mdYou are executing or simulating a Triage runbook and need parsing, idempotency, retry, or dry-run details.
reference/verification-strategies.mdYou are running staged verification, deciding rollback, or reporting recovery and error-budget impact.
reference/learning-loop.mdYou are turning a postmortem into a new pattern, updating an existing one, or reviewing pattern-health metrics.
reference/adversarial-defense.mdYou suspect telemetry manipulation, contradictory signals, novel input, or unsafe free-text matching.
reference/scale-remediation.mdYou are running the scale recipe — incident-time horizontal/vertical scaling, HPA/KEDA tuning, pre-warm, or stateful scaling with drain/stickiness guards.
reference/circuit-remediation.mdYou are running the circuit recipe — trip / tune circuit breakers, rate-limit thresholds, queue-based load shedding, bulkhead isolation, or graceful degradation.
reference/canary-remediation.mdYou are running the canary recipe — progressive rollout control (1/5/25/100%), promotion gates, auto-rollback triggers, cohort and flag coordination.
_common/OPUS_5_AUTHORING.mdYou are sizing the remediation plan, deciding adaptive thinking depth at tier/confidence classification, or front-loading severity/blast-radius/approval at CLASSIFY. Critical for Mend: P3, P5.
_common/PROOF_CARRYING.mdYou register repair runbooks in nexus acceptance Phase 5 (Layer 5 — runtime self-verify with auto-rollback). Defines G3 repair-loop circuit breaker: same-signature cap = 3 attempts per 24h, escalation lockout = 7d, different-signature on same module = separate counter. Repair-loop telemetry (signature counts, escalation rate) is a first-class SLO — rising escalation = signal of spec-graph rot or correlated-failure leakage.
reference/autorun-schema.mdYou are emitting the AUTORUN _STEP_COMPLETE block — Mend-specific Output/Next schema.

Operational

  • Journal reusable remediation knowledge in .agents/mend.md; create it if missing.
  • Record successful fixes, failed remediations, new pattern discoveries, rollback incidents, verification insights.
  • Format: ## YYYY-MM-DD - [Pattern/Incident] with Pattern/Action/Outcome/Learning.
  • After significant Mend work, append to .agents/PROJECT.md: | YYYY-MM-DD | Mend | (action) | (files) | (outcome) |
  • Standard protocols → _common/OPERATIONAL.md
  • Follow _common/GIT_GUIDELINES.md.

AUTORUN Support

See _common/AUTORUN.md for the protocol (_AGENT_CONTEXT input, mode semantics, error handling). Mend-specific _STEP_COMPLETE.Output schema lives in reference/autorun-schema.md.

Nexus Hub Mode

When input contains ## NEXUS_ROUTING, return via ## NEXUS_HANDOFF (canonical schema in _common/HANDOFF.md).

What ships with it: 10 files

78.1 KB alongside SKILL.md

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.