[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DPZR0XZCZ1YK0CWQA1BQMY":3,"skill-same:01M7DPZR0XZCZ1YK0CWQA1BQMY":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M7DPZR0XZCZ1YK0CWQA1BQMY","sentry-go-sdk",null,"Full Sentry SDK setup for Go. Use when asked to \"add Sentry to Go\", \"install sentry-go\", \"setup Sentry in Go\", or configure error monitoring, tracing, logging, metrics, or crons for Go applications. Supports net\u002Fhttp, Gin, Echo, Fiber, FastHTTP, Iris, Negroni, and gRPC.","Hazek-dc\u002FPresensiGuru_FaceNet_EMAR","Hazek-dc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F75208960?v=4","01M7DEQV5B4YGS86A81DYH81DR","Hazek","01M7DEQV5XP4TM0C6NTHXCXCHR",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sentry-go-sdk\ndescription: Full Sentry SDK setup for Go. Use when asked to \"add Sentry to Go\", \"install sentry-go\", \"setup Sentry in Go\", or configure error monitoring, tracing, logging, metrics, or crons for Go applications. Supports net\u002Fhttp, Gin, Echo, Fiber, FastHTTP, Iris, Negroni, and gRPC.\nlicense: Apache-2.0\ncategory: sdk-setup\nparent: sentry-sdk-setup\ndisable-model-invocation: true\n---\n\n> [All Skills](..\u002F..\u002FSKILL_TREE.md) > [SDK Setup](..\u002Fsentry-sdk-setup\u002FSKILL.md) > Go SDK\n\n# Sentry Go SDK\n\nOpinionated wizard that scans your Go project and guides you through complete Sentry setup.\n\n## Invoke This Skill When\n\n- User asks to \"add Sentry to Go\" or \"setup Sentry\" in a Go app\n- User wants error monitoring, tracing, logging, metrics, or crons in Go\n- User mentions `sentry-go`, `github.com\u002Fgetsentry\u002Fsentry-go`, or Go Sentry SDK\n- User wants to monitor panics, HTTP handlers, or scheduled jobs in Go\n\n> **Note:** SDK versions and APIs below reflect Sentry docs at time of writing (sentry-go v0.43.0+).\n> As of v0.33.0+, the SDK requires **Go 1.25 or later** (supports the two most recent Go major versions).\n> Always verify against [docs.sentry.io\u002Fplatforms\u002Fgo\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fgo\u002F) before implementing.\n\n---\n\n## Phase 1: Detect\n\nRun these commands to understand the project before making any recommendations:\n\n```bash\n# Check existing Sentry dependency\ngrep -i sentry go.mod 2>\u002Fdev\u002Fnull\n\n# Detect web framework\ngrep -E \"gin-gonic\u002Fgin|labstack\u002Fecho|gofiber\u002Ffiber|valyala\u002Ffasthttp|kataras\u002Firis|urfave\u002Fnegroni\" go.mod 2>\u002Fdev\u002Fnull\n\n# Detect gRPC\ngrep \"google.golang.org\u002Fgrpc\" go.mod 2>\u002Fdev\u002Fnull\n\n# Detect logging libraries\ngrep -E \"sirupsen\u002Flogrus|go.uber.org\u002Fzap|rs\u002Fzerolog|log\u002Fslog\" go.mod go.sum 2>\u002Fdev\u002Fnull\n\n# Detect cron \u002F scheduler patterns\ngrep -E \"robfig\u002Fcron|go-co-op\u002Fgocron|jasonlvhit\u002Fgocron\" go.mod 2>\u002Fdev\u002Fnull\n\n# Detect OpenTelemetry usage\ngrep \"go.opentelemetry.io\" go.mod 2>\u002Fdev\u002Fnull\n\n# Check for companion frontend\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\n```\n\n**What to note:**\n- Is `sentry-go` already in `go.mod`? If yes, skip to Phase 2 (configure features).\n- Which framework is used? (Determines which sub-package and middleware to install.)\n- Which logging library? (Enables automatic log capture.)\n- Are cron\u002Fscheduler patterns present? (Triggers Crons recommendation.)\n- Is there a companion frontend directory? (Triggers Phase 4 cross-link.)\n\n---\n\n## Phase 2: Recommend\n\nBased on what you found, present a concrete recommendation. Don't ask open-ended questions — lead with a proposal:\n\n**Recommended (core coverage):**\n- ✅ **Error Monitoring** — always; captures panics and unhandled errors\n- ✅ **Tracing** — if HTTP handlers, gRPC, or DB calls are detected\n- ✅ **Logging** — if logrus, zap, zerolog, or slog is detected\n\n**Optional (enhanced observability):**\n- ⚡ **Metrics** — custom counters and gauges for business KPIs \u002F SLOs\n- ⚡ **Crons** — detect silent failures in scheduled jobs\n- ⚠️ **Profiling** — removed in sentry-go v0.31.0; see `references\u002Fprofiling.md` for alternatives\n\n**Recommendation logic:**\n\n| Feature | Recommend when... |\n|---------|------------------|\n| Error Monitoring | **Always** — non-negotiable baseline |\n| Tracing | `net\u002Fhttp`, gin, echo, fiber, gRPC, or DB calls detected |\n| Logging | logrus, zap, zerolog, or `log\u002Fslog` imports detected |\n| Metrics | Business events, SLO tracking, or counters needed |\n| Crons | `robfig\u002Fcron`, `gocron`, or scheduled job patterns detected |\n| Profiling | ⚠️ **Removed in v0.31.0** — do not recommend; see `references\u002Fprofiling.md` |\n\nPropose: *\"I recommend setting up Error Monitoring + Tracing [+ Logging if applicable]. Want me to also add Metrics or Crons?\"*\n\n---\n\n## Phase 3: Guide\n\n### Install\n\n```bash\n# Core SDK (always required)\ngo get github.com\u002Fgetsentry\u002Fsentry-go\n\n# Framework sub-package — install only what matches detected framework:\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fhttp      # net\u002Fhttp\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fgin       # Gin\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fecho      # Echo\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Ffiber     # Fiber\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Ffasthttp  # FastHTTP\n\n# Logging sub-packages — install only what matches detected logging lib:\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Flogrus    # Logrus\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fslog      # slog (stdlib, Go 1.21+)\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fzap       # Zap\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fzerolog   # Zerolog\n\n# gRPC interceptors (only if google.golang.org\u002Fgrpc is detected):\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fgrpc\n\n# OpenTelemetry bridge (only if OTel is already in use):\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fotel\n```\n\n### Quick Start — Recommended Init\n\nAdd to `main()` before any other code. This config enables the most features with sensible defaults:\n\n```go\nimport (\n    \"log\"\n    \"os\"\n    \"time\"\n    \"github.com\u002Fgetsentry\u002Fsentry-go\"\n)\n\nerr := sentry.Init(sentry.ClientOptions{\n    Dsn:              os.Getenv(\"SENTRY_DSN\"),\n    Environment:      os.Getenv(\"SENTRY_ENVIRONMENT\"), \u002F\u002F \"production\", \"staging\", etc.\n    Release:          release,                          \u002F\u002F inject via -ldflags at build time\n    SendDefaultPII:   true,\n    AttachStacktrace: true,\n\n    \u002F\u002F Tracing (adjust sample rate for production)\n    EnableTracing:    true,\n    TracesSampleRate: 1.0, \u002F\u002F lower to 0.1–0.2 in high-traffic production\n\n    \u002F\u002F Logs\n    EnableLogs: true,\n})\nif err != nil {\n    log.Fatalf(\"sentry.Init: %s\", err)\n}\ndefer sentry.Flush(2 * time.Second)\n```\n\n**Injecting `Release` at build time (recommended):**\n```go\nvar release string \u002F\u002F set by -ldflags\n\n\u002F\u002F go build -ldflags=\"-X main.release=my-app@$(git describe --tags)\"\n```\n\n### Framework Middleware\n\nAfter `sentry.Init`, register the Sentry middleware for your framework:\n\n| Framework | Import path | Middleware call | `Repanic` | `WaitForDelivery` |\n|-----------|------------|----------------|-----------|-------------------|\n| `net\u002Fhttp` | `...\u002Fsentry-go\u002Fhttp` | `sentryhttp.New(opts).Handle(h)` | `true` | `false` |\n| Gin | `...\u002Fsentry-go\u002Fgin` | `router.Use(sentrygin.New(opts))` | `true` | `false` |\n| Echo | `...\u002Fsentry-go\u002Fecho` | `e.Use(sentryecho.New(opts))` | `true` | `false` |\n| Fiber | `...\u002Fsentry-go\u002Ffiber` | `app.Use(sentryfiber.New(opts))` | `false` | `true` |\n| FastHTTP | `...\u002Fsentry-go\u002Ffasthttp` | `sentryfasthttp.New(opts).Handle(h)` | `false` | `true` |\n| Iris | `...\u002Fsentry-go\u002Firis` | `app.Use(sentryiris.New(opts))` | `true` | `false` |\n| Negroni | `...\u002Fsentry-go\u002Fnegroni` | `n.Use(sentrynegroni.New(opts))` | `true` | `false` |\n\n> **Note:** Fiber and FastHTTP are built on `valyala\u002Ffasthttp` which has no built-in recovery. Use `Repanic: false, WaitForDelivery: true` for those.\n\n**Hub access in handlers:**\n```go\n\u002F\u002F net\u002Fhttp, Negroni:\nhub := sentry.GetHubFromContext(r.Context())\n\n\u002F\u002F Gin:\nhub := sentrygin.GetHubFromContext(c)\n\n\u002F\u002F Echo:\nhub := sentryecho.GetHubFromContext(c)\n\n\u002F\u002F Fiber:\nhub := sentryfiber.GetHubFromContext(c)\n```\n\n### gRPC Integration\n\nFor gRPC servers and clients, use the `sentrygrpc` interceptors instead:\n\n```go\nimport sentrygrpc \"github.com\u002Fgetsentry\u002Fsentry-go\u002Fgrpc\"\n\n\u002F\u002F Server: register interceptors when creating the gRPC server\nserver := grpc.NewServer(\n    grpc.UnaryInterceptor(sentrygrpc.UnaryServerInterceptor()),\n    grpc.StreamInterceptor(sentrygrpc.StreamServerInterceptor()),\n)\n\n\u002F\u002F Client: register interceptors when dialing\nconn, err := grpc.NewClient(\n    address,\n    grpc.WithUnaryInterceptor(sentrygrpc.UnaryClientInterceptor()),\n    grpc.WithStreamInterceptor(sentrygrpc.StreamClientInterceptor()),\n)\n\n\u002F\u002F Hub access inside a gRPC handler:\nhub := sentry.GetHubFromContext(ctx)\n```\n\n### For Each Agreed Feature\n\nWalk through features one at a time. Load the reference file for each, follow its steps, and verify before moving to the next:\n\n| Feature | Reference file | Load when... |\n|---------|---------------|-------------|\n| Error Monitoring | `${SKILL_ROOT}\u002Freferences\u002Ferror-monitoring.md` | Always (baseline) |\n| Tracing | `${SKILL_ROOT}\u002Freferences\u002Ftracing.md` | HTTP handlers \u002F distributed tracing |\n| Profiling | `${SKILL_ROOT}\u002Freferences\u002Fprofiling.md` | Performance-sensitive production apps |\n| Logging | `${SKILL_ROOT}\u002Freferences\u002Flogging.md` | logrus \u002F zap \u002F zerolog \u002F slog detected |\n| Metrics | `${SKILL_ROOT}\u002Freferences\u002Fmetrics.md` | Business KPIs \u002F SLO tracking |\n| Crons | `${SKILL_ROOT}\u002Freferences\u002Fcrons.md` | Scheduler \u002F cron job patterns detected |\n\nFor each feature: `Read ${SKILL_ROOT}\u002Freferences\u002F\u003Cfeature>.md`, follow steps exactly, verify it works.\n\n---\n\n## Configuration Reference\n\n### Key `ClientOptions` Fields\n\n| Option | Type | Default | Purpose |\n|--------|------|---------|---------|\n| `Dsn` | `string` | `\"\"` | SDK disabled if empty; env: `SENTRY_DSN` |\n| `Environment` | `string` | `\"\"` | e.g., `\"production\"`; env: `SENTRY_ENVIRONMENT` |\n| `Release` | `string` | `\"\"` | e.g., `\"my-app@1.0.0\"`; env: `SENTRY_RELEASE` |\n| `SendDefaultPII` | `bool` | `false` | Include IP, request headers |\n| `AttachStacktrace` | `bool` | `false` | Stack traces on `CaptureMessage` calls |\n| `SampleRate` | `float64` | `1.0` | Error event sample rate (0.0 treated as 1.0) |\n| `EnableTracing` | `bool` | `false` | Enable performance tracing |\n| `TracesSampleRate` | `float64` | `0.0` | Transaction sample rate |\n| `TracesSampler` | `TracesSampler` | `nil` | Custom per-transaction sampling (overrides rate) |\n| `EnableLogs` | `bool` | `false` | Enable Sentry Logs feature |\n| `MaxBreadcrumbs` | `int` | `100` | Max breadcrumbs per event |\n| `MaxErrorDepth` | `int` | `100` | Max depth for unwrapping error chains |\n| `Debug` | `bool` | `false` | Verbose SDK debug output |\n| `BeforeSend` | `func` | `nil` | Hook to mutate\u002Fdrop error events |\n| `BeforeSendTransaction` | `func` | `nil` | Hook to mutate\u002Fdrop transaction events |\n| `IgnoreErrors` | `[]string` | `nil` | Regex patterns for errors to drop |\n| `IgnoreTransactions` | `[]string` | `nil` | Regex patterns for transactions to drop |\n\n### Environment Variables\n\n| Variable | Maps to | Purpose |\n|----------|---------|---------|\n| `SENTRY_DSN` | `Dsn` | Data Source Name |\n| `SENTRY_RELEASE` | `Release` | App version (e.g., `my-app@1.0.0`) |\n| `SENTRY_ENVIRONMENT` | `Environment` | Deployment environment |\n| `HTTP_PROXY` \u002F `HTTPS_PROXY` | `HTTPProxy` \u002F `HTTPSProxy` | Outbound proxy |\n\nOptions set in `ClientOptions` **override** environment variables.\n\n---\n\n## Verification\n\nTest that Sentry is receiving events:\n\n```go\n\u002F\u002F In a handler or test — triggers a real error event:\nsentry.CaptureMessage(\"Sentry Go SDK test\")\n\n\u002F\u002F Or trigger a captured panic (with recovery middleware in place):\npanic(\"sentry test panic\")\n```\n\nCheck the Sentry dashboard within a few seconds. If nothing appears:\n1. Set `Debug: true` in `ClientOptions` — prints SDK internals to stdout\n2. Verify the DSN is correct and the project exists\n3. Ensure `sentry.Flush(2 * time.Second)` is called (events are async by default)\n\n---\n\n## Phase 4: Cross-Link\n\nAfter completing Go setup, check for a companion frontend missing Sentry coverage:\n\n```bash\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\ncat frontend\u002Fpackage.json web\u002Fpackage.json 2>\u002Fdev\u002Fnull | grep -E '\"react\"|\"svelte\"|\"vue\"|\"next\"'\n```\n\nIf a frontend directory exists without Sentry configured, suggest the matching skill:\n\n| Frontend detected | Suggest skill |\n|-------------------|--------------|\n| React \u002F Next.js | `sentry-react-sdk` |\n| Svelte \u002F SvelteKit | `sentry-svelte-sdk` |\n| Vue | Use `@sentry\u002Fvue` — see [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fvue\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fvue\u002F) |\n| Other JS\u002FTS | `sentry-react-sdk` (covers generic browser JS patterns) |\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Events not appearing | Set `Debug: true`, check DSN, verify `sentry.Flush()` is called |\n| `sentry.Init` returns error | Malformed DSN — check format: `https:\u002F\u002F\u003Ckey>@o\u003Corg>.ingest.sentry.io\u002F\u003Cproject>` |\n| Panics not captured | Ensure framework middleware is registered before handlers |\n| `defer sentry.Flush` not running | `os.Exit()` skips `defer` — call `sentry.Flush()` explicitly before `os.Exit()` |\n| Missing stack traces | Set `AttachStacktrace: true` for `CaptureMessage`; works automatically for `CaptureException` |\n| Goroutine events missing context | Clone hub before spawning goroutine: `hub := sentry.CurrentHub().Clone()` |\n| Too many transactions | Lower `TracesSampleRate` or use `TracesSampler` to drop health checks \u002F metrics endpoints |\n| Fiber\u002FFastHTTP not recovering | Use `Repanic: false, WaitForDelivery: true` for fasthttp-based frameworks |\n| `SampleRate: 0.0` sending all events | `0.0` is treated as `1.0`; to drop all, set `Dsn: \"\"` instead |\n","> [All Skills](..\u002F..\u002FSKILL_TREE.md) > [SDK Setup](..\u002Fsentry-sdk-setup\u002FSKILL.md) > Go SDK\n\n# Sentry Go SDK\n\nOpinionated wizard that scans your Go project and guides you through complete Sentry setup.\n\n## Invoke This Skill When\n\n- User asks to \"add Sentry to Go\" or \"setup Sentry\" in a Go app\n- User wants error monitoring, tracing, logging, metrics, or crons in Go\n- User mentions `sentry-go`, `github.com\u002Fgetsentry\u002Fsentry-go`, or Go Sentry SDK\n- User wants to monitor panics, HTTP handlers, or scheduled jobs in Go\n\n> **Note:** SDK versions and APIs below reflect Sentry docs at time of writing (sentry-go v0.43.0+).\n> As of v0.33.0+, the SDK requires **Go 1.25 or later** (supports the two most recent Go major versions).\n> Always verify against [docs.sentry.io\u002Fplatforms\u002Fgo\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fgo\u002F) before implementing.\n\n---\n\n## Phase 1: Detect\n\nRun these commands to understand the project before making any recommendations:\n\n```bash\n# Check existing Sentry dependency\ngrep -i sentry go.mod 2>\u002Fdev\u002Fnull\n\n# Detect web framework\ngrep -E \"gin-gonic\u002Fgin|labstack\u002Fecho|gofiber\u002Ffiber|valyala\u002Ffasthttp|kataras\u002Firis|urfave\u002Fnegroni\" go.mod 2>\u002Fdev\u002Fnull\n\n# Detect gRPC\ngrep \"google.golang.org\u002Fgrpc\" go.mod 2>\u002Fdev\u002Fnull\n\n# Detect logging libraries\ngrep -E \"sirupsen\u002Flogrus|go.uber.org\u002Fzap|rs\u002Fzerolog|log\u002Fslog\" go.mod go.sum 2>\u002Fdev\u002Fnull\n\n# Detect cron \u002F scheduler patterns\ngrep -E \"robfig\u002Fcron|go-co-op\u002Fgocron|jasonlvhit\u002Fgocron\" go.mod 2>\u002Fdev\u002Fnull\n\n# Detect OpenTelemetry usage\ngrep \"go.opentelemetry.io\" go.mod 2>\u002Fdev\u002Fnull\n\n# Check for companion frontend\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\n```\n\n**What to note:**\n- Is `sentry-go` already in `go.mod`? If yes, skip to Phase 2 (configure features).\n- Which framework is used? (Determines which sub-package and middleware to install.)\n- Which logging library? (Enables automatic log capture.)\n- Are cron\u002Fscheduler patterns present? (Triggers Crons recommendation.)\n- Is there a companion frontend directory? (Triggers Phase 4 cross-link.)\n\n---\n\n## Phase 2: Recommend\n\nBased on what you found, present a concrete recommendation. Don't ask open-ended questions — lead with a proposal:\n\n**Recommended (core coverage):**\n- ✅ **Error Monitoring** — always; captures panics and unhandled errors\n- ✅ **Tracing** — if HTTP handlers, gRPC, or DB calls are detected\n- ✅ **Logging** — if logrus, zap, zerolog, or slog is detected\n\n**Optional (enhanced observability):**\n- ⚡ **Metrics** — custom counters and gauges for business KPIs \u002F SLOs\n- ⚡ **Crons** — detect silent failures in scheduled jobs\n- ⚠️ **Profiling** — removed in sentry-go v0.31.0; see `references\u002Fprofiling.md` for alternatives\n\n**Recommendation logic:**\n\n| Feature | Recommend when... |\n|---------|------------------|\n| Error Monitoring | **Always** — non-negotiable baseline |\n| Tracing | `net\u002Fhttp`, gin, echo, fiber, gRPC, or DB calls detected |\n| Logging | logrus, zap, zerolog, or `log\u002Fslog` imports detected |\n| Metrics | Business events, SLO tracking, or counters needed |\n| Crons | `robfig\u002Fcron`, `gocron`, or scheduled job patterns detected |\n| Profiling | ⚠️ **Removed in v0.31.0** — do not recommend; see `references\u002Fprofiling.md` |\n\nPropose: *\"I recommend setting up Error Monitoring + Tracing [+ Logging if applicable]. Want me to also add Metrics or Crons?\"*\n\n---\n\n## Phase 3: Guide\n\n### Install\n\n```bash\n# Core SDK (always required)\ngo get github.com\u002Fgetsentry\u002Fsentry-go\n\n# Framework sub-package — install only what matches detected framework:\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fhttp      # net\u002Fhttp\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fgin       # Gin\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fecho      # Echo\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Ffiber     # Fiber\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Ffasthttp  # FastHTTP\n\n# Logging sub-packages — install only what matches detected logging lib:\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Flogrus    # Logrus\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fslog      # slog (stdlib, Go 1.21+)\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fzap       # Zap\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fzerolog   # Zerolog\n\n# gRPC interceptors (only if google.golang.org\u002Fgrpc is detected):\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fgrpc\n\n# OpenTelemetry bridge (only if OTel is already in use):\ngo get github.com\u002Fgetsentry\u002Fsentry-go\u002Fotel\n```\n\n### Quick Start — Recommended Init\n\nAdd to `main()` before any other code. This config enables the most features with sensible defaults:\n\n```go\nimport (\n    \"log\"\n    \"os\"\n    \"time\"\n    \"github.com\u002Fgetsentry\u002Fsentry-go\"\n)\n\nerr := sentry.Init(sentry.ClientOptions{\n    Dsn:              os.Getenv(\"SENTRY_DSN\"),\n    Environment:      os.Getenv(\"SENTRY_ENVIRONMENT\"), \u002F\u002F \"production\", \"staging\", etc.\n    Release:          release,                          \u002F\u002F inject via -ldflags at build time\n    SendDefaultPII:   true,\n    AttachStacktrace: true,\n\n    \u002F\u002F Tracing (adjust sample rate for production)\n    EnableTracing:    true,\n    TracesSampleRate: 1.0, \u002F\u002F lower to 0.1–0.2 in high-traffic production\n\n    \u002F\u002F Logs\n    EnableLogs: true,\n})\nif err != nil {\n    log.Fatalf(\"sentry.Init: %s\", err)\n}\ndefer sentry.Flush(2 * time.Second)\n```\n\n**Injecting `Release` at build time (recommended):**\n```go\nvar release string \u002F\u002F set by -ldflags\n\n\u002F\u002F go build -ldflags=\"-X main.release=my-app@$(git describe --tags)\"\n```\n\n### Framework Middleware\n\nAfter `sentry.Init`, register the Sentry middleware for your framework:\n\n| Framework | Import path | Middleware call | `Repanic` | `WaitForDelivery` |\n|-----------|------------|----------------|-----------|-------------------|\n| `net\u002Fhttp` | `...\u002Fsentry-go\u002Fhttp` | `sentryhttp.New(opts).Handle(h)` | `true` | `false` |\n| Gin | `...\u002Fsentry-go\u002Fgin` | `router.Use(sentrygin.New(opts))` | `true` | `false` |\n| Echo | `...\u002Fsentry-go\u002Fecho` | `e.Use(sentryecho.New(opts))` | `true` | `false` |\n| Fiber | `...\u002Fsentry-go\u002Ffiber` | `app.Use(sentryfiber.New(opts))` | `false` | `true` |\n| FastHTTP | `...\u002Fsentry-go\u002Ffasthttp` | `sentryfasthttp.New(opts).Handle(h)` | `false` | `true` |\n| Iris | `...\u002Fsentry-go\u002Firis` | `app.Use(sentryiris.New(opts))` | `true` | `false` |\n| Negroni | `...\u002Fsentry-go\u002Fnegroni` | `n.Use(sentrynegroni.New(opts))` | `true` | `false` |\n\n> **Note:** Fiber and FastHTTP are built on `valyala\u002Ffasthttp` which has no built-in recovery. Use `Repanic: false, WaitForDelivery: true` for those.\n\n**Hub access in handlers:**\n```go\n\u002F\u002F net\u002Fhttp, Negroni:\nhub := sentry.GetHubFromContext(r.Context())\n\n\u002F\u002F Gin:\nhub := sentrygin.GetHubFromContext(c)\n\n\u002F\u002F Echo:\nhub := sentryecho.GetHubFromContext(c)\n\n\u002F\u002F Fiber:\nhub := sentryfiber.GetHubFromContext(c)\n```\n\n### gRPC Integration\n\nFor gRPC servers and clients, use the `sentrygrpc` interceptors instead:\n\n```go\nimport sentrygrpc \"github.com\u002Fgetsentry\u002Fsentry-go\u002Fgrpc\"\n\n\u002F\u002F Server: register interceptors when creating the gRPC server\nserver := grpc.NewServer(\n    grpc.UnaryInterceptor(sentrygrpc.UnaryServerInterceptor()),\n    grpc.StreamInterceptor(sentrygrpc.StreamServerInterceptor()),\n)\n\n\u002F\u002F Client: register interceptors when dialing\nconn, err := grpc.NewClient(\n    address,\n    grpc.WithUnaryInterceptor(sentrygrpc.UnaryClientInterceptor()),\n    grpc.WithStreamInterceptor(sentrygrpc.StreamClientInterceptor()),\n)\n\n\u002F\u002F Hub access inside a gRPC handler:\nhub := sentry.GetHubFromContext(ctx)\n```\n\n### For Each Agreed Feature\n\nWalk through features one at a time. Load the reference file for each, follow its steps, and verify before moving to the next:\n\n| Feature | Reference file | Load when... |\n|---------|---------------|-------------|\n| Error Monitoring | `${SKILL_ROOT}\u002Freferences\u002Ferror-monitoring.md` | Always (baseline) |\n| Tracing | `${SKILL_ROOT}\u002Freferences\u002Ftracing.md` | HTTP handlers \u002F distributed tracing |\n| Profiling | `${SKILL_ROOT}\u002Freferences\u002Fprofiling.md` | Performance-sensitive production apps |\n| Logging | `${SKILL_ROOT}\u002Freferences\u002Flogging.md` | logrus \u002F zap \u002F zerolog \u002F slog detected |\n| Metrics | `${SKILL_ROOT}\u002Freferences\u002Fmetrics.md` | Business KPIs \u002F SLO tracking |\n| Crons | `${SKILL_ROOT}\u002Freferences\u002Fcrons.md` | Scheduler \u002F cron job patterns detected |\n\nFor each feature: `Read ${SKILL_ROOT}\u002Freferences\u002F\u003Cfeature>.md`, follow steps exactly, verify it works.\n\n---\n\n## Configuration Reference\n\n### Key `ClientOptions` Fields\n\n| Option | Type | Default | Purpose |\n|--------|------|---------|---------|\n| `Dsn` | `string` | `\"\"` | SDK disabled if empty; env: `SENTRY_DSN` |\n| `Environment` | `string` | `\"\"` | e.g., `\"production\"`; env: `SENTRY_ENVIRONMENT` |\n| `Release` | `string` | `\"\"` | e.g., `\"my-app@1.0.0\"`; env: `SENTRY_RELEASE` |\n| `SendDefaultPII` | `bool` | `false` | Include IP, request headers |\n| `AttachStacktrace` | `bool` | `false` | Stack traces on `CaptureMessage` calls |\n| `SampleRate` | `float64` | `1.0` | Error event sample rate (0.0 treated as 1.0) |\n| `EnableTracing` | `bool` | `false` | Enable performance tracing |\n| `TracesSampleRate` | `float64` | `0.0` | Transaction sample rate |\n| `TracesSampler` | `TracesSampler` | `nil` | Custom per-transaction sampling (overrides rate) |\n| `EnableLogs` | `bool` | `false` | Enable Sentry Logs feature |\n| `MaxBreadcrumbs` | `int` | `100` | Max breadcrumbs per event |\n| `MaxErrorDepth` | `int` | `100` | Max depth for unwrapping error chains |\n| `Debug` | `bool` | `false` | Verbose SDK debug output |\n| `BeforeSend` | `func` | `nil` | Hook to mutate\u002Fdrop error events |\n| `BeforeSendTransaction` | `func` | `nil` | Hook to mutate\u002Fdrop transaction events |\n| `IgnoreErrors` | `[]string` | `nil` | Regex patterns for errors to drop |\n| `IgnoreTransactions` | `[]string` | `nil` | Regex patterns for transactions to drop |\n\n### Environment Variables\n\n| Variable | Maps to | Purpose |\n|----------|---------|---------|\n| `SENTRY_DSN` | `Dsn` | Data Source Name |\n| `SENTRY_RELEASE` | `Release` | App version (e.g., `my-app@1.0.0`) |\n| `SENTRY_ENVIRONMENT` | `Environment` | Deployment environment |\n| `HTTP_PROXY` \u002F `HTTPS_PROXY` | `HTTPProxy` \u002F `HTTPSProxy` | Outbound proxy |\n\nOptions set in `ClientOptions` **override** environment variables.\n\n---\n\n## Verification\n\nTest that Sentry is receiving events:\n\n```go\n\u002F\u002F In a handler or test — triggers a real error event:\nsentry.CaptureMessage(\"Sentry Go SDK test\")\n\n\u002F\u002F Or trigger a captured panic (with recovery middleware in place):\npanic(\"sentry test panic\")\n```\n\nCheck the Sentry dashboard within a few seconds. If nothing appears:\n1. Set `Debug: true` in `ClientOptions` — prints SDK internals to stdout\n2. Verify the DSN is correct and the project exists\n3. Ensure `sentry.Flush(2 * time.Second)` is called (events are async by default)\n\n---\n\n## Phase 4: Cross-Link\n\nAfter completing Go setup, check for a companion frontend missing Sentry coverage:\n\n```bash\nls frontend\u002F web\u002F client\u002F ui\u002F 2>\u002Fdev\u002Fnull\ncat frontend\u002Fpackage.json web\u002Fpackage.json 2>\u002Fdev\u002Fnull | grep -E '\"react\"|\"svelte\"|\"vue\"|\"next\"'\n```\n\nIf a frontend directory exists without Sentry configured, suggest the matching skill:\n\n| Frontend detected | Suggest skill |\n|-------------------|--------------|\n| React \u002F Next.js | `sentry-react-sdk` |\n| Svelte \u002F SvelteKit | `sentry-svelte-sdk` |\n| Vue | Use `@sentry\u002Fvue` — see [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fvue\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fvue\u002F) |\n| Other JS\u002FTS | `sentry-react-sdk` (covers generic browser JS patterns) |\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Events not appearing | Set `Debug: true`, check DSN, verify `sentry.Flush()` is called |\n| `sentry.Init` returns error | Malformed DSN — check format: `https:\u002F\u002F\u003Ckey>@o\u003Corg>.ingest.sentry.io\u002F\u003Cproject>` |\n| Panics not captured | Ensure framework middleware is registered before handlers |\n| `defer sentry.Flush` not running | `os.Exit()` skips `defer` — call `sentry.Flush()` explicitly before `os.Exit()` |\n| Missing stack traces | Set `AttachStacktrace: true` for `CaptureMessage`; works automatically for `CaptureException` |\n| Goroutine events missing context | Clone hub before spawning goroutine: `hub := sentry.CurrentHub().Clone()` |\n| Too many transactions | Lower `TracesSampleRate` or use `TracesSampler` to drop health checks \u002F metrics endpoints |\n| Fiber\u002FFastHTTP not recovering | Use `Repanic: false, WaitForDelivery: true` for fasthttp-based frameworks |\n| `SampleRate: 0.0` sending all events | `0.0` is treated as `1.0`; to drop all, set `Dsn: \"\"` instead |\n",{"name":5,"parent":24,"license":15,"category":25,"description":7,"disable-model-invocation":26},"sentry-sdk-setup","sdk-setup",true,"main","b1e4ffadb4f933bbbcaa03a83f8b9929171ac28b",".agents\u002Fskills\u002Fsentry-go-sdk",0,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR","https:\u002F\u002Fgithub.com\u002FHazek-dc","2026-10-22 08:36:44",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-go-sdk",{"tool":40,"command":41},"bunx","bunx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-go-sdk",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-go-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002FSKILL.md",[47,53,57,61,65,69],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcrons.md","REFERENCE","参考文档",8396,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002Freferences\u002Fcrons.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Ferror-monitoring.md",11978,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002Freferences\u002Ferror-monitoring.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Flogging.md",10624,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002Freferences\u002Flogging.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fmetrics.md",8039,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002Freferences\u002Fmetrics.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fprofiling.md",1369,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002Freferences\u002Fprofiling.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Ftracing.md",11933,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-go-sdk\u002Freferences\u002Ftracing.md",[74,82,89,96,103,110],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DS6GGYRZAYD33PFPS8Z2T3","testing-best-practices","Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.","MIT","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DS6BC3AW7HTPRHE2TTVKWM","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7DS66GE6B11MYJDVC74HXM4","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Flaravel-best-practices\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7DS5ZW717DMS6P1E90AQCKV","infer-conventions","Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai\u002Frules`, resolve mixed or conflicting patterns (e.g. \"are we using Form Requests or inline validation?\"), or onboard agents and teammates to \"how we do things here\". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7DS5W12RGCVJTFQJ1N0GB8E","inertia-react-development","Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using \u003CLink>, \u003CForm>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finertia-react-development\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7DS5PVDPMPCWSK2RXPDC9BB","deploying-to-cloud","Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Fdeploying-to-cloud\u002FSKILL.md",[],[]]