SKILL.md
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 echo for user prompts. - Executor: Use loginfo/logerror (from lib/common.sh) which writes to /var/log/horizon.log. DO NOT spam the user's screen with apt-get output.
- 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
tryloadmodule "pro/seo_optimizer"logic.