Imported from proj-airi/game-playing-ai-dome-keeper (
.agents/skills/lint/SKILL.md). Install upstream withnpx skills add proj-airi/game-playing-ai-dome-keeper --skill lint. Copyright stays with the author.
Lint
Overview
Run ESLint auto-fix and TypeScript typecheck after file changes so the repo stays consistent and clean. Only run when this conversation has changed files in the workspace.
Workflow
- Check whether files were modified in this repo during the current response.
- If no files changed, skip linting.
- If files changed:
- Run ESLint with auto-fix via pnpm:
- Preferred:
pnpm run lint --fix - Fallback:
pnpm exec eslint --fix .
- Preferred:
- Run typecheck:
- Preferred:
pnpm run typecheck - Fallback:
pnpm exec tsc -p tsconfig.json
- Preferred:
- Report the lint/typecheck results succinctly in the response.
Notes
- If
pnpm run lint --fixfails because the script doesn't exist, usepnpm exec eslint --fix .. - If
pnpm run typecheckfails because the script doesn't exist, usepnpm exec tsc -p tsconfig.json. - If ESLint or typecheck report errors, report them and stop; do not silently ignore.