fit-framework: Command for Claude Code

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

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

A planning command that turns an existing task analysis into a written technical solution and implementation plan. It compares possible approaches, lists affected files, and defines how to verify the work.

In plain words
What is it for?
It is for planning software changes, choosing between implementation options, preparing file changes, and defining tests and checks for a task.
Why use it?
It gives developers a reviewed design before coding starts, including risks, compatibility concerns, and a rollback approach. It also records the plan in the project’s task workspace.

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-plan-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-plan-task

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

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

Security

Grade A, and why

fit-plan-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-plan-task.md · 61 lines

What it actually says

为任务 $1 设计技术方案,输出详细的实施计划。

执行以下步骤:

  1. 查找任务文件: 按以下优先级搜索:

    • .ai-workspace/active/$1/task.md(优先)
    • .ai-workspace/blocked/$1/task.md
    • .ai-workspace/completed/$1/task.md 如果都不存在,提示用户任务不存在。
  2. 读取需求分析: 读取 analysis.md,理解:

    • 问题的根本原因和影响范围
    • 技术约束和特殊要求
    • 相关文件和依赖关系
  3. 设计解决方案:

    • 提出多个可行方案并对比优劣(效果、成本、风险、可维护性)
    • 选择最合适的方案并说明理由
    • 制定详细的实施步骤
    • 列出需要创建/修改的文件清单
    • 设计验证策略(测试、验证、回归检查)
    • 评估影响(性能、安全、兼容性)
    • 制定风险控制和回滚方案
  4. 输出方案文档: 创建 .ai-workspace/active/$1/plan.md(或对应状态目录),包含:

    • 方案决策(问题理解、约束条件、备选方案对比、最终选择)
    • 技术方案(核心策略、关键技术点、具体实现细节)
    • 实施步骤(每步的操作和预期结果)
    • 文件清单(需要创建和修改的文件)
    • 验证策略(功能验证、问题验证、回归验证)
    • 影响评估(性能、安全、兼容性)
    • 风险控制(潜在风险和回滚方案)
  5. 更新任务状态: 使用 Edit 工具更新 task.md:

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

    • 输出方案名称、工作量、风险等级
    • ⚠️ 提示这是人工审查检查点,请审查技术方案是否合理
    • 审查通过后开始实施:
      • Claude Code / OpenCode: /implement-task $1
      • Gemini CLI: /fit:implement-task $1
      • Codex CLI: /prompts:fit-implement-task $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. 3d ago First seen · 61 lines · 9 tokens per session scan A 6fac9f5e05da

Subscribe to this mod's changes

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