ruoyi-plus-soybean: Command for Claude Code

.codex/prompts/athena-setup.md

athena-setup is a command for Claude Code, Codex from m-xlsea/ruoyi-plus-soybean. It costs 0 tokens per session (822 once invoked), scanned B, original, MIT.

A setup command for configuring Codex, an AI coding assistant, with hooks, skills, model settings, and agent limits. Hooks are scripts that run at defined points during a session.

In plain words
What is it for?
It helps verify Codex configuration, install session hooks, deploy skills, and record the installed version.
Why use it?
It checks whether the required Codex version and configuration are present before deploying the project's automation and skills.

Command for Claude CodeCodex

Written for Claude Code and Codex: SessionStart hook event, but also installed under .codex/. Also seen: mentions subagents; mentions AGENTS.md; mentions Codex.

This is m-xlsea/ruoyi-plus-soybean's own configuration. It tells Claude Code and Codex 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/.codex/prompts/athena-setup.md
Clone the repo
git clone --depth 1 https://github.com/m-xlsea/ruoyi-plus-soybean

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 athena-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-setup/github.svg)](https://agentmods.dev/commands/m-xlsea/ruoyi-plus-soybean/athena-setup)
Your own site
<a href="https://agentmods.dev/commands/m-xlsea/ruoyi-plus-soybean/athena-setup"><img src="https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-setup/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 athena-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/m-xlsea/ruoyi-plus-soybean/athena-setup"><img src="https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 822 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00000 $0.00822
Opus 5 $0.00000 $0.00411
Sonnet 5 $0.00000 $0.00164
Haiku 4.5 $0.00000 $0.00082

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

Security

Grade B, and why

athena-setup scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

`~/.codex/config.toml` 应包含 (从 cx/.codex/config.toml 拷贝):
.codex/prompts/athena-setup.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/athena-setup (Codex)

参考: https://developers.openai.com/codex/config-basic

Step 0: Codex 版本

codex --version

要求 ≥ v0.124 (hooks stable). v0.129+ 解锁 /hooks TUI menu.

写入 _index.md.platform_features.cx_version.

Step 1: 验证 config.toml

~/.codex/config.toml 应包含 (从 cx/.codex/config.toml 拷贝):

  • model = "gpt-5.5"
  • [features] hooks = true (规范名, 非 deprecated codex_hooks)
  • [[hooks.SessionStart]], [[hooks.PreToolUse]], [[hooks.PostToolUse]], [[hooks.Stop]]
  • [agents] max_threads = 6
  • [[skills.config]] 包含 pace / compound / context7 / superpowers
codex check config 2>&1 | head -20

Step 2: 部署 hooks

mkdir -p ~/.codex/hooks
cp cx/.codex/hooks/*.py ~/.codex/hooks/
chmod +x ~/.codex/hooks/*.py

Codex hook 列表 (Python, 6 个):

  • session-start.py
  • user-prompt-submit.py
  • pre-bash-guard.py
  • index-updater.py
  • subagent-retry.py
  • delivery-gate.py

⚠️ Codex hooks 当前 Windows 不支持 (官方限制, 参考 https://developers.openai.com/codex/hooks)

Step 3: 部署 skills

mkdir -p ~/.codex/skills/pace ~/.codex/skills/compound
cp -r cx/.codex/skills/pace/* ~/.codex/skills/pace/
cp -r cx/.codex/skills/compound/* ~/.codex/skills/compound/

Step 4: 部署 prompts (slash commands)

mkdir -p ~/.codex/prompts
cp cx/.codex/prompts/*.md ~/.codex/prompts/

Step 5: 部署 subagents (单 TOML 文件, 非子目录)

参考: https://developers.openai.com/codex/subagents

mkdir -p ~/.codex/agents
cp cx/.codex/agents/*.toml ~/.codex/agents/

部署后:

  • ~/.codex/agents/evaluator.toml — 评分员 (read-only)
  • ~/.codex/agents/generator.toml — 实现者 (workspace-write)
  • ~/.codex/agents/reviewer.toml — 审查员 (read-only)

验证:

codex /agents 2>&1 | head -20
# 应列出 evaluator, generator, reviewer 三个 custom agent

Step 6: 跨项目记忆 (推荐)

Codex 暂无 claude-mem 等价物。推荐:

  • ~/.codex/AGENTS.md 全局 "## Tool Preferences" 段做轻量记忆
  • 多项目用同一 ~/.codex/AGENTS.md (跨项目人工同步)

Step 7: 验证

codex --version           # ≥ 0.124
ls ~/.codex/hooks/*.py | wc -l  # 应 = 6
ls ~/.codex/prompts/*.md  # 7 个 athena-* prompt
codex /hooks 2>&1 | head  # v0.129+ TUI 显示 hook 树
cat .ai_state/_index.md | head -5  # schema_version: "9.6"

Read the full file on GitHub · 99 lines

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 · 99 lines · 0 tokens per session scan B fdfa3e637ff8

Subscribe to this mod's changes

athena-setup is a command published in the GitHub repository m-xlsea/ruoyi-plus-soybean (325 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 822 tokens. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.