appCN AGENTS.md

appCN AGENTS.md is an instructions file for Codex, OpenCode from Salah-XD/appCN. It costs 1,508 tokens per session, scanned A, original, MIT.

Repository instructions for Salah-XD/appCN, a mobile app project, covering required documents, coding rules, and the standard process for creating components.

In plain words
What is it for?
Use them before editing appCN, especially when adding components, choosing libraries, styling screens, or implementing animations and gestures.
Why use it?
They help coding agents understand the project's structure and avoid changes that violate its design, dependency, styling, or animation 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/salah-xd/appcn/agents-md
Clone the repo
git clone --depth 1 https://github.com/Salah-XD/appCN

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/salah-xd/appcn/agents-md.svg)](https://agentmods.dev/instructions/salah-xd/appcn/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/salah-xd/appcn/agents-md"><img src="https://agentmods.dev/badge/instructions/salah-xd/appcn/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,508 This file is loaded in full into every session.
When invoked 1,508 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.01508 $0.01508
Opus 5 $0.00754 $0.00754
Sonnet 5 $0.00302 $0.00302
Haiku 4.5 $0.00151 $0.00151

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

Security

Grade A, and why

appCN 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 3d 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 · 127 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents (Claude Code, Cursor, Windsurf, OpenAI Codex, Aider, …) working in the appCN repo. Read this before you touch code.

This file follows the cross-tool AGENTS.md convention — most modern agents look for it automatically.

Read first

  1. CLAUDE.md — architecture, monorepo map, commands, gotchas. Do not skip.
  2. DESIGN.md — the taste layer. Motion rules, the "one delight detail" requirement, the per-component file shape, the explicit what-NOT-to-do list, and the seven-step Component checklist (SOP).
  3. CONTRIBUTING.md — dev setup, PR conventions.

If you're proposing a new component, your work is invalid unless it satisfies the SOP. There are no exceptions.

Hard rules

  • No new dependencies without justifying them in the PR. Especially not icon libraries — draw glyphs from Views/borders (see prompt-input.tsx for the pattern).
  • No StyleSheet / inline styles when NativeWind can express the rule.
  • No Animated API. Reanimated only. Gestures via gesture-handler.
  • No magic durations or easings. Pull from ../lib/motion. If you find yourself hand-typing 300 or Easing.out(...), you're doing it wrong.
  • No skipping accessibility. Every interactive component needs accessibilityRole, a label, hitSlop, and ≥ 44pt touch targets.
  • No light-mode-first. Design dark, then derive light.
  • No useEffect for layout-affecting state when a derived value works.

Next.js 16 warning (apps/web only)

apps/web/ is on Next.js 16. APIs, conventions, and file structure differ from what models were trained on. Before authoring or editing any code under apps/web/app/, read the relevant doc in node_modules/next/dist/docs/.

Confirmed-current conventions worth flagging:

  • params is a Promise in pages and layouts — must be awaited.
  • Layouts are cached and do not re-render on navigation. Active-state for nav links must live in a Client Component using usePathname().
  • See apps/web/AGENTS.md for the in-app reminder.

Read the full file on GitHub · 127 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. 3d ago First seen · 127 lines · 1,508 tokens per session scan A c3f2d9d939e5

Subscribe to this mod's changes

appCN AGENTS.md is an instructions file published in the GitHub repository Salah-XD/appCN (3 stars, last pushed 3mo ago), licensed MIT. It adds 1,508 tokens to every session, about $0.0075 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-31.