app-coding-standards
БесплатноБез исполняемых скриптовНе проверенProvides coding standards for the Expensify App's React Native code, including performance patterns, consistency rules, and clean React architecture. Use when…
от Expensify★ 5 115 звёзд на GitHubОб этом скилле
Expensify App Coding Standards
Coding standards for the Expensify App. Each standard is a standalone file in rules/ with reasoning, examples, and applicability conditions.
How to Use
This index lists rule titles only. Before writing or editing code, read the full rule file for every category that applies to the files you touch: each file holds the rule's conditions, exceptions, and the fix it expects.
Before committing, stage everything with git add -A. Then start a general-purpose subagent that follows .claude/agents/code-inline-reviewer.md and reviews git diff --cached $(git merge-base origin/main HEAD). CI runs the same check.
Categories
| Category | Prefix | Focus |
|---|---|---|
| Performance | PERF-* |
Render optimization, memo patterns, useEffect hygiene, data selection |
| Consistency | CONSISTENCY-* |
Platform checks, magic values, unused props, lint discipline, localization, file naming, JSDoc |
| Clean React Patterns | CLEAN-REACT-PATTERNS-* |
Composition, component ownership, state structure, prop typing, function components |
| UI | UI-* |
Loading indicators, scrollable pages, styling conventions |
| Privacy | PRIVACY-* |
FullStory masking of sensitive data |
Quick Reference
Performance
- PERF-1 — No spread in renderItem
- PERF-2 — Return early before expensive work
- PERF-3 — Shared data in list rows comes from OnyxListItemProvider
- PERF-5 — Shallow over deep comparisons
- PERF-6 — Derive state from props
- PERF-7 — Reset via key prop
- PERF-8 — Handle events in handlers
- PERF-9 — No useEffect chains
- PERF-10 — No useEffect parent communication
- PERF-11 — Optimize data selection
- PERF-12 — Prevent memory leaks
- PERF-13 — Hoist iterator-independent calls
- PERF-14 — Use useSyncExternalStore
- PERF-15 — Clean up async Effects
- PERF-16 — Guard double initialization
- PERF-17 — Pass raw source, index on demand (no pre-built digest)
- PERF-18 — Use usePreMountDestination for RHP pre-mounting
- PERF-19 — Collection selectors return only what the consumer uses
- PERF-20 — Defer heavy work to happen after visual transitions
- PERF-21 — List rows read their own Onyx data
- PERF-22 — List rows subscribe to single collection members
Consistency
- CONSISTENCY-1 — No platform-specific checks in components
- CONSISTENCY-2 — No magic numbers/strings
- CONSISTENCY-3 — No code duplication
- CONSISTENCY-4 — No unused props
- CONSISTENCY-5 — Justify ESLint disables
- CONSISTENCY-6 — Proper error handling
- CONSISTENCY-7 — Localize all user-visible copy
- CONSISTENCY-8 — Localize numbers, amounts, dates and phone numbers
- CONSISTENCY-9 — Name files after what they export
- CONSISTENCY-10 — Follow the JSDoc style guidelines and document props only where there is something to say
- CONSISTENCY-11 — Track future work in an issue, not a TODO comment
- CONSISTENCY-12 — Name callbacks for what they do, not the event they handle
- CONSISTENCY-13 — Non-trivial new files start with a header description
- CONSISTENCY-14 — Comments explain why the code exists, not what it does
- CONSISTENCY-15 — Write comments as plain, natural sentences
- CONSISTENCY-16 — No AI-generated jargon in code or comments
- CONSISTENCY-17 — Pluralize with PluralForm, not ternaries on a count
- CONSISTENCY-18 — Comment code that is not self-expl
Установить app-coding-standards в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл app-coding-standards?
Provides coding standards for the Expensify App's React Native code, including performance patterns, consistency rules, and clean React architecture. Use when writing, modifying, or reviewing App code.
Как установить скилл app-coding-standards?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл app-coding-standards запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic