# Dx code analyzer custom rule create

> Create custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript).

- Page: https://youraiskill.com/skill/forcedotcom-dx-code-analyzer-custom-rule-create
- What it does: Create custom Code Analyzer rules for Regex (pattern matching), PMD (XPath/AST for Apex and metadata XML), and ESLint (LWC/JavaScript/TypeScript). Use when users want to enforce coding standards, ban patterns, detect hardcoded values, govern metadata, or add rules not in the built-in set. TRIGGER when: user says 'create a rule', 'ban System.debug', 'enforce naming convention', 'detect hardcoded ID
- Niches: javascript, frontend, coding
- Licence: Apache-2.0
- Status: Free on GitHub: not rated 7 or higher by Claude yet, or it does something a person should look at first (for example runs programs or calls the internet), or its licence or authorship needs a look. Never sold.
- Contents: instructions plus scripts

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
