用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/sapegin/dotfiles --skill dependabot命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | dependabot |
| description | Read, summarize, triage, and fix GitHub Dependabot alerts. |
| disable-model-invocation | true |
Read the GitHub skill before using GitHub.
Always begin by reading and summarizing all open Dependabot alerts for the current repository. Do not merely announce that the skill is loaded or ask what to inspect. Show the alert count, severity counts, and a concise list with each alert's package, severity, manifest, vulnerable range, first patched version, and URL. Then ask what the user wants to remediate. If the repository cannot be determined, GitHub authentication fails, or access is denied, report that error instead.
Use the read-only REST endpoint and always paginate:
gh api --paginate \
"repos/{owner}/{repo}/dependabot/alerts?state=open&per_page=100" \
--jq '.[] | {
number,
package: .dependency.package.name,
ecosystem: .dependency.package.ecosystem,
manifest: .dependency.manifest_path,
relationship: .dependency.relationship,
scope: .dependency.scope,
advisory: .security_advisory.ghsa_id,
severity: .security_advisory.severity,
summary: .security_advisory.summary,
vulnerable_range: .security_vulnerability.vulnerable_version_range,
patched_version: .security_vulnerability.first_patched_version.identifier,
url: .html_url
}'
Inspect one alert in full when its metadata or remediation is unclear:
gh api "repos/{owner}/{repo}/dependabot/alerts/$alert_number"
Do not infer that a version is safe solely because its major number is larger. Check vulnerable_version_range and first_patched_version; advisories may have separate patched releases for several major lines. If first_patched_version is null, report that no patch is available and do not make a speculative dependency change.
Group duplicate alerts by package, advisory, and manifest. Prioritize:
Severity alone does not establish exploitability. State what the alert proves and what remains unknown from repository context.
For each package being investigated:
Follow the repository’s package-manager instructions and preserve unrelated working-tree changes. Regenerate existing lockfiles with the package manager where practical; avoid broad dependency refreshes when a targeted resolution is sufficient.
Verify observable behavior:
A local fix does not immediately close a Dependabot alert. GitHub closes it only after the fix is committed, pushed, and rescanned. Do not claim that an alert is closed based only on local validation.
Report concisely: