mit einem Klick
analyze
// Analyze code, architecture, data flow, or behavior in the vscode-sfdx-hardis VS Code extension. Use when the user asks to understand, trace, audit, or investigate how something works in this codebase.
// Analyze code, architecture, data flow, or behavior in the vscode-sfdx-hardis VS Code extension. Use when the user asks to understand, trace, audit, or investigate how something works in this codebase.
Implement features, bug fixes, or refactors in the vscode-sfdx-hardis VS Code extension. Use when the user asks to write code, fix a bug, add a feature, or make changes to the codebase.
Fix duplicate code issues reported by jscpd in the vscode-sfdx-hardis extension. Use when the user asks to fix, resolve, or address jscpd duplications, copy-paste detector findings, or MegaLinter COPYPASTE_JSCPD errors. Either factorizes the duplicates into shared helpers, or, when factorization would hurt clarity, adds jscpd ignore markers to silence them.
Fix security vulnerabilities reported by Trivy and OSV-Scanner in the vscode-sfdx-hardis extension. Use when the user asks to fix, triage, or address Trivy / OSV-Scanner / MegaLinter REPOSITORY_TRIVY / REPOSITORY_OSV_SCANNER findings. Tries upgrading the affected dependency first, then a yarn resolution override, and only ignores the finding if the vulnerability is genuinely non-exploitable in this extension's context.
Add a new monitoring command to the vscode-sfdx-hardis VS Code extension. Use when the user asks to add, register, or wire up a monitoring command (sf hardis:org:monitor:* or sf hardis:org:diagnose:* shown in the Org Monitoring menu and Monitoring Config Workbench).
Design new features, architectural changes, or refactors for the vscode-sfdx-hardis VS Code extension. Use when the user asks to plan, architect, or propose how to build something new or restructure existing code.
Write or update documentation, tooltips, translations, and help text for the vscode-sfdx-hardis VS Code extension. Use when the user asks to document, describe, explain for users, or update README/translations.
| name | analyze |
| description | Analyze code, architecture, data flow, or behavior in the vscode-sfdx-hardis VS Code extension. Use when the user asks to understand, trace, audit, or investigate how something works in this codebase. |
| compatibility | Designed for Claude Code (or similar products) |
| metadata | {"author":"cloudity","version":"1.0"} |
Analyze code, architecture, or behavior in the vscode-sfdx-hardis extension.
Identify scope - Determine if the analysis targets a specific file, a feature area, a cross-cutting pattern, or the whole extension.
Ask the user when ambiguous - Before diving in, if the request is open to multiple valid interpretations, or if you are uncertain about a key assumption, stop and ask the user using the AskUserQuestion tool. See "When to ask the user" below.
Read relevant sources - Start from the appropriate entry points:
src/extension.tssrc/commands.ts, src/commands/*.tssrc/command-runner.tssrc/hardis-commands-provider.ts, src/hardis-status-provider.ts, src/hardis-plugins-provider.tssrc/hardis-websocket-server.tssrc/webviews/lwc-ui-panel.ts, src/webviews/lwc-ui/modules/s/*/src/utils.ts, src/utils/*.tssrc/utils/pipeline/*.tssrc/utils/gitProviders/*.ts, src/utils/ticketProviders/*.tssrc/i18n/i18n.ts, src/i18n/*.jsonsrc/constants.tsTrace the flow - Follow the data and control flow across components. Key architectural patterns to keep in mind:
hardis-commands-provider.ts, registered in commands.ts, executed via command-runner.tspostMessage / onDidReceiveMessage)t() from src/i18n/i18n.ts, LWC uses SharedMixin with this.i18n / this.t()Report findings - Structure the analysis with:
Analysis tasks often have several valid angles. Don't guess silently — ask. Use the AskUserQuestion tool whenever any of the following apply:
AskUserQuestion tool supports this directly). Do not present open-ended questions when a multiple-choice form would be clearer.(Recommended).AskUserQuestion call (up to 4 questions) rather than asking one-by-one.sfdxHardisConfigHelper.ts is a singleton per workspace. It loads config schema from a remote URL first, with local fallback. It merges global/branch config and exposes fields grouped by CONFIGURABLE_FIELDS / SECTIONS for LWC config editors.select (rendered as VS Code QuickPick) and text (rendered as VS Code InputBox).getPullRequestButtonInfo utility, passes to pipeline LWC as prButtonInfo in initialization data.sf hardis, no &&). LWC-to-extension messages are sanitized; only whitelisted commands and URLs are allowed.src/webviews/lwc-ui/modules/s/ are compiled by the LWC Babel plugin, not TypeScript. Do not apply TypeScript analysis to them.src/worker.ts) runs in a Node.js Worker Thread, not in the VS Code extension host.src/utils.ts) use multithread dispatch when isMultithreadActive() returns true.