coding-standards
Faster Fixes project coding conventions and rules for apps/web. Use when writing, refactoring, reviewing, or placing code in this repo: React/client…
от manucoffin★ 52 звезды на GitHub
Установить coding-standards в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Faster Fixes Coding Standards
Conventions live as focused rule files in rules/ next to this file. This skill is a
router: read only the rule file(s) that match what you are about to do, then apply
them. Do not read every rule file.
Where the architecture is written down
ADR-0010 to ADR-0015 in docs/adr/ pin the decisions behind the structure of apps/web: two tiers
sharing one bucket set, transport-agnostic services under thin tRPC routers, and one domain-error
vocabulary mapped exactly once per boundary. The rule files under rules/ are the working form of
those decisions, so read those first.
Three facts settle most placement questions:
- All code under
src/appfollows these rule files. The rules that guard the structure report aterrorin plainpnpm linteverywhere, with no per-scope allowlist, and report nothing today: a violation is a regression, not a burn-down item (ADR-0015). Every convention below either names the lint rule or the test that enforces it, or is marked prose only, which means no check holds it and a reviewer does. The complete rule set is listed inrules/backend.md("Enforced by ESLint") and inpackages/eslint-config/README.md. src/server/accepts a new file under two conditions only: it is wiring (it configures or instantiates a library for the whole application and makes no business decision), or it is a cross-cutting abstraction at least two domains or transports need whose server implementation no barrel can export. Inverse test: a file that makes a business decision for one glossary entity is a domain service, even when it calls an SDK. An always-onno-restricted-importsblock stops the folder reaching into the app tree by deep path, and its exemptions are named file by file inpackages/eslint-config/next.js.- A service throws a domain error, never a
TRPCErrorand never a bareError. The vocabulary is at@/server/errors/domain-errorsand every boundary maps it back into its own dialect (seerules/backend.mdandrules/errors.md).
interruptOnDomainError is the one piece of the error model that is not built: no RSC page calls a
throwing service yet, so the helper lands with its first caller.
How to use
- Find the row(s) in the routing table matching your task.
Readthe listed rule file(s) underrules/.- Apply them while you work. When unsure about placement, also read
rules/architecture.md.
Routing table
| You are about to… | Read |
|---|---|
| Place a new file / decide where code goes | rules/architecture.md |
| Write backend / data layer (services, queries, mutations, IO, tRPC routers) | rules/backend.md + rules/naming.md |
| Define a Zod schema | rules/schemas.md |
| Build React UI / a component / client component / styling / query status | rules/frontend.md |
| Build a create/edit form | rules/frontend.md + rules/schemas.md + rules/errors.md |
| Surface or handle an error to the user | rules/errors.md |
| Name a function or file (any language) | rules/naming.md |
| Write a test / decide where a test goes | rules/testing.md |
| Split a file / judge a file that feels too big / review readability | rules/code-shape.md |
Cross-cutting (small, almost always relevant)
- Any TypeScript →
rules/typescript.md(typeoverinterface, infer aggressively, English identifiers). - Reviewing or refactoring anything →
rules/code-shape.md(size thresholds, single responsibility, readability, flag-vs-auto-fix).
Rule files
rules/architecture.md— app folder structure, two tiers, buckets, file placement, cross-domain imports.rules/backend.md—_services/data/IO layer, verb vocabulary, transport-agnostic services, tRPC router, client/server boundary.rules/schemas.md— Zod schema naming, placement, type extraction, Prisma enums.rules/frontend.md— React component + client component patterns, Tailwind,matchQueryStatus, forms, user-facing copy.rules/errors.md— the four error display channels, route boundaries, anti-patterns.rules/naming.md— CRUD read/write
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- rules/architecture.md
- rules/backend.md
- rules/code-shape.md
- rules/errors.md
- rules/frontend.md
- rules/naming.md
- rules/schemas.md
- rules/testing.md
- rules/typescript.md
FAQ
Что делает скилл coding-standards?
Faster Fixes project coding conventions and rules for apps/web. Use when writing, refactoring, reviewing, or placing code in this repo: React/client components, tRPC services and routers, Zod schemas, TypeScript, Tailwind styling, file/folder placement, CRUD naming, forms, or error handling. Routes you to only the rule files your task needs so you do not load every rule at once.
Как установить скилл coding-standards?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл coding-standards запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…