logging-and-error-reporting — Claude Code skill: what it does
Logging-and-error-reporting is a Claude Code skill that standardizes log levels and Sentry error reporting. It runs during development or code review to ensure consistent error handling.
AGPL-3.0 ★ 720 updated 2026-11-10
npx skills add dominikmartn/harp --skill logging-and-error-reporting -a claude-codeWhat logging-and-error-reporting does
The skill guides the selection between log::* macros for local diagnostics and report_error! for actionable Sentry events. It ensures developers avoid log::error! for issues requiring engineering attention, as it does not trigger a Sentry issue by itself.
It enforces security protocols by requiring safe_* macros when handling file paths or user data, preventing PII from leaking into logs. The logic relies on the SentryLogger wrapper; keep in mind that debug! and trace! levels are discarded from Sentry entirely to maintain performance.
What it helps with
- Select correct logging levels
- Decide between log and report_error!
- Sanitize sensitive data in logs
- Identify actionable bugs for Sentry
Example prompts for the agent
- Check if the logging levels in this module are correct
- Use
report_error!instead oflog::error!for bugs that need fixing - Refactor this code to use
safe_error!for sensitive information
How to install logging-and-error-reporting
1Skills CLI (Vercel)
npx skills add dominikmartn/harp --skill logging-and-error-reporting -a claude-code2Manually: put the files in place
~/.claude/skills/logging-and-error-reporting/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/logging-and-error-reporting/
1Skills CLI (Vercel)
npx skills add dominikmartn/harp --skill logging-and-error-reporting -a codex2Manually: put the files in place
.agents/skills/logging-and-error-reporting/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add dominikmartn/harp --skill logging-and-error-reporting -a cursor2Manually: put the files in place
.cursor/skills/logging-and-error-reporting/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install dominikmartn/harp .agents/skills/logging-and-error-reporting2Manually: put the files in place
.github/skills/logging-and-error-reporting/SKILL.md1Skills CLI (Vercel)
npx skills add dominikmartn/harp --skill logging-and-error-reporting -a gemini-cli2Platform CLI
gemini skills install https://github.com/dominikmartn/harp --path .agents/skills/logging-and-error-reportingManually: put the files in place
.devin/skills/logging-and-error-reporting/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about logging-and-error-reporting
How to install logging-and-error-reporting in Claude Code?
Run npx skills add dominikmartn/harp --skill logging-and-error-reporting -a claude-code in your project terminal.
What does logging-and-error-reporting do?
It acts as a guide for using logging and error macros, ensuring that logs stay clean and errors are correctly routed to Sentry with the right level of severity.
What is required for logging-and-error-reporting?
The skill is designed for the Warp codebase. You must use the provided log::* and report_error! macros, and have a build configured with SentryLogger for error reporting to function.