self-update
Skill365 starsChanged 8 months agoApache-2.0View on GitHub
Update this junior-prod app to the latest published Junior release. Use when asked to self-update Junior, bump @sentry/junior and @sentry/junior-* dependencies, run safety checks, and open a draft PR.
- Installs packages
4 other projects use a version of this.
Adopted by
Most recently taken up by
- treylom/ThisCodetheir own version, first seen Sep 5, 2026
- kirodotdev/KiroCrewtheir own version, first seen Aug 30, 2026
- shivae372/claude-bootstraptheir own version, first seen Apr 8, 2026
- CorentinGC/claude-skillstheir own version, first seen Mar 7, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- kirodotdev/KiroCrew★ 4.3ksame name
- treylom/ThisCode★ 39same name
- shivae372/claude-bootstrap★ 1same name
- CorentinGC/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/docs/public/llms.txtllms.txt
- nitroSkill
- pi-agent-integrationSkill
- public-docsSkill
- slack-developmentSkill
- vercel-queuesSkill
- vercel-sandboxSkill
- example-bundle-helpSkill
- example-localSkill
- agent-browserSkill
- demo-videoSkill
- visual-web-qaSkill
- amplitudeSkill
- cloudflareSkill
- datadogSkill
- coding-workspace-fixtureSkill
- github-headless-pr-fixtureSkill
- eval-guardian-actionsSkill
- eval-authSkill
- eval-directorySkill
- eval-mcpSkill
- eval-oauthSkill
- eval-operationSkill
- incident-briefSkill
- resilient-working-directorySkill
- source-handbookSkill
- weather-lookupSkill
- github-codeSkill
- github-issuesSkill
- hexSkill
- linearSkill
- notionSkill
- octolensSkill
- sentrySkill
- jr-rpcSkill
- eval-authSkill
- eval-mcp-openSkill
- ttsSkill
- vercelSkill
- junior-qaSkill
- juniorSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Stop if package.json, pnpm-lock.yaml, or pnpm-workspace.yaml has unrelated uncommitted changes.
- Distinctive: line 27
If user requests a specific version, use that.
- Distinctive: line 29
Verify the target exists for every inventoried package before mutating files:
- Distinctive: line 37
If a version or tarball is missing, retry affected packages after 30, 60, and 120 seconds.
- Distinctive: line 47
Ask npm to resolve the semver range to the exact tags, then fetch only those releases:
- Very specific: line 62
If pnpm-workspace.yaml has a minimumReleaseAgeExclude list, ensure every Junior package from step 2 is covered by an exact entry or an …
- Very specific: line 74
Do not manually edit versions in package.json.
- Very specific: line 78
If a new standalone @sentry/junior-* plugin package was added, add it to the app plugins.ts set passed to defineJuniorPlugins(...) and keep …
- Very specific: line 104
Only act on Junior-owned deployment requirements proven by that diff or by release notes/docs.
- Very specific: line 132
When PR creation returns a subscribable resource hint, watch the PR for suggested review and CI events.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workflow
1. Preflight
git status --short
git branch --show-currentStop if package.json, pnpm-lock.yaml, or pnpm-workspace.yaml has unrelated uncommitted changes.
2. Inventory and target
Inventory direct Junior deps from package.json: @sentry/junior and @sentry/junior-*. Record package, current exact version, and dependency section. Keep all Junior deps on one version and do not move packages between sections.
Resolve the target:
pnpm view @sentry/junior dist-tags.latestIf user requests a specific version, use that. If already on latest, stop.
Verify the target exists for every inventoried package before mutating files:
pnpm view <package>@<target> versionAllow for npm security scanning and propagation delays after publication:
- If a version or tarball is missing, retry affected packages after 30, 60, and 120 seconds. Keep the same target; do not retry auth failures as publication delays.
- Confirm missing versions with cache-busted npm metadata and the direct version endpoint. Continue only when every package's exact target version and tarball are available.
- If still unavailable, leave app files unchanged and do not open an update PR. Report "not yet available on npm" with the target, affected packages, and checks. Missing packages alone do not prove a failed publish or a scanning delay; do not republish or cut another release.
3. Build release context
Summarize changes between old_version and target_version (exclusive of old, inclusive of target) from GitHub release notes. Do not read CHANGELOG.md or scrape PRs — release bodies carry the authoritative release context.
Tags match package versions with no v prefix (for example 0.107.1):
Ask npm to resolve the semver range to the exact tags, then fetch only those releases:
pnpm view '@sentry/junior@><old_version> <=<target_version>' version --json
gh release view <version> --repo getsentry/junior --json tagName,name,body,publishedAt,urlCollect the corresponding release bodies. Stop if any expected GitHub release is missing; do not substitute another source. Save the target release's publishedAt as target_published_at for step 7. Save total change count, breaking changes (Breaking Changes, !, or BREAKING CHANGE), and config-relevant items (config, plugins, nitro, createApp, runtime, credentials, egress, example). If any breaking change exists, keep the PR draft and call out manual review, but continue the update.
4. Create or reuse branch
build/update-junior-<target>. All file mutations happen on this branch.
5. Sync minimumReleaseAgeExclude
If pnpm-workspace.yaml has a minimumReleaseAgeExclude list, ensure every Junior package from step 2 is covered by an exact entry or an existing package pattern. Add missing entries before pnpm add, but do not add exact entries already covered by @sentry/*. Append at end and preserve existing order.
6. Update deps (section-preserving)
Group pnpm add by dependency section:
pnpm add -E <deps-packages>@<target> ...
pnpm add -D -E <devDeps-packages>@<target> ...
pnpm add -O -E <optDeps-packages>@<target> ...Do not manually edit versions in package.json. Do not use local ../junior linking scripts.
7. Sync local config
If a new standalone @sentry/junior-* plugin package was added, add it to the app plugins.ts set passed to defineJuniorPlugins(...) and keep juniorNitro({ plugins: "./plugins" }) pointed at that module. Exclude the base/runtime utility packages: @sentry/junior, @sentry/junior-plugin-api, @sentry/junior-testing.
node scripts/check-plugin-packages.mjsCompare the consumer config with apps/example at target_ref to catch shape drift. Choose target_ref from the version bump commit, then the publish timestamp, then origin/main as approximate:
git clone --filter=blob:none --depth=200 https://github.com/getsentry/junior.git /tmp/junior-upstream
git -C /tmp/junior-upstream log --oneline -S'"version": "<target_version>"' -- packages/junior/package.json
git -C /tmp/junior-upstream rev-list -n 1 --before="<target_published_at>" origin/main
git -C /tmp/junior-upstream checkout <target_ref>
git diff --no-index -- /tmp/junior-upstream/apps/example/nitro.config.ts nitro.config.ts
git diff --no-index -- /tmp/junior-upstream/apps/example/plugins.ts plugins.ts
git diff --no-index -- /tmp/junior-upstream/apps/example/server.ts server.tsIgnore app-local values. Apply only obvious low-risk fixes; put ambiguous drift in the PR body. For package.json, compare only build tooling (nitro, jiti, typescript), not plugin dependency lists or pins.
For vercel.json, do not normalize the whole file against the example. Use upstream diff-backed changes when possible:
git -C /tmp/junior-upstream diff <old_ref>..<target_ref> -- apps/example/vercel.jsonOnly act on Junior-owned deployment requirements proven by that diff or by release notes/docs. If old_ref is unavailable, target-only example entries are context, not proof; mark the review approximate and leave a manual review item when needed.
8. Verify
git diff --name-only
pnpm install --frozen-lockfile
pnpm check
pnpm typecheck
pnpm buildExpected changed files: package.json, pnpm-lock.yaml, optional pnpm-workspace.yaml, optional nitro.config.ts, optional vercel.json. Confirm every Junior dep is exactly <target>. If the frozen install fails, repair with pnpm install --lockfile-only and rerun. Fix update-related check failures; disclose pre-existing or environment failures.
9. Commit
build(deps): Update Junior packages to <target>
Update the Junior runtime and plugin packages to <target> and refresh the pnpm lockfile.Mention minimumReleaseAgeExclude sync if pnpm-workspace.yaml changed.
10. Push and open/update draft PR
Open a draft PR. Include version change, release summary with links to the GitHub releases, config comparison findings, optional workspace/plugin/vercel changes, and unexpected diffs. Do not put Checks, Verification, Test plan, or similar validation sections in the PR body; put local check results in the final user report only. Add Manual review required when breaking changes, unresolved config drift, approximate Vercel review, or failed checks exist.
When PR creation returns a subscribable resource hint, watch the PR for suggested review and CI events. After merge, if deployment follow-up is needed, use github_getDeployment for the merged commit and watch the suggested deployment events.
Automatic updates from GitHub releases
When asked to keep an app current whenever Junior publishes a release, resolve getsentry/junior with github_getRelease (no tag) and create a durable event automation on release.published. The task instruction should load this skill and run the update against the published tag from the event's untrusted text / release payload. Prefer an event automation for ongoing automation; use a temporary watch only when following one manually initiated update.
Stop conditions
- Any Junior package still lacks the target version or tarball after the bounded availability checks in step 2.
- Any npm version in
(old_version, target_version]lacks a matching GitHub release. pnpm install --frozen-lockfilefails after repair.- Checks fail for non-pre-existing, non-environment reasons and no safe config fix is available from step 7.
package.jsonchanged butpnpm-lock.yamldid not.- Example app comparison reveals a breaking plugin signature change whose required values cannot be inferred from the existing consumer config.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

