When a project uses trunk-based workflow (BRANCH_DEV not configured) or leaves PLATFORM_COMPLIANCE_NOTES / CONVENTIONS_NOTES undefined, sync.sh warns about unresolved placeholders in the generated skill files. This affects any project that uses the default template configuration, since those keys are commented out by default. The fix is to wrap these placeholder references in conditional blocks so they are only included when the corresponding config values are defined.