noma4i/sentry-selfhosted/lint-fix
Claude Code and agent skill by noma4i/sentry-selfhosted
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Fix violations of an eslintPluginScraps rule across the codebase. Use when asked to "fix lint violations", "apply a lint rule", "fix scraps rule errors", "roll out a lint rule", "enforce a rule codebase-wide", or "fix design system lint". Covers manual fixes, autofix, batching, and codemod strategies for large-scale rollouts.
Install
npx vskill@latest install noma4i/sentry-selfhosted/lint-fixSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as noma4i/sentry-selfhosted/lint-fix.
Fix violations of rule $0 on files matching $1.
Arguments
$0— Rule name (e.g.,use-semantic-token,no-core-import)$1— File or glob pattern (e.g.,static/app/components/,static/app/views/alerts/)
Step 1: Understand the Rule
Before fixing violations, know what the fix looks like. Load references/fix-patterns.md for per-rule fix details:
| Rule | Has autofix? | Fix reference | |
|---|---|---|---|
no-core-import | Yes | fix-patterns.md §no-core-import | |
no-token-import | No | fix-patterns.md §no-token-import | |
use-semantic-token | No | fix-patterns.md + token-taxonomy.md | |
restrict-jsx-slot-children | No | fix-patterns.md §restrict-jsx-slot-children |
For use-semantic-token violations, you MUST load references/token-taxonomy.md to know which token category to use for each CSS property.
Step 2: Assess Scale
Count violations before choosing a strategy:
The last line shows the count (e.g., "42 problems (42 errors, 0 warnings)").
Tip: Running eslint on all of static/app/ can take 2+ minutes. Narrow scope to a subdirectory first.
Step 3: Choose Strategy
Auto-fixable rule (any scale)
Always review the diff after --fix before committing. If the rule is partially auto-fixable, run --fix first, then manually fix remaining violations.
Under 100 violations — manual agent fix
- Run eslint on target path
- Fix violations 5-10 files at a time
- Re-run after each batch to verify
- Repeat until clean
100-500 violations — batched fix
- Split target into subdirectories (e.g.,
static/app/views/,static/app/components/) - Fix one subdirectory at a time
- Commit after each batch for reviewable PRs
- Re-run count after each batch to track progress
500+ violations — codemod or staged rollout
- Mechanical transforms: write a temporary jscodeshift codemod or a targeted script using
@typescript-eslint/typescript-estree - Import-path rules:
--fixusually handles these at any scale - Complex transforms: enable the rule as
warnfirst, fix in batches across multiple PRs
Fix Workflow (tight loop)
- Run:
pnpm exec eslint --rule '@sentry/scraps/$0: error' "$1" - Fix violations in reported files
- Re-run on changed files to verify
- Expand scope, repeat
Coordinating Large Changes
- Split PRs to ~50 changed files based on ownership rules in @.github/CODEOWNERS.
- PR title convention:
fix(lint): enforce @sentry/scraps/$0 for <codeowner> - If the rule is new and not yet in
eslint.config.ts, fix all violations first, then enable the rule in a follow-up PR - Run pre-commit on changed files before committing:
``bash .venv/bin/pre-commit run --files <file1> [file2 ...] ``
Verification
After all fixes:
Should report 0 problems.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsource/sentry/.agents/skills/lint-fix/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/noma4i/sentry-selfhosted/lint-fix)