By osenv
Open Source Environmental Defense — skills that draft environmental-litigation instruments (citizen-suit notices, rulemaking petitions, deadline complaints, consent-decree scaffolds, state environmental-rights orientation packets). OSED drafts; a licensed attorney decides.
Draft the formal legal instrument itself — a Clean Water Act §505 (or other citizen-suit) Notice of Intent to Sue, an administrative rulemaking petition, a deadline complaint, or a consent-decree settlement scaffold. Use this skill whenever the user wants to produce, fill in, or revise one of these instruments, or says things like "draft the notice," "write the petition," "put together the 60-day letter," "we need a complaint for the missed deadline," or "scaffold a settlement." Works from a completed Gap Analysis when one exists. Produces a clearly-marked DRAFT with judgment-call fields flagged for attorney review — never a filing-ready or signed document.
Read a statute or regulation and identify where an agency has failed to perform a mandatory, deadline-bound duty. Use this skill whenever the user wants to find actionable agency failures, audit a statute for missed deadlines, build the factual basis for a deadline suit or unreasonable-delay suit, or check whether a "shall by [date]" obligation has gone unmet. Trigger this even when the user only says things like "has the agency done what the law requires," "find the gaps in this statute," "what deadlines did EPA miss," or describes a regulatory program they think is behind schedule. Produces a structured findings table, never a decision to sue.
The front door. Use this skill when a non-lawyer describes an environmental problem or situation in everyday terms and does not yet know which law, agency, or instrument applies — "the creek by us smells bad and the county keeps approving permits," "our air is bad near the refinery, what can we do," "who do we even complain to about a pipeline," "is there anything we can do about the landfill." It diagnoses the likely legal pathways and routes the user to the right next step. It never tells the user they have a case, never says a named party broke the law, never predicts outcomes — it identifies candidate pathways and hands off.
The conductor. Use this skill when a user wants the whole OSED process run end-to-end on an environmental concern — "take my situation through the whole process," "run the full pipeline and put together the package," "do all the steps," "I described the problem, now build the package for my attorney." It runs intake → Gap Analysis → Drafting ↔ Precedent Retrieval → Plain-Language, carries each artifact into the next, and assembles a single flagged DRAFT case package with a consolidated attorney checklist. It automates the handoffs only — it never resolves a judgment call, never decides the merits, and always stops at a licensed attorney.
Translate a legal pathway, instrument, or doctrine into plain terms a non-lawyer can actually act on — a community group, a county commission, an organizer, a concerned resident. Use this skill whenever the user wants a legal concept explained for a lay audience, asks "what does this mean for us," "explain standing in plain English," "how would a community group actually use a state environmental rights act," or needs an instrument or process made legible without jargon. Especially apt for state environmental-rights-act pathways and citizen-suit mechanics. Explains and clarifies; never gives legal advice, predicts outcomes, or tells the reader they have a case.
Requires secrets
Needs API keys or credentials to function
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
This plugin requires configuration values that are prompted when the plugin is enabled. Sensitive values are stored in your system keychain.
courtlistener_api_keyOptional CourtListener API token for verify_citation (case-law currency). Keyless sources work without it.
${user_config.courtlistener_api_key}regulations_gov_api_keyOptional Regulations.gov API key for find_rulemaking_documents. Keyless sources work without it.
${user_config.regulations_gov_api_key}OSED is a library of AI agent skills that turn proven environmental-litigation instruments into something a local actor, in any state, can run again. Those skills are modular, inspectable instruction sets, and together they draft the formal documents of environmental litigation: the citizen-suit notice letter, the rulemaking petition, the deadline complaint, the settlement scaffold.
Each skill reads the governing statute and the facts you provide, drafts a clean first version, and flags every point that calls for legal judgment. A licensed attorney then reviews the draft and decides. That handoff — OSED drafts, an attorney decides — is the whole design, and every skill enforces it. See DISCLAIMER.md before anything else.
Suppose a government agency is required to do something under an environmental law — issue a rule, clean up a hazard, answer a formal petition — and it hasn't. Holding it to that duty starts with formal paperwork, and that paperwork is the reusable engine of the law: its structure repeats from one case to the next and from state to state, while the facts and the politics are what change. Producing each document to standard has always taken scarce lawyer hours — the resource a community group, a county commission, or a small public-interest shop is most likely to lack. OSED puts that drafting capacity within reach, so the question becomes the merits of the matter rather than the cost of a first draft.
Not technical? Everything meant for you is above Repository layout; the rest of this page covers installing the skills.
Each agent is a skill. Each maps to a stage of the litigation workflow, and each is deliberately scoped to the mechanical side of the work.
| Agent | Skill | What it does | What it never does |
|---|---|---|---|
| Intake | skills/intake | Routes a non-lawyer's environmental concern to candidate pathways: likely statute, responsible agency, and the OSED skill to run next. | Decide whether you have a case or whether anyone broke the law. |
| Gap Analysis | skills/gap-analysis | Reads a statute, extracts mandatory duties and their deadlines, cross-references the agency's actual record, flags actionable misses. | Decide whether a miss is worth suing over. |
| Drafting | skills/drafting | Produces the formal instrument: notice of intent, rulemaking petition, deadline complaint, settlement scaffold. | Sign, file, or assert that the instrument is ready to file. |
| Plain-Language | skills/plain-language | Translates a legal pathway into terms a non-lawyer can act on. | Give legal advice or predict outcomes. |
| Precedent Retrieval | skills/precedent-retrieval | Surfaces controlling case law for the relevant circuit so a human can judge whether a case survives. | Conclude that a case is safe to file. |
| Pipeline | skills/pipeline | Runs the whole sequence end to end and assembles a flagged DRAFT case package with a consolidated attorney checklist. | Resolve a flag, strip the DRAFT banner, or decide the merits. |
The agents are designed to hand off to each other: Gap Analysis finds the miss, Drafting produces the instrument, Precedent Retrieval attaches the controlling law, Plain-Language makes the whole package legible to the person who has to decide.
1. The templatable / judgment line. The instruments (decree, notice, petition) are templatable. The suit types (deadline, unreasonable delay) are semi-templatable. The gating doctrines (standing, ripeness) are judgment. Every skill keeps the agent on the mechanical side of that line and routes judgment calls — with retrieved precedent attached — to a human reviewer. An agent that blurs this line produces filings that get dismissed or sanctioned.
2. The doctrinal-currency check. Law changes underneath you. A strategy that assumed Chevron deference (overturned by Loper Bright, 2024) now gives backwards advice; Seven County (2025) narrowed NEPA review scope. Before any skill drafts on a doctrine, it runs a currency check. Confident drafting on dead law is the most expensive error this project can make. Each tracked anchor carries a law-as-of stamp (verified and next-review dates) in docs/doctrinal-currency.md — re-verify before relying.
npx claudepluginhub osenv/osed --plugin osedPermanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.
Intelligent prompt optimization: injects the right context at the right moment so Claude lands a better first output. Clarifies vague prompts with research-based questions, plus targeted nudges for approach selection, plan readability, workflow routing, background execution, subagent routing, output readability, user-decision questions, and plan-mode assessment
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claim