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 sentencedevelopment
name: automated-contract-summary language: en description: Generates structured executive summaries of contracts using ML — captures key terms, party obligations, risk allocations, and compliance requirements in a standardized format. Optimized for high-volume review where speed and consistency matter. tags: - summarization - agreement - corporate --- # Automated Contract Summarization Produces standardized executive summaries of contracts using machine learning, capturing essential term
tools
Extracts regulatory obligations from dense regulations across jurisdictions. Breaks down multi-level regulations into clear article-level obligations, classifies applicability to a business, and prioritizes by risk level. Use when translating regulations into actionable compliance requirements.
development
Continuously monitors regulatory landscapes for changes relevant to a specific business. Ingests global regulatory updates, filters by relevance, summarizes impact, and produces an actionable change advisory. Use when tracking regulatory developments affecting a particular product or market.
testing
Compares an organization's existing compliance controls, policies, and procedures against extracted regulatory obligations to identify coverage gaps. Produces a remediation plan with prioritized actions. Use when assessing compliance maturity or preparing for regulatory audits.