lint

v2026.09.25

Lint, format, and optionally commit changes

GitHub
安装命令
npx skhub add seabbs/lint
Markdown
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

  1. Determine scope based on $ARGUMENTS (commit/pr/all/default)

Phase 2: Linting and Fixing

  1. Identify and run available linting tools for detected languages
  2. Check against project standards (80 char limit, no trailing whitespace, no spurious blank lines)
  3. Apply auto-formatting where possible
  4. Report issues that cannot be auto-fixed

Phase 3: Verification (if issues were fixed)

  1. If fixes were applied, run tests to ensure nothing broke
  2. Re-stage any fixed files

Phase 4: Commit Creation (only for "commit" scope)

  1. If scope is "commit" and all checks pass:
    • Create commit with format: style(scope): description

Phase 5: Final Report

  1. 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.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.25

发布时间

2026年9月25日

分类

未分类

许可证

MIT

源路径

plugins/dev-workflow/skills/lint

默认分支

main

最新提交

cf859a3

Tree SHA

5c81048