omgskills Get the Mac app
Skill

hybrid-cloud-test-gen

@getsentry 44k stars Updated 2026-07-28 Author match: High

Generate hybrid cloud tests for the Sentry codebase. Use when asked to "generate HC test", "create hybrid cloud test", "write HC test", "add HC test", "write RPC test", "test RPC service", "silo test", "cross-silo test", "outbox test", "API gateway test", or "endpoint silo test". Covers RPC service tests, API gateway tests, outbox pattern tests, and API endpoint tests with silo decorators.

apmcrash-reportingcrash-reportscsp-reportdevopsdjangoerror-loggingerror-monitoring

Install

Install this Claude and Codex skill with the command below. The command stays visible even when copy support is unavailable.

Install command
git clone https://github.com/getsentry/sentry /tmp/sentry && ln -s /tmp/sentry/.agents/skills/hybrid-cloud-test-gen ~/.claude/skills/hybrid-cloud-test-gen

View on GitHub

From README

Hybrid Cloud Test Generation This skill generates tests for Sentry's hybrid cloud architecture. It covers RPC services, API gateway proxying, outbox patterns, and endpoint silo decorators. Critical Constraints ALWAYS use factory methods (self.createuser(), self.createorganization()) — never Model.objects.create(). NEVER wrap factory method calls in assumetestsilomode or assumetestsilomodeof. Factories are silo-aware and handle silo mode internally. Only use silo mode context managers for direct ORM queries (Model.objects.get/filter/count/exists/delete). ALWAYS use pytest-style assertions (assert x == y) — never self.assertEqual(). ALWAYS add tests to existing test files rather than creating new ones, unless no file exists for that module. For cross-silo ORM access: use assumetestsilomodeof(Model) when accessing a single model (auto-detects silo). Use assumetestsilomode(SiloMode.X) when the block covers multiple models or non-model operations.

More from this repo