agentleFS
iOfficeAIiOfficeAI/AionUi/AGENTS.md

AionUi

AGENTS.md33k starsChanged 8 months agoApache-2.0View on GitHub

All contributors (human and AI) must follow CONTRIBUTING.md before opening a PR. (Chinese version) 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. Formatting rules (Oxfmt, Prettier-compatible): New or changed user-facing text must use i18n keys; do not introduce hardcoded strings. Languages and modules are defined in packages/desktop/src/common/config/i18n-config.json. See the i18n skill (.claude/skills/i18n/SKILL.md) for complete workflow, key naming, and validation steps. Two process types — never mix their APIs: Cross-process communication…

  • Installs packages
  • Commits and pushes

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 7 mentionsFeb 2026: 4 mentionsMar 2026: 2 mentionsApr 2026: 1 mentionMay 2026: 4 mentionsJun 2026: 13 mentionsJul 2026: 17 mentionsAug 2026: 10 mentionsSep 2026: 3 mentionsOct 2026: 5 mentionsNov 2026: 2 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the iOfficeAI/AionUi repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about iOfficeAI/AionUi

The biggest 5 of 70 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 70

Talked about on GitHub, Bluesky and Hacker News (70 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 16

11 more on Bluesky
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository5 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 3
  2. Distinctive:

    Directory size limit: Prefer ≤ 10 direct children per directory.

    line 9
  3. Very specific:

    Prefer UnoCSS utility classes.

    line 30
  4. Very specific:

    Use path aliases: @/*, @process/*, @renderer/*

    line 44
  5. Very specific:

    Prefer type over interface (per Oxlint config)

    line 45
  6. Very specific:

    If your changes touch packages/desktop/src/renderer/, locales/, or packages/desktop/src/common/config/i18n, also run:

    line 97
  7. Distinctive:

    When opening a PR, fill in the PR body using .github/pull_request_template.md and complete its checklists honestly (only check items you …

    line 141

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

Internationalization (i18n)

New or changed user-facing text must use i18n keys; do not introduce hardcoded strings. Languages and modules are defined in packages/desktop/src/common/config/i18n-config.json.

See the i18n skill (.claude/skills/i18n/SKILL.md) for complete workflow, key naming, and validation steps.

Architecture

Two process types — never mix their APIs:

ProcessPathRestriction
Mainpackages/desktop/src/process/No DOM APIs
Rendererpackages/desktop/src/renderer/No Node.js APIs

Cross-process communication must go through the IPC bridge (packages/desktop/src/preload/). See docs/architecture/overview.md for details.

Testing

Framework: Vitest 4 (vitest.config.ts). Project coverage target is ≥ 80%; ordinary changes should add focused tests for changed behavior.

bun run test              # run all tests
bun run test:coverage     # with coverage report

See the testing skill (.claude/skills/testing/SKILL.md) for complete workflow and quality rules.

Workflow

Scope & Enforcement

  • Hard blockers: process boundary violations, TypeScript errors, failing tests, unsafe IPC usage, missing i18n for new or changed user-facing text, and raw interactive HTML in new UI.
  • Current-change requirements: naming, CSS, file placement, tests, docs, directory size, and single-file-directory rules apply to files created or meaningfully modified by the current change.
  • Ratchet rules: existing directory size or single-file-directory violations do not require cleanup during ordinary feature work or bugfixes, but the current change must not make them worse.
  • No scope expansion: implementation plans and reviews must not create extra tasks, phases, or acceptance criteria for cleanup unless the user asks for that scope.
  • Ignored working docs: docs/superpowers/ is intentionally gitignored for local Superpowers specs and plans. Do not force-add or otherwise commit files from this directory.

During Development

Auto-fix as you edit:

bun run lint:fix       # auto-fix lint issues (oxlint)
bun run format         # auto-format all files (oxfmt)
bunx tsc --noEmit      # verify no type errors

If your changes touch packages/desktop/src/renderer/, locales/, or packages/desktop/src/common/config/i18n, also run:

bun run i18n:types
node scripts/check-i18n.js

Before Pushing

AI agents must not push unless explicitly asked. When pushing, use just push, never git push:

just push                          # lint → format-check → typecheck → test → git push
just push -u origin feat/branch    # same checks, with extra git push args

Any step that fails aborts the push. Fix the issue, commit, then retry.

Note for AI agents: just push uses --quiet for lint — only errors cause failure. The project has many pre-existing lint warnings which do NOT indicate failure. Judge success by exit code, not by output volume.

Before PR (optional stricter check)

prek replicates the exact CI pipeline (includes end-of-file, trailing whitespace checks on all file types):

# One-time setup
npm install -g @j178/prek

# Run
prek run --from-ref origin/main --to-ref HEAD

prek is read-only — it reports but does not fix. If it reports issues, run the auto-fix commands above, commit, then re-run.

Commit & PR Format

Commits and PR titles must follow the Conventional Commit format defined in CONTRIBUTING.md:

<type>(<scope>): <subject>

Allowed types: feat, fix, perf, refactor, docs, style, chore, test, ci, build.

When opening a PR, fill in the PR body using .github/pull_request_template.md and complete its checklists honestly (only check items you actually ran or verified).

NEVER add AI signatures (Co-Authored-By, Generated with, etc.).

Skills Index

SkillPurposeTriggers
architectureFile & directory structure conventions for all process typesCreating files, adding modules, architectural decisions
i18nInternationalization workflow and standardsAdding or changing user-facing text, modifying locales/ or packages/desktop/src/common/config/i18n
testingTesting workflow and quality standardsWriting tests, changing runtime behavior, fixing bugs, or claiming behavior is verified
bump-versionVersion bump workflow: update package.json, checks, branch, PR, tag releaseBumping version, /bump-version

Skills are located in .claude/skills/ and contain project conventions that apply to all agents and contributors.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.