skills/legal/habeas-corpus-petition/SKILL.md
Drafts federal and state habeas corpus petitions challenging unlawful detention on constitutional grounds under 28 U.S.C. §§ 2241, 2254, 2255 with AEDPA compliance, exhaustion tracking, and grounds-for-relief framing. Use when drafting habeas petitions, post-conviction relief filings, or challenging custody on constitutional grounds. Trigger keywords: habeas corpus, writ of habeas corpus, AEDPA, post-conviction relief, unlawful detention, exhaustion of remedies, ineffective assistance of counsel.
npx skillsauth add casemark/skills habeas-corpus-petitionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Produces a habeas corpus petition challenging lawfulness of detention, formatted for federal or state court filing with AEDPA-compliant arguments.
| Element | Federal | State | |---------|---------|-------| | Court | U.S. District Court, [District] | [State court of competent jurisdiction] | | Petitioner | Full legal name, prisoner ID, facility | Same | | Respondent | Warden/superintendent with custody | Per state rules | | Case No. | Existing or "To Be Assigned" | Per local rules | | Statutory basis | 28 U.S.C. § 2254 / § 2241 / § 2255 | State habeas statute |
Single paragraph: petitioner identity, custody location, conviction date, charges, sentence, constitutional challenge.
| Petition Type | Statute | Respondent | Venue | |---------------|---------|------------|-------| | State prisoner → federal court | § 2254 | State custodial officer | District of confinement | | Federal prisoner → sentence execution | § 2241 | Warden | District of confinement | | Federal prisoner → conviction | § 2255 | United States | Sentencing court |
Address constitutional basis (Art. I, § 9; relevant amendments), AEDPA limitations period (§ 2244(d)), and successive petition bars (§ 2244(b)).
Chronological narrative covering:
| Ground | Trial Court | Intermediate Appeal | State Supreme Court | Status | |--------|-------------|---------------------|---------------------|--------| | 1 | [filing/date] | [case no./date] | [case no./date] | Exhausted / Excused |
If unexhausted, argue excuse: absence of corrective process, futility, or ineffective process. Address mixed-petition issues per Rose v. Lundy, 455 U.S. 509.
Number each ground separately. Per ground:
GROUND [N]: [Constitutional right violated]
Constitutional provision: [Amendment / clause]
Clearly established law: [Controlling SCOTUS precedent]
Facts: [Specific record citations]
State court disposition: [How state court ruled]
AEDPA showing: [Contrary to / unreasonable application — § 2254(d)(1)-(2)]
Prejudice: [Substantial and injurious effect on verdict]
Common grounds and controlling authority:
| Ground | Key Precedent | |--------|---------------| | Ineffective assistance of counsel | Strickland v. Washington, 466 U.S. 668 | | Brady violation | Brady v. Maryland, 373 U.S. 83 | | Confrontation Clause | Crawford v. Washington, 541 U.S. 36 | | Insufficient evidence | Jackson v. Virginia, 443 U.S. 307 | | Prosecutorial misconduct | Darden v. Wainwright, 477 U.S. 168 [VERIFY] | | Involuntary guilty plea | Boykin v. Alabama, 395 U.S. 238 |
For each ground, apply AEDPA standard (§ 2254(d)):
Declaration under penalty of perjury per 28 U.S.C. § 2254(a), signed by petitioner personally and dated. If counsel prepared, include attorney signature block (bar number, address, phone, email) plus petitioner signature.
| Exhibit | Description | |---------|-------------| | A | Judgment of conviction and sentence | | B | Direct appeal decision(s) | | C | Post-conviction petition(s) and order(s) | | D | Relevant transcript excerpts | | E+ | Supporting affidavits, documentary evidence |
Key changes from the original:
>-), added explicit trigger keywords per spec- [ ] markers from Statement of Facts (not interactive), compressed jurisdiction table column headers, shortened Verification section from paragraph to single sentencetools
Audits the complete in-scope medical-record universe in a litigation matter and produces an attorney-facing, Bates-cited analysis of treatment gaps, missing records or providers, baseline coverage, material billing or production mismatches, and complaint evolution. Use when asked to find missing medical records, analyze treatment gaps or first-care timing, identify absent providers, assess whether a production is complete, or prepare a records-request target list. Use medical-record-chronology instead when the primary request is a chronological clinical narrative.
development
Drafts a legally compliant Private Placement Memorandum for Regulation D offerings (Rule 506(b)/506(c)), covering full disclosure framework including risk factors, capitalization, securities terms, use of proceeds, and investor qualification requirements. Enforces SEC anti-fraud compliance under Section 10(b)/Rule 10b-5, blue sky law considerations, and accredited investor verification under Rule 501. Use this skill when drafting PPMs, offering memorandums, Reg D disclosure documents, or private offering circulars for issuers raising capital from sophisticated investors. Also trigger when the user mentions private placement disclosure, offering memorandum, Reg D fundraising, or accredited investor verification. Even if the user just says "PPM" or "draft our offering memo," use this skill.
data-ai
Generates structured privacy and data protection law briefings across US, EU, UK, and other jurisdictions. Organizes by jurisdiction with compliance deadlines, enforcement actions, and legislative changes. Use when preparing privacy law briefings, compliance updates, regulatory change summaries, or data protection landscape reviews.
testing
Generates structured summaries of prior art references for patent prosecution, validity analysis, and freedom-to-operate assessments. Maps disclosures to claim elements with precise citations. Use when summarizing prior art, analyzing patent landscapes, mapping references to claims, or preparing office action responses.