# Fix Sonar

> Fix Sonar is an Agent Skill for testing & quality published in the erxes/erxes repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Fix Sonar, lint, or TypeScript issues in erxes with minimal behavior-preserving edits. Use when addressing static-analysis findings.

- Skill name: `fix-sonar`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/erxes/erxes/blob/HEAD/.agents/skills/fix-sonar/SKILL.md
- Repository: erxes/erxes (4,036 GitHub stars when collected)

## SKILL.md

# Skill: Fix Sonar Issues

## Workflow

1. Fix issue with minimal changes
2. Preserve existing behavior
3. Avoid unnecessary refactors
4. Preserve naming consistency
5. Verify TypeScript types
6. Run focused validation for the touched project, usually
   `pnpm nx lint <project>` and `pnpm nx build <project>`

## Important

- Never rewrite working architecture just to satisfy Sonar
- Prefer minimal safe fixes
- Preserve repository patterns

---

Source: https://www.openparable.com/skill/testing-quality/fix-sonar (OpenParable). Cite the canonical URL above.
