Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
intercom-prod-checklist【部署与运维】Execute Intercom production readiness checklist and rollback procedures. Use when deploying Intercom integrations to production, preparing for launch, or implementing go-live validation. Trigger with phrases like "intercom production", "deploy intercom", "intercom go-live", "intercom launch checklist", "intercom production readiness".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: intercom-prod-checklist description: 'Execute Intercom production readiness checklist and rollback procedures.
Use when deploying Intercom integrations to production, preparing for launch,
or implementing go-live validation.
Trigger with phrases like "intercom production", "deploy intercom",
"intercom go-live", "intercom launch checklist", "intercom production readiness".
' allowed-tools: Read, Bash(curl:*), Grep version: 1.6.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
Complete checklist for deploying Intercom integrations to production, covering authentication, error handling, rate limits, webhooks, and monitoring. Work the pre-deployment checklist below section by section, run the pre-flight script as the go-live gate, and keep the rollback procedure ready before you launch.
$INTERCOM_ACCESS_TOKEN exported in the environment where you run the checks.curl and jq available for the pre-flight and status probes.$WEBHOOK_URL set if the integration receives Intercom webhooks.Work through the checklist in order. Each group gates a distinct failure class — do not skip a group because "it probably works."
grep -r "dG9r" .)try/catch with IntercomError)X-Hub-Signature verification implemented (HMAC-SHA1)503 when Intercom is unhealthy —
skeleton below, full implementation in
references/implementation.md.Minimal health-check skeleton (the full module classifies degraded-vs-unhealthy
from the IntercomError status code and wires an Express /health route — see
the full walkthrough):
async function checkIntercomHealth(client: IntercomClient) {
const start = Date.now();
try {
await client.admins.list();
return { status: "healthy", latencyMs: Date.now() - start };
} catch (err) {
// 429 → degraded, 401 → unhealthy + unauthenticated, else unhealthy
return { status: "unhealthy", latencyMs: Date.now() - start };
}
}
Auth: PASS, current rate-limit headroom, the
Intercom status indicator (none = clear), and the webhook endpoint HTTP code.
A non-200 auth code exits non-zero and blocks the go-live./health endpoint returning 200 when Intercom is healthy and 503 when it
is degraded or unhealthy, with the classification reason in the JSON body.| Alert | Condition | Severity | Action |
|---|---|---|---|
| API unreachable | 5xx > 10/min | P1 | Enable fallback, check status page |
| Auth failure | Any 401 | P1 | Rotate token, verify in Developer Hub |
| Rate limited | 429 > 5/min | P2 | Reduce request volume, add queuing |
| High latency | P95 > 3s | P2 | Check Intercom status, enable caching |
| Webhook failures | Delivery errors | P3 | Check endpoint health, verify signature |
If the integration is failing in production, run the rollback procedure in
references/examples.md: flip the feature flag off first,
then roll back the deployment, verify /health, and disable webhooks in the
Developer Hub to stop queued deliveries reaching an unhealthy endpoint.
/health
endpoint with status classification: references/implementation.md.set -euo pipefail bash gate that
checks auth, rate-limit headroom, platform status, and webhook reachability,
with expected output: references/examples.md.kubectl rollout undo, health
verification, and webhook teardown: references/examples.md.For version upgrades, see the intercom-upgrade-migration skill in this pack,
which covers breaking-change migration and dependency bumps.