본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6682

nx-workspace-patterns

하는 일

이 가이드는 Nx라는 도구로 대형 소프트웨어 프로젝트를 정리하도록 돕습니다. 코드를 더 작고 재사용 가능한 부분으로 나누어 빌드와 테스트 시간을 최적화하는 방법을 가르칩니다.

사용하는 경우

  • ✓새 대형 프로젝트를 시작할 때.
  • ✓프로젝트가 어수선해지기 시작할 때.
  • ✓테스트와 빌드를 빠르게 하고 싶을 때.

스킬 링크

https://github.com/wshobson/agents/blob/main/plugins/developer-essentials/skills/nx-workspace-patterns/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/developer-essentials/skills/nx-workspace-patterns/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“대형 프로젝트를 더 빠르게 실행하도록 어떻게 정리할 수 있을까요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

코드를 애플리케이션(실행되는 부분)과 라이브러리(재사용되는 부분)로 나누는 구조를 사용합니다. 이를 통해 Nx가 무엇을 다시 빌드하거나 테스트해야 하는지 정확히 알아서 시간을 절약합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Nx Workspace Patterns

Production patterns for Nx monorepo management.

When to Use This Skill

  • Setting up new Nx workspaces
  • Configuring project boundaries
  • Optimizing CI with affected commands
  • Implementing remote caching
  • Managing dependencies between projects
  • Migrating to Nx

Core Concepts

1. Nx Architecture

workspace/
├── apps/              # Deployable applications
│   ├── web/
│   └── api/
├── libs/              # Shared libraries
│   ├── shared/
│   │   ├── ui/
│   │   └── utils/
│   └── feature/
│       ├── auth/
│       └── dashboard/
├── tools/             # Custom executors/generators
├── nx.json            # Nx configuration
└── workspace.json     # Project configuration

2. Library Types

Type Purpose Example
feature Smart components, business logic feature-auth
ui Presentational components ui-buttons
data-access API calls, state management data-access-users
util Pure functions, helpers util-formatting
shell App bootstrapping shell-web

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

Best Practices

Do's

  • Use tags consistently - Enforce with module boundaries
  • Enable caching early - Significant CI savings
  • Keep libs focused - Single responsibility
  • Use generators - Ensure consistency
  • Document boundaries - Help new developers

Don'ts

  • Don't create circular deps - Graph should be acyclic
  • Don't skip affected - Test only what changed
  • Don't ignore boundaries - Tech debt accumulates
  • Don't over-granularize - Balance lib count
자주 묻는 질문

'앱'과 '라이브러리(libs)'는 무엇인가요?

'앱'은 실행하거나 배포할 수 있는 프로젝트의 부분(웹사이트나 서비스 등)입니다. '라이브러리'는 여러 앱이나 다른 라이브러리가 사용하는 코드 조각입니다(UI 구성 요소나 유틸리티 함수 등).

코드를 정리하는 것이 왜 중요한가요?

대형 프로젝트에서 코드 정리는 혼란을 막아 줍니다. 찾기 쉽고, 코드를 재사용하기 쉬우며, 수정된 부분만 테스트되도록 해서 개발을 빠르고 효율적으로 합니다.

'순환 의존성'이란 무엇인가요?

A 부분이 B 부분을 필요로 하고, B 부분이 다시 A 부분을 필요로 하는 고리를 말합니다. 시스템을 혼란스럽게 하므로 체계를 유지하려면 피해야 합니다.

상세 정보

작성자의 원본 설명

Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.

repo: wshobson/agents

인기도

GitHub 스타
41k
순위
#6682
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬