This is the rule authoring companion to the Code Analyzer suite. It walks you through creating custom rules when the built-in set doesn't cover your org's patterns: banning System.debug, catching hardcoded IDs, enforcing metadata standards, or writing XPath queries against the Apex AST. The skill is opinionated about process (always dump the AST before writing XPath, never hand-edit the YAML after the scripts run) because the failure modes are specific and painful. It handles regex rules, PMD rules for Apex and metadata XML, and ESLint setup for LWC. If you're enforcing team-specific guardrails beyond what ships with Code Analyzer, this is the one that gets you there without trial-and-error escaping hell.
npx -y skills add forcedotcom/sf-skills --skill dx-code-analyzer-custom-rule-create --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
juliusbrussee/caveman
mattpocock/skills
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills