[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-nx-nx-run-tasks":3,"mdc-8mve7w-key":28,"related-org-nx-nx-run-tasks":407,"related-repo-nx-nx-run-tasks":502},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":18,"repoUrl":19,"updatedAt":20,"license":21,"forks":22,"topics":23,"repo":24,"sourceUrl":26,"mdContent":27},"nx-run-tasks","execute tasks in Nx workspaces","Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"nx","Nx","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fnx.jpg","nrwl",[13,17],{"name":14,"slug":15,"type":16},"Automation","automation","tag",{"name":9,"slug":8,"type":16},26,"https:\u002F\u002Fgithub.com\u002Fnrwl\u002Fnx-ai-agents-config","2026-07-16T06:01:58.30304",null,4,[],{"repoUrl":19,"stars":18,"forks":22,"topics":25,"description":21},[],"https:\u002F\u002Fgithub.com\u002Fnrwl\u002Fnx-ai-agents-config\u002Ftree\u002FHEAD\u002Fskills\u002Fnx-run-tasks","---\nname: nx-run-tasks\ndescription: Helps with running tasks in an Nx workspace. USE WHEN the user wants to execute build, test, lint, serve, or run any other tasks defined in the workspace.\n---\n\nYou can run tasks with Nx in the following way.\n\nKeep in mind that you might have to prefix things with npx\u002Fpnpx\u002Fyarn if the user doesn't have nx installed globally. Look at the package.json or lockfile to determine which package manager is in use.\n\nFor more details on any command, run it with `--help` (e.g. `nx run-many --help`, `nx affected --help`).\n\n## Understand which tasks can be run\n\nYou can check those via `nx show project \u003Cprojectname> --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.\n\n## Run a single task\n\n```\nnx run \u003Cproject>:\u003Ctask>\n```\n\nwhere `project` is the project name defined in `package.json` or `project.json` (if present).\n\n## Run multiple tasks\n\n```\nnx run-many -t build test lint typecheck\n```\n\nYou 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).\n\nExamples:\n\n- `nx run-many -t test -p proj1 proj2` — test specific projects\n- `nx run-many -t test --projects=*-app --exclude=excluded-app` — test projects matching a pattern\n- `nx run-many -t test --projects=tag:api-*` — test projects by tag\n\n## Run tasks for affected projects\n\nUse `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.\n\n```\nnx affected -t build test lint\n```\n\nBy default it compares against the base branch. You can customize this:\n\n- `nx affected -t test --base=main --head=HEAD` — compare against a specific base and head\n- `nx affected -t test --files=libs\u002Fmylib\u002Fsrc\u002Findex.ts` — specify changed files directly\n\n## Useful flags\n\nThese flags work with `run`, `run-many`, and `affected`:\n\n- `--skipNxCache` — rerun tasks even when results are cached\n- `--verbose` — print additional information such as stack traces\n- `--nxBail` — stop execution after the first failed task\n- `--configuration=\u003Cname>` — use a specific configuration (e.g. `production`)\n",{"data":29,"body":30},{"name":4,"description":6},{"type":31,"children":32},"root",[33,41,46,76,83,128,134,146,173,179,188,217,222,260,266,279,288,293,318,324,352],{"type":34,"tag":35,"props":36,"children":37},"element","p",{},[38],{"type":39,"value":40},"text","You can run tasks with Nx in the following way.",{"type":34,"tag":35,"props":42,"children":43},{},[44],{"type":39,"value":45},"Keep in mind that you might have to prefix things with npx\u002Fpnpx\u002Fyarn if the user doesn't have nx installed globally. Look at the package.json or lockfile to determine which package manager is in use.",{"type":34,"tag":35,"props":47,"children":48},{},[49,51,58,60,66,68,74],{"type":39,"value":50},"For more details on any command, run it with ",{"type":34,"tag":52,"props":53,"children":55},"code",{"className":54},[],[56],{"type":39,"value":57},"--help",{"type":39,"value":59}," (e.g. ",{"type":34,"tag":52,"props":61,"children":63},{"className":62},[],[64],{"type":39,"value":65},"nx run-many --help",{"type":39,"value":67},", ",{"type":34,"tag":52,"props":69,"children":71},{"className":70},[],[72],{"type":39,"value":73},"nx affected --help",{"type":39,"value":75},").",{"type":34,"tag":77,"props":78,"children":80},"h2",{"id":79},"understand-which-tasks-can-be-run",[81],{"type":39,"value":82},"Understand which tasks can be run",{"type":34,"tag":35,"props":84,"children":85},{},[86,88,94,96,102,104,110,112,118,120,126],{"type":39,"value":87},"You can check those via ",{"type":34,"tag":52,"props":89,"children":91},{"className":90},[],[92],{"type":39,"value":93},"nx show project \u003Cprojectname> --json",{"type":39,"value":95},", for example ",{"type":34,"tag":52,"props":97,"children":99},{"className":98},[],[100],{"type":39,"value":101},"nx show project myapp --json",{"type":39,"value":103},". It contains a ",{"type":34,"tag":52,"props":105,"children":107},{"className":106},[],[108],{"type":39,"value":109},"targets",{"type":39,"value":111}," section which has information about targets that can be run. You can also just look at the ",{"type":34,"tag":52,"props":113,"children":115},{"className":114},[],[116],{"type":39,"value":117},"package.json",{"type":39,"value":119}," scripts or ",{"type":34,"tag":52,"props":121,"children":123},{"className":122},[],[124],{"type":39,"value":125},"project.json",{"type":39,"value":127}," targets, but you might miss out on inferred tasks by Nx plugins.",{"type":34,"tag":77,"props":129,"children":131},{"id":130},"run-a-single-task",[132],{"type":39,"value":133},"Run a single task",{"type":34,"tag":135,"props":136,"children":140},"pre",{"className":137,"code":139,"language":39},[138],"language-text","nx run \u003Cproject>:\u003Ctask>\n",[141],{"type":34,"tag":52,"props":142,"children":144},{"__ignoreMap":143},"",[145],{"type":39,"value":139},{"type":34,"tag":35,"props":147,"children":148},{},[149,151,157,159,164,166,171],{"type":39,"value":150},"where ",{"type":34,"tag":52,"props":152,"children":154},{"className":153},[],[155],{"type":39,"value":156},"project",{"type":39,"value":158}," is the project name defined in ",{"type":34,"tag":52,"props":160,"children":162},{"className":161},[],[163],{"type":39,"value":117},{"type":39,"value":165}," or ",{"type":34,"tag":52,"props":167,"children":169},{"className":168},[],[170],{"type":39,"value":125},{"type":39,"value":172}," (if present).",{"type":34,"tag":77,"props":174,"children":176},{"id":175},"run-multiple-tasks",[177],{"type":39,"value":178},"Run multiple tasks",{"type":34,"tag":135,"props":180,"children":183},{"className":181,"code":182,"language":39},[138],"nx run-many -t build test lint typecheck\n",[184],{"type":34,"tag":52,"props":185,"children":186},{"__ignoreMap":143},[187],{"type":39,"value":182},{"type":34,"tag":35,"props":189,"children":190},{},[191,193,199,201,207,209,215],{"type":39,"value":192},"You can pass a ",{"type":34,"tag":52,"props":194,"children":196},{"className":195},[],[197],{"type":39,"value":198},"-p",{"type":39,"value":200}," flag to filter to specific projects, otherwise it runs on all projects. You can also use ",{"type":34,"tag":52,"props":202,"children":204},{"className":203},[],[205],{"type":39,"value":206},"--exclude",{"type":39,"value":208}," to exclude projects, and ",{"type":34,"tag":52,"props":210,"children":212},{"className":211},[],[213],{"type":39,"value":214},"--parallel",{"type":39,"value":216}," to control the number of parallel processes (default is 3).",{"type":34,"tag":35,"props":218,"children":219},{},[220],{"type":39,"value":221},"Examples:",{"type":34,"tag":223,"props":224,"children":225},"ul",{},[226,238,249],{"type":34,"tag":227,"props":228,"children":229},"li",{},[230,236],{"type":34,"tag":52,"props":231,"children":233},{"className":232},[],[234],{"type":39,"value":235},"nx run-many -t test -p proj1 proj2",{"type":39,"value":237}," — test specific projects",{"type":34,"tag":227,"props":239,"children":240},{},[241,247],{"type":34,"tag":52,"props":242,"children":244},{"className":243},[],[245],{"type":39,"value":246},"nx run-many -t test --projects=*-app --exclude=excluded-app",{"type":39,"value":248}," — test projects matching a pattern",{"type":34,"tag":227,"props":250,"children":251},{},[252,258],{"type":34,"tag":52,"props":253,"children":255},{"className":254},[],[256],{"type":39,"value":257},"nx run-many -t test --projects=tag:api-*",{"type":39,"value":259}," — test projects by tag",{"type":34,"tag":77,"props":261,"children":263},{"id":262},"run-tasks-for-affected-projects",[264],{"type":39,"value":265},"Run tasks for affected projects",{"type":34,"tag":35,"props":267,"children":268},{},[269,271,277],{"type":39,"value":270},"Use ",{"type":34,"tag":52,"props":272,"children":274},{"className":273},[],[275],{"type":39,"value":276},"nx affected",{"type":39,"value":278}," 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.",{"type":34,"tag":135,"props":280,"children":283},{"className":281,"code":282,"language":39},[138],"nx affected -t build test lint\n",[284],{"type":34,"tag":52,"props":285,"children":286},{"__ignoreMap":143},[287],{"type":39,"value":282},{"type":34,"tag":35,"props":289,"children":290},{},[291],{"type":39,"value":292},"By default it compares against the base branch. You can customize this:",{"type":34,"tag":223,"props":294,"children":295},{},[296,307],{"type":34,"tag":227,"props":297,"children":298},{},[299,305],{"type":34,"tag":52,"props":300,"children":302},{"className":301},[],[303],{"type":39,"value":304},"nx affected -t test --base=main --head=HEAD",{"type":39,"value":306}," — compare against a specific base and head",{"type":34,"tag":227,"props":308,"children":309},{},[310,316],{"type":34,"tag":52,"props":311,"children":313},{"className":312},[],[314],{"type":39,"value":315},"nx affected -t test --files=libs\u002Fmylib\u002Fsrc\u002Findex.ts",{"type":39,"value":317}," — specify changed files directly",{"type":34,"tag":77,"props":319,"children":321},{"id":320},"useful-flags",[322],{"type":39,"value":323},"Useful flags",{"type":34,"tag":35,"props":325,"children":326},{},[327,329,335,336,342,344,350],{"type":39,"value":328},"These flags work with ",{"type":34,"tag":52,"props":330,"children":332},{"className":331},[],[333],{"type":39,"value":334},"run",{"type":39,"value":67},{"type":34,"tag":52,"props":337,"children":339},{"className":338},[],[340],{"type":39,"value":341},"run-many",{"type":39,"value":343},", and ",{"type":34,"tag":52,"props":345,"children":347},{"className":346},[],[348],{"type":39,"value":349},"affected",{"type":39,"value":351},":",{"type":34,"tag":223,"props":353,"children":354},{},[355,366,377,388],{"type":34,"tag":227,"props":356,"children":357},{},[358,364],{"type":34,"tag":52,"props":359,"children":361},{"className":360},[],[362],{"type":39,"value":363},"--skipNxCache",{"type":39,"value":365}," — rerun tasks even when results are cached",{"type":34,"tag":227,"props":367,"children":368},{},[369,375],{"type":34,"tag":52,"props":370,"children":372},{"className":371},[],[373],{"type":39,"value":374},"--verbose",{"type":39,"value":376}," — print additional information such as stack traces",{"type":34,"tag":227,"props":378,"children":379},{},[380,386],{"type":34,"tag":52,"props":381,"children":383},{"className":382},[],[384],{"type":39,"value":385},"--nxBail",{"type":39,"value":387}," — stop execution after the first failed task",{"type":34,"tag":227,"props":389,"children":390},{},[391,397,399,405],{"type":34,"tag":52,"props":392,"children":394},{"className":393},[],[395],{"type":39,"value":396},"--configuration=\u003Cname>",{"type":39,"value":398}," — use a specific configuration (e.g. ",{"type":34,"tag":52,"props":400,"children":402},{"className":401},[],[403],{"type":39,"value":404},"production",{"type":39,"value":406},")",{"items":408,"total":501},[409,423,437,447,459,468,473,483],{"slug":410,"name":410,"fn":411,"description":412,"org":413,"tags":414,"stars":18,"repoUrl":19,"updatedAt":422},"link-workspace-packages","link monorepo workspace packages","Link workspace packages in monorepos (npm, yarn, pnpm, bun). USE WHEN: (1) you just created or generated new packages and need to wire up their dependencies, (2) user imports from a sibling package and needs to add it as a dependency, (3) you get resolution errors for workspace packages (@org\u002F*) like \"cannot find module\", \"failed to resolve import\", \"TS2307\", or \"cannot resolve\". DO NOT patch around with tsconfig paths or manual package.json edits - use the package manager's workspace commands to fix actual linking.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[415,418,421],{"name":416,"slug":417,"type":16},"Configuration","configuration",{"name":419,"slug":420,"type":16},"Engineering","engineering",{"name":9,"slug":8,"type":16},"2026-07-13T06:10:46.151946",{"slug":424,"name":424,"fn":425,"description":426,"org":427,"tags":428,"stars":18,"repoUrl":19,"updatedAt":436},"monitor-ci","monitor Nx Cloud CI pipelines","Monitor Nx Cloud CI pipeline and handle self-healing fixes. USE WHEN user says \"monitor ci\", \"watch ci\", \"ci monitor\", \"watch ci for this branch\", \"track ci\", \"check ci status\", wants to track CI status, or needs help with self-healing CI fixes. Prefer this skill over native CI provider tools (gh, glab, etc.) for CI monitoring — it integrates with Nx Cloud self-healing which those tools cannot access.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[429,432,435],{"name":430,"slug":431,"type":16},"CI\u002FCD","ci-cd",{"name":433,"slug":434,"type":16},"Monitoring","monitoring",{"name":9,"slug":8,"type":16},"2026-07-26T05:48:03.509541",{"slug":438,"name":438,"fn":439,"description":440,"org":441,"tags":442,"stars":18,"repoUrl":19,"updatedAt":446},"nx-generate","generate code with Nx generators","Generate code using nx generators. INVOKE IMMEDIATELY when user mentions scaffolding, setup, structure, creating apps\u002Flibs, or setting up project structure. Trigger words - scaffold, setup, create a new app, create a new lib, project structure, generate, add a new project. ALWAYS use this BEFORE calling nx_docs or exploring - this skill handles discovery internally.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[443,444,445],{"name":14,"slug":15,"type":16},{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16},"2026-07-13T06:10:36.6128",{"slug":448,"name":448,"fn":449,"description":450,"org":451,"tags":452,"stars":18,"repoUrl":19,"updatedAt":458},"nx-import","import repositories into Nx workspaces","Import, merge, or combine repositories into an Nx workspace using nx import. USE WHEN the user asks to adopt Nx across repos, move projects into a monorepo, or bring code\u002Fhistory from another repository.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[453,454,457],{"name":419,"slug":420,"type":16},{"name":455,"slug":456,"type":16},"Migration","migration",{"name":9,"slug":8,"type":16},"2026-07-13T06:10:24.792842",{"slug":460,"name":460,"fn":461,"description":462,"org":463,"tags":464,"stars":18,"repoUrl":19,"updatedAt":467},"nx-plugins","find and add Nx plugins","Find and add Nx plugins. USE WHEN user wants to discover available plugins, install a new plugin, or add support for a specific framework or technology to the workspace.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[465,466],{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16},"2026-07-16T06:01:55.300546",{"slug":4,"name":4,"fn":5,"description":6,"org":469,"tags":470,"stars":18,"repoUrl":19,"updatedAt":20},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[471,472],{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"slug":474,"name":474,"fn":475,"description":476,"org":477,"tags":478,"stars":18,"repoUrl":19,"updatedAt":482},"nx-workspace","explore and understand Nx workspaces","Explore and understand Nx workspaces. USE WHEN answering questions about the workspace, projects, or tasks. ALSO USE WHEN an nx command fails or you need to check available targets\u002Fconfiguration before running a task. EXAMPLES: 'What projects are in this workspace?', 'How is project X configured?', 'What depends on library Y?', 'What targets can I run?', 'Cannot find configuration for task', 'debug nx task failure'.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[479,480,481],{"name":416,"slug":417,"type":16},{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16},"2026-07-13T06:10:44.796062",{"slug":484,"name":484,"fn":485,"description":486,"org":487,"tags":488,"stars":498,"repoUrl":499,"updatedAt":500},"session-debrief","analyze and debrief Polygraph session logs","Analyze the raw logs of past Polygraph sessions and produce structured, rank-ordered debriefs for use in a different session. Use when launched (typically as a background agent) with a ranked list of relevant Polygraph session IDs and a statement of the current task; pulls parent and child transcripts via the polygraph CLI and returns one consolidated debrief.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[489,492,495],{"name":490,"slug":491,"type":16},"Agents","agents",{"name":493,"slug":494,"type":16},"Analysis","analysis",{"name":496,"slug":497,"type":16},"Logs","logs",7,"https:\u002F\u002Fgithub.com\u002Fnrwl\u002Fpolygraph-skills","2026-07-29T05:40:01.783869",8,{"items":503,"total":498},[504,510,516,522,528,533,538],{"slug":410,"name":410,"fn":411,"description":412,"org":505,"tags":506,"stars":18,"repoUrl":19,"updatedAt":422},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[507,508,509],{"name":416,"slug":417,"type":16},{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16},{"slug":424,"name":424,"fn":425,"description":426,"org":511,"tags":512,"stars":18,"repoUrl":19,"updatedAt":436},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[513,514,515],{"name":430,"slug":431,"type":16},{"name":433,"slug":434,"type":16},{"name":9,"slug":8,"type":16},{"slug":438,"name":438,"fn":439,"description":440,"org":517,"tags":518,"stars":18,"repoUrl":19,"updatedAt":446},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[519,520,521],{"name":14,"slug":15,"type":16},{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16},{"slug":448,"name":448,"fn":449,"description":450,"org":523,"tags":524,"stars":18,"repoUrl":19,"updatedAt":458},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[525,526,527],{"name":419,"slug":420,"type":16},{"name":455,"slug":456,"type":16},{"name":9,"slug":8,"type":16},{"slug":460,"name":460,"fn":461,"description":462,"org":529,"tags":530,"stars":18,"repoUrl":19,"updatedAt":467},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[531,532],{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":534,"tags":535,"stars":18,"repoUrl":19,"updatedAt":20},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[536,537],{"name":14,"slug":15,"type":16},{"name":9,"slug":8,"type":16},{"slug":474,"name":474,"fn":475,"description":476,"org":539,"tags":540,"stars":18,"repoUrl":19,"updatedAt":482},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[541,542,543],{"name":416,"slug":417,"type":16},{"name":419,"slug":420,"type":16},{"name":9,"slug":8,"type":16}]