A writ of habeas corpus is a legal tool that a person can use to enforce a superior right of possession to a child. In child custody cases, parents or guardians can use the writ of habeas corpus to contest the legality of custody arrangements.Court Order for Conservatorship of the Child(ren). Choose one: Check (1) if you are claiming superior rights under a court order. This guide includes sample forms and instructions for a habeas corpus proceeding in order to enforce a superior right of possession to a child. This guide includes forms and instructions for a letter and affidavit to request that the court register an outofstate custody order in Texas. In Texas, grounds for a writ of habeas corpus in child custody cases can include concerns about the child's safety, wellbeing, or living conditions. This is a petition for a writ of habeas corpus filed on behalf of. XXXXXXXXXXXXXXXXX seeking relief to remedy his unlawful detention. Call 936-647-1540 for tailored legal solutions in state and federal cases.