The following steps should be followed when filing a Petition for Writ of Habeas Corpus. 1. Go to Civil on the blue bar located at the top of the screen. 2.Application And Writ Of Habeas Corpus Ad Prosequendum PDF, 204 KB. These files may not be suitable for users of assistive technology. A habeas corpus petition is used to argue that a person is being unlawfully held in custody, and should be released. Petition for Writ of Habeas Corpus. A petition for a writ of habeas corpus may be filed with a superior court judge or with either appellate court. Like many other states, North Carolina has replaced habeas corpus, for the most part, with a Motion for Appropriate Relief. (The district clerk of the county of conviction will fill in this blank.) IN THE COURT OF CRIMINAL APPEALS OF TEXAS. V. ) WRIT OF HABEAS CORPUS. The law in the area is an intricate weave of statute and case law.