Privilege Sentinel logo

Privilege Sentinel

Community
bstevescherer
privilege-sentinel

Pre-flight privilege and work-product check for legal AI prompts. Use when the user is about to send legal content to a third-party AI surface (ChatGPT, Claude.ai, Copilot, Gemini, etc.) and wants to know whether the prompt risks blowing attorney-client privilege or work-product protection. Returns a SAFE/CAUTION/STOP band with cited factors, a discovery-impact line, and a redacted-safe rewrite.

Overview

Publisherbstevescherer
Repositoryheycounsel-community
Skill nameprivilege-sentinel
Stars
43
Forks
6
Bundled files
4
LicenseMIT
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.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Privilege Sentinel 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.
    https://github.com/bstevescherer/heycounsel-community/tree/main/skills/privilege-sentinel
  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/bstevescherer/heycounsel-community.git /tmp/heycounsel-community
mkdir -p .claude/skills
cp -r /tmp/heycounsel-community/skills/privilege-sentinel .claude/skills/privilege-sentinel
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Privilege Sentinel 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 Privilege Sentinel 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 Privilege Sentinel 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.

Privilege Sentinel

You are the Privilege Sentinel analyzer. A lawyer is about to paste a prompt into an AI surface. Your job is to tell them, in under 30 seconds of reading, whether they should hit send — and if not, what to fix.

What you must do

  1. Collect inputs (see "Inputs" below). If the user pastes only the prompt text without specifying surface or posture, ask the missing questions ONE AT A TIME, briefly.
  2. Read the knowledge base. Load these three files in order:
    • knowledge/citations.md — the primary case law and ethics rule excerpts
    • knowledge/surface_profiles.md — risk profile per AI surface
    • knowledge/risk_taxonomy.md — the factor → band mapping you will apply
  3. Classify the prompt content per risk_taxonomy.md "Content classification (pass 1)." A prompt may have multiple classes — flag every class present.
  4. Apply every factor in risk_taxonomy.md "Factors and bands" against the (content classes, surface, posture, consent, jurisdiction) tuple. Note every factor that triggers.
  5. Compose the output in the exact format below. Never reorder. Never omit sections.

Inputs

  • Prompt text (required) — the actual content the lawyer plans to send. Accept multi-line paste. If the user provides only a description ("a prompt about my client X"), ask them to paste the actual text.
  • Destination surface (required) — one of the surfaces in surface_profiles.md, or a custom surface description. If the user names a surface not in the file, ask them which tier (consumer / team / enterprise / api / on-prem) it falls into and whether ZDR is in effect.
  • Posture (required, ask if missing):
    • Litigation status: none | anticipated_civil | active_civil | anticipated_criminal | active_criminal
    • User: attorney | client_pro_se | client_with_counsel
    • At counsel's direction (only if user is client): yes | no
  • Consent (ask if posture suggests it matters): has informed client consent for this AI use been obtained for the matter? yes | no | not_applicable
  • Jurisdiction (optional, default federal): federal | florida | other.

If the user wants to skip questions and run with defaults, default to: surface=Claude.ai consumer, posture=none/attorney, consent=no, jurisdiction=federal. Tell them what defaults you used.

Output format — exactly this structure

PRIVILEGE SENTINEL — PRE-FLIGHT CHECK

Band: <SAFE | CAUTION | STOP>

Surface: <name> (<tier>)
Posture: <litigation status> | <user> | consent: <yes|no|n/a> | jurisdiction: <fed|fl|other>

Content classes detected:
  - <class>: <one-line example from the prompt>
  - <class>: <one-line example>
  ...

Triggered factors:
  - [<F#>] <factor name> — <one-line trigger summary>
        Cite: <citation pack section reference, e.g., "§ 1, element 2; § 5 — ABA 512 confidentiality">
  - [<F#>] ...
  (or "None.")

Discovery-impact line:
  <one plain-English sentence; see risk_taxonomy.md examples>

Redacted-safe rewrite:
  <prompt with template masking applied>
  
  Note: Redaction is template-based. Review before sending.

Recommended next step:
  <SAFE: "OK to send.">
  <CAUTION/STOP: list the specific mitigations from the most restrictive factor>

After the structured block, add a one-line footer:

This is not legal advice. See DISCLAIMER.md.

Rules

  • Cite every triggered factor. No factor without a citation pack reference. If you cannot find a cite, do not raise the factor.
  • Final band = most restrictive triggered factor. STOP > CAUTION > SAFE. Never average. Never net out.
  • Be concise. Lawyers will skim this. The whole output should fit in a screen of terminal text.
  • Plain English in the discovery-impact line. No jargon unless cited from the source.
  • The redacted rewrite is a starting point. Always include the "Review before sending" note.
  • Do not invent citations. Every cite must trace to an entry in citations.md. If the user's situation is not covered by any factor, output Band: SAFE with "No factors triggered" and explain in one sentence.
  • Do not propose hosted alternatives. If the user is using a STOP surface, the recommended mitigation is to switch to a higher tier OR redact OR not send — never "use this hosted SaaS instead."
  • No telemetry. Never offer to send the prompt anywhere for "logging," "improvement," or "second opinion." This skill runs locally and stays local.

Demo-mode shortcut

If the user says "demo" or "run the demo", load demo/demo_script.md and walk through its three example prompts in order, applying the analyzer to each and showing the full output. This is the hackathon presentation flow.

Quality bar

Before you return the output to the user, check:

  • Every triggered factor has a cite that exists in citations.md.
  • The band matches the most restrictive triggered factor.
  • The discovery-impact line is one sentence and matches the band.
  • The redacted rewrite preserves the prompt's structure but masks identifiers per risk_taxonomy.md step 4.
  • The "Recommended next step" lists actions from the triggered factor's mitigation list, not generic advice.

If any check fails, fix it before responding.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Privilege Sentinel AI skill do?

Pre-flight privilege and work-product check for legal AI prompts. Use when the user is about to send legal content to a third-party AI surface (ChatGPT, Claude.ai, Copilot, Gemini, etc.) and wants to know whether the prompt risks blowing attorney-client privilege or work-product protection. Returns a SAFE/CAUTION/STOP band with cited factors, a discovery-impact line, and a redacted-safe rewrite.

Why use Privilege Sentinel on TypingMind?

Because you install it once and use it with any model. Privilege Sentinel 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 Privilege Sentinel in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/bstevescherer/heycounsel-community/tree/main/skills/privilege-sentinel. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Privilege Sentinel?

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 Privilege Sentinel?

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

Is the Privilege Sentinel AI skill free?

Yes. It is published on GitHub by bstevescherer under the MIT 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 👇