Command Palette

Search for a command to run...

Назад к скиллам
скилл № 85335

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от 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/app follows these rule files. The rules that guard the structure report at error in plain pnpm lint everywhere, 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 in rules/backend.md ("Enforced by ESLint") and in packages/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-on no-restricted-imports block stops the folder reaching into the app tree by deep path, and its exemptions are named file by file in packages/eslint-config/next.js.
  • A service throws a domain error, never a TRPCError and never a bare Error. The vocabulary is at @/server/errors/domain-errors and every boundary maps it back into its own dialect (see rules/backend.md and rules/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

  1. Find the row(s) in the routing table matching your task.
  2. Read the listed rule file(s) under rules/.
  3. 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 (type over interface, 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
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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), без исполняемых скриптов.

Похожие скиллы

Сравнить coding-standards с