update-deps
できること
このスキルは、更新が古いJavaScriptパッケージを、更新の前に安全性について確認します。対象は、隠れたリスクを負わずにnpmやBunのプロジェクトを最新に保ちたい開発者です。
使う場面
- ✓JavaScriptやBunのプロジェクトのパッケージを更新したく、先に確認が必要なとき。
- ✓パッケージの更新が普通でない、または知らないメンテナーからのものに見えるとき。
- ✓どのパッケージを更新し、どれを保留したかの記録がほしいとき。
スキルのリンク
https://github.com/backnotprop/plannotator/blob/main/.agents/skills/update-deps/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトの古いパッケージを確認し、安全性の確認を通ったものだけを更新してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、新しい版があるパッケージを一覧にし、それぞれのメンテナー、公開からの経過期間、コードの変更、来歴を確認します。安全なものは更新し、危険なものは人が確認するために取り分け、各判断の記録を残します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Update Dependencies
Audit outdated packages, verify supply chain integrity, bump what's safe, defer what needs review, and log everything.
This process has three phases: discovery, integrity audit, and execution. The integrity audit is the most important — every package gets checked before it touches the lockfile.
Phase 1: Discovery
Run bun outdated to get the full list of packages with available updates.
bun outdated
Parse the output into a structured list. For each package, note:
- Package name
- Current version
- Available update version
- Whether it's age-gated (indicated by
*in the output — the footnote "The * indicates that version isn't true latest due to minimum release age" confirms this) - Whether it's a runtime dep, dev dep, or peer dep
Also check whether any packages are blocked entirely by the age gate (like @pierre/diffs was when its minimum semver range couldn't resolve). Flag these separately — they may need minimumReleaseAgeExcludes in bunfig.toml.
Phase 2: Integrity Audit
This is the core of the process. Spawn one Sonnet sub-agent per package to run the integrity check in parallel. Sonnet is used here because these are independent, structured verification tasks that don't need heavier reasoning.
Each sub-agent receives the package name, current version, and target version, and performs the following checks:
Sub-agent prompt template
For each outdated package, spawn a Sonnet agent with this task:
You are auditing the npm package "{package}" for a version bump from {current} to {target}.
Run these checks and report back with a JSON object:
1. **Maintainer verification**: Check if maintainers changed between versions.
npm view {package}@{current} maintainers --json
npm view {package}@{target} maintainers --json
Compare the two lists. Flag any additions or removals.
2. **Publish date and age**: Get the publish timestamp.
npm view {package} time --json
Extract the date for version {target}. Calculate days since publication.
Flag if younger than 7 days.
3. **Provenance**: Check if the package has registry signatures or attestations.
npm audit signatures (if not already run this session)
Note whether the package has provenance attestations.
4. **Tarball diff**: Show what actually changed in the published package.
npm diff --diff={package}@{current} --diff={package}@{target}
Summarize the changes:
- How many files changed
- Are changes limited to version bumps, deps, and rebuilt dist? Or are there meaningful source changes?
- Any new runtime dependencies added?
- Any suspicious patterns (obfuscated code, eval(), network calls in unexpected places)
5. **Release notes**: Try to find what changed.
Check the package's repository for release notes or changelog:
npm view {package}@{target} repository.url
gh release view v{target} --repo <owner/repo> (try with and without v prefix)
Summarize the changelog if found.
Report your findings as JSON:
{{
"package": "{package}",
"from": "{current}",
"to": "{target}",
"age_days": <number>,
"maintainers_changed": <boolean>,
"maintainers_added": [],
"maintainers_removed": [],
"provenance": <boolean>,
"new_runtime_deps": [],
"files_changed": <number>,
"has_source_changes": <boolean>,
"changelog_summary": "<brief summary>",
"suspicious_patterns": [],
"verdict": "safe" | "review" | "defer",
"verdict_reason": "<one sentence explanation>"
}}
Verdict guidelines:
- "safe": Same maintainers, no new runtime deps, changes match what changelog describes, no suspicious patterns
- "review": Minor concerns (e.g., new maintainer who is clearly from the same org, small new dep from known publisher)
- "defer": Maintainer changes from unknown accounts, new runtime deps with unclear purpose, suspicious code patterns, substantive API changes that need integration testing
Collecting results
As sub-agents complete, collect their JSON reports. If a sub-agent fails or times out, mark that package as "defer" with reason "audit failed".
Tier classification
After collecting all results, classify packages into tiers. This helps the user understand the risk profile at a glance:
| Tier | Description | Typical action |
|---|---|---|
| Runtime, high surface | Libraries your code calls directly (parsers, diff engines, UI libs) | Check provenance, review diff, run tests |
| SDK/API deps | Third-party service SDK |
よくある質問
ここでの来歴とは何ですか?
パッケージがどこでビルドされ、公開されたかの証明で、本来の提供元から来たことを確かめる助けになります。
すべてのパッケージを一度に更新しますか?
いいえ。各パッケージは、ロックファイルに触れる前に個別に確認されます。
Bunでしか動きませんか?
手順はBunのoutdatedコマンドで始まるため、Bunのプロジェクト向けに設定されています。
詳細
作者による元の説明
Audit and update npm/Bun dependencies with supply chain integrity checks — verifies maintainers, publish age, tarball diffs, and provenance before bumping. Defers risky packages to ~/.supply-chain/notes/.
repo: backnotprop/plannotator
人気
- GitHubのスター
- 9.8k
- ランキング
- #12192
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
plannotator-annotate
9.8kエージェントが、ファイル、フォルダ、ウェブページをPlannotatorの注釈画面で開き、あなたが書き込んだメモに基づいて作業できるよう支援します。
plannotator-review
9.8kエージェントが、現在の変更、フォルダ、またはプルリクエストのブラウザでのコードレビューを開き、あなたが残したフィードバックを修正できるよう支援します。
plannotator-annotate
9.8kエージェントが、計画や仕様の承認ステップを選べて、文書をPlannotatorに送って注釈を付けられるよう支援します。その後、エージェントがフィードバックに基づいて動きます。
plannotator-last
9.8kエージェントが、最後の返答をPlannotatorで開けるよう支援します。注釈を付け、そのメモを使ってその答えを修正してもらえます。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。