fit-framework: Command for Claude Code

.codex/commands/fit-upgrade-dependency.md

fit-upgrade-dependency is a command for Claude Code, Codex from ModelEngine-Group/fit-framework. It costs 4 tokens per session (525 once invoked), scanned A, original, MIT.

A command that changes one project's dependency from an old version to a specified new version and checks the resulting change.

In plain words
What is it for?
Use it to upgrade a dependency in Maven, Node.js, Gradle, or Python projects, then compile and optionally test the project.
Why use it?
It reduces the manual work of finding the dependency file, updating related references, reviewing the diff, and running build or test checks.

Command for Claude CodeCodex

Written for Claude Code and Codex: argument-hint in frontmatter, but also installed under .codex/. Also seen: positional $N argument; mentions Claude Code; mentions Codex.

This is ModelEngine-Group/fit-framework's own configuration. It tells Claude Code and Codex how to work on fit-framework itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fit-framework configures →

About the project

FIT is an enterprise AI development framework with a multilingual function engine, a flow orchestration engine, and Java tools for connecting language models, knowledge bases, and external tools. It is for Java-oriented teams building AI applications that can run locally or in distributed deployments with plugins. The catalogue add-ons provide commands, skills, instructions, and settings for working with FIT.

ModelEngine-Group/fit-framework · 2,115 stars · on GitHub · modelengine-ai.net

Reuse

Borrowing it

Nothing to install: this file belongs to ModelEngine-Group/fit-framework. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ModelEngine-Group/fit-framework/main/.codex/commands/fit-upgrade-dependency.md
Clone the repo
git clone --depth 1 https://github.com/ModelEngine-Group/fit-framework

Made for: Claude Code, 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-upgrade-dependency

README.md
[![agentmods](https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-upgrade-dependency.svg)](https://agentmods.dev/commands/modelengine-group/fit-framework/fit-upgrade-dependency)
Your own site
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-upgrade-dependency"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-upgrade-dependency.svg" alt="Measured on agentmods" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00004 $0.00525
Opus 5 $0.00002 $0.00262
Sonnet 5 $0.00001 $0.00105
Haiku 4.5 $0.00000 $0.00052

Measured 3d ago against content hash ed8e10082e81, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

fit-upgrade-dependency 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 3d 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-upgrade-dependency.md · 66 lines

What it actually says

升级项目中的指定依赖包到新版本,并验证变更。

例如: /upgrade-dependency swagger-ui 5.30.0 5.30.2

参数:

  • 包名: $1
  • 原版本: $2
  • 新版本: $3

执行以下步骤:

  1. 查找依赖文件:

    grep -r "$1" --include="pom.xml" --include="package.json" --include="build.gradle" --include="requirements.txt" .
    grep -r "$2" --include="pom.xml" --include="package.json" --include="build.gradle" --include="requirements.txt" .
    
  2. 更新依赖版本: 根据项目类型更新对应的依赖文件:

    • Maven(pom.xml): 使用 Edit 工具将 $2 替换为 $3
    • Node.js(package.json): 使用 Edit 工具更新版本号
    • Gradle(build.gradle): 使用 Edit 工具更新版本号
  3. 更新相关静态资源: 如果依赖包含静态资源(如 swagger-ui),同步更新版本号引用、CDN 链接等。

  4. 验证变更:

    git diff
    git diff --name-only | wc -l
    

    编译验证:

    mvn clean package -Dmaven.test.skip=true
    

    运行测试(推荐):

    mvn test
    
  5. 输出变更摘要:

    ✅ 依赖升级完成
    包名: $1
    原版本: $2
    新版本: $3
    变更文件: <列表>
    编译状态: <成功/失败>
    测试状态: <通过/失败/未运行>
    下一步: 请人工检查变更后提交:
    - Claude Code / OpenCode: /commit
    - Gemini CLI: /fit:commit
    - Codex CLI: /prompts:fit-commit
    

注意事项:

  • 升级前检查 CHANGELOG 和 Migration Guide
  • 注意破坏性变更(Breaking Changes)
  • 不要自动执行 git commit,等待人工检查
  • 一次只升级一个依赖
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. 3d ago First seen · 66 lines · 4 tokens per session scan A ed8e10082e81

Subscribe to this mod's changes

fit-upgrade-dependency is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,115 stars, last pushed 5mo ago), licensed MIT. It adds 4 tokens to every session and 525 once invoked, about $0.0000 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-09-03.