Create a Sentry SDK Skill Bundle
Produce a complete, research-backed SDK skill bundle — a main wizard SKILL.md plus deep-dive reference files for every feature pillar the SDK supports.
Invoke This Skill When
- Asked to "create a Sentry SDK skill" for a new platform
- Asked to "add support for [language/framework]" to sentry-agent-skills
- Building a new skill bundle
- Porting the SDK skill pattern to a new Sentry SDK
Read
${SKILL_ROOT}/../../docs/sdk-skill-philosophy.md
first — it defines the bundle architecture, wizard flow, and design principles this skill implements.
Phase 1: Identify the SDK
Determine what you're building a skill for:
bash
# What SDK? What's the package name?
# Examples: sentry-go, @sentry/sveltekit, sentry-python, sentry-ruby, sentry-cocoa
Establish the feature matrix — which Sentry pillars does this SDK support?
| Pillar | Check docs | Notes |
|---|
| Error Monitoring | Always available | Non-negotiable baseline |
| Tracing/Performance | Usually available | Check for span API |
| Profiling | Varies | May be removed or experimental |
| Logging | Newer feature | Check minimum version |
| Metrics | Newer feature | May be beta/experimental |
| Crons | Backend only | Not available for frontend SDKs |
| Session Replay | Frontend only | Not available for backend SDKs |
| AI Monitoring | Some SDKs | Usually JS + Python only |
Reference existing SDK skills to understand the target quality level:
bash
ls skills/sentry-*-sdk/ 2>/dev/null
# Read 1-2 existing SDK skills for pattern reference
Phase 2: Research
This is the most critical phase. Skill quality depends entirely on accurate, current API knowledge. Do NOT write skills from memory — research every feature against official docs.
Research Strategy
Spin off
parallel research tasks (using the
tool with
) — one per feature area. Each task should:
- Visit the official Sentry docs pages for that feature
- Visit the SDK's GitHub repo for source-level API verification
- Write thorough findings to a dedicated research file
Read
${SKILL_ROOT}/references/research-playbook.md
for the detailed research execution plan, including prompt templates and file naming conventions.
Research Batching
Batch research tasks by topic area. Run them in parallel where possible:
| Batch | Topics | Output file |
|---|
| 1 | Setup, configuration, all init options, framework detection | research/<sdk>-setup-config.md
|
| 2 | Error monitoring, panic/exception capture, scopes, enrichment | research/<sdk>-error-monitoring.md
|
| 3 | Tracing, profiling (if supported) | research/<sdk>-tracing-profiling.md
|
| 4 | Logging, metrics, crons (if supported) | research/<sdk>-logging-metrics-crons.md
|
| 5 | Session replay (frontend only), AI monitoring (if supported) | research/<sdk>-replay-ai.md
|
Important: Tell each research task to write its output to a file (
parameter). Do NOT consume research results inline — they're large (500–1200 lines each). Workers will read them from disk later.
Research Quality Gate
Before proceeding, verify each research file:
- Has actual content (not just Claude's process notes)
- Contains code examples with real API names
- Includes minimum SDK versions
- Covers framework-specific variations
bash
# Quick verification
for f in research/<sdk>-*.md; do
echo "=== $(basename $f) ==="
wc -l "$f"
grep -c "^#" "$f" # should have multiple headings
done
Re-run any research task that produced fewer than 100 lines — it likely failed silently.
Phase 3: Create the Main SKILL.md
The main SKILL.md implements the four-phase wizard from the philosophy doc. It must stay under 500 lines.
Gather Context First
Before writing, run a scout or read existing skills to understand conventions:
- Frontmatter pattern (name, description, license)
- "Invoke This Skill When" trigger phrases
- Table formatting and code example style
- Troubleshooting table conventions
SKILL.md Structure
markdown
---
name: sentry-<platform>-sdk
description: Full Sentry SDK setup for <Platform>. Use when asked to "add Sentry
to <platform>", "install <package>", or configure error monitoring, tracing,
[features] for <Platform> applications. Supports [frameworks].
license: Apache-2.0
---
# Sentry <Platform> SDK
## Invoke This Skill When
[trigger phrases]
## Phase 1: Detect
[bash commands to scan project — package manager, framework, existing Sentry, frontend/backend]
## Phase 2: Recommend
[opinionated feature matrix with "always / when detected / optional" logic]
## Phase 3: Guide
### Install
### Quick Start — Recommended Init
### Framework Middleware (if applicable)
### For Each Agreed Feature
[reference dispatch table: feature → ${SKILL_ROOT}/references/<feature>.md]
## Configuration Reference
[key init options table, environment variables]
## Verification
[test snippet]
## Phase 4: Cross-Link
[detect companion frontend/backend, suggest matching SDK skills]
## Troubleshooting
[common issues table]
Key Principles for the Main SKILL.md
- Keep it lean — deep details go in references, not here
- Detection commands must be real — test them against actual projects
- Recommendation logic must be opinionated — "always", "when X detected", not "maybe consider"
- Quick Start config should enable the most features with sensible defaults
- Framework middleware table — exact import paths, middleware calls, and quirks
- Cross-link aggressively — if Go backend, suggest frontend. If Svelte frontend, suggest backend.
Phase 4: Create Reference Files
One reference file per feature pillar the SDK supports. These are deep dives — they can be longer than the main SKILL.md.
Reference File Structure
markdown
# <Feature> — Sentry <Platform> SDK
> Minimum SDK: `<package>` vX.Y.Z+
## Configuration
## Code Examples
### Basic usage
### Advanced patterns
### Framework-specific notes (if applicable)
## Best Practices
## Troubleshooting
| Issue | Solution |
|-------|----------|
What Makes a Good Reference
Read
${SKILL_ROOT}/references/quality-checklist.md
for the full quality rubric.
Key points:
- Working code examples — not pseudo-code, not truncated snippets
- Tables for config options — type, default, minimum version
- One complete example per pattern — don't show 5 variations of the same thing
- Framework-specific notes — call out when behavior differs between frameworks
- Minimum SDK version at the top — always
- Honest about limitations — if a feature was removed (like Go profiling), say so
Feature-Specific Guidance
| Feature | Key things to cover |
|---|
| Error Monitoring | Capture APIs, panic/exception recovery, scopes, enrichment (tags/user/breadcrumbs), error chains, BeforeSend, fingerprinting |
| Tracing | Sample rates, custom spans, distributed tracing, framework middleware, operation types |
| Profiling | Sample rate config, how it attaches to traces, or honest "removed/not available" |
| Logging | Enable flag, logger API, integration with popular logging libraries, filtering |
| Metrics | Counter/gauge/distribution APIs, units, attributes, best practices for cardinality |
| Crons | Check-in API, monitor config, schedule types, heartbeat patterns |
| Session Replay | Replay integration, sample rates, privacy masking, canvas/network recording |
Phase 5: Verify Everything
Do NOT skip this phase. SDK APIs change frequently. Research can hallucinate. Workers can fabricate config keys.
API Verification
Run a dedicated verification pass against the SDK's actual source code:
Research prompt: "Verify these specific API names and signatures against
the <SDK> GitHub repo source code: [list every API from the skill files]"
Things that commonly go wrong:
- Config option names with wrong casing ( vs )
- Fabricated config keys that don't exist ( — verify it's real)
- Deprecated APIs used instead of modern replacements ( → )
- Features listed as available when they've been removed (profiling in Go SDK)
- Wrong minimum version numbers
Review Pass
Run a reviewer on the complete skill bundle:
- Technical accuracy of code examples
- Consistency between main SKILL.md and reference files
- Consistency with existing SDK skills in the repo
- Agent Skills spec compliance (frontmatter, naming, line count)
Fix Review Findings
Triage by priority:
- P0: Misleading claims (advertising removed features) — fix immediately
- P1: Incorrect APIs, deprecated methods — fix before merge
- P2: Style inconsistencies, version nitpicks — fix if quick
- P3: Skip
Phase 6: Register and Update Docs
After the skill passes review:
- Update README.md — add to the SDK Skills table
- Update AGENTS.md — if the philosophy doc or skill categories section needs it
- Add usage examples — trigger phrases in the Usage section
- Document the bundle pattern — if this is a new SDK, note the references/ structure
Commit Strategy
Each major piece gets its own commit:
docs: add sdk-skill-philosophy reference
(if new)
feat(<platform>-sdk): add sentry-<platform>-sdk main SKILL.md wizard
feat(<platform>-sdk): add reference deep-dives for all feature pillars
docs(readme): add sentry-<platform>-sdk to available skills
fix(skills): address review findings
(if any)
Checklist
Before declaring the skill complete: