Skip to content

Commit 9f8cf28

Browse files
committed
move
1 parent 0e741cb commit 9f8cf28

9 files changed

Lines changed: 138 additions & 250 deletions

File tree

.agents/skills/release/SKILL.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: release
3+
description: Publish a new Sentry JavaScript SDK release. Use when preparing a release, updating the changelog, or creating a release branch.
4+
argument-hint: [VERSION]
5+
---
6+
7+
# Release Process
8+
9+
See `docs/publishing-a-release.md` for full details.
10+
11+
## Steps
12+
13+
1. Ensure you're on `develop` with latest changes. Stash any unsaved work with `git stash -u` if needed.
14+
2. Run `yarn changelog` (use `yarn changelog | pbcopy` to copy output).
15+
3. Decide on a version per [semver](https://semver.org). Check the top of `CHANGELOG.md` for the current version.
16+
4. Create branch `prepare-release/VERSION` off `develop`.
17+
5. Update `CHANGELOG.md` — add the new version entry with the changelog output. See the "Updating the Changelog" section in `docs/publishing-a-release.md` for formatting details. Do not remove existing entries.
18+
6. Commit: `meta(changelog): Update changelog for VERSION`
19+
7. Push the branch and remind the user to open a PR targeting `master`.
20+
8. If you were on a different branch, checkout back and `git stash pop` if needed.
21+
22+
## First-time SDK releases
23+
24+
Follow `docs/new-sdk-release-checklist.md`. If anything doesn't match the checklist, remind the user.
25+
26+
## Key commands
27+
28+
- `yarn changelog` — generate changelog entries
29+
- `yarn lint` — verify code quality
30+
- `yarn test` — run test suite
31+
- `yarn build:dev` — verify build
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: upgrade-dep
3+
description: Upgrade a dependency in the Sentry JavaScript SDK. Use when upgrading packages, bumping versions, or fixing security vulnerabilities via dependency updates.
4+
argument-hint: <package-name>
5+
---
6+
7+
# Dependency Upgrade
8+
9+
**Only upgrade one package at a time.**
10+
11+
## Upgrade command
12+
13+
```bash
14+
npx yarn-update-dependency@latest [package-name]
15+
```
16+
17+
If the dependency is not defined in any `package.json`, run the upgrade from the root workspace (the `yarn.lock` lives there).
18+
19+
Avoid upgrading top-level dependencies (especially test dependencies) without asking the user first.
20+
21+
Ensure updated `package.json` files end with a newline.
22+
23+
## OpenTelemetry constraint
24+
25+
**STOP** if upgrading any `opentelemetry` package would introduce forbidden versions:
26+
- `2.x.x` (e.g., `2.0.0`)
27+
- `0.2xx.x` (e.g., `0.200.0`, `0.201.0`)
28+
29+
Verify before upgrading:
30+
31+
```bash
32+
yarn info <package-name>@<version> dependencies
33+
```
34+
35+
## E2E test dependencies
36+
37+
Do **not** upgrade the major version of a dependency in `dev-packages/e2e-tests/test-applications/*` if the test directory name pins a version (e.g., `nestjs-8` must stay on NestJS 8).
38+
39+
## Post-upgrade verification
40+
41+
```bash
42+
yarn install
43+
yarn build:dev
44+
yarn dedupe-deps:fix
45+
yarn fix
46+
yarn circularDepCheck
47+
```
48+
49+
## Useful commands
50+
51+
```bash
52+
yarn list --depth=0 # Check dependency tree
53+
yarn why [package-name] # Find why a package is installed
54+
yarn info <pkg> dependencies # Inspect package dependencies
55+
yarn info <pkg> versions # Check available versions
56+
yarn outdated # Check outdated dependencies
57+
yarn audit # Check for security vulnerabilities
58+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: upgrade-otel
3+
description: Upgrade OpenTelemetry instrumentations across the Sentry JavaScript SDK. Use when bumping OTel instrumentation packages to their latest versions.
4+
argument-hint: ""
5+
---
6+
7+
# Upgrading OpenTelemetry Instrumentations
8+
9+
**All upgrades must be free of breaking changes.** Read each changelog before proceeding.
10+
11+
## 1. `packages/**`
12+
13+
Upgrade in this order:
14+
15+
1. **`@opentelemetry/instrumentation`** to latest. Check changelog: `https://github.com/open-telemetry/opentelemetry-js/blob/main/experimental/CHANGELOG.md`
16+
2. **All `@opentelemetry/instrumentation-*` packages.** Check each changelog: `https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/packages/instrumentation-{name}/CHANGELOG.md`
17+
3. **Third-party instrumentations** (currently `@prisma/instrumentation`). Check their changelogs.
18+
19+
**STOP** if any upgrade introduces breaking changes — fail with the reason.
20+
21+
## 2. `dev-packages/**`
22+
23+
- If an app depends on `@opentelemetry/instrumentation` >= `0.200.x`, upgrade to latest.
24+
- If an app depends on `@opentelemetry/instrumentation-http` >= `0.200.x`, upgrade to latest.
25+
26+
Same rule: no breaking changes allowed.
27+
28+
## 3. Regenerate lock file
29+
30+
```bash
31+
yarn install
32+
```

.cursor/rules/fetch-docs/attributes.mdc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.cursor/rules/fetch-docs/scopes.mdc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.cursor/rules/publishing_release.mdc

Lines changed: 0 additions & 38 deletions
This file was deleted.

.cursor/rules/sdk_dependency_upgrades.mdc

Lines changed: 0 additions & 167 deletions
This file was deleted.

.cursor/rules/upgrade_opentelemetry_instrumentations.mdc

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)