一键导入
lint
Run all configured linters across the full project, including whole-project-only linters. Use when user says "/lint", "lint project", or "run linters".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run all configured linters across the full project, including whole-project-only linters. Use when user says "/lint", "lint project", or "run linters".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage Apple Reminders using remindctl CLI. Use when user asks about reminders, todos, tasks, or says "/reminders". Handles listing, creating, completing, editing, and deleting reminders and reminder lists.
Configure per-project linting for the code-lint plugin. Detects languages and linters, interviews the user, writes config. Use when user says "/setup-lint".
| name | lint |
| description | Run all configured linters across the full project, including whole-project-only linters. Use when user says "/lint", "lint project", or "run linters". |
| tools | Bash, Read |
Run configured linters across the full project. Includes whole-project-only linters (brakeman, clippy) that don't run in the PostToolUse hook.
/lint — Run all enabled linters on the full project/lint ruby — Run only Ruby linters/lint reek — Run only the reek linter/lint --fix — Run autofix on all files first, then lintArguments after /lint are parsed as:
--fix → run autofix commands before lintingPROJECT_DIR="${CLAUDE_PROJECT_DIR:-$(pwd)}"
PROJECT_HASH=$(echo "$PROJECT_DIR" | tr '/' '-' | sed 's/^-//')
CONFIG_FILE="$HOME/.claude/code-lint/$PROJECT_HASH/config.json"
If no config exists, tell the user to run /setup-lint first.
Read and parse the config JSON.
Parse arguments to determine what to run:
--fix → enable autofix modeFor each enabled linter in scope:
Find all matching files (using file_patterns), excluding paths that match exclude_patterns. Run the linter on all matching files at once (most linters accept multiple files or directories).
cd "$PROJECT_DIR"
# If --fix mode, run autofix first
bundle exec rubocop -A --fail-level=error .
# Then run the lint check
bundle exec rubocop .
Run these against the project root:
cd "$PROJECT_DIR"
bundle exec brakeman -q
cargo clippy -- -D warnings
For each linter, capture:
Group results by language and linter:
## Lint Results
**Project:** /path/to/project
### Ruby (42 files)
**rubocop** — 3 issues
app/models/user.rb:15:5 Style/GuardClause: Use guard clause
app/models/user.rb:28:3 Metrics/MethodLength: Method too long (15/10)
app/services/auth.rb:8:1 Layout/EmptyLines: Extra blank line
**reek** — 1 issue
app/models/user.rb:10 FeatureEnvy: process refers to config more than self
**brakeman** — No issues
### Shell (5 files)
**shellcheck** — No issues
---
**Summary:** 4 issues found (3 rubocop, 1 reek)
If issues were found and autofix is available:
Read the relevant reference docs for fix patterns:
${CLAUDE_PLUGIN_ROOT}/references/ruby-patterns.md${CLAUDE_PLUGIN_ROOT}/references/js-ts-patterns.md${CLAUDE_PLUGIN_ROOT}/references/python-patterns.md${CLAUDE_PLUGIN_ROOT}/references/go-patterns.md${CLAUDE_PLUGIN_ROOT}/references/rust-patterns.md${CLAUDE_PLUGIN_ROOT}/references/markdown-patterns.md${CLAUDE_PLUGIN_ROOT}/references/html-patterns.md${CLAUDE_PLUGIN_ROOT}/references/shell-patterns.mdIf CLAUDE_PLUGIN_ROOT is not set, find references relative to this SKILL.md (two directories up: ../../references/).
/setup-lint