Individual skill
langchain-middleware-patterns
Not available
skills/.curated/langchain-middleware-patterns/SKILL.md
Source commit 0500b275e963c027f6b410e8c49c0446945c574e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 12, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Standard SKILL.md format has not been attested at this commit. No installation command is available; inspect the source.
Repository context
- Repository stars (not skill ratings)
- 2,917
- Repository last updated
- Nov 12, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai Repository topic
- automation Repository topic
- claude-code Repository topic
- devops Repository topic
- mcp Repository topic
- ai-agents Repository topic
- anthropic Repository topic
- claude-code-plugins Repository topic
- developer-tools Repository topic
- llm Repository topic
- saas Declared skill tag
- langchain Declared skill tag
- langgraph Declared skill tag
- python Declared skill tag
- langchain-1.0 Declared skill tag
- middleware Declared skill tag
- security Declared skill tag
- caching Declared skill tag
- security Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesSKILL.mdcore · 17,621 bytesreferences/cache-key-design.mddoc · 8,402 bytesreferences/one-pager.mddoc · 3,283 bytesreferences/ordering-invariants.mddoc · 8,507 bytesreferences/pii-redaction.mddoc · 7,638 bytesreferences/retry-telemetry.mddoc · 11,005 bytes
Read excerpt
# LangChain Middleware Patterns (Python)
## Overview
Tenant A sends a prompt: *"Summarize this support ticket from **alice@acme.com**
about her overdue invoice."* The chain's caching middleware ran before the PII
redaction middleware, so the raw prompt — email and all — became part of the
cache key. Thirty seconds later Tenant B sends a semantically identical prompt
(different tenant, different customer, same shape). Cache hits. Tenant B's user
gets back a summary that names `alice@acme.com` and her overdue invoice. That is
pain-catalog entry **P24** in production, and it is a real class of incident —
post-mortems read like "we added caching to cut cost, leaked a customer's PII to
a different tenant within an hour."
The sibling failure modes: