Code Design Rationale Investigator
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
Instruments structured Sentry logs in a new or existing application.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument-logging --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills-legacy/sentry-instrument-logging .claude/skills/sentry-instrument-logging && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sentry-instrument-logging" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-logging into .claude/skills/sentry-instrument-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument-logging", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-loggingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument-logging --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills-legacy/sentry-instrument-logging .agents/skills/sentry-instrument-logging && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sentry-instrument-logging" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-logging into .agents/skills/sentry-instrument-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument-logging", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument-logging --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills-legacy/sentry-instrument-logging .cursor/skills/sentry-instrument-logging && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sentry-instrument-logging" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-logging into .cursor/skills/sentry-instrument-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument-logging", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/getsentry/sentry-for-ai.git --path skills-legacy/sentry-instrument-logging--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument-logging --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills-legacy/sentry-instrument-logging .gemini/skills/sentry-instrument-logging && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sentry-instrument-logging" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-logging into .gemini/skills/sentry-instrument-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument-logging", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install getsentry/sentry-for-ai sentry-instrument-loggingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills-legacy/sentry-instrument-logging .github/skills/sentry-instrument-logging && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sentry-instrument-logging" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-logging into .github/skills/sentry-instrument-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument-logging", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument-logging --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills-legacy/sentry-instrument-logging .opencode/skills/sentry-instrument-logging && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sentry-instrument-logging" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/skills-legacy/sentry-instrument-logging into .opencode/skills/sentry-instrument-logging/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument-logging", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sentry-instrument-loggingInstruments structured Sentry logs in a new or existing application.
Sentry Instrument Logging is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. Instruments structured Sentry logs in a new or existing application.
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It works with Sentry. The repository describes itself as: Teach your AI coding assistant how to use Sentry - setup, debugging, alerts, and more. The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d8fd106. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sentry Instrument Logging loads about 3.2k tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 1,646 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from getsentry/sentry-for-ai at commit d8fd106, republished under its Apache-2.0 licence (© getsentry). 1,646 words, ~3,191 tokens.
.claude/skills/sentry-instrument-logging/SKILL.md (or your agent's skills folder).This skill adds structured Sentry logs to an application following the guidance in Instrumentation guidance.
The goal is to provide a small set of high-value log messages that make production behavior easier to understand and debug.
The log messages added by this skill should also serve as clear, repeatable, examples that users can follow when instrumenting the rest of their application.
The repository should already have basic Sentry configuration.
If Sentry has not yet been configured, offer to set it up using the appropriate skills.
Inventory every application in the repository. Locate language/runtime
manifests (composer.json, package.json, go.mod, Gemfile,
pyproject.toml, Cargo.toml, …). Each manifest typically marks a
separately deployed application. Produce an explicit table and treat it as
the work list for the rest of this skill:
| App | Path | Language | Sentry SDK? | Logging abstraction | Status |
|---|
If the repo has more than ~2 apps, confirm scope with the user before starting: which apps to instrument now, and at what depth.
Establish shared conventions once, up front — before touching any app.
Decide on consistent attribute namespacing (e.g. myapp.<domain>.<field>),
event-name phrasing, and log levels, so logs from every language can be
searched and correlated together. Record these so each per-app pass follows
them. Note service boundaries that propagate trace headers
(baggage / sentry-trace) — logs on both sides of such a call should share
attribute names so a single trace reads coherently across languages.
For each application in the inventory, complete the full pass below before
moving to the next, updating its Status as you go
(not started → configured → instrumented → verified):
a. Read the corresponding language-specific skill in skills and confirm Sentry logging is configured. b. Determine the app's logging abstraction (Monolog/PHP, slog/Go, Rails logger/Ruby, Pino or console/JS). If Sentry supports it, configure that integration; otherwise use Sentry's logging SDK directly. c. Identify a small number of high-value log messages, prioritizing runtime decisions, important algorithms, audit events, and context around recoverable failures. Follow Valuable log entries to instrument. d. Add structured logs following the shared conventions from Step 2 and the Instrumentation guidance. e. Verify: run the app's lint/type/test tooling if available, and confirm logs are emitted. If the toolchain isn't available locally, say so explicitly rather than implying it passed.
Apply a high-value log validation check. Review every added or modified log line and remove or revise any log that does not pass this check:
| Check | Question |
|---|---|
| Production question | What concrete production question does this log answer? |
| Signal | Would this still be useful if emitted hundreds or thousands of times? |
| Telemetry fit | Is this better represented as a trace, metric, or Sentry error? |
| Existing coverage | Is this already captured by an exception, existing log, or shared API/client wrapper? |
| Structure | Are event names and attributes consistent with the shared conventions? |
| Safety | Does it avoid PII, secrets, raw payloads, and unstable exception messages? |
| Actionability | Would seeing this log change how someone investigates or responds? |
Prefer removing logs that merely confirm routine UI interactions, duplicate generic API failures, or record expected validation failures without adding meaningful context.
Keep logs that explain important runtime decisions, summarize multi-step workflows, record important audit/business events, or provide context around recoverable failures.
For each remaining log, be able to write a one-sentence justification:
"This log is valuable because it helps answer <specific question>."
Reconcile against the inventory. Confirm every in-scope app reached
verified (or was explicitly deferred). Report per-app status so partial
coverage is never mistaken for full coverage.
Logs are ideal for recording the context and decisions that explain what happened during an application's execution.
The decisions your application makes while serving a request are often the missing context needed to explain production behaviour.
Examples include:
This information can be useful both as a standalone log entry, for example when a feature flag is evaluated, and as structured context included with later log messages.
Logs are useful when a feature performs multiple steps. By recording intermediate outcomes, you can understand where a process is breaking down and why.
Here's an example from a site that allows users to import a logbook from another service:
Sentry.logger.info("Aurora import started", {
"import.source": "aurora",
"import.entries_received": body.ascents.length,
});
// Algorithm runs here...
Sentry.logger.info("Aurora import finished", {
"import.source": "aurora",
"import.entries_received": body.ascents.length,
"import.imported": imported,
"import.climbs_created": climbsCreated,
"import.skipped": skipped,
"import.skipped.missing_name": skipDetails.missingName,
"import.skipped.unknown_grade": skipDetails.unknownGrade,
"import.skipped.invalid_angle": skipDetails.invalidAngle,
"import.skipped.already_imported": skipDetails.alreadyImported,
});Key stages are logged and the final outcome summarizes the work performed, making it easier to understand where the import succeeded, failed, or produced unexpected results.
Audit logs help answer questions like "Who changed this?", "When did it happen?", and "Was this action expected?"
Log important changes to application state, such as entities being created, updated, deleted, viewed, or having permissions modified.
Use good judgment. Most applications don't need a log entry for every database operation, but they often benefit from recording security-sensitive actions and important business events.
For exceptions, you'll often be better off using errors rather than adding a log line.
Not every failure should become a Sentry issue.
Examples of failures that are often better represented as log messages include:
For these types of error log messages, consider including:
Use structured logs that capture information as consistent key/value pairs.
Use consistent field names throughout the application so similar events can be searched, aggregated, and compared.
A good log message typically answers three questions:
Use Sentry's SDK when appropriate for setting context globally. For example,
set_user is available in many SDKs to attach authenticated user information
to all events in a single location.
Logs should accumulate context as a request moves through your application.
Early log messages may contain only request information. Later messages can add authenticated user information, feature flags, runtime decisions, and event-specific metadata.
Sentry automatically attaches a Trace ID to log messages, allowing them to be correlated with traces.
Using appropriate log levels conveys additional meaning in your log messages.
Use debug for temporary diagnostic information.
Use info for normal application events and contextual information.
Use warn for recoverable situations that deserve attention but do not prevent
the application from functioning correctly.
Use error for unexpected failures that are handled gracefully. Prefer errors
for exceptions that should become Sentry issues.
Avoid logging entire objects. Instead, log only the fields relevant to the event, using dot notation to namespace nested values.
Omit optional attributes when they are not present instead of logging empty
strings, null, or placeholder values.
Instrumenting every function call or service invocation is better handled by tracing or profiling.
Assume anything written to logs may eventually be viewed by another human.
set_user).Be intentional about what you log. Log the minimum information necessary to debug and operate your application.
There are legitimate reasons to log large unstructured blobs of data:
However, logging this type of data has both costs and risks:
When possible, prefer logging the specific fields you expect to query rather than entire payloads.
The purpose of this skill is to demonstrate good logging practices, not to maximize log coverage.
Prefer adding a handful of high-value log messages over instrumenting every possible code path.
Each log message should:
For small codebases, add enough representative logs that the result serves as a practical model for future instrumentation.
For large codebases, focus on a few representative locations rather than trying to instrument everything.
Strongly prefer using the SDK's setUser functionality to associate logs with the authenticated user, rather than repeating user identifiers as log attributes. Only include user identifiers as log attributes when they describe something other than the authenticated user.
Before adding new log lines, inspect existing logs and identify gaps.
Prefer to:
© getsentry, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills-legacy/sentry-instrument-logging of getsentry/sentry-for-ai.
Open the folder on GitHubat commit d8fd106
Sentry Instrument Logging next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sentry Instrument Logging this skillgetsentry/sentry-for-ai | 268 | — | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Code Design Rationale Investigatorcursor/plugins | 10k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| Node Backend Development Guidelinesdiet103/claude-code-infrastructure-showcase | 10k | 2 repos | ~2k | Automated safety check: Pass | MIT | |
| Scraps Reviewgetsentry/sentry | 45k | — | ~1.2k | Automated safety check: Notes | Custom licence | |
| Sentry v8 Error Trackingdiet103/claude-code-infrastructure-showcase | 10k | 2 repos | ~2.3k | Automated safety check: Notes | MIT | |
| Create Pull Request with Work Item IDmakeplane/plane | 60k | — | ~824 | Automated safety check: Pass | AGPL-3.0 |
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
diet103/claude-code-infrastructure-showcase
Sets layered architecture and coding rules for Node.js, Express and TypeScript microservices, covering routes, controllers, services, repositories, Prisma, Sentry and Zod.
getsentry/sentry
Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…
diet103/claude-code-infrastructure-showcase
Enforces that every error in a service is captured to Sentry v8, with patterns for controllers, routes, cron jobs and database performance spans instead of console logging alone.
makeplane/plane
Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.
getsentry/sentry
Instrument and discover analytics events in Sentry's frontend UI.
getsentry/sentry-for-ai
Full Sentry SDK setup for Elixir. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for Go. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for Next.js. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for PHP. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for Python. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for React Router Framework mode. An agent skill from getsentry/sentry-for-ai.
Works with
Instruments structured Sentry logs in a new or existing application. Sentry Instrument Logging is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. Instruments structured Sentry logs in a new or existing application.
Run `npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a claude-code`. Or copy the skill folder (skills-legacy/sentry-instrument-logging in getsentry/sentry-for-ai) into .claude/skills/sentry-instrument-logging in your project. Claude Code loads it when a task matches its description.
Run `npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a codex`. Or copy the skill folder (skills-legacy/sentry-instrument-logging in getsentry/sentry-for-ai) into .agents/skills/sentry-instrument-logging in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry-for-ai --skill sentry-instrument-logging -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sentry-instrument-logging, .gemini/skills/sentry-instrument-logging, .github/skills/sentry-instrument-logging and .opencode/skills/sentry-instrument-logging in your project.
SKILL.md names no scripts, command-line tools or credentials: Sentry Instrument Logging is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sentry Instrument Logging is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sentry Instrument Logging: Code Design Rationale Investigator (cursor/plugins, 10k stars), Node Backend Development Guidelines (diet103/claude-code-infrastructure-showcase, 10k stars), Scraps Review (getsentry/sentry, 45k stars) and Sentry v8 Error Tracking (diet103/claude-code-infrastructure-showcase, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry-for-ai, which has 268 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.
Source: getsentry/sentry-for-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.