Skip to content
cccskills
FreePublished on GitHub

dependency-update

依存パッケージ(Go modules / npm / Terraform provider / GitHub Actions / pre-commit 等)の アップグレードを、outdated 検出 → CHANGELOG・破壊的変更の確認 → 更新 → lint/test 検証 → コミットまで一連の手順で安全に適用する。

「依存更新」「パッケージを上げて」「dependency update」 「go get -u」「npm update」「provider を上げる」等に言及されたときに使用する。

The English summary is being prepared. Showing the original description.

Works withGitHubTerraform
See how to install

Files included (1)

  • SKILL.md4.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/dependency-update スキル

Goal

依存パッケージのアップグレードを「検出 → 判断 → 適用 → 検証 → 記録」の型で安全に適用する。破壊的変更の評価とテストでの回帰確認という人間の判断が要る部分を飛ばさず、CHANGELOG を確認できない major 更新は保留する(検証先行)。

適用範囲・住み分け

  • 本スキルは 更新そのものの適用と検証 を担う。GitHub Actions の SHA ピン留めは対象外(版数タグの更新のみ扱う)。
  • Dependabot / Renovate が回っているリポジトリでは、本スキルは major 更新・Bot PR のまとめレビュー・手動追随 を主対象とする。二重運用を避けるため、単一パッケージの patch/minor 追随は Bot に任せてよい。
  • $ARGUMENTS で対象エコシステムを絞れる(all / go / npm / terraform / gha / pre-commit)。--major 指定時のみ major バージョンを対象に含める。

Workflow

1. 検出

作業ツリーがクリーンであることを確認してから、対象エコシステムの outdated を洗い出す。

  • Go: go list -u -m all(更新可能な module に [x.y.z] が付く)
  • npm: npm outdated
  • Terraform: terraform init -upgrade の差分(.terraform.lock.hcl)
  • GitHub Actions: .github/workflows/** の uses: 版数の棚卸し
  • pre-commit: .pre-commit-config.yaml の rev 棚卸し(pre-commit autoupdate は適用時に)

2. 判断

  • semver で patch / minor / major に仕分ける。
  • patch / minor は原則そのまま対象化。
  • major と --major 指定分は、CHANGELOG・release note・破壊的変更を確認してから対象化する。確認できない、または影響が読めない場合は適用を保留し、その旨を報告する。

3. 適用

1 グループ(エコシステム/関連 module 単位)ずつ 小さく更新する。

  • Go: go get -u ./... && go mod tidy(major は個別に go get module@vX)
  • npm: npm update、または個別に npm i pkg@x
  • Terraform: provider の版数制約(required_providers)を更新し terraform init -upgrade
  • GitHub Actions: 版数タグを更新(SHA ピン留めは対象外)
  • pre-commit: pre-commit autoupdate

4. 検証

変更ファイルの種別に応じて既存の検証資産を使い、通るまで修正する。CI(.github/workflows/ の lint / test)で確認される内容に合わせる。

  • Go: golangci-lint run ./... と go test ./...
  • npm: npm run lint / npm test(定義があるもの)
  • Terraform: terraform fmt -check / terraform validate / tflint
  • 共通: markdownlint / secret-scan(該当時)

回帰が出たら そのグループをロールバックし、より細かい単位で段階適用 に切り替える。

5. 記録

  • 変更を意味単位で、命令形メッセージでコミットする(commit-and-draft-pr に接続可)。
  • 保留した更新(CHANGELOG 未確認の major 等)は最後に明示的に報告する(silent に「全部上げた」風にしない)。

Notes

  • 検証先行: major は必ず CHANGELOG / breaking change 確認を必須ステップにし、確認できなければ適用しない。
  • 段階適用: lint / test が薄いプロジェクトでは回帰を捕捉しきれない。1 グループずつ適用し、各段でコミットして切り戻し可能にする。
  • 暴発防止: disable-model-invocation: true により明示呼び出し前提。自動発火はしない。
  • 配布経路: 本スキルは skill 追加のみのため ai-agents/Makefile / scripts/copy-entries.sh の変更は不要(既存の skills/ 配布経路にそのまま乗る)。hook ではないので 3 エディタ分の配線も不要。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Convert Claude markdown subagent files to Codex CLI TOML format. Parses YAML frontmatter and body, applies model/permission/tool mappings, and outputs to agents/codex/<name>.toml.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 20, 2026

Create or update a Markdown blog draft from recent work and export it with `YYYY-MM-DD_slug.md` naming. Output directory can be set via environment variable or CLI option; if missing, ask the user and pass it explicitly.

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 20, 2026

変更をコミットしてドラフトPRを作成する一連のGit/ghワークフロー。ユーザーが「コミットして」「PR作って」「draft PR」等を求めたときに使用し、status/diff確認・命令形コミット・push・gh pr create --draft(--assignee hodanov)まで実行する。ユーザーの明示リクエストが無くても、実装完了後にcommitやPRが必要になった場面(dev-workflowのcommitフェーズ等)では必ずこれを使う。`git commit` や `gh pr create` を単体でBash直接実行しない。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 20, 2026

1 つの作業ツリーに混ざった差分を、変更理由ごとの意味単位のコミットへ分割する。ユーザーが「コミットを分割して」「意味単位で分けて」「commit-split」等を求めたとき、または機能追加・付随リファクタ・設定/ドキュメント修正が 1 コミットに混在していると気づいたときに使用する。分割案を提示して承認を得てからステージし、コミットごとに単独で成立することを確認する。メッセージ規約・push・PR の作成は commit-and-draft-pr へ委譲する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 20, 2026

gitleaks + pre-commit を使ってローカルコミット時のクレデンシャル混入を機械的にブロックする。「クレデンシャル漏洩防止」「シークレット混入対策」「gitleaks」「pre-commit シークレット」「credential leak prevention」に言及した場合に使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 20, 2026

ai-agents/ と dotfiles/ の編集内容を各 AI CLI(~/.claude, ~/.codex)と ~/.config へ反映するデプロイ手順。「設定を反映」「デプロイ」「~/.claude に配って」「スキル/エージェント/設定を更新したから配布」等を求められたときに使用する。

The English summary is being prepared. Showing the original description.

hodanov/my-pde3Updated Oct 20, 2026

See all skills by hodanov

Report a problem with this skill