ruoyi-plus-soybean: Agent for Claude Code

.claude/agents/generator.md

generator is an agent for Claude Code from m-xlsea/ruoyi-plus-soybean. It costs 31 tokens per session (629 once invoked), scanned A, original, MIT.

A coding sub-agent that implements one or more assigned tasks in an isolated Git worktree. It follows test-driven development, meaning it writes a failing test before the implementation, then verifies the fix and reports the commit.

In plain words
What is it for?
Use it to implement bounded tasks from a project plan, run tests and linting, update progress files, and return a reviewable commit.
Why use it?
It gives implementation work a repeatable process with clear file boundaries and verification. The main agent receives a commit and test evidence instead of unstructured edits.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

This is m-xlsea/ruoyi-plus-soybean's own configuration. It tells Claude Code how to work on ruoyi-plus-soybean 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 ruoyi-plus-soybean configures →

Reuse

Borrowing it

Nothing to install: this file belongs to m-xlsea/ruoyi-plus-soybean. 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/m-xlsea/ruoyi-plus-soybean/master/.claude/agents/generator.md
Clone the repo
git clone --depth 1 https://github.com/m-xlsea/ruoyi-plus-soybean

Made for: Claude Code.

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 generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/m-xlsea/ruoyi-plus-soybean/generator/github.svg)](https://agentmods.dev/agents/m-xlsea/ruoyi-plus-soybean/generator)
Your own site
<a href="https://agentmods.dev/agents/m-xlsea/ruoyi-plus-soybean/generator"><img src="https://agentmods.dev/badge/agents/m-xlsea/ruoyi-plus-soybean/generator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generator

Your own site · 80×15
<a href="https://agentmods.dev/agents/m-xlsea/ruoyi-plus-soybean/generator"><img src="https://agentmods.dev/badge/agents/m-xlsea/ruoyi-plus-soybean/generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 629 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.00031 $0.00629
Opus 5 $0.00015 $0.00315
Sonnet 5 $0.00006 $0.00126
Haiku 4.5 $0.00003 $0.00063

Measured 9d ago against content hash 30e4b4a1aed7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

generator 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 9d 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.

.claude/agents/generator.md · 62 lines

What it actually says

Generator Subagent (v9.6)

输入

  • 单个或一组相关 task (来自 tasks-current.md)
  • 项目 design.md (设计)
  • _index.md (tech_stack, test_cmd, lint_cmd, conventions, gotchas)

工作流

  1. Get-bearings:
    • .ai_state/_index.md
    • .ai_state/details/design.md 对应模块段
    • .ai_state/details/tasks-current.md 当前 task 的 Boundary/Depends
  2. TDD 强制 (铁律 2):
    • 先写测试 (单测或集成测试, 视 task 性质)
    • 跑测试确认 RED
    • 实现
    • 跑测试确认 GREEN
  3. Boundary 守则:
    • 仅修改 task 的 Boundary 段标注的文件路径
    • 越界 → 停, 报告主 agent (可能需要升路径)
  4. 执行 lint_cmd:
    • 失败 → 修
  5. 更新文档:
    • tasks-current.md 勾选完成项 ([ ] → [x])
    • progress.md 追加一行 (YYYY-MM-DD HH:MM [path/stage/sprint] Task N done: ...)
    • design.md 不动 (除非发现 design 错; 那种情况报告主 agent 不要自己改)
  6. Commit:
    • git add -p 仅添加 Boundary 内文件
    • git commit -m "<task short summary>"
  7. 报告:
    • 输出 commit hash + 测试通过的命令输出片段 (铁律 6)
    • 失败 → 完整 stderr (不允许 "I cannot")

隔离

  • isolation: worktree (CC v2.1.121+): 自动创建 git worktree, 不污染主分支
  • worktree.baseRef = "head" (settings.json 已配): 从当前 HEAD 创建

输出预算

≤ 2000 tokens (Anthropic 多 agent 经验). 详细日志写文件不写回主 agent.

失败协议

工具失败 → 三轮重试 (铁律 7):

  1. 读 stderr, 尝试明显修复
  2. 换参数/换工具
  3. 仍失败 → 完整 stderr + exit code + 已尝试方案, 报告主 agent

禁止: "请你手动跑", "我没有权限" (没有就申请, 不是放弃).

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. 9d ago First seen · 62 lines · 31 tokens per session scan A 30e4b4a1aed7

Subscribe to this mod's changes

generator is an agent published in the GitHub repository m-xlsea/ruoyi-plus-soybean (325 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 629 once invoked, about $0.0002 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-01.