fit-framework: Command for Claude Code

.codex/commands/fit-test-integration.md

fit-test-integration is a command for Claude Code, Codex from ModelEngine-Group/fit-framework. It costs 11 tokens per session (835 once invoked), scanned A, original, MIT.

A command that runs integration tests for the FIT Framework after the project has been built. Integration tests check that multiple parts work together, including a started service and its interfaces.

In plain words
What is it for?
Use it to start the FIT service, check its health, plugin, and API documentation endpoints, and report whether those checks pass.
Why use it?
It checks the built application in a running environment and cleans up afterward, while saving logs for investigation.

Command for Claude CodeCodex

Written for Codex and Claude Code: installed under .codex/, but also a Claude Code command (commands/*.md). Also seen: mentions Claude Code; mentions Codex; mentions Gemini CLI.

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-test-integration.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-test-integration

README.md
[![agentmods](https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-test-integration.svg)](https://agentmods.dev/commands/modelengine-group/fit-framework/fit-test-integration)
Your own site
<a href="https://agentmods.dev/commands/modelengine-group/fit-framework/fit-test-integration"><img src="https://agentmods.dev/badge/commands/modelengine-group/fit-framework/fit-test-integration.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 835 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.00011 $0.00835
Opus 5 $0.00005 $0.00417
Sonnet 5 $0.00002 $0.00167
Haiku 4.5 $0.00001 $0.00084

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

Security

Grade A, and why

fit-test-integration 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-test-integration.md · 97 lines

What it actually says

Integration Test Command

使用前:自动识别仓库

命令会默认使用当前工作目录所在的 Git 仓库作为目标,无需传入仓库参数。若当前目录不在 Git 仓库内,请先 cd 到目标仓库根目录后再执行。

文中所有路径示例默认以仓库根目录为基准。

功能说明

执行 FIT Framework 的集成测试,包括服务启动和接口验证。

前置条件:需要先完成 Maven 构建,确保 build/ 目录存在。如果还没有构建,请先运行 /prompts:fit-test 命令。

用法:

  • /prompts:fit-test-integration - 执行集成测试流程

执行方式:

按照以下步骤顺序执行(每个步骤需等待前一步完成):

步骤 1:验证构建产物

if [ ! -d "build" ]; then
    echo "错误: 构建产物不存在,请先运行 /prompts:fit-test 命令"
    exit 1
fi

步骤 2:加载公共脚本并初始化环境

source .agents/scripts/fit-service.sh
init_log_dir
init_plugin_dir

步骤 3:启动 FIT 服务

start_fit_service

步骤 4:执行所有验证

verify_all
test_result=$?

步骤 5:清理测试环境

cleanup false
exit $test_result

测试内容包括:

  1. ✅ 检查构建产物是否存在
  2. ✅ 启动 FIT 服务(自动等待健康检查,最多 60 秒)
  3. ✅ 验证健康检查接口 /actuator/health
  4. ✅ 验证插件列表接口 /actuator/plugins
  5. ✅ 验证 Swagger 文档页面 /openapi.html
  6. ✅ 停止服务并清理临时文件

日志输出:

所有测试日志保存在 .ai-workspace/logs/ 目录(已被 git 忽略):

  • fit-server-{timestamp}.log - FIT 服务启动日志

下一步: 测试通过后,使用以下命令提交代码:

  • Claude Code / OpenCode: /commit
  • Gemini CLI: /fit:commit
  • Codex CLI: /prompts:fit-commit

注意事项:

  1. 前置条件:必须先运行 /prompts:fit-test 完成构建,或确保 build/ 目录存在
  2. 端口冲突:确保 8080 端口未被占用(脚本会自动检测并清理)
  3. 超时设置:服务启动步骤设置 90 秒超时,验证步骤设置 30 秒超时
  4. 并行执行:各步骤需按顺序执行,不可并行
  5. 构建产物保留:测试结束后不会删除 build/ 目录,便于重复测试
  6. 权限配置:如需自动授权,请在本地 Codex 配置中放行相关命令
  7. 完全自动化:整个测试流程无需手动确认,自动执行所有步骤
  8. 预计时间:整个流程约 1-2 分钟(不包含构建时间)

相关命令

  • /prompts:fit-test - 执行完整测试流程(包含构建)
  • /prompts:fit-commit - 提交代码变更
  • /prompts:fit-create-pr - 创建 Pull Request
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 · 97 lines · 11 tokens per session scan A d692c0da18dd

Subscribe to this mod's changes

fit-test-integration is a command published in the GitHub repository ModelEngine-Group/fit-framework (2,115 stars, last pushed 5mo ago), licensed MIT. It adds 11 tokens to every session and 835 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-09-03.

Related

Other commands, from other repositories