/dvera:ct-make-conffrom dvera
Use this skill to generate the conversion analysis `.conf` and toolchain metadata (`.ini`, `.info`) from extracted target macros and `compiler_info`, and to record fingerprints.
Ships in dvera. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Primary request: Use this skill when generating the conversion toolchain configuration files (conf, ini, info) from extracted macros and compiler info.
If the CT installation path is missing or validation fails, do not continue. Show the notice below.
The CT installation could not be verified.
Provide the installation path to continue.
[Installation check]
• Checked CT installation path: {ctHome or "not configured"}
• Requirement: CT 2026.06 or later
• Note: A valid CT license is required to run CT.
[If CT is already installed]
• Please provide the full path to the CT installation folder.
Example: C:\Program Files\Suresoft\CT 2026
[If CT is not installed]
• Product and installation support: [email protected]
Entry: status is macros_extracted and toolchain_mode=conversion
Input: state.json -> top-level target_macros_path, top-level compiler_info_path, compiler_info, conf_mapping (artifacts.target_macros_path and artifacts.compiler_info_path are mirror or compatibility fields)
Output: .conf (and .ini, .info in metadata mode), state.json (status=conf_generated, fingerprints)
Execution mode: In-memory state when called through ct-orchestrator / one-time state.json read in standalone mode
Standalone guard: In standalone mode, read state.json and confirm that status is macros_extracted.
state.json is missing or status is not macros_extracted -> stop immediately and tell the user to run ct-init-project first to complete project preparationtoolchain_mode is host or unresolved -> stop immediately and tell the user that this phase runs only in conversion modetarget_macros_path, top-level compiler_info_path, compiler_info, conf_mapping), conf generation cannot proceedPhase 1 path contract:
target_macros_path and compiler_info_pathartifacts.target_macros_path and artifacts.compiler_info_path are still kept as mirror or compatibility fields in the cross-phase state contractproject_inputs, while compiler_info remains the original conversion analysis recordsource_info.language chosen in Phase 1 is passed through to conf_mapping.language. Allowed values are only "C" and "CPP"; normalize C++ to "CPP" and never use mixed state-language tokens such as C_CPP or both.Bootstrap variables (acquired in Phase 0; end-to-end entry via ct-init-project, resume entry via ct-orchestrator):
{ctPython}: Python executable path confirmed in Phase 0, based on ct_get_env.pythonPath{ctTool}: ct_tool.py execution path confirmed in Phase 0. Used for ct_list_host_toolchains in LinuxskillResourceRoot: autoconfig path from ct_get_env.skillResourceRootmetaDir: metadata path from ct_get_env.metaDirsessionsBase: workspace base path from {baseDir}/sessions/ (derived)state.json, compiler_info.json, observations.jsonl, .conf, .ini, and .infojson.dump or json.dumpsstdout, stderr, pipes, or redirects, handle everything as UTF-8$env:PYTHONIOENCODING="utf-8" before running Python tools directly. This avoids CP949 decoding delays when metadata matching failures emit Korean stderr.python -c. When paths, JSON, and Python code are nested in one string, encoding and escaping failures become much more likelystate.json, JSON payloads, and logs or metadata as absolute paths, and normalize to / when it is safe to do so/ normalization for paths passed to external process argv. Use argv lists by default, and only use / normalization when the target tool is known to accept it safelyLF as the default line ending for newly created internal management files such as state.json, compiler_info.json, and observations.jsonl. Preserve existing line endings when editing an existing filejson.dump(..., ensure_ascii=False) with tempfile.NamedTemporaryFile(delete=False, encoding="utf-8") or tempfile.gettempdir(), then pass it as ct_tool.py call ... --json "@{path}".
@- stdin only as a secondary input channel.ConvertTo-Json is a Windows-only auxiliary option; Bash heredoc/cat examples must not be the default payload path.argv lists over one-line string payloads.Core sequence:
state.json and ask the user if it is missing
conversion-only. Do not run it in host mode__VERSION__ or __GNUC__, then choose the closest higher version among the built-in template candidates 4.7, 5.3, and 9.5. Those three are the full set. There is no need to search the system{ctPython} {ctTool} call ct_list_host_toolchains --json "{}" to list host toolchains, obtain the GCC version and conf path, and use that conf as the host template for conf_merger.py{skillResourceRoot} returned by ct_get_env -> Path A ({skillResourceRoot}/engine/conf_merger.py) or Path B (manual assembly){ctPython} {skillResourceRoot}/engine/conf_merger.py -t {macros} --os {OS} --lang {C|CPP} --ver {host_gcc} --std {std} -o {out}
--meta-dir {metaDir} --compiler-info {info} --compiler-type {type} --vendor {conf_mapping.vendor} --compiler-name {conf_mapping.compiler_name} --arch {conf_mapping.target} --compiler-version {conf_mapping.version} --lang {language}conf_mapping explicitly. Do not rely on compiler_info fallback. --arch is the CSV target key (MSP430, ARM, etc.), not an MCU or ISA variant such as MSP430X.--lang must come from the Phase 1 single-language value. Do not rescan source extensions or infer the language again in Phase 2.
4.5. ini resolve (required): in metadata mode, conf_merger copies it automatically. In legacy mode, resolve it separately with {skillResourceRoot}/engine/meta_loader.py using canonical guidance from the installed CT/DVERA environment.
4.6. Validate toolchain_kind (required): confirm that the copied ini's toolchain_kind matches the selected host GCC version. Correct it when mismatched:4.7->47, 4.9->49, 5.3->53, 9.5->954.7->47_64, 4.9->49_64, 5.3->53_64, 9.5->95_64, 11.5->115_64toolchain_kind values, so you must validate this fieldstate.json (top-level conf_path, host_gcc, artifacts.conf_path, artifacts.meta_ini_path, artifacts.meta_info_path, fingerprints). All paths must be absoluteCT function: ct_list_host_toolchains() - used on Linux to retrieve host GCC version and conf path. Not needed on Windows
{ctPython} {ctTool} call ct_list_host_toolchains --json "{}"
{ totalCount, toolchains: [{ id, cCompilerPath, cConfFilePath, cppCompilerPath, cppConfFilePath }] }cCompilerPath or cppCompilerPath, and use cConfFilePath or cppConfFilePath as the host template for conf_merger.pyForbidden:
gcc --version, which gcc, PATH search, or anything similar. Select host GCC only from the installed product templates under {skillResourceRoot}/data/templates/Windows/ (4.7, 5.3, 9.5). The system does not need a separately installed GCCconf_merger.py is a tool that receives the host version through --ver; it is not a host-environment discovery tool--ver. Use only the host GCC version#NAME or #ID. Use only the script matching result.ini file directly. Use only the file automatically copied from metadata by {skillResourceRoot}/engine/conf_merger.pytoolchain_kind, only host GCC version mapping correction is allowed. Do not assign arbitrary values. Only correct it using the OS-specific mapping table in step 4.6. Linux requires the _64 suffix{metaDir}/legacy/. Old paths contain mismatched values such as stale toolchain_kind. Always use {metaDir}/{Vendor}/{Compiler}/.ini still requires metadata resolve. Assemble only the conf manually. Resolve ini with {skillResourceRoot}/engine/meta_loader.py. If resolve fails, report it to the user{metaDir}/FreeSoftware/gcc/*) as .ini/.info source in conversion mode. Host GCC metadata registers the toolchain as a host toolchain in Phase 3 ct_create_toolchain, which completely breaks conversion. The .conf file uses a host GCC template (for macro merging), but the .ini/.info pair must come from the target vendor directory ({metaDir}/{Vendor}/{Compiler}/). If target vendor metadata cannot be resolved, stop and ask the user. Never substitute with FreeSoftware/gcc.meta_loader.find_best_match, always translate conf_mapping.compiler_name through COMPILER_TYPE_TO_VENDOR. Do not pass raw executable names like cl430, armcc, or arm-none-eabi-gcc. The CSV stores normalized compiler column values (Compiler, gcc, DS5-armcc, ...). Mismatches return NO_MATCH, which tempts AI into the forbidden host-GCC fallback above.conf_merger.py calls, do not omit --vendor, --compiler-name, --arch, or --compiler-version. Assuming --compiler-info plus --compiler-type is enough can reintroduce NO_MATCH when target_arch differs from the CSV target key.Role separation (conversion mode): the two artifact families serve different roles. Do not mix them up.
| Artifact | Role | Source |
|---|---|---|
.conf | Macro set consumed by analysis preprocessor | Target macros (Phase 1) + host GCC template from {skillResourceRoot}/data/templates/Windows/gcc_{ver}/ |
.ini / .info | Metadata that registers the toolchain as a conversion toolchain | Target vendor metadata at {metaDir}/{Vendor}/{Compiler}/{Vendor}_{Compiler}_{Version}_{Target}_{HostOS}_{Language}.{ini,info} |
If metadata matching selects a CSV entry whose language is C_CPP, that value is only the metadata entry key and may appear in the selected file basename. State language fields still store only "C" or "CPP".
{
"status": "conf_generated",
"target_macros_path": "{abs_target_macros_path}",
"compiler_info_path": "{abs_compiler_info_path}",
"conf_path": "{abs_conf_path}",
"host_gcc": {
"version": "5.3",
"os": "Windows|Linux",
"template_path": "{skillResourceRoot}/data/templates/... or the conf path returned by ct_list_host_toolchains on Linux",
"selection_reason": "target EDG gcc X.X -> host Y.Y"
},
"artifacts": {
"target_macros_path": "{abs_target_macros_path}",
"compiler_info_path": "{abs_compiler_info_path}",
"conf_path": "{abs_conf_path}",
"meta_ini_path": "{abs_ini_path}",
"meta_info_path": "{abs_info_path}"
},
"fingerprints": { "conf_hash": "sha256:{16hex}" }
}
Note: host_gcc must be an object. Do not use a string such as "5.3". fingerprints.conf_hash must include the sha256: prefix.
Retention rule: The Phase 2 state must keep the Phase 1 top-level target_macros_path and compiler_info_path. validate_phase2() still reads those locations directly
Mirror rule: artifacts.target_macros_path and artifacts.compiler_info_path are mirrors for JSON example alignment and downstream phase compatibility
Required: artifacts.meta_ini_path must be set. If it is missing, ct_create_toolchain in Phase 3 registers the result as a host toolchain and analysis fails. In metadata mode, conf_merger.py copies it automatically. In legacy mode, resolve it separately in step 4.5
Required: artifacts.meta_info_path must also be set. ct_create_toolchain now requires infoFilePath. The .info file is located in the same metadata directory as the .ini file, for example {Vendor}_{Compiler}_{Version}_{Target}_{HostOS}_{Language}.info
Host overrides, compiler corrections, metadata naming, and legacy ini resolution are supplied with the installed CT/DVERA environment. Use its canonical documentation when available. If it is unavailable, do not generate or modify CT configuration artifacts; report the prepared inputs and direct the user to [email protected].
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub suresofttechnologies/dvera-plugin --plugin dvera14 skills in this plugin
/ct-analysis-loopUse this skill during the CT project analysis phase to classify errors, repeat conf or toolchain fixes, and continue until analysis succeeds./ct-extract-macroUse this skill to extract the target compiler's compiler-default macros and build the shared environment analysis fields used during CT project preparation./ct-init-projectUse this skill to run the CT full pipeline from Phase 0 initial setup through macro extraction, conf and toolchain creation, analysis, testing, and observation-record collection, or to perform only the project-preparation stage./ct-kb-updateUse this skill to append single-change attempt results to `observations.jsonl`. It is called by `ct-init-project` or `ct-orchestrator` immediately after the CT-apply full pipeline completes./ct-openLaunch CT with the current workspace. Use when you need to inspect the project visually in CT IDE during agent work./ct-orchestratorUse this skill to continue an existing `state.json` session and decide whether to resume `ct-init-project`, `ct-analysis-loop`, or `ct-test-loop` from the current status.