home / skills / kevinslin / llm / dev.lint
This skill runs lint and format scripts to ensure code quality and consistency, reporting success or automatically fixing issues.
npx playbooks add skill kevinslin/llm --skill dev.lintReview the files below or copy the command above to add this skill to your agents.
---
name: dev.lint
description: lint project
version: 0.0.0
---
Run the following scripts in order:
```
npm run lint
npm run format
```
Print "success" if both are successful. If you encounter errors, try to fix the errors and run lint again to verify errors are fixed
This skill runs linting and formatting workflows for a JavaScript project and reports status. It executes the project's lint and format npm scripts, attempts automated fixes when possible, and returns a clear success or failure result. The goal is to ensure code quality checks pass before commits or CI runs.
The skill runs npm run lint followed by npm run format in the project root. If lint reports errors that can be auto-fixed, the skill applies fixes, reruns lint, and verifies the errors are resolved. If both commands complete without error it prints "success"; otherwise it surfaces remaining issues and suggests remediation steps.
What does the skill print when all checks pass?
It prints "success" when both lint and format complete without errors.
What happens if lint reports errors that cannot be auto-fixed?
The skill reports the remaining lint errors and suggests opening the affected files to fix logic or rule violations, then re-run lint to verify.