Ship to Production Pack: Migrations, Observability & GDPR
Everything between "it works on my machine" and a calm production launch. Ship schema changes without downtime, see every slow request with OpenTelemetry logs, traces and alerts, close GDPR and cookie-consent gaps before EU customers ask, and keep your AI/LLM bill under control with caching, routing and budget guards. For solo devs and small teams shipping to real users without a dedicated SRE.
Works with any agent that signs in to Agensi, such as Claude, ChatGPT, Claude Code, Cursor and Codex CLI.
One payment, lifetime access. 4 skills unlock instantly in your library.
What's included
4 skillsPlans and writes expand/contract database migrations that never lock tables or break running code. Checks lock levels, backfills in batches, adds rollback steps. Postgres, MySQL, Prisma, Django, Rails, Alembic.
Instruments your app with OpenTelemetry: structured logs, distributed traces, RED metrics and alert rules that page only on real user impact. Node, Python, Go; exports to Grafana, Datadog, Honeycomb, Axiom or any OTLP backend.
Audits a website or codebase for GDPR/ePrivacy issues: trackers firing before consent, cookie banner dark patterns, missing privacy policy items, data retention and processor gaps. Outputs a prioritized fix list and a data map. Not legal advice.
Optimize LLM costs through context hygiene, prompt caching, model routing, and automated budget guards.
See it in action
Zero-Downtime DB Migrations: Ship Schema Changes Safely
Example session with this skill installed
Rename users.fullname to display_name and make it NOT NULL. Postgres 15, Prisma, 8M rows.
- Read your context and instructions
- Compiled the zero-downtime db migrations
Risk: a direct rename breaks the running app version; SET NOT NULL on 8M rows takes an ACCESS EXCLUSIVE lock during a full scan. Plan it as 4 releases.
| Phase | Schema | App code | Rollback |
|---|---|---|---|
| A Expand | ADD COLUMN display_name text | none | drop column |
| B Migrate | none | dual-write both columns + batch backfill | stop job |
| C Switch | CHECK (display_name IS NOT NULL) NOT VALID → VALIDATE → SET NOT NULL | read display_name | revert reads |
| D Contract | DROP COLUMN fullname | remove old field | (one release later) |
Phase A migration (prisma/migrations/20261117_add_display_name/migration.sql)
SET lock_timeout = '3s';
ALTER TABLE users ADD COLUMN display_name text;
Backfill job (scripts/backfill-display-name.ts), idempotent and safe to re-run:
for (;;) {
const n = await prisma.$executeRaw`
UPDATE users SET display_name = COALESCE(fullname, '')
WHERE id IN (SELECT id FROM users WHERE display_name IS NULL ORDER BY id LIMIT 5000)`;
if (n === 0) break;
await sleep(200);
}
App dual-write (Phase B) keeps new rows filled while the job runs.
Phase C: VALIDATE CONSTRAINT only takes a SHARE UPDATE EXCLUSIVE lock, so writes continue; then SET NOT NULL is instant because PG uses the validated check.
Verify: SELECT count(*) FROM users WHERE display_name IS NULL; must be 0 before Phase C.
Next: ship Phase A today, deploy dual-write, run backfill off-peak.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads these skills and uses them on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every skill in this bundle goes through our trust checks.
Security scanned
Checked by our 8-point scan before listing
13 uses
Times these skills were used to date
Money-back guarantee
Doesn't do what its page promises? You get your money back.