airi: Skill for Codex

.agents/skills/enforce-rules-for-unocss/SKILL.md

enforce-rules-for-unocss is a skill for Codex from moeru-ai/airi. It costs 82 tokens per session (489 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing Vue user-interface code with UnoCSS, shared components, icons, animations, and light or dark color modes. UnoCSS is a tool that applies reusable utility-based styling classes.

In plain words
What is it for?
Use it when creating, editing, refactoring, or reviewing Vue templates, styles, utility classes, animations, icons, UI building blocks, or color-mode behavior.
Why use it?
It keeps interface code readable and consistent with the project's existing styling system. It also helps developers reuse shared components, animations, and dark-mode behavior instead of creating conflicting alternatives.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is moeru-ai/airi's own configuration. It tells Codex how to work on airi 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 airi configures →

About the project

AIRI is a self-hosted virtual AI companion that gives an AI character a voice, visual presence, memory, and the ability to interact with games and coding activity. People use it as a personal digital companion on the web, macOS, or Windows, including for voice chat and gameplay. The catalogue add-ons provide workflows for working with the AIRI project.

moeru-ai/airi · 49,010 stars · on GitHub · airi.moeru.ai

Reuse

Borrowing it

Nothing to install: this file belongs to moeru-ai/airi. 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/moeru-ai/airi/main/.agents/skills/enforce-rules-for-unocss/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/moeru-ai/airi

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 enforce-rules-for-unocss

README.md
[![agentmods](https://agentmods.dev/badge/skills/moeru-ai/airi/enforce-rules-for-unocss/github.svg)](https://agentmods.dev/skills/moeru-ai/airi/enforce-rules-for-unocss)
Your own site
<a href="https://agentmods.dev/skills/moeru-ai/airi/enforce-rules-for-unocss"><img src="https://agentmods.dev/badge/skills/moeru-ai/airi/enforce-rules-for-unocss/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 enforce-rules-for-unocss

Your own site · 80×15
<a href="https://agentmods.dev/skills/moeru-ai/airi/enforce-rules-for-unocss"><img src="https://agentmods.dev/badge/skills/moeru-ai/airi/enforce-rules-for-unocss.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 489 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. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00082 $0.00489
Opus 5 $0.00041 $0.00244
Sonnet 5 $0.00016 $0.00098
Haiku 4.5 $0.00008 $0.00049

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

Security

Grade A, and why

enforce-rules-for-unocss 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 12d 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/skills/enforce-rules-for-unocss/SKILL.md · 44 lines

What it actually says

Enforce AIRI UnoCSS Rules

Apply these rules to every affected UI file in AIRI.

Compose Utility Classes Readably

  • Prefer UnoCSS over Tailwind CSS.

  • In Vue templates, bind grouped class arrays for readability:

    :class="[
      'px-2 py-1',
      'flex items-center',
      'bg-white/50 dark:bg-black/50',
    ]"
    
  • Do not use long inline class strings such as class="px-2 py-1 flex items-center bg-white/50 dark:bg-black/50".

  • Do not use attributify-style groups such as px="2" py="1" flex="~ items-center" bg="white/50 dark:black/50".

  • When touching legacy utility classes, progressively refactor them into readable grouped arrays.

Reuse Project Styling Infrastructure

  • Use or extend shortcuts and rules in uno.config.ts when styles should be standardized or reused.
  • Search apps/stage-web/src/styles for existing animations before adding one. Reuse or extend an existing animation when it fits.
  • Consult apps/stage-web/tsconfig.json and uno.config.ts when configuration context is needed.
  • Keep animations intuitive, lively, and readable.

Build on Shared UI Primitives

  • Build primitives on @proj-airi/ui, which is based on reka-ui, instead of raw DOM controls.
  • Read docs/ai/context/ui-components.md for the component API and packages/ui/src/components/Form for implementation patterns.
  • When adding or updating a component in packages/ui, update docs/ai/context/ui-components.md with its description, props, slots, and emits.
  • Use Iconify icon sets instead of bespoke SVGs.

Preserve Theme Behavior

  • When using VueUse useDark, set disableTransition: false or use an existing composable from packages/ui.
Files

What ships with it

1 file 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. 12d ago First seen · 44 lines · 82 tokens per session scan A cf8d3530a400

Subscribe to this mod's changes

enforce-rules-for-unocss is a skill published in the GitHub repository moeru-ai/airi (49,010 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 489 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

shadcn-svelte

Pre-built shadcn-svelte components for json-render Svelte apps. Use when working with @json-render/shadcn-svelte, adding standard UI components to a Svelte catalog, or building Svelte web UIs with shadcn-svelte + Tailwind CSS components.

vercel-labs/json-render · 63 tokens

shadcn-svelte

Manages shadcn-svelte components and projects — adding, updating, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn-svelte, the CLI, design-system presets, or any project with a components.json file. Also triggers for…

huntabyte/shadcn-svelte · 87 tokens

nuxt-ui

Build UIs with @nuxt/ui v4 — 125+ accessible Vue components with Tailwind CSS theming. Use when creating interfaces, customizing themes to match a brand, building forms, or composing layouts like dashboards, docs sites, and chat interfaces.

nuxt/ui · 56 tokens

league-akari-ui-components

Use when implementing or reviewing League Akari renderer UI components, especially consistency across related components, i18n component interpolation, multiple independent pluralized counts, Tailwind utility usage in templates or SFC style blocks, or native semantic HTML elements in the Naive UI renderer.

LeagueAkari/LeagueAkari · 60 tokens

vuetify-to-semantic

Refactor a Vue page or component from Vuetify to semantic HTML5 + Schema.org microdata + Stylus element selectors. Use when converting a seeq-app view or component file, removing v- components, replacing utility classes with Stylus, or adding Schema.org microdata to an entity page. Triggers include "refactor this…

scott-fryxell/brayness · 94 tokens

vue-base-skill

A parent guide for building Vue interface components with shared rules for cards, buttons, labels, and tables. It requires these components to sit inside a base card and use shared CSS design values.

jiushiwon/wg-skills · 108 tokens