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

nx-run-tasks

하는 일

이 스킬은 Nx 작업 공간에서 빌드, 테스트, 린트 같은 일반적인 개발 작업을 실행합니다. 모노레포에서 일하면서 올바른 작업을 빠르게 실행하려는 개발자를 위한 것입니다.

사용하는 경우

  • ✓Nx 작업 공간의 한 프로젝트에 대해 테스트, 빌드, 린트를 실행하고 싶을 때.
  • ✓변경의 영향을 받는 프로젝트만이든 여러 프로젝트 전체든 작업을 실행하고 싶을 때.
  • ✓프로젝트의 개발 서버를 시작해야 할 때.

스킬 링크

https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(tooling)/nx-run-tasks/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“이 Nx 작업 공간에서 제 변경이 영향을 준 프로젝트의 테스트만 실행해 주실 수 있나요?”

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

작동 방식

에이전트는 각 프로젝트가 어떤 작업을 가지고 있는지 확인한 뒤, 단일 작업, 작업 묶음, 또는 영향을 받은 프로젝트를 알맞은 Nx 명령으로 실행합니다. 실행 범위를 특정 프로젝트로 제한하고 병렬 실행 수를 조절할 수 있습니다.

기술 내용 (원본 SKILL.md)

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

You can run tasks with Nx in the following way.

Keep in mind that you might have to prefix things with npx/pnpx/yarn if the user doesn't have nx installed globally. Look at the package.json or lockfile to determine which package manager is in use.

For more details on any command, run it with --help (e.g. nx run-many --help, nx affected --help).

Understand which tasks can be run

You can check those via nx show project <projectname> --json, for example nx show project myapp --json. It contains a targets section which has information about targets that can be run. You can also just look at the package.json scripts or project.json targets, but you might miss out on inferred tasks by Nx plugins.

Run a single task

nx run <project>:<task>

where project is the project name defined in package.json or project.json (if present).

Run multiple tasks

nx run-many -t build test lint typecheck

You can pass a -p flag to filter to specific projects, otherwise it runs on all projects. You can also use --exclude to exclude projects, and --parallel to control the number of parallel processes (default is 3).

Examples:

  • nx run-many -t test -p proj1 proj2 — test specific projects
  • nx run-many -t test --projects=*-app --exclude=excluded-app — test projects matching a pattern
  • nx run-many -t test --projects=tag:api-* — test projects by tag

Run tasks for affected projects

Use nx affected to only run tasks on projects that have been changed and projects that depend on changed projects. This is especially useful in CI and for large workspaces.

nx affected -t build test lint

By default it compares against the base branch. You can customize this:

  • nx affected -t test --base=main --head=HEAD — compare against a specific base and head
  • nx affected -t test --files=libs/mylib/src/index.ts — specify changed files directly

Useful flags

These flags work with run, run-many, and affected:

  • --skipNxCache — rerun tasks even when results are cached
  • --verbose — print additional information such as stack traces
  • --nxBail — stop execution after the first failed task
  • --configuration=<name> — use a specific configuration (e.g. production)
자주 묻는 질문

Nx를 설치해야 하나요?

꼭 그렇지는 않습니다. 잠금 파일에 따라 npx, pnpx, yarn을 쓸 수 있습니다.

사용할 수 있는 작업은 어떻게 찾나요?

Nx로 프로젝트 설정을 읽으며, 플러그인이 추론한 작업도 함께 찾습니다.

코드 생성용인가요?

아니요. 코드 생성은 별도의 Nx 생성기 스킬이 담당합니다.

상세 정보

작성자의 원본 설명

Execute build, test, lint, serve, and other tasks in an Nx workspace using single runs, run-many, and affected commands. Use when user says "run tests", "build my app", "lint affected", "serve the project", "run all tasks", or "nx affected". Do NOT use for code generation (use nx-generate) or workspace configuration (use nx-workspace).

repo: tech-leads-club/agent-skills

인기도

GitHub 스타
7.1k
순위
#13573
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬