dx-code-analyzer-custom-rule-create
A Salesforce skill for writing custom rules for Salesforce Code Analyzer.
スキルの内容
A Salesforce skill for writing custom rules for Salesforce Code Analyzer. It covers three kinds: regular expression rules for text patterns, PMD rules written in XPath for Apex and metadata XML, and ESLint rules for Lightning Web Components, JavaScript and TypeScript. The agent picks the engine, can start from code the user has selected, writes the rule and its configuration from bundled templates and scripts, checks that Code Analyzer recognises it, and tests it. Typical uses are banning System.debug, catching hard-coded IDs or enforcing naming and API version policies. Running scans and general configuration are other skills.
できること
- Create regex rules for Code Analyzer
- Write PMD XPath rules for Apex or metadata
- Add ESLint rules for LWC and JavaScript
- Test that a custom rule is picked up
概要
- 公開元
- Salesforce
- ツール
- Salesforce
インストール
- すべてのクライアントに追加するには、次のコマンドを実行します:
npx skills add forcedotcom/sf-skills
含まれるファイル
- assets/pmd-ruleset-template.xml
- examples/metadata-xml-example-fields-api.md
- examples/metadata-xml-example-flows.md
- examples/metadata-xml-example-permissions.md
- examples/metadata-xml-examples.md
- examples/regex-examples.md
- examples/xpath-examples.md
- references/advanced-pmd-patterns.md
- references/apex-ast-reference.md
- references/eslint-custom-plugins.md
- references/eslint-rules-discovery.md
- references/eslint-tier2-configurable.md
- references/eslint-tier3-custom-plugins.md
- references/metadata-xml-rules.md
- references/regex-rule-schema.md
- references/troubleshooting.md
- references/xpath-patterns-governor-limits.md
- references/xpath-patterns-method-calls.md
- references/xpath-patterns-security.md
- references/xpath-patterns-structure.md
- references/xpath-patterns.md
- scripts/create-pmd-rule.js
- scripts/create-regex-rule.js
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
| 項目 | 内容 | 出典 |
|---|---|---|
| 種類 | スキル | |
| ツール | Salesforce | |
| 公開元 | Salesforce | 出典 |
| 公式かどうか | 公式Salesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | 出典 |
| APIキーまたはサインインが必要 | ドキュメントに記載なし | |
| スクリプトを含む | はい | 出典 |
| プラットフォーム | ドキュメントに記載なし | |
| AIクライアント | ドキュメントに記載なし | |
| ライセンス | Apache-2.0 | 出典 |
| 料金 | ドキュメントに記載なし | |
| 活動状況 | 最終コミット 2026年11月6日GitHubスター 1,156ダウンロード数のデータなし(npm・PyPIで未公開) | 出典 |
| リンク | リポジトリ |
出典
- スキルファイル(SKILL.md)github.com/forcedotcom/sf-skills2026年11月10日
- README(README.md)github.com/forcedotcom/sf-skills2026年11月13日
- ライセンスファイル(LICENSE.txt)github.com/forcedotcom/sf-skills · 根拠となる項目:ライセンス, 公開元2026年11月13日
- Webページdeveloper.salesforce.com · 根拠となる項目:公式かどうか2026年11月13日
- リポジトリ内のフォルダ(dx-code-analyzer-custom-rule-create)github.com/forcedotcom/sf-skills · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/forcedotcom/sf-skills · 根拠となる項目:活動状況, ライセンス2026年11月11日