Engineering Advanced RunbooksOperationsSRE

Runbook Generator

Generate operational runbooks with commands from codebase analysis.

$skillfish add ~skills/runbook-generator

Real Conversations

See how the Runbook Generator skill responds to actual requests. These are representative examples of what your AI agent will produce.

You

We have a Next.js app deployed on Vercel with a Neon PostgreSQL database and GitHub Actions CI. There are no runbooks at all — the only person who knows how to deploy is our senior dev who's going on parental leave in 2 weeks. Can you generate a deployment runbook from our repo?

Agent

This skill includes executable scripts — I'll need your permission before running them.

Stack detection results from your repo:

✓ Framework:  Next.js 14 (next.config.ts)
✓ CI/CD:      GitHub Actions (.github/workflows/deploy.yml)
✓ Hosting:    Vercel (vercel.json)
✓ Database:   PostgreSQL/Neon (DATABASE_URL pattern in .env.example)
✓ ORM:        Prisma (prisma/schema.prisma)

Generating deployment runbook...


docs/runbooks/deployment.md

# Deployment Runbook — [App Name]
**Stack:** Next.js 14 + Neon PostgreSQL + Vercel
**Last verified:** 2026-03-09
**Est. total time:** 20–30 min
**Owner:** Platform Team

## Pre-deployment Checklist
- [ ] CI green on main branch (check: github.com/[org]/[repo]/actions)
- [ ] Database migrations tested in staging
- [ ] .env.example up to date with any new variables

## Step 1 — Run checks locally (5 min)
```bash
pnpm test
pnpm build

✅ Expected: 0 test failures. Build output in .next/

Step 2 — Apply database migrations (5 min)

DATABASE_URL=$STAGING_DATABASE_URL npx prisma migrate deploy

✅ Expected: All migrations have been successfully applied.

# Then production:
DATABASE_URL=$PROD_DATABASE_URL npx prisma migrate deploy

Step 3 — Deploy to production (5 min)

git push origin main
# Vercel auto-deploys on push to main

✅ Expected: Vercel dashboard shows deployment completing in ~3 min.

Step 4 — Smoke test (5 min)

curl -sf https://[your-app].vercel.app/api/health | jq .

✅ Expected: {"status":"ok","db":"connected"}

Rollback

vercel rollback [previous-deployment-url]

✅ Expected: Previous deployment becomes active within 30 seconds.

Escalation

  • L1: Check Vercel logs (vercel logs --since=10m)
  • L2: Database issues — Neon console at console.neon.tech
  • L3: [Senior dev] — [contact info]

Also generating: incident response runbook, DB maintenance runbook, and monitoring setup runbook for your stack.

Get Started

How to install and use this skill in your preferred environment.

Skills are designed for AI coding agents (Claude Code, Cursor, Windsurf) and IDE-based workflows where the agent can read files, run scripts, and act on your codebase. Web-based AI can use the knowledge and frameworks, but won't have tool access.

Models & Context

Which AI models and context windows work best with this skill.

Recommended Models

Best
Claude Opus 4 Claude Sonnet 4 GPT-4.1 Gemini 2.5 Pro Grok 3 Kimi K2
Good
Claude Haiku 4.5 GPT-4.1 mini Gemini 2.5 Flash Grok 3 mini

Larger models produce more detailed, production-ready outputs.

Context Window

This skill's SKILL.md is typically 3–10 KB — fits in any modern context window.

8K Skill only
32K+ Skill + conversation
100K+ Skill + references + codebase

All current frontier models (Claude, GPT, Gemini) support 100K+ context. Use the full window for complex multi-service work.

Pro tips for best results

1

Be specific

Include numbers — users, budget, RPS — so the skill can size the architecture.

2

Share constraints

Compliance needs, team size, and existing stack all improve the output.

3

Iterate

Start with a high-level design, then ask follow-ups for IaC, cost analysis, or security review.

4

Combine skills

Pair with companion skills below for end-to-end coverage.

Ready to try Runbook Generator?

Install the skill and start getting expert-level guidance in your workflow — any agent, any IDE.

$skillfish add ~skills/runbook-generator
← Browse all 169 skills