clarioncom
Interactive COM development assistant - guides you through creating, building, validating, or deploying Clarion COM components
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactive COM development assistant - guides you through creating, building, validating, or deploying Clarion COM components
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze Clarion code generation traces to find recurring failure patterns. Uses evidence-gating (2+ occurrences) to identify real issues. Suggests improvements for the /clarion skill. Triggers on '/clarion-analyze', 'analyze clarion traces', 'what mistakes am I making'.
Benchmark Clarion code generation quality by running test prompts and scoring the output. Measures improvement over time. Triggers on '/clarion-benchmark', 'benchmark clarion', 'test clarion code quality'.
Convert a Clarion dictionary from one file driver to another (e.g., TopSpeed to SQLite). Exports the dictionary to .dctx, transforms driver settings, regenerates GUIDs, creates a new .dct from blank template, and prepares for import. User must perform the final import manually in the IDE.
Create Clarion IDE addins with proper project structure, templates, and SharpDevelop integration. Use when creating new IDE tools, pads, embeditor toolbar buttons, or menu commands for the Clarion IDE.
Clarion language programming reference with syntax rules, data types, control structures, Windows API integration patterns, and template-authoring gotchas (#AT,
Compile C# COM projects for Clarion using MSBuild with correct paths, error handling, and build verification. Supports public releases with changelog management. Auto-applies for building .NET Framework COM components. Verification steps use parallel execution.
| name | ClarionCOM |
| description | Interactive COM development assistant - guides you through creating, building, validating, or deploying Clarion COM components |
Before proceeding with any task, verify ClarionCOM is installed using the helper script:
powershell -ExecutionPolicy Bypass -Command "& ([Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts\clarioncom-env.ps1') home"
If output is NOT_INSTALLED:
Stop immediately and inform the user:
⚠️ ClarionCOM is not installed.
To install ClarionCOM:
- Download the ClarionCOM distribution ZIP
- Extract to any folder
- Open PowerShell in that folder
- Run:
.\Install-ClarionCOM.ps1After installation, run
/ClarionCOMagain.
If installed: Store the CLARIONCOM_HOME path for use in subsequent script references. All scripts are located at $CLARIONCOM_HOME\scripts\.
This runs in Git Bash on Windows. Use the helper script for Clarion path management to avoid escaping issues.
You are helping the user with Clarion COM development. Follow this workflow:
Before proceeding with any task, check if the Clarion installation path is configured AND exists.
Use the helper script located at $CLARIONCOM_HOME\scripts\clarioncom-env.ps1 (where CLARIONCOM_HOME was resolved in the installation check):
# Read existing path (outputs path or 'NOT_CONFIGURED')
powershell -ExecutionPolicy Bypass -Command "& ([Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts\clarioncom-env.ps1') clarion"
# Save new path (outputs 'OK' on success)
powershell -ExecutionPolicy Bypass -Command "& ([Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts\clarioncom-env.ps1') clarion-write 'C:\Clarion12'"
Note: Use the CLARIONCOM_HOME path resolved from the installation check for all script references.
Workflow:
0.1 Read current path:
powershell -ExecutionPolicy Bypass -Command "& ([Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts\clarioncom-env.ps1') clarion"
0.2 If output is NOT_CONFIGURED:
Use AskUserQuestion to prompt the user:
Continue to step 0.3 to validate before saving.
0.3 Validate path exists:
powershell -Command "if (Test-Path '{ClarionPath}') { 'EXISTS' } else { 'NOT_FOUND' }"
0.4 If NOT_FOUND:
Warn the user:
Use AskUserQuestion:
If user chooses to enter a different path, repeat from step 0.2.
0.5 Save the path (if new or changed):
powershell -ExecutionPolicy Bypass -Command "& ([Environment]::GetFolderPath('ApplicationData') + '\ClarionCOM\scripts\clarioncom-env.ps1') clarion-write '{ClarionPath}'"
0.6 Confirm:
If path was configured or changed:
If path already existed and was valid:
Use the AskUserQuestion tool to determine the type of COM control:
Question: "What type of COM control are you working with?" Header: "Control Type" Options:
Store the selection for use in Step 3 skill routing.
Use the AskUserQuestion tool to present these options:
Question: "What would you like to do with Clarion COM?" Header: "Task" Options:
Use AskUserQuestion again to present additional options:
Question: "What would you like to do?" Header: "More Tasks" Options:
Based on the user's selection, ask follow-up questions:
Ask these questions (can be combined into one AskUserQuestion call or asked conversationally):
Namespace: Auto-derived from control name. Do NOT ask the user for this.
IMPORTANT: Do NOT proceed to implementation until the user has provided a description of what they want. The control name alone is not enough information.
When creating a new COM control, reference files are located in the Template/ subfolder:
Workflow:
Template/ folder to understand the structure and patternsTemplate/ folder remain unchanged as reference examplesToggleButton.cs, IToggleButton.cs, ToggleButton.csproj)Note: The Template/ folder contains reference files only. When creating a new control, these files are used as templates but are not modified.
Before building, check and manage the version using the ClarionCOM scripts:
Check version status:
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\increment-build-version.ps1" read "ProjectPath"
If output is NOT_CONFIGURED:
Initialize version with user's choices:
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\increment-build-version.ps1" init "ProjectPath" "MajorVersion" "MinorVersion"
Increment the build number:
powershell -ExecutionPolicy Bypass -File "$env:APPDATA\ClarionCOM\scripts\increment-build-version.ps1" increment "ProjectPath"
Report the new version:
After gathering the required information, invoke the matching skill based on the control type selected in Step 0.5:
| Task | Skill to Invoke |
|---|---|
| Create new COM control | clarioncom-create |
| Build existing project | clarioncom-build |
| Validate COM control | clarioncom-validate |
| Deploy COM component | clarioncom-deploy |
| Task | Skill to Invoke |
|---|---|
| Create new COM control | clarioncom-webview2-create |
| Build existing project | clarioncom-webview2-build |
| Validate COM control | clarioncom-webview2-validate |
| Deploy COM component | clarioncom-webview2-deploy |
| Task | Skill to Invoke |
|---|---|
| Initialize GitHub Repo | clarioncom-github-init |
| Submit to Marketplace | clarioncom-marketplace-submit |
Note: GitHub initialization and marketplace submission skills work with both Standard and WebView2 controls. Skip the control type selection in Step 0.5 when the user chooses either of these options.
Use the Skill tool to invoke the skill, then provide the gathered context to guide the skill's execution.
clarioncom-create skill has critical patterns that MUST be followed