Individual skill
langchain-tool-builder
Build LangChain (Python) tools using Claude Code's fail-closed design pattern — unified name/schema/security/execution in one class, with automatic three-layer execution (validate → permission → call). Use this skill whenever the user wants to define a new LangChain tool, add permission or validation logic to an existing tool, set up the ClaudeStyleTool base class in a project, or asks about "build_tool", "Claude Code style tool", "工具定义", or "langchain tool with permissions". Also trigger when the user says "create a tool for X" or "定义一个工具" in a LangChain Python project context, even without mentioning Claude Code explicitly.
skills/langchain-tool-builder/SKILL.md
Source commit e5ba66cac91c857dce254dc6b6195d52201068d8
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 6, 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.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 203
- Repository last updated
- Aug 26, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- agentskills Repository topic
- anthropic Repository topic
- anthropic-claude Repository topic
- growth-investing Repository topic
- investing Repository topic
- skills Repository topic
- stock-analysis Repository topic
- book2skills Repository topic
- investing-skills Repository topic
- design Derived category
- 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
LICENSEasset · 1,068 bytesREADME.mddoc · 1,678 bytesSKILL.mdcore · 10,025 bytesSKILL.mdcore · 10,025 bytesSKILL.mdcore · 10,025 bytesSKILL.mdcore · 10,025 bytesen/langchain-tool-builder.mddoc · 8,311 bytesexamples/en.yamlasset · 6,382 bytesexamples/zh.yamlasset · 6,747 byteszh/langchain-tool-builder.mddoc · 7,619 bytes
Read excerpt
# LangChain Tool Builder
Helps define LangChain (Python) tools using Claude Code's `buildTool()` pattern:
a unified class that co-locates identity, schema, security properties, and execution logic,
with fail-closed defaults so new tools are safe by default.
## Why this pattern matters
Claude Code enforces three things that vanilla LangChain tools lack:
1. **Fail-closed defaults** — `is_read_only`, `is_destructive`, `is_concurrency_safe` all default to False.
A tool that forgets to declare its properties is conservatively treated as write-capable.
2. **Layered execution** — `validate_semantics → check_permissions → _call` are separate methods,
so validation logic doesn't bleed into permission logic or business logic.
3. **Self-contained definition** — schema, description, security metadata, and execution all live