ruoyi-plus-soybean: Command for Codex

.codex/prompts/athena-init.md

athena-init is a command for Codex from m-xlsea/ruoyi-plus-soybean. It costs 0 tokens per session (554 once invoked), scanned A, original, MIT.

A project-initialization command that scans a new codebase and creates an .ai_state directory with project details and working templates.

In plain words
What is it for?
Use it at the start of a project to detect its languages and scripts, record build and test commands, and create the initial state files.
Why use it?
It gives an AI coding assistant a record of the project's tools, commands, and operating conventions before work begins.

Command for Codex

Written for Codex: installed under .codex/. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

This is m-xlsea/ruoyi-plus-soybean's own configuration. It tells 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 →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .ai_state/init.sh.

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-init.md
Clone the repo
git clone --depth 1 https://github.com/m-xlsea/ruoyi-plus-soybean

Made for: 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-init

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/m-xlsea/ruoyi-plus-soybean/athena-init"><img src="https://agentmods.dev/badge/commands/m-xlsea/ruoyi-plus-soybean/athena-init.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 554 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.00000 $0.00554
Opus 5 $0.00000 $0.00277
Sonnet 5 $0.00000 $0.00111
Haiku 4.5 $0.00000 $0.00055

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

Security

Grade A, and why

athena-init 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 10d 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/prompts/athena-init.md · 68 lines

What it actually says

/athena-init (Codex) — 项目初始化

描述

项目初始化。每个新项目首次使用 Athena 时运行。

end

参考: https://developers.openai.com/codex/concepts/customization

.ai_state/_index.md 已存在 → 提示用户用 /athena-migrate 升级或确认覆盖。

1. 项目扫描

ls package.json pyproject.toml Cargo.toml go.mod build.gradle pom.xml 2>/dev/null
cat package.json 2>/dev/null | grep -A5 '"scripts"'
ls jest.config* vitest.config* pytest.ini .eslintrc* ruff.toml biome.json 2>/dev/null

2. 创建 .ai_state/ (v9.6 schema)

mkdir -p .ai_state/details/reviews .ai_state/details/tasks-archive

3. 拷贝模板

~/.codex/skills/pace/templates/ 复制:

  • _index.md.ai_state/_index.md
  • 所有 details/*.md
  • init.sh

4. 填充 _index.md frontmatter

把扫描结果写入: tech_stack, test_cmd, build_cmd, lint_cmd, dev_cmd

平台特征 (codex --version 输出):

  • cx_version
  • goal_supported: Codex 当前没有原生 /goal → false
  • batch_supported: Codex subagent (max_threads in [agents]) 部分支持 → 视 max_threads 而定
  • background_supported: false (Codex 无 /background)
  • session_memory_active: false (Codex 无 ~/.claude/projects/ 等价物)
  • cross_session_memory: "none"

5. 生成 init.sh

根据扫描结果定制 .ai_state/init.sh. chmod +x.

6. .gitignore

grep -q '.ai_state' .gitignore 2>/dev/null || echo '.ai_state/' >> .gitignore

7. Git commit

git add .ai_state/ .gitignore
git commit -m "athena: project initialized (v9.6 schema, Codex)"

8. 验证

bash .ai_state/init.sh

告知用户: "Athena (Codex 版) 已就绪。用 /athena-dev <需求> 开始, 或 /athena-status 看面板。"

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. 10d ago First seen · 68 lines · 0 tokens per session scan A 6deb94928320

Subscribe to this mod's changes

athena-init 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 554 tokens. 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.