architecture

architecture is a skill for Claude Code, Codex from iOfficeAI/AionUi. It costs 69 tokens per session (1,472 once invoked), scanned A, original, Apache-2.0.

Rules for deciding where code belongs in an Electron project, an app that uses web technologies for its desktop interface. It covers the user interface, main process, shared code, services, agents, and workers.

In plain words
What is it for?
Use it when creating or moving components, hooks, pages, bridges, services, platform connections, worker tasks, or shared modules.
Why use it?
It reduces misplaced files and keeps code organized according to which part of the desktop app uses it.

Skill for Claude CodeCodex

About the project

AionUi is an open-source coworking application for using and customizing multiple command-line AI assistants, including OpenClaw, Hermes, Claude Code, Codex, and OpenCode. It is for people who want to organize assistants and have them work together.

iOfficeAI/AionUi · 32,573 stars · on GitHub · aionui.com

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 skills/iofficeai/aionui/architecture
Any agent
npx skills add iOfficeAI/AionUi --skill architecture
Clone the repo
git clone --depth 1 https://github.com/iOfficeAI/AionUi

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 architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/iofficeai/aionui/architecture.svg)](https://agentmods.dev/skills/iofficeai/aionui/architecture)
Your own site
<a href="https://agentmods.dev/skills/iofficeai/aionui/architecture"><img src="https://agentmods.dev/badge/skills/iofficeai/aionui/architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,472 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00069 $0.01472
Opus 5 $0.00034 $0.00736
Sonnet 5 $0.00014 $0.00294
Haiku 4.5 $0.00007 $0.00147

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

Security

Grade A, and why

architecture scanned grade A 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 6d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| **Main** (`packages/desktop/src/process/`) | Node.js, Electron main APIs, `fs`, `path`, `child_process` | DOM APIs (`document`, `window`, React) |
.claude/skills/architecture/SKILL.md · 142 lines

How it starts

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

Architecture Skill

Determine correct file placement and structure for an Electron multi-process project.

Detailed References


Decision Tree — Where Does New Code Go?

Is it UI (React components, hooks, pages)?
  └── YES → packages/desktop/src/renderer/              → see references/renderer.md

Is it an IPC handler responding to renderer calls?
  └── YES → packages/desktop/src/process/bridge/        → see references/process.md

Is it business logic running in the main process?
  └── YES → packages/desktop/src/process/services/      → see references/process.md

Is it an AI platform connection (API client, message protocol)?
  └── YES → packages/desktop/src/process/agent/<platform>/

Is it a background task that runs in a worker thread?
  └── YES → packages/desktop/src/process/worker/

Is it used by BOTH main and renderer processes?
  └── YES → packages/desktop/src/common/

Is it an HTTP/WebSocket endpoint?
  └── YES → packages/desktop/src/process/webserver/

Is it a plugin/extension resolver or loader?
  └── YES → packages/desktop/src/process/extensions/

Is it a messaging channel (Lark, DingTalk, Telegram)?
  └── YES → packages/desktop/src/process/channels/

Process Boundary Rules

Hard rules — violating them causes runtime crashes.

Process Can use Cannot use
Main (packages/desktop/src/process/) Node.js, Electron main APIs, fs, path, child_process DOM APIs (document, window, React)
Renderer (packages/desktop/src/renderer/) DOM APIs, React, browser APIs Node.js APIs (fs, path), Electron main APIs
Worker (packages/desktop/src/process/worker/) Node.js APIs DOM APIs, Electron APIs
Preload (packages/desktop/src/preload/) contextBridge, ipcRenderer DOM manipulation, Node.js fs

Read the full file on GitHub · 142 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 142 lines · 69 tokens per session scan A 54c1456a2f69

Subscribe to this mod's changes

architecture is a skill published in the GitHub repository iOfficeAI/AionUi (32,573 stars, last pushed 3d ago), licensed Apache-2.0. It adds 69 tokens to every session and 1,472 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.