monorepo-template / quality
Cursor rule18 starsChanged 2 months agoApache-2.0View on GitHub
Naming - kebab-case files, front PascalCase components, singular @repo package names, unscoped apps.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- .cursor/rules/backend/hono-gateway.mdcCursor rule
- .cursor/rules/backend/ports.mdcCursor rule
- .cursor/rules/backend/service-bindings.mdcCursor rule
- .cursor/rules/backend/workers-cache.mdcCursor rule
- .cursor/rules/backend/workers-config.mdcCursor rule
- .cursor/rules/contracts/contracts.mdcCursor rule
- .cursor/rules/core/agent-instructions.mdcCursor rule
- .cursor/rules/core/boundaries.mdcCursor rule
- .cursor/rules/core/guardrails.mdcCursor rule
- .cursor/rules/core/turborepo.mdcCursor rule
- .cursor/rules/core/worktrees.mdcCursor rule
- .cursor/rules/frontend/react.mdcCursor rule
- .cursor/rules/frontend/tailwind.mdcCursor rule
- .cursor/rules/frontend/tanstack-query.mdcCursor rule
- .cursor/rules/frontend/tanstack-router.mdcCursor rule
- .cursor/rules/frontend/vite-config.mdcCursor rule
- .cursor/rules/ops/cd.mdcCursor rule
- .cursor/rules/ops/changesets.mdcCursor rule
- .cursor/rules/ops/ci.mdcCursor rule
- .cursor/rules/ops/previews.mdcCursor rule
- .cursor/rules/ops/quality-report.mdcCursor rule
- .cursor/rules/ops/release.mdcCursor rule
- .cursor/rules/quality/code-style.mdcCursor rule
- .cursor/rules/quality/comments.mdcCursor rule
- .cursor/rules/quality/knip.mdcCursor rule
- .cursor/rules/quality/lint-config.mdcCursor rule
- .cursor/rules/quality/markdown-style.mdcCursor rule
- .cursor/rules/quality/simplicity.mdcCursor rule
- .cursor/rules/quality/testing.mdcCursor rule
- .cursor/rules/quality/typescript-config.mdcCursor rule
- .cursor/rules/tests/front-react.mdcCursor rule
- .cursor/rules/tests/hono-workers.mdcCursor rule
- cfSkill
- changesetSkill
- front-vitestSkill
- git-commitSkill
- honoSkill
- monorepo-agent-setupSkill
- playwright-cliSkill
- pnpmSkill
- react-doctorSkill
- reviewSkill
- review-stackSkill
- run-appSkill
- security-auditSkill
- skills-updateSkill
- tanstack-configSkill
- tanstack-devtoolsSkill
- tanstack-querySkill
- tanstack-routerSkill
- turborepoSkill
- ui-ux-design-best-practicesSkill
- vercel-react-best-practicesSkill
- workers-best-practicesSkill
- skills-updateSkill
The file
Files
---
description: "Naming - kebab-case files, front PascalCase components, singular @repo package names, unscoped apps."
alwaysApply: false
globs: apps/**/*.{ts,tsx},packages/**/*.ts,apps/*/package.json,packages/*/package.json
---
# Naming
Match the casing of the surrounding code; Oxc enforces filename and identifier conventions (`.oxlintrc.json`), so never invent a personal scheme.
- **Filenames** are kebab-case. In `apps/front-*/**` a React component file may be PascalCase to mirror its export (`SomeComponent.tsx`); hooks, utils, and services stay kebab-case.
- **Schemas** end in `Schema` (`…RequestSchema`, `…ResponseSchema`, `…InputSchema`, `…PayloadSchema`, `…MessageSchema`, `…EventSchema`); the inferred type drops `Schema` and never takes a `Type` suffix ([contracts.mdc](../contracts/contracts.mdc)).
- **Package names**: `@repo/<purpose>` in kebab-case, with the unscoped name as the directory. The last word stays singular even when the package holds several (`@repo/typescript-config`, `@repo/hono-middleware` - `middleware` is uncountable, never `middlewares`); only a countable noun before `-common` takes a plural (`@repo/dtos-common`, `@repo/enums-common`).
- **Apps are unscoped, and everything under `packages/` is `@repo/`-scoped**: the Changesets `fixed` group is exactly the unscoped workspaces, and nothing machine-checks this ([release.mdc](../ops/release.mdc)).
- snake_case only where an external contract requires it (MCP tool `name`, OpenAPI `operationId`); the defining file stays kebab-case.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

