Logo vun Privilege Sentinel

Privilege Sentinel

Communautéit
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.

Iwwersiicht

Editeurbstevescherer
Repositoryheycounsel-community
Skill-Nummprivilege-sentinel
Stären
43
Forks
6
Matgeliwwert Fichieren
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum bstevescherer op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Privilege Sentinel an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/bstevescherer/heycounsel-community/tree/main/skills/privilege-sentinel
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Privilege Sentinel an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Privilege Sentinel automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Privilege Sentinel net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Privilege Sentinel op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Privilege Sentinel besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Privilege Sentinel an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bstevescherer/heycounsel-community/tree/main/skills/privilege-sentinel an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Privilege Sentinel benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Privilege Sentinel benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Privilege Sentinel domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Privilege Sentinel gratis?

Jo. De Skill gëtt vum bstevescherer ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇