fit-close-dependabot

fit-close-dependabot is a command for Codex from ModelEngine-Group/fit-framework. It costs 13 tokens per session (528 once invoked), scanned A, original, MIT.

A command for closing a Dependabot security alert, where Dependabot is GitHub’s automated dependency-vulnerability checker. It shows the alert, requires a reason of at least 20 characters, and asks for confirmation before closing it.

In plain words
What is it for?
Use it to review a specific Dependabot alert, choose a dismissal reason, provide supporting details, confirm the action, and see whether other alerts remain.
Why use it?
It helps close alerts with a recorded explanation while reducing accidental dismissal of unresolved or high-risk vulnerabilities.

Command for Codex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/modelengine-group/fit-framework/fit-close-dependabot
Clone the repo
git clone --depth 1 https://github.com/ModelEngine-Group/fit-framework

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fit-close-dependabot

README.md
[![agentmods](https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-close-dependabot.svg)](https://agentmods.dev/commands/modelengine-group/fit-framework/fit-close-dependabot)
Your own site
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-close-dependabot"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-close-dependabot.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 528 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.00528
Opus 5 $0.00006 $0.00264
Sonnet 5 $0.00003 $0.00106
Haiku 4.5 $0.00001 $0.00053

Measured 4d ago against content hash 2bdcb81adb04, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fit-close-dependabot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/commands/fit-close-dependabot.md · 58 lines

What it actually says

关闭 Dependabot 安全告警 #$1。在关闭前会要求用户确认并提供合理的理由。

执行以下步骤:

  1. 获取安全告警信息:

    gh api "repos/{owner}/{repo}/dependabot/alerts/$1"
    

    验证告警状态: 如果已是 dismissed 或 fixed,提示用户并退出。

  2. 展示告警详情:

    🔒 安全告警 #$1
    严重程度: <severity>
    漏洞: <summary>
    受影响包: <package-name>
    修复版本: <first-patched-version>
    
  3. 询问关闭理由: 选项:

    1. 误报(False Positive) - 漏洞代码路径未被使用
    2. 无法利用(Not Exploitable) - 当前场景下无法被利用
    3. 已有缓解措施(Mitigated)
    4. 无修复版本且风险可接受
    5. 测试或开发依赖(Dev Only)
    6. 取消 - 不关闭
  4. 要求详细说明(最少 20 个字符)

  5. 最终确认后执行关闭:

    gh api --method PATCH "repos/{owner}/{repo}/dependabot/alerts/$1" -f state=dismissed -f dismissed_reason="<reason>" -f dismissed_comment="<comment>"
    
  6. 告知用户:

    ✅ 安全告警 #$1 已关闭
    关闭理由: <理由>
    查看链接: https://github.com/<owner>/<repo>/security/dependabot/$1
    
    • 提示下一步:
      • 如果还有其他待处理的安全告警:
        • Claude Code / OpenCode: /analyze-dependabot {alert-number}
        • Gemini CLI: /fit:analyze-dependabot {alert-number}
        • Codex CLI: /prompts:fit-analyze-dependabot {alert-number}

注意事项:

  • 谨慎关闭高危告警(Critical/High)
  • 关闭应该是最后选择,优先考虑修复
  • 建议先使用 /analyze-dependabot $1 进行详细分析
  • 定期复查被关闭的告警
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 58 lines · 13 tokens per session scan A 2bdcb81adb04

Subscribe to this mod's changes

fit-close-dependabot is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,116 stars, last pushed 5mo ago), licensed MIT. It adds 13 tokens to every session and 528 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.