Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Affected?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hbrancalhao-affected)
---
name: affected
description: Run or report Nx affected projects for lint, test, build, all checks, or the dependency graph. Use for "$affected" workflow requests.
---
# Nx affected workflow
Interpret the text after `$affected` as one of `lint`, `test`, `build`, `all`, or `graph`; default to listing affected projects from `HEAD~1`.
1. Use `npx nx affected --base=HEAD~1` to list projects when no action is given.
2. For one check, run `npx nx affected:<action> --base=HEAD~1`.
3. For `all`, run lint, test, then build, stopping after a failure only when subsequent output would add no value.
4. For `graph`, run `npx nx graph --affected`.
5. Report the command, projects, status, and concise failure locations. Do not fix code unless explicitly asked.