sentry-policy-guardrails
为Sentry实施治理和政策约束。在执行组织标准、合规规则或跨团队标准化Sentry使用时使用。通过“sentry治理”、“sentry标准”、“sentry策略”、“强制执行sentry配置”等短语触发。
📖 中文导读:为Sentry实施治理和政策约束。在执行组织标准、合规规则或跨团队标准化Sentry使用时使用。通过“sentry治理”、“sentry标准”、“sentry策略”、“强制执行sentry配置”等短语触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: sentry-policy-guardrails description: | Implement governance and policy guardrails for Sentry. Use when enforcing organizational standards, compliance rules, or standardizing Sentry usage across teams. Trigger with phrases like "sentry governance", "sentry standards", "sentry policy", "enforce sentry configuration". allowed-tools: Read, Write, Edit, Grep version: 1.0.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io
Sentry Policy Guardrails
Prerequisites
- Organization-wide standards documented
- Team structure defined
- Compliance requirements identified
- Shared configuration package repository
Instructions
- Create shared Sentry configuration package with organization defaults
- Define enforced settings that cannot be overridden (sendDefaultPii, sample rates)
- Implement mandatory PII scrubbing in beforeSend hook
- Add environment enforcement to block test data in production
- Create standard alert policy templates with required rules
- Implement project naming validation following team-service-environment pattern
- Build configuration audit script to check compliance across projects
- Set up compliance dashboard with metrics reporting
- Document policy requirements and share with all teams
- 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.