AGENT SKILL

grammarly-incident-runbook

Follow Grammarly incident response runbook for API outages. Use when Grammarly API is down, experiencing errors, or when investigating service degradation. Trigger with phrases like "grammarly down", "grammarly outage", "grammarly incident", "grammarly not responding".

License 许可
MIT
最近更新
2026-07-13
Stars
★ 1
Forks
0

01 前言 Front Matter

name
grammarly-incident-runbook
tags
[ "saas", "grammarly", "writing" ]
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
Follow Grammarly incident response runbook for API outages. Use when Grammarly API is down, experiencing errors, or when investigating service degradation. Trigger with phrases like "grammarly down", "grammarly outage", "grammarly incident", "grammarly not responding".
allowed-tools
Read, Bash(curl:*), Grep
compatible-with
claude-code

03 SKILL.md 正文

Grammarly Incident Runbook

Overview

Incident response procedures for Grammarly writing API integration failures. Covers text check timeouts, suggestion quality degradation, OAuth token failures, and rate limit storms. Grammarly powers real-time writing assistance, so API incidents directly impact user-facing text checking, scoring workflows, and content quality pipelines. Classify severity immediately using the matrix below and follow the corresponding playbook.

Severity Levels

Level Definition Response Time Example
P1 - Critical Full API outage, all scoring requests fail 15 min 5xx on /v2/scores for all requests
P2 - High OAuth token failures or sustained timeouts 30 min All authenticated requests return 401
P3 - Medium Rate limit storms or elevated latency 2 hours 429 responses, scoring takes 10s+ per request
P4 - Low Suggestion quality drift or single endpoint issue 8 hours Scores returning but correctness values seem off

Diagnostic Steps

# Test API health (unauthenticated)
curl -s -o /dev/null -w "HTTP %{http_code}\n" \
  https://api.grammarly.com/ecosystem/api/v2/scores

# Test authenticated scoring
curl -s -w "\nHTTP %{http_code}\n" \
  -H "Authorization: Bearer $GRAMMARLY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -X POST https://api.grammarly.com/ecosystem/api/v2/scores \
  -d '{"text": "Test sentence for Grammarly API diagnostic health check."}'

# Check OAuth token validity
curl -s -o /dev/null -w "HTTP %{http_code}\n" \
  -H "Authorization: Bearer $GRAMMARLY_ACCESS_TOKEN" \
  https://api.grammarly.com/ecosystem/api/v2/account

Incident Playbooks

API Outage

  1. Confirm with unauthenticated health check (see diagnostics)
  2. Check Grammarly status page and developer announcements
  3. Activate fallback mode — return placeholder scores to avoid blocking users
  4. Queue text submissions for retry when API recovers
  5. Notify downstream consumers that scores are unavailable

Authentication Failure

  1. Test token validity with the account endpoint diagnostic above
  2. If 401: OAuth access token has expired — trigger token refresh flow
  3. If refresh token also fails: re-authorize via OAuth consent flow
  4. Verify client ID and client secret are correct in environment config
  5. Deploy refreshed tokens and confirm scoring requests succeed

Data Sync Failure

  1. Identify if scoring results are stale or inconsistent across requests
  2. Check if Grammarly updated their scoring model (review changelog)
  3. Compare current scores against known baseline text samples
  4. If quality drift confirmed: log evidence and file support ticket
  5. Consider pinning API version if Grammarly supports versioned endpoints

Communication Template

**Incident**: Grammarly Integration [Outage/Degradation]
**Status**: [Investigating/Identified/Mitigating/Resolved]
**Started**: YYYY-MM-DD HH:MM UTC
**Impact**: [Text scoring unavailable / elevated latency / OAuth failure affecting N users]
**Current action**: [Fallback scores active / token refresh in progress / rate limit backoff enabled]
**Next update**: HH:MM UTC

Post-Incident

  • [ ] Document timeline from detection to resolution
  • [ ] Identify root cause (Grammarly outage / token expiry / rate limit exceeded)
  • [ ] Verify all scoring pipelines resumed with accurate results
  • [ ] Add proactive token refresh before expiry (buffer by 10 min)
  • [ ] Implement rate limit monitoring with alerting at 80% threshold
  • [ ] Update fallback logic if edge cases were discovered

Error Handling

Incident Type Detection Resolution
Text check timeout Requests exceeding 10s SLA Enable timeout + retry with exponential backoff
Suggestion quality degradation Scores deviate from baseline samples Log evidence, pin API version, file support ticket
OAuth token failure 401 on all authenticated endpoints Trigger refresh flow, re-authorize if refresh fails
Rate limit storm 429 responses with Retry-After header Implement request queuing, reduce concurrency

Resources

Next Steps

See grammarly-observability for monitoring setup and alerting thresholds.

04 同仓库更多 Skills

jukeyman
jukeyman/jukeyman-skills

zustand-store-creator

Create zustand store creator operations. Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like "zustand store creator", "zustand creator", "zustand".

★ 1
jukeyman
jukeyman/jukeyman-skills

zero-trust-config-helper

Configure with zero trust config helper operations. Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like "zero trust config helper", "zero helper", "zero".

★ 1
jukeyman
jukeyman/jukeyman-skills

zapier-integration-helper

Assist with zapier integration helper operations. Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like "zapier integration helper", "zapier helper", "zapier".

★ 1
jukeyman
jukeyman/jukeyman-skills

yaml-config-validator

Validate yaml config validator operations. Auto-activating skill for DevOps Basics. Triggers on: yaml config validator, yaml config validator Part of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like "yaml config validator", "yaml validator", "yaml".

★ 1
jukeyman
jukeyman/jukeyman-skills

xvary-stock-research

Thesis-driven equity analysis from public SEC EDGAR and market data; /analyze, /score, /compare workflows with bundled Python tools (Claude Code, Cursor, Codex).

★ 1
jukeyman
jukeyman/jukeyman-skills

xss-vulnerability-scanner

Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals. Triggers on: xss vulnerability scanner, xss vulnerability scanner Part of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like "xss vulnerability scanner", "xss scanner", "xss".

★ 1