Skip to main content

monorepo-backend-layout

For repos with a backend/ (or similar) directory, treat that as the app root. Create all API routes and library code under backend/src/app/... and backend/src/lib/... Never create src/ at the repository root for backend routes. Use before creating any API or lib file to prevent 404s and wrong-path creation.

소스 정보

저장소
pmarashian/cursor-agent-skills
최근 소스 활동
2026년 2월 13일 19:51
감지된 SKILL.md 언어
영어
스타
2
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
monorepo-backend-layout
description
For repos with a backend/ (or similar) directory, treat that as the app root. Create all API routes and library code under backend/src/app/... and backend/src/lib/... Never create src/ at the repository root for backend routes. Use before creating any API or lib file to prevent 404s and wrong-path creation.
# Monorepo / Backend Layout For repositories with a `backend/` (or similar) directory, that directory is the backend app root. ## Checklist Before Creating Any API or Lib File 1. **Identify the backend app root** (e.g. `backend/`). 2. **Create files only under that root**: - API routes: `backend/src/app/api/...` - Library code: `backend/src/lib/...` - (Or the project's actual layout—e.g. `backend/src/app/...` for Next.js App Router.) ## Rules - **Never** create `src/` at the repository root for backend routes or libs. - **Never** put routes under `backend/lib/` if the project uses `backend/src/lib/`. - Confirm the path convention (e.g. `backend/src/lib/` not `backend/lib/`) before creating files. ## Why This Matters Creating routes or libs in the wrong place leads to 404s, repeated server restarts, and long debugging cycles. A single explicit layout rule prevents wrong-path creation. ## Integration - Reference in pre-implementation-check or progress when working in monorepos. - Link from `create-next-app-existing-dir` when scaffolding backend in an existing directory.
GitHub에서 보기