Parse package definition and skeleton function