本文へ移動
cccskills
無料GitHub で公開

dependabot

Find all open Dependabot alerts for this repo and create a plan to resolve them using the appropriate package manager overrides (pnpm, bun, npm, cargo).

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Dependabot Alert Resolution

Step 1: Fetch all open alerts

REPO=$(gh repo view --json nameWithOwner -q .nameWithOwner)
gh api "repos/${REPO}/dependabot/alerts" \
  --jq '.[] | select(.state == "open") | {
    number,
    dependency: .dependency.package.name,
    ecosystem: .dependency.package.ecosystem,
    manifest: .dependency.manifest_path,
    vulnerable_range: .security_vulnerability.vulnerable_version_range,
    patched_version: .security_vulnerability.first_patched_version.identifier,
    severity: .security_vulnerability.severity,
    summary: .security_advisory.summary
  }'

Step 2: Group alerts by manifest/lockfile

Group the alerts by their manifest field (e.g. bun.lock, Cargo.lock, packages/loro-mirror/pnpm-lock.yaml). This determines which override mechanism to use.

Step 3: Determine override strategy per manifest

For each manifest/lockfile, determine the correct override mechanism:

LockfileOverride mechanism
bun.lock / bun.lockb"overrides" in the nearest package.json
pnpm-lock.yaml"pnpm": { "overrides": { ... } } in the workspace root package.json
package-lock.json"overrides" in the nearest package.json
yarn.lock"resolutions" in the nearest package.json
Cargo.lockcargo update -p <package> or workspace [patch.crates-io] in Cargo.toml

Read each target package.json or Cargo.toml to check for existing overrides before adding new ones.

Step 4: Present the plan

Present a table of all alerts grouped by manifest, showing:

  • Alert numbers
  • Package name
  • Current version (from lockfile)
  • Patched version
  • Severity
  • Override mechanism to use

Ask the user to confirm before making changes.

Step 5: Apply fixes

For each group:

npm/bun/pnpm overrides

  • Add override entries to the appropriate package.json
  • Reinstall: bun install / pnpm install / npm install
  • Verify: check the lockfile or <pm> ls for the patched version

Cargo

  • Try cargo update -p <package> first
  • If that doesn't reach the patched version, also try cargo update -p <parent-package> (the package that depends on the vulnerable one, found via cargo tree -i <package>)
  • Verify with cargo tree -i <package> and checking Cargo.lock

Step 6: Verify

After all changes, confirm patched versions are in place and no new audit issues were introduced.

Notes

  • Some alerts may be false positives (e.g. undici-types triggering undici alerts). Flag these to the user.
  • Prefer minimal version bumps (e.g. >=6.14.0 not ^8.0.0) to reduce breakage risk.
  • If a cargo update only bumps to a version below the patch, escalate the parent dependency.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Wrap a new backend endpoint in the TypeScript SDK (packages/sdk), or record it as skipped. Use when `just coverage` fails, or after adding an endpoint to a Rust service.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,7012026年10月16日 更新

add-tour

無料

Add or change an in-app feature tour (a view's guided flyover) in the web app. Use when adding a tour to a view, adding or editing tour steps, pointing a step at a new control, or when a step's target needs something opened first.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,7012026年10月16日 更新

audit

無料

Post-change checks before handing off. Works out which checks apply from the files changed (directory AGENTS.md Checks sections and matching .agents/rules), runs or verifies each, and reports pass/fail/skipped. Use before saying work is done, before pushing, or when asked to audit or verify a change.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,7012026年10月16日 更新

Enforce hexagonal architecture in the Rust backend. Use before modifying crates/ or Rust services, especially inbound axum/tool/listener adapters, domain services/ports, outbound adapters, authorization, permissions, database access, or external clients.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,7012026年10月16日 更新

Use when adding collaborative markdown, notes, or descriptions to a feature with collab surfaces. Covers parent entities, service entry points, authorization, content storage, and lifecycle.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,7012026年10月16日 更新

Build a new AI tool end-to-end — Rust implementation, toolset wiring, infra, schema generation, and frontend UI.

日本語の概要は準備中です。原文の説明を表示しています。

macro-inc/macro4,7012026年10月16日 更新

macro-inc のスキルをすべて見る

このスキルの問題を報告する