CLAUDE.md@apps/mobileA

CLAUDE.md@apps/mobile from ximing/vital is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add ximing/vital/apps/mobile/CLAUDE.md@git:20261021.2674a2a

Pins git:20261021.2674a2a in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
ximing/vital
Path
apps/mobile/CLAUDE.md
Versions recorded
1
Latest version
git:20261021.2674a2a, committed Oct 21, 2026
Size
2,258 bytes
Repository stars
3
License
none declared

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# `@vital/mobile` — 移动端指令

## 这个目录负责什么

- 承载 Vital 的移动端原生应用(Expo 54 + React Native + Expo Router,Android 优先)。
- 使用 Bearer Token 鉴权,通过 `@vital/api-client` 与 `/api/v1/sync` 增量同步协议与服务端交互,并集成华为推送、桌面角标与 APK 自更新。

## 放置约束

- **放什么**:
  - `app/`:仅放置 Expo Router 路由入口与布局壳文件(如 `(tabs)/`、`inbox/[id].tsx`),保持轻量并直接挂载 `src/features/` 中的页面组件。
  - `src/features/<domain>/`:领域视图(`*Home.tsx`、`*Detail.tsx`)与对应的 `@rabjs/react` 状态服务(`*.service.ts`)。
  - `src/components/`:跨领域复用的移动端基础组件(`Screen.tsx`、`BottomSheet.tsx`、`TaskRow.tsx`、`DateField.tsx` 等)。
  - `src/lib/`:API 客户端实例、增量同步(`sync.ts`)、文案(`copy.ts`)、华为推送与 APK 更新桥接封装。
  - `modules/`:本地 Expo 原生模块(`apk-updater`、`huawei-push`、`launcher-badge`)。
- **不放什么**:
  - 不要在 `app/` 路由文件中堆砌业务逻辑、网络请求或复杂样式。
  - 不要在 `src/**/*.ts` 或 `src/**/*.tsx` 中出现任何硬编码的十六进制色值(`#...`)或 `rgba(...)`。

## 开发偏好与局部范式

1. **严禁硬编码颜色(Token 强校验)**:
   - `pnpm --filter @vital/mobile lint:tokens` 会扫描 `src/` 下所有 `.ts/.tsx` 文件,一旦发现 `#hex` 或 `rgba(` 直接报错。
   - 所有颜色必须通过 `@vital/tokens` 与 `src/theme/use-theme.ts`(或 `src/ui/color.ts`)读取语义 Token,确保浅色/深色主题一致。
2. **`@rabjs/react` 服务驱动视图**:
   - 页面状态、分页游标、离线标识与乐观更新统一封装在 `src/features/<domain>/<domain>.service.ts` 的 `Service` 子类中。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ximing/vital/apps/mobile/CLAUDE.md@sha256:396d4dfde6fc7aaa

The line at the top of this page pins the label git:20261021.2674a2a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_iv4ygtucegdffmot.svg)](https://markdownregistry.com/a/art_iv4ygtucegdffmot)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 21, 2026.

versioncommittedcommitsizeaudit
git:20261021.2674a2a latest2026-10-21 2674a2a 2,258 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2258 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ximing/vital · 3 stars · license none declared · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_iv4ygtucegdffmot
GET https://markdownregistry.com/api/v1/resolve?ref=ximing/vital/apps/mobile/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/396d4dfde6fc7aaa7e187cda98321644832ec657597c7b82dd0b3f292ced9ccb

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

More from ximing/vital

ximing-progressive-project SKILL.md skill
ximing/vital · .claude/skills/ximing-progressive-project/SKILL.md · 把现有项目重构为适合 Claude Code 的持久化指令渐进式加载架构。用户提到“拆分根 CLAUDE.md”、“按目录下沉规则”、“给当前项目设计分层指令文件”、“创建不同目录的 CLAUDE.md”、“补…
git:20261021.2674a2a · audit A · 3 stars
AGENTS.md AGENTS.md file
ximing/vital · AGENTS.md
git:20261017.74432da · audit A · 3 stars
CLAUDE.md CLAUDE.md file
ximing/vital · CLAUDE.md
git:20261021.2674a2a · audit A · 3 stars
CLAUDE.md@apps/extension CLAUDE.md file
ximing/vital · apps/extension/CLAUDE.md
git:20261021.2674a2a · audit A · 3 stars
CLAUDE.md@apps/server CLAUDE.md file
ximing/vital · apps/server/CLAUDE.md
git:20261021.2674a2a · audit A · 3 stars
CLAUDE.md@apps/web CLAUDE.md file
ximing/vital · apps/web/CLAUDE.md
git:20261021.2674a2a · audit A · 3 stars
vital SKILL.md skill
ximing/vital · skills/vital/SKILL.md · Operate the user's Vital personal OS (today, inbox, tasks, threads, habits, days, lists, tags, reports, search) through…
git:20260930.747d60d · audit B · 3 stars

Every file in ximing/vital

Browse by kind, by grade A, or by owner.