lint
Installation
SKILL.md
Lint, format, and optionally commit changes.
Arguments: $ARGUMENTS (optional scope)
- commit: Lint only staged files for commit
- pr: Lint all files changed in the current PR
- all: Lint the entire codebase
- If no argument provided:
- If in a PR branch: defaults to 'pr'
- Otherwise: defaults to 'commit'
Phase 1: Scope Determination
- Determine scope based on $ARGUMENTS (commit/pr/all/default)
Phase 2: Linting and Fixing
- Identify and run available linting tools for detected languages
- Check against project standards (80 char limit, no trailing whitespace, no spurious blank lines)
- Apply auto-formatting where possible
- Report issues that cannot be auto-fixed
Phase 3: Verification (if issues were fixed)
- If fixes were applied, run tests to ensure nothing broke
- Re-stage any fixed files
Phase 4: Commit Creation (only for "commit" scope)
- If scope is "commit" and all checks pass:
- Create commit with format:
style(scope): description
- Create commit with format:
Phase 5: Final Report
- Summary of issues found, fixed, and any remaining issues
If any blocking issues are found, list them clearly and stop before committing.
Auto-Exit When Standalone
IMPORTANT: If this command is being run as a standalone request, automatically exit after completing all phases successfully.
Related skills
More from seabbs/skills
issue-reply
Post a helpful reply to a GitHub issue
8literature-search
Search local bibliography files and Paperpile for relevant papers
7pr
Create a pull request based on a GitHub issue with analysis, implementation, QA, and PR creation
6commit
Create a well-structured commit with conventional format and proper git identity
6preprint-search
Search for new preprints in infectious disease modelling from arXiv, medRxiv, and bioRxiv
6issue-summary
Summarise a GitHub issue conversation with focus on the last message
6