fit-framework: Command for Claude Code

.codex/commands/fit-review-task.md

fit-review-task is a command for Claude Code, Codex from ModelEngine-Group/fit-framework. It costs 10 tokens per session (646 once invoked), scanned A, original, MIT.

A command that reviews a task's implementation against its plan and writes a code review report. A code review is a structured check of correctness, quality, testing, security, performance, and edge cases.

In plain words
What is it for?
Use it to inspect a FIT task, record findings by severity, update the task status, and decide whether the work is ready to submit.
Why use it?
It brings the task requirements, design plan, implementation notes, and actual code changes together for one review.

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-review-task.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-review-task

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

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

Security

Grade A, and why

fit-review-task 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-review-task.md · 63 lines

What it actually says

审查任务 $1 的实现代码,输出代码审查报告。

执行以下步骤:

  1. 验证前置条件: 检查必需文件是否存在:

    • .ai-workspace/active/$1/task.md
    • .ai-workspace/active/$1/implementation.md 如果任一文件不存在,提示用户先完成前置步骤。
  2. 读取上下文:

    • 读取 task.md 了解任务描述和要求
    • 读取 plan.md 了解技术方案
    • 读取 implementation.md 了解实现细节
    • 查看 git diff 获取实际代码变更
  3. 执行代码审查: 对照 plan.md 和实际代码变更,检查:

    • 功能正确性: 实现是否符合技术方案
    • 代码质量: 编码规范、命名、注释、复杂度
    • 测试覆盖: 是否有充分的测试用例
    • 安全性: SQL注入、XSS、权限控制等
    • 性能: 算法复杂度、资源使用
    • 边界情况: 空值处理、异常处理
  4. 输出审查报告: 创建 .ai-workspace/active/$1/review.md,包含:

    • 审查概要(审查者、时间、范围、总体评价)
    • 审查发现(分级: 🔴 Blocker / 🟡 Major / 🟢 Minor)
    • 规范检查(编码规范、测试规范合规性)
    • 安全/性能审查结果
    • 与方案的一致性
    • 总结与建议(是否批准: ✅批准 / ⚠️修改后批准 / ❌需要重大修改)
  5. 更新任务状态: 使用 Edit 工具更新 .ai-workspace/active/$1/task.md:

    • current_step: code-review
    • assigned_to: codex
    • updated_at: 当前时间
    • 标记 review.md 为已完成
    • 在"工作流进度"中标记 code-review 为完成 ✅
  6. 告知用户:

    • 输出审查结论(批准/需修改)
    • 如果需要修改,提示修复:
      • Claude Code / OpenCode: /refine-task $1
      • Gemini CLI: /fit:refine-task $1
      • Codex CLI: /prompts:fit-refine-task $1
    • 如果批准,提示提交代码:
      • Claude Code / OpenCode: /commit
      • Gemini CLI: /fit:commit
      • Codex CLI: /prompts:fit-commit

注意事项:

  • 对照 plan.md 审查,确保实现符合设计意图
  • 关注潜在的安全和性能问题
  • 给出具体的修改建议,而不是模糊的描述
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 · 63 lines · 10 tokens per session scan A bdd2ff75b0a0

Subscribe to this mod's changes

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