lint

Installation
SKILL.md

<working_directory_awareness> Before running any git or build command: check whether your dispatch context specifies a working directory (look for "Working directory:" in your initial prompt). If it does and pwd does not match it, prefix every git invocation with -C <that path> (e.g. git -C /path/to/worktree diff --name-only) and run linters/formatters with the explicit path argument. Linting the wrong directory is a silent failure mode. </working_directory_awareness>

  • No arguments: Lint only files changed in the current working tree (git diff --name-only and git diff --cached --name-only).
  • A file or directory path: Lint only that specific path (e.g., /lint src/utils).
  • --fix: Automatically apply safe fixes. Can be combined with a path (e.g., /lint src/ --fix).
  • --fix without a path: Auto-fix changed files only.

Parse the arguments before proceeding. If --fix is present, set fix mode. If a non-flag argument is present, treat it as the target path.

Related skills
Installs
4
Repository
gsd-build/gsd-2
GitHub Stars
7.4K
First Seen
Mar 22, 2026