返回 Skill 列表
extension
分类: 开发与工程无需 API Key

sentry-policy-guardrails

为Sentry实施治理和策略防护。当执行组织标准、合规规则或跨团队标准化Sentry使用时使用。可以通过诸如“sentry governance”、“sentry standards”、“sentry policy”、“enforce sentry configuration”等短语触发。

person作者: jakexiaohubgithub

Sentry Policy Guardrails

Prerequisites

  • Organization-wide standards documented
  • Team structure defined
  • Compliance requirements identified
  • Shared configuration package repository

Instructions

  1. Create shared Sentry configuration package with organization defaults
  2. Define enforced settings that cannot be overridden (sendDefaultPii, sample rates)
  3. Implement mandatory PII scrubbing in beforeSend hook
  4. Add environment enforcement to block test data in production
  5. Create standard alert policy templates with required rules
  6. Implement project naming validation following team-service-environment pattern
  7. Build configuration audit script to check compliance across projects
  8. Set up compliance dashboard with metrics reporting
  9. Document policy requirements and share with all teams
  10. Enforce shared config package usage in CI/CD pipelines

Output

  • Shared Sentry configuration package
  • Enforced organization defaults
  • Alert policy templates
  • Project naming validation
  • Compliance audit reports

Error Handling

See {baseDir}/references/errors.md for comprehensive error handling.

Examples

See {baseDir}/references/examples.md for detailed examples.

Resources