HLab Executor Skill
Coding Standards (Strict Enforcement)
- •Header: All scripts must start with
#!/usr/bin/env bashandset -euo pipefail. - •Variables: All variables must be quoted:
"${VAR}". - •Paths: Use
"${REPO_ROOT}/...". Never rely on relativecd. - •Logging:
- •Wizard: Use
echofor user prompts. - •Executor: Use
log_info/log_error(fromlib/common.sh) which writes to/var/log/horizon.log. DO NOT spam the user's screen withapt-getoutput.
- •Wizard: Use
- •Idempotency: "Install OLS" script must run successfully even if OLS is already installed (check before install).
Prohibitions
- •NO
readcommands in Executors. If you need input, assume it's in the environment variable sourced from the Wizard. - •NO
curl | bash. All downloads must have a checksum verification or use apt/yum. - •NO
sudoinside scripts. Check forEUID==0at the start.
Integration
- •Always
source "${REPO_ROOT}/lib/common.sh"at the beginning. - •If a "Pro" feature hook is defined in the Spec, add
try_load_module "pro/seo_optimizer"logic.