kevinslin/llm
Overview
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.
How this skill works
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.
When to use it
- Before committing or opening a pull request to ensure code style and lint rules pass
- As a pre-merge CI step to enforce consistent formatting and catch static issues early
- During local development to automatically apply formatter rules and reduce manual fixes
- When onboarding a new contributor to validate their environment runs the same checks
Best practices
- Ensure npm scripts lint and format are defined and configured in package.json
- Run the skill from the project root where node modules and config files (ESLint, Prettier) are present
- Commit configuration files (.eslintrc, .prettierrc, etc.) so lint/format behave consistently across environments
- If lint errors persist after auto-fixing, open the reported files and fix logic issues manually, then re-run lint
- Keep devDependencies for ESLint and formatters up to date to avoid rule mismatches
Example use cases
- Pre-commit hook integration that calls the skill to auto-fix formatting and fail commits if lint errors remain
- CI pipeline step that enforces code quality by running the skill and rejecting builds on failure
- Local developer workflow: run the skill to auto-format code and catch eslint rule violations before pushing
- Automated PR bot that runs the skill and posts results or fixes to the pull request comments
FAQ
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.
11 skills
This skill runs lint and format scripts to ensure code quality and consistency, reporting success or automatically fixing issues.
This skill helps you capture and summarize learnings from conversations, turning discussions into actionable notes and study materials.
This skill installs VS Code or Cursor extensions from a local .vsix file using the appropriate CLI, then verifies installation.
This skill helps you write clear, value-driven technical docs by applying editorial principles to create scannable, actionable content.
This skill adds an Apache-2.0 LICENSE file to a repository, auto-filling copyright from git and updating package.json when present.
This skill generates a structured execution plan document with goals, context, technical approach, milestones, and risks for complex development tasks.
This skill summarizes key session learnings and persists them into a learnings log for organized reuse.
This skill helps you craft clear, concise Hacker News titles with technical specificity to improve front-page chances.
This skill guides you through structured JavaScript development, emphasizing quality, security, testing, and maintainable workflows for feature work and fixes.
This skill initializes and references Speculate documentation to ensure project context, coding standards, and workflows are consistently followed across tasks.
This skill updates project documentation to reflect changes, ensuring README.md, DESIGN.md, CLAUDE.md, AGENTS.md, and NEXT_STEPS.md are current.