Cocounsel Legal:Deep Research logo

Cocounsel Legal:Deep Research

OrganizationPopular
anthropics
cocounsel-legal:deep-research

Use this skill whenever a user specifically requests legal research or Westlaw Deep Research, asks for CoCounsel Legal or cocounsel legal support, or asks a question that requires explaining, analyzing, or synthesizing U.S. law.

Overview

Publisheranthropics
Repositoryclaude-for-legal
Skill namecocounsel-legal:deep-research
Stars
9.5K
Forks
1.8K
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by anthropics on GitHub. Read the source before you install it.

Installation

Install the Cocounsel Legal:Deep Research AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/anthropics/claude-for-legal.git /tmp/claude-for-legal
mkdir -p .claude/skills
cp -r /tmp/claude-for-legal/external_plugins/cocounsel-legal/skills/deep-research .claude/skills/anthropics-cocounsel-legal-deep-research
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cocounsel Legal:Deep Research in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cocounsel Legal:Deep Research on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cocounsel Legal:Deep Research is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Westlaw Deep Research

Westlaw Deep Research searches Westlaw's database of caselaw, statutes, and administrative decisions and returns a written research report that explains, analyzes, or synthesizes relevant authority.

Deep Research employs an agentic process that mirrors the methodology of human researchers, utilizing Westlaw's proprietary tools to systematically analyze the trusted content available on Westlaw and Practical Law.

This skill will autonomously run the full research cycle: start, poll, report.

Prerequisites

The cocounsel-legal MCP server must be connected. Verify it is available before starting research. If the server is not connected, inform the user and stop.

When to Use

  • Use for any questions answerable from caselaw, statutes, regulations, administrative materials, secondary sources, Practical Law documents and Current Awareness materials, including JD Supra. Examples include:
  • How courts have ruled on an issue or what authority supports or challenges a position
  • The elements or defenses of a claim, or the governing standard for an issue in a particular jurisdiction
  • How a statute, regulation, or doctrine is being interpreted and applied
  • The arguments on both sides of an unsettled question

When Not to Use

  • If the request falls into one of the categories below, briefly explain that this skill isn't the right fit and point the user to the suggested alternative.
    • Retrieving the full text of a specific document
      • Instead: Suggest the traditional search box on Westlaw.
    • Summarizing what a specific statute, regulation, or treatise says on its own (e.g., "what does the California Evidence Code say about hearsay?")
      • Instead: Suggest the traditional search box on Westlaw.
    • Analytics requests ("How often has Justice Scalia ruled in favor of…?")
      • Instead: Suggest Litigation Analytics on Westlaw.
    • Calculations ("What is the last possible filing date if…?")
      • Instead: This request is out of scope of Westlaw Deep Research
    • Outcome predictions
      • Instead: This request is out of scope of Westlaw Deep Research
    • Drafting legal documents, forms, or templates
      • Instead: Suggest CoCounsel
    • Information about specific judges, attorneys, or parties
      • Instead: Suggest Litigation Analytics on Westlaw
    • Foreign or non-U.S. law
    • Instead: Suggest country-specific version of Westlaw, such as Westlaw UK or Westlaw Canada, or use Westlaw International
    • Comparisons across more than three jurisdictions
      • Instead: Suggest AI Jurisdictional Surveys on Westlaw
    • Terms and Connectors (boolean) search queries
      • Instead: Suggest the traditional search box on Westlaw
    • Commands for execution of tasks
      • Instead: Suggest CoCounsel
    • Obtaining an exhaustive list of results
      • Instead: Suggest Boolean search or Precision Research on Westlaw
    • Identifying potential causes of action
      • Instead: Suggest Claims Explorer on Westlaw.
    • An exhaustive review of fact patterns (e.g., "Find all cases discussing...")
      • Instead: Suggest Precision Research on Westlaw.
  • If you suggest an alternative, do not attempt to use the Deep Research skill further for that task.

Communication Rules

  • Never mention tool calls, tool-call budgets, polling, status checks, internal limits, conversation IDs, percent_complete, or any other implementation details to the user. Always speak about the research itself, not the mechanics of how you are tracking it.
  • If you need to pause before the research completes (for any internal reason), do NOT explain why.
  • Let the user know that research is ongoing and that a report will be completed soon.

Research Workflow

1. Frame the query

  • Extract the legal research question from the user's query using clear, natural language.
  • Use up to three jurisdictions if the user names them.
  • If no jurisdictions are mentioned, ask the user which jurisdiction(s) to use.

2. Start Research

  • Call the MCP tool to initiate the research: legal_research_start_deep_research(query, jurisdictions)
  • Parameters:
    • query (string, required): The legal research question
    • jurisdictions (list of strings, optional): Up to 3 jurisdictions (e.g., ["California", "New York"])
  • This returns a conversation_id and initial status. Save the conversation_id for subsequent calls.
  • Next step: call check_deep_research_status with the conversation_id.
  • Before the first status check, wait ~10 seconds (the server is still setting up).
Rendering
  • Inform the user that deep research is underway, briefly restating the legal question in natural, professional language.
  • Do not show the conversation_id to the user.

3. Poll for Completion

  • Poll legal_research_check_deep_research_status(conversation_id).
  • Always run a Bash sleep between polls. Never call check_deep_research_status back-to-back without sleeping.
  • Continue until is_terminal is true.
  • Decide the next action based on the response:
    • (1) If is_terminal is true and status is 'complete', call get_deep_research_report with the conversation_id.
    • (2) If status is 'failed', stop and report the error_type and failure_reason to the user in plain language, without exposing field names.
    • (3) Otherwise, sleep for the duration in the response's next_action_poll_backoff_ms field (milliseconds), then poll again.
  • If percent_complete has not changed across two consecutive checks, add 5 seconds to the sleep.
Rendering
  • Communicate in plain language as if narrating the research process.
  • Render research_plan as a markdown unordered list (one item per line, each line prefixed with '- '), so the steps display with clear visual separation.
  • Insert a blank line before and after the list so it renders cleanly.
  • Only update the user when there is something new to say (a step completed, or a new step started). Do not repeat the same status.

4. Retrieve and Present Report Verbatim

  • Once status is "complete", fetch the final report: legal_research_get_deep_research_report(conversation_id)
  • The report is the answer_text field
  • This is the final output of the research lifecycle. No further tool calls are required.
  • If the user asks a follow-up question on the same topic, use follow_up_deep_research with the same conversation_id rather than starting a fresh research session.
Rendering
  • Paste the contents of answer_text into your response with no edits, additions, removals, or restructuring. The payload contains markdown, HTML anchors, inline anchor citations, blockquoted source excerpts, and horizontal rules — every element is intentional and must remain.

Helpful information

If the system fails or the user has questions about access, share the following:

Frequently asked questions

What does the Cocounsel Legal:Deep Research AI skill do?

Use this skill whenever a user specifically requests legal research or Westlaw Deep Research, asks for CoCounsel Legal or cocounsel legal support, or asks a question that requires explaining, analyzing, or synthesizing U.S. law.

Why use Cocounsel Legal:Deep Research on TypingMind?

Because you install it once and use it with any model. Cocounsel Legal:Deep Research is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cocounsel Legal:Deep Research in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/anthropics/claude-for-legal/tree/main/external_plugins/cocounsel-legal/skills/deep-research. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cocounsel Legal:Deep Research?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cocounsel Legal:Deep Research?

As many as you like. As long as a model supports skills, you can use Cocounsel Legal:Deep Research with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cocounsel Legal:Deep Research AI skill free?

Yes. It is published on GitHub by anthropics under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇