bedkillerspacex-boop/codex-skill-library/golang-ops-runbook
Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library
- community
Checking that the SKILL.md file is still in the repository.
Author and maintain operations runbooks for Go services: deploy/rollback, health checks, on-call pages, dependency failures, and post-incident drills. Use when writing runbooks for Go microservices, kube services, or owned HTTP/gRPC workers (systemd, containers, or VMs).
Install
npx vskill@latest install bedkillerspacex-boop/codex-skill-library/golang-ops-runbookSKILL.md
The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/golang-ops-runbook.
Golang Ops Runbook
Research grounding
Operational runbooks for Go services cover process model (main + goroutines), graceful shutdown, probe semantics, build/version identity, and common failure modes (DB pool exhaustion, context deadlines, dependency 5xx). Skill id: golang-ops-runbook.
Scope And Authorization
- In scope: systems you own, labs, or engagements with written authorization.
- Out of scope: changing production without change control; sharing unredacted incident data.
- Prefer dry-runs and stage drills before production cutovers.
- Redact secrets, tokens, PII, and customer identifiers from runbooks and tickets.
- Pair code/config changes with
code-quality-standards.
When To Use
- Creating or refreshing an ops runbook for a Go service (HTTP, gRPC, worker, CLI daemon).
- On-call cannot recover a Go service without tribal knowledge.
- Need deploy, rollback, probe, and dependency-failure procedures with command evidence.
- Preparing game-days / tabletop for Go service outages.
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| Dependency vulnerability scanning | golang-osv-scanner / go-govulncheck-workflow | |
| Postmortem action tracking | golang-postmortem-hooks | |
| Patch SLA design | golang-patch-sla | |
| Implementation quality baseline | code-quality-standards | |
| Org-wide SSDLC process | secure-sdlc-checklist | |
| Secrets inventory/rotation | secrets-management-hygiene |
Domain Focus (Go ops runbooks)
| Area | Guidance | |
|---|---|---|
| Identity | version/commit build flags, runtime.Version(), module path | |
| Process model | single binary, signals (SIGTERM), drain HTTP/gRPC, stop workers | |
| Probes | liveness vs readiness; do not share one handler for both | |
| Dependencies | DB, cache, queues, upstream APIs — timeouts and circuit breakers | |
| Observability | structured logs, RED/USE metrics, traces, alert → runbook link | |
| Pitfalls | missing rollback; readiness that always returns 200; secret dump in logs |
Workflow
1. Confirm scope and success criteria
- Record service name, owner, environments (dev/stage/prod), and on-call roster.
- Success: page-to-mitigation path is documented, drilled, and linked from alerts.
- Note blast radius (multi-tenant, payment path, data plane).
2. Inventory the Go service
- Entry point (
main), config source (env/flags/file), and ports. - Deploy path: container image tag, Helm/Kustomize, or binary + systemd unit.
- Critical dependencies and SLOs (latency, error rate, saturation).
- Existing alerts and whether each alert links a runbook section.
3. Baseline
- Capture current deploy version (
/versionor image digest). - Snapshot healthy metric dashboards and recent incident tickets.
- List known exceptions (manual deploys, missing canary).
4. Author the runbook sections
Required sections for a Go service runbook:
- Overview — purpose, owners, RACI, links to repo and dashboard.
- Architecture — diagram: clients → load balancer → Go process → deps.
- Deploy — build, image push, rollout; canary/blue-green if used.
- Rollback — previous image/tag, traffic shift, DB migration caveats.
- Health — curl/probes, expected JSON, when readiness should fail.
- Common incidents — high latency, 5xx spike, goroutine growth, OOM, DB pool full.
- Dependency failure — degrade modes (fail closed vs cached responses).
- Break-glass — who can SSH/exec, how secrets rotate, audit requirements.
- Drill log — last successful game-day date and gaps found.
5. Verify with evidence
Kubernetes notes:
6. Observe and harden
- Every pageable alert must deep-link a runbook section ID.
- Track
process_resident_memory, goroutine count, DB pool in-use, HTTP p99. - Fail closed on auth/payment paths when deps fail; document intentional fail-open.
- Re-check: graceful shutdown timeout < k8s
terminationGracePeriodSeconds.
7. Hand off
- Store runbook in the team wiki/repo; version it with the service.
- Schedule quarterly drill; record date on the runbook header.
- Apply
code-quality-standardsif probe/handler code changed.
Go-specific runbook snippets
| Scenario | Checks | Mitigation sketch | |
|---|---|---|---|
| Latency spike | p99, upstream RTT, DB slow queries | scale, shed load, raise timeouts carefully | |
| Error budget burn | 5xx by route, panic recover logs | rollback last deploy; feature-flag off | |
| Memory growth | heap profile, goroutine dump | restart + fix leak; cap body size | |
| Deploy stuck | rollout status, image pull errors | fix registry/auth; undo rollout | |
| Cert expiry | TLS probe, days-to-expiry metric | renew via automated pipeline |
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Authorization | Owned service + change window | Ad-hoc prod kubectl without ticket | |
| Runbook content | Commands with expected output | “Restart the pod” only | |
| Probes | Readiness reflects dep health | Liveness hits DB (flap-kill loops) | |
| Rollback | One command + migration rules | Hope forward-fix works | |
| Secrets | References to vault paths | Passwords pasted into runbook | |
| Drills | Dated game-day evidence | Never tested procedures |
Output Checklist
- [ ] Scope, owner, environment, authorization recorded
- [ ] Service inventory (binary, ports, deps, deploy path) complete
- [ ] Deploy + rollback procedures with commands
- [ ] Health/readiness semantics documented
- [ ] Top incident scenarios with mitigation steps
- [ ] Alerts link to runbook sections
- [ ] Graceful shutdown / probe timing consistent with orchestrator
- [ ] Drill date and residual gaps recorded
- [ ] Secrets redacted;
code-quality-standardsapplied if code shipped - [ ] Next review date set
Rules
- Authorized/owned systems only; evidence over guesses.
- Prefer reversible changes and explicit owners.
- Never paste live secrets into runbooks, commits, or chat.
- Keep focus on Go service operations runbooks; route vuln scanning, PCI, or purple-team work to neighbor skills.
- Do not weaken safety controls “temporarily” without expiry and ticket.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggolang-ops-runbook/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/golang-ops-runbook)