feat(templates): add support for compound metric in scores
feat(templates): add custom_rule template