ct-extract-macrolisted
Install: claude install-skill SuresoftTechnologies/dvera-plugin
# /ct-extract-macro - Environment Analysis and Macro Extraction (Phase 1)
**Primary request**: Use this skill when rerunning macro extraction and shared environment analysis in Phase 1, or when correcting the `toolchain_mode` decision.
## CT Installation Check Failure
If the CT installation path is missing or validation fails, do not continue. Show the notice below.
```text
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: bizcenter@suresofttech.com
```
**Entry**: `status` is `pending` or missing
**Input**: User source project path
**Output**: pre-Phase3 state when `host` is confirmed, or `target_macros.txt`, `compiler_info.json`, and `state.json` (`status=macros_extracted`) when `conversion` is confirmed
**Execution mode**: In-memory state when called through `ct-orchestrator` / one-time `state.json` read in standalone mode
**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