AionUi AGENTS.md

AionUi AGENTS.md is an instructions file for Codex, OpenCode from iOfficeAI/AionUi. It costs 1,663 tokens per session, scanned A, original, Apache-2.0.

A project guide for AionUi, a software application, that tells coding agents and contributors how its files, names, user-interface components, icons, and styles should be organized.

In plain words
What is it for?
Use it when adding or reorganizing AionUi files, components, utilities, hooks, types, or styles. It also explains which interface and icon libraries to use.
Why use it?
It reduces guesswork when changing the code and helps new files follow the project's existing rules.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/iofficeai/aionui/agents-md
Clone the repo
git clone --depth 1 https://github.com/iOfficeAI/AionUi

Made for: Codex, OpenCode.

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 AionUi AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/iofficeai/aionui/agents-md.svg)](https://agentmods.dev/instructions/iofficeai/aionui/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/iofficeai/aionui/agents-md"><img src="https://agentmods.dev/badge/instructions/iofficeai/aionui/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,663 This file is loaded in full into every session.
When invoked 1,663 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01663 $0.01663
Opus 5 $0.00831 $0.00831
Sonnet 5 $0.00333 $0.00333
Haiku 4.5 $0.00166 $0.00166

Measured 4d ago against content hash 6ac244e516e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

AionUi AGENTS.md 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 4d 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.

AGENTS.md · 155 lines

How it starts

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

AionUi - Project Guide

All contributors (human and AI) must follow CONTRIBUTING.md before opening a PR. (Chinese version)

Code Conventions

File & Directory Structure

  • Directory size limit: Prefer ≤ 10 direct children per directory; new or substantially reorganized directories must satisfy this.

See docs/contributing/file-structure.md for complete rules. Agents must also follow the architecture skill (.claude/skills/architecture/SKILL.md) when creating files or modules.

Naming

  • Components: PascalCase (Button.tsx, Modal.tsx)
  • Utilities: camelCase (formatDate.ts)
  • Hooks: camelCase with use prefix (useTheme.ts)
  • Constants files: camelCase (constants.ts) — values inside use UPPER_SNAKE_CASE
  • Type files: camelCase (types.ts)
  • Style files: kebab-case or ComponentName.module.css
  • Unused params: prefix with _

UI Library & Icons

  • Components: @arco-design/web-react — no raw interactive HTML (<button>, <input>, <select>, etc.)
  • Icons: @icon-park/react

CSS

  • Prefer UnoCSS utility classes; complex styles use CSS Modules (ComponentName.module.css)
  • Colors must use semantic tokens from uno.config.ts or CSS variables — no hardcoded values
  • Arco theme overrides go in packages/desktop/src/renderer/styles/arco-override.css; component-scoped Arco overrides use CSS Module with :global()
  • Global styles only in packages/desktop/src/renderer/styles/

Formatting rules (Oxfmt, Prettier-compatible):

  • Single-element arrays that fit on one line → inline: [{ id: 'a', value: 'b' }]
  • Trailing commas required in multi-line arrays/objects
  • Single quotes for strings

TypeScript

  • Strict mode enabled — no any, no implicit returns
  • Use path aliases: @/*, @process/*, @renderer/*
  • Prefer type over interface (per Oxlint config)
  • English for code comments; JSDoc for public functions

Read the full file on GitHub · 155 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. 4d ago First seen · 155 lines · 1,663 tokens per session scan A 6ac244e516e2

Subscribe to this mod's changes

AionUi AGENTS.md is an instructions file published in the GitHub repository iOfficeAI/AionUi (32,536 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,663 tokens to every session, about $0.0083 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-08-30.