Claude-Skills legal-canned-responses

install
source · Clone the upstream repo
git clone https://github.com/borghei/Claude-Skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/borghei/Claude-Skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/legal/legal-canned-responses" ~/.claude/skills/borghei-claude-skills-legal-canned-responses && rm -rf "$T"
manifest: legal/legal-canned-responses/SKILL.md
source content

⚠️ EXPERIMENTAL — This skill is provided for educational and informational purposes only. It does NOT constitute legal advice. All responsibility for usage rests with the user. Consult qualified legal professionals before acting on any output.

Legal Canned Responses Skill

Overview

Production-ready toolkit for generating templated responses to common legal inquiries with built-in escalation detection. Covers 7 response categories with multiple sub-types each, plus a universal and category-specific escalation trigger system. Designed for legal operations teams handling high volumes of recurring inquiries while ensuring critical matters are routed to counsel.

Table of Contents

Tools

1. Response Generator (
scripts/response_generator.py
)

Generate formatted legal responses from templates with variable substitution and escalation detection.

python scripts/response_generator.py \
  --category dsr --sub-type acknowledgment \
  --var requestor_name="Jane Doe" \
  --var request_type="access" \
  --var request_date="2026-04-10"

python scripts/response_generator.py \
  --category nda --sub-type standard-form \
  --var counterparty="Acme Corp" \
  --var purpose="due diligence" --json

python scripts/response_generator.py \
  --category discovery --sub-type initial-notice \
  --var matter_name="Smith v. Corp" \
  --var custodians="Engineering,Sales"

2. Escalation Detector (
scripts/escalation_detector.py
)

Analyze inquiry text for escalation triggers and recommend routing.

python scripts/escalation_detector.py \
  --text "We received a subpoena from the DOJ regarding our pricing practices"

python scripts/escalation_detector.py \
  --text "A reporter from the Wall Street Journal is asking about our data practices" --json

python scripts/escalation_detector.py \
  --category vendor \
  --text "The vendor is threatening litigation over the contract dispute"

Reference Guides

ReferencePurpose
references/response_templates.md
Complete templates for all 7 categories with sub-types
references/escalation_triggers.md
Universal and category-specific escalation triggers

Workflows

Template Lifecycle

  1. Creation -- Draft response template for identified recurring inquiry type
  2. Review -- Legal counsel reviews template for accuracy, tone, and compliance
  3. Publication -- Template added to system with metadata, variables, and triggers
  4. Use -- Staff selects category/sub-type, fills variables, generates response
  5. Feedback -- Track usage and collect feedback on template effectiveness
  6. Update -- Revise templates based on feedback, legal changes, or policy updates
  7. Retirement -- Archive templates that are no longer applicable

Response Generation Workflow

  1. Classify Inquiry -- Determine category (DSR, NDA, subpoena, etc.) and sub-type
  2. Check Escalation -- Run escalation detector on inquiry text
  3. If Escalation Detected -- Stop; route to counsel with escalation report
  4. If No Escalation -- Generate response with appropriate template and variables
  5. Review & Send -- Review generated response before sending; adjust if needed

Response Categories

CategorySub-TypesDescription
Data Subject Requests (DSR)acknowledgment, verification, fulfillment, denial, extensionGDPR/CCPA data subject right requests
Discovery/Litigation Holdsinitial-notice, reminder, modification, releaseLitigation hold management
Privacy Inquiriescookies, data-sharing, children, transfersGeneral privacy questions
Vendor Legal Questionscontract-status, amendments, certifications, auditVendor/supplier legal matters
NDA Requestsstandard-form, counterparty-markup, decline, renewalNon-disclosure agreement lifecycle
Subpoena/Legal Processacknowledgment, objection, extension, complianceLegal process responses
Insurance Notificationsinitial-claim, supplemental-info, reservation-of-rightsInsurance claim management

DSR Sub-Types

Sub-TypeUse WhenKey Variables
acknowledgmentNew DSR receivedrequestor_name, request_type, request_date
verificationIdentity verification neededrequestor_name, verification_method
fulfillmentRequest completedrequestor_name, request_type, data_description
denialRequest denied with reasonrequestor_name, request_type, denial_reason
extensionNeed more timerequestor_name, request_type, extension_reason, new_deadline

Discovery/Litigation Hold Sub-Types

Sub-TypeUse WhenKey Variables
initial-noticeNew litigation hold issuedmatter_name, custodians, data_types
reminderPeriodic hold remindermatter_name, reminder_number
modificationHold scope changedmatter_name, modification_description
releaseHold liftedmatter_name, release_date

Escalation System

Universal Triggers (Always Escalate)

#TriggerWhy
1Potential or active litigationLegal exposure requires counsel assessment
2Regulatory investigation or inquiryRegulatory response requires strategic approach
3Government or law enforcement contactConstitutional and procedural rights at stake
4Binding legal commitment requestedCannot create legal obligations without counsel
5Criminal liability exposureRequires immediate counsel involvement
6Media attention or press inquiryReputational risk requires coordinated response
7Unprecedented or novel situationNo template exists; bespoke legal analysis needed
8Multi-jurisdictional conflictCross-border legal complexity requires expert analysis

Escalation Response Protocol

  1. Stop -- Do not send any templated response
  2. Alert -- Notify designated counsel immediately
  3. Explain -- Provide escalation context with matched triggers
  4. Recommend -- Suggest routing based on trigger type
  5. Draft -- Mark any preliminary draft "FOR COUNSEL REVIEW ONLY"

Troubleshooting

ProblemCauseSolution
Missing variable in outputRequired variable not providedCheck template requirements; provide all required
--var
parameters
Wrong template selectedCategory/sub-type mismatchReview category descriptions; ensure sub-type matches inquiry type
False positive escalationCommon words matching trigger patternsProvide
--category
to use category-specific triggers; review matched triggers
False negative escalationInquiry text too vagueAdd more context to inquiry text; run both universal and category-specific checks
Template too genericUsing default valuesReplace all placeholder values with actual organization-specific details
Discovery hold sent to wrong custodiansCustodian list outdatedVerify custodian list against current employees and systems
Subpoena response not flaggedMissing category contextAlways use
--category subpoena
for legal process; subpoena category always escalates
Response tone inappropriateWrong audience contextSelect appropriate sub-type; customize tone per audience

Success Criteria

  • Response Time: Templated responses generated within 5 minutes vs. 30+ minutes manual drafting
  • Escalation Accuracy: 100% of genuine escalation triggers detected (zero false negatives on CRITICAL triggers)
  • Template Coverage: Templates cover 80%+ of recurring legal inquiry types
  • Consistency: All responses within a category use consistent language, tone, and legal caveats
  • Audit Trail: Every generated response logged with category, sub-type, date, and escalation status

Scope & Limitations

This skill covers:

  • Template-based response generation for 7 common legal inquiry categories
  • Escalation detection using keyword and pattern matching against known triggers
  • Variable substitution for organization-specific customization
  • Response metadata generation for audit trail purposes

This skill does NOT cover:

  • Legal advice or attorney-client privileged analysis
  • Automated sending of responses (generation only; human review required)
  • Contract drafting, negotiation, or legal document creation
  • Case management, docketing, or deadline tracking
  • Jurisdiction-specific legal compliance validation of response content

Anti-Patterns

Anti-PatternWhy It FailsBetter Approach
Sending templated response without reviewMay miss context-specific nuances; legal riskAlways review generated response before sending
Ignoring escalation triggersCritical matters mishandled; legal exposureRun escalation detector on every inquiry; treat all triggers seriously
Using templates for novel situationsTemplates assume standard scenarios; novel situations need bespoke analysisEscalate novel situations to counsel; create new template after resolution
Hardcoding organization details in templatesTemplates become non-portable; updates missedUse variable substitution; maintain variables in configuration
Skipping identity verification for DSRsGDPR/CCPA require verification before fulfillmentAlways send verification sub-type before fulfillment

Tool Reference

scripts/response_generator.py

Generate formatted legal responses with variable substitution.

usage: response_generator.py [-h] [--json]
                              --category {dsr,discovery,privacy,vendor,nda,subpoena,insurance}
                              --sub-type SUB_TYPE
                              [--var KEY=VALUE [KEY=VALUE ...]]

options:
  -h, --help            Show help message and exit
  --json                Output in JSON format
  --category            Response category
  --sub-type            Response sub-type within category
  --var                 Variable substitution as KEY=VALUE pairs

scripts/escalation_detector.py

Analyze inquiry text for escalation triggers.

usage: escalation_detector.py [-h] [--json]
                               --text TEXT
                               [--category {dsr,discovery,privacy,vendor,nda,subpoena,insurance}]

options:
  -h, --help            Show help message and exit
  --json                Output in JSON format
  --text                Inquiry text to analyze for escalation triggers
  --category            Optional category for category-specific trigger detection