langchain-middleware

Human-in-the-loop approval, custom middleware, and structured output patterns for LangChain agents. HumanInTheLoopMiddleware pauses execution before dangerous tool calls, allowing humans to approve, edit arguments, or reject with feedback Per-tool interrupt policies let you configure different approval rules based on risk level; requires a checkpointer and thread_id for state persistence Command resume pattern continues execution after human decisions, with support for editing tool arguments...

npx skills add https://github.com/langchain-ai/langchain-skills --skill langchain-middleware

langchain-middleware (retired)

langchain-middleware was retired from langchain-skills. Use the langchain-build-agent skill instead.

  1. If langchain-build-agent is available, use it for this task.

  2. Otherwise, install it, then use it:

    npx skills add langchain-ai/langchain-skills --skill langchain-build-agent --yes
    
  3. Tell the user that langchain-middleware is retired and that they can remove it with npx skills remove langchain-middleware.

More skills from langchain-ai

api-docs
langchain-ai
OpenAPI documentation and REST API design patterns
arxiv-search
langchain-ai
Search arXiv for preprints and academic papers by topic with abstract retrieval. Query-based search across physics, mathematics, computer science, biology, statistics, and related fields Configurable result limit (default 10 papers) with results sorted by relevance Returns title and abstract for each matching paper Requires the arxiv Python package; install via pip if not already present
arxiv-search
langchain-ai
Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields
blog-post
langchain-ai
Long-form blog post writing with research delegation, structured content templates, and AI-generated cover images. Delegates research to subagents before writing, storing findings in markdown for reference and context Enforces a five-part post structure: hook, context, main content (3–5 sections), practical application, and conclusion with call-to-action Generates SEO-optimized cover images using detailed prompts covering subject, style, composition, color, and lighting Outputs posts to...
code-review
langchain-ai
Perform a structured code review of changes, checking for correctness, style, tests, and potential issues.
coding-prefs
langchain-ai
Read the user's coding preferences from /memory/coding-prefs.md before making non-trivial style decisions, and append new preferences when the user gives…
competitor-analysis
langchain-ai
When asked to analyze competitors:
cudf-analytics
langchain-ai
Use for GPU-accelerated data analysis on datasets, CSVs, or tabular data using NVIDIA cuDF. Triggers when tasks involve groupby aggregations, statistical…