Agent skill · developer-tools · langchain-ai

langchain-middleware agent skill by langchain-ai

INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output. Covers HumanInTheLoopMiddleware for human approval of dangerous tool calls, creating custom middleware with hooks, Command resume patterns, and structured output with Pydantic/Zod.

Source and license

Publisherlangchain-ai
Repositorylangchain-ai/langchain-skills
LicenseMIT
Snapshot2026-10-22
Last repository commit2026-10-02
Instruction size1,126 words; 396 lines
Bundled files1

Read the publisher’s SKILL.md

Suede Skill Check: 77/100 · C

Report snapshot · · graded-v2

The rubric totals 100 points; published scores are capped at 99. Security scan: not scanned.

Source revision: 16a992f09ab3. Report version f65c0f07aa83. Badge URLs follow the latest listing; save the report to keep this version.

Download report · Request a fresh review

What to review next

  • Boundary clause: 0 of 4 points. 4 when the description says when not to use the skill (“Not for …”, “Do not use …”, “Use … instead”).
  • Example request: 0 of 3 points. 3 when the description quotes an example request (3–60 characters in quotation marks).
  • Reference files: 0 of 3 points. 3 when the skill folder ships a references/, reference/ or docs/ folder.

Add declarations and bundled files when they describe the skill’s actual needs. Update the source, then request a fresh review with the changed commit or PR.

ComponentPoints earnedAvailable
Structural checks5656
Description length55
Boundary clause04
Example request03
Instruction depth77
Reference files03
Bundled scripts02
Recent maintenance99
Curated-list citations07
Tool permissions declared02
Compatibility declared02

The published score is capped at 99. It measures the published files, documentation and maintenance signals. Security scan: not scanned. This assessment does not include a runtime test or a full installation-dependency review.

Install langchain-middleware

The skills CLI works with Claude Code, Codex, Cursor and other agents; the other routes copy the folder by hand.

Skills CLI
npx skills add https://github.com/langchain-ai/langchain-skills/tree/main/config/skills/langchain-middleware
Claude Code, project-level copy
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/langchain-ai/langchain-skills.git "$tmp/repo"
mkdir -p .claude/skills
cp -R "$tmp/repo/"config/skills/langchain-middleware .claude/skills/
rm -rf "$tmp"
Codex, project-level copy
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/langchain-ai/langchain-skills.git "$tmp/repo"
mkdir -p .agents/skills
cp -R "$tmp/repo/"config/skills/langchain-middleware .agents/skills/
rm -rf "$tmp"

For a user-level install, copy the folder to ~/.claude/skills/ (Claude Code) or ~/.agents/skills/ (Codex). Inside Codex, $skill-installer can also fetch a skill from GitHub. New to skills? Read How to install agent skills in Claude Code, Codex and Cursor.

langchain-ai/langchain-skills is third-party code. Read SKILL.md and any bundled scripts before you install it.

Show the listing and raise the score

langchain-middleware is listed with 77/100 · C. This badge links to its Suede AI listing. Skills scoring 80–99 add a numeric and a letter quality shield; the largest open points for langchain-middleware are boundary clause (4), example request (3) and reference files (3). Send your repository and the points you want to raise, then request a fresh review after updating the skill. Publishers: read How to get your agent skill found in search and cited by AI assistants.

Suede AI Skills Directory: listed

Markdown
[![Suede AI Skills Directory: listed](https://suedeai.directory/badge.svg)](https://suedeai.directory/langchain-ai/langchain-skills/langchain-middleware/)
HTML
<a href="https://suedeai.directory/langchain-ai/langchain-skills/langchain-middleware/"><img src="https://suedeai.directory/badge.svg" alt="Suede AI Skills Directory: listed" height="20"></a>

Compare skills for this task

Browse developer-tools skills or compare scores side by side.