build skeleton-based template system