pdf-editor-compdflisted
Install: claude install-skill ComPDFKit/compdf-skills
# PDF Editor — PDF Document Processing CLI Tool
## Platform Detection (Agent must execute automatically)
Before running any CLI command, the Agent must automatically detect the platform (read `env.platform`: `win32`→Windows, `darwin`→Mac; or run `uname -s`). **Do NOT ask the user about their platform.**
| Variable | [Windows] | [Mac] |
|------|-----------|-------|
| `<CLI>` | `{skill_root}/scripts/win/compdf_cli.exe` | `{skill_root}/scripts/mac/compdf_cli` |
| `<LICENSE_PATH>` | `{skill_root}/scripts/win/license_key_windows.xml` | `{skill_root}/scripts/mac/license_key_mac.xml` |
| `<LICENSE_API_BODY>` | `{"email":"<email>"}` | `{"email":"<email>"}` |
| `<ICC_SRGB>` | `{skill_root}/scripts/win/PDFA/sRGB2014.icc` | `{skill_root}/scripts/mac/PDFA/sRGB2014.icc` |
| `<ICC_FOGRA>` | `{skill_root}/scripts/win/PDFA/CoatedFOGRA39.icc` | `{skill_root}/scripts/mac/PDFA/CoatedFOGRA39.icc` |
| Shell syntax | `cmd` + `REM` | `bash` + `#` |
> `{skill_root}` = the absolute path of the directory containing this SKILL.md.
## CLI Download & Installation (Required on first use)
The CLI binary is not included in the Skill package. It is downloaded from the **official ComPDFKit distribution server** (`download.compdf.com`) operated by PDF Technologies, Inc. The Agent must complete the following steps before the first execution:
1. Check whether `<CLI>` exists → skip if it does
2. **Inform the user** that the CLI binary will be downloaded from `download.compdf.com` (official ComPDFKit CDN)
3