langchain-fundamentals

langchain-fundamentals is a skill for Claude Code from langchain-ai/langchain-skills. It costs 46 tokens per session (194 once invoked), scanned A, original, MIT.

Guidance for creating LangChain agents, giving them tools, and adding code that handles errors or waits for a person to approve an action.

In plain words
What is it for?
Use it to create agents, define their tools, add human approval, and handle tool errors.
Why use it?
It provides the basic pieces needed to make an agent use tools while keeping risky or failed actions under control.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the langchain-skills plugin — 28 skills, 2 MCP servers shipped together

Good fit Use it to create agents, define their tools, add human approval, and handle tool errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langchain-ai/langchain-skills/langchain-fundamentals
About the project

LangChain Skills is a collection of agent skills for building software agents with LangChain, LangGraph, and Deep Agents. Coding agents that support the Agent Skills specification, including Claude Code, Cursor, and Windsurf, can install and use these skills. The catalogue lists the project's skills and its Claude Code plugin.

langchain-ai/langchain-skills · 1,365 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add langchain-ai/langchain-skills --skill langchain-fundamentals
Clone the repo
git clone --depth 1 https://github.com/langchain-ai/langchain-skills

Made for: Claude Code.

Or install langchain-skills, the plugin that ships this one along with the rest of its 28 skills, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for langchain-fundamentals

README.md
[![agentmods](https://agentmods.dev/badge/skills/langchain-ai/langchain-skills/langchain-fundamentals/github.svg)](https://agentmods.dev/skills/langchain-ai/langchain-skills/langchain-fundamentals)
Your own site
<a href="https://agentmods.dev/skills/langchain-ai/langchain-skills/langchain-fundamentals"><img src="https://agentmods.dev/badge/skills/langchain-ai/langchain-skills/langchain-fundamentals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for langchain-fundamentals

Your own site · 80×15
<a href="https://agentmods.dev/skills/langchain-ai/langchain-skills/langchain-fundamentals"><img src="https://agentmods.dev/badge/skills/langchain-ai/langchain-skills/langchain-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 194 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Sept 2026
  • Snyk fail 23 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 359
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00194
Opus 5.5 $0.00018 $0.00078
Sonnet 5.5 $0.00009 $0.00039
Haiku 4.5 $0.00005 $0.00019

Measured 7d ago against content hash 5b08b31e657f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

langchain-fundamentals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

skills/.legacy/langchain-fundamentals/SKILL.md · 21 lines

What it actually says

langchain-fundamentals (retired)

langchain-fundamentals 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-fundamentals is retired and that they can remove it with npx skills remove langchain-fundamentals.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · -392 lines · +16 tokens per session 5b08b31e657f
  2. 3mo ago First seen · 413 lines · 30 tokens per session scan A 00dc50a19d6e

Subscribe to this mod's changes

langchain-fundamentals is a skill published in the GitHub repository langchain-ai/langchain-skills (1,365 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 194 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

langchain-fundamentals compared with skills from other repositories

langchain-fundamentals next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
langchain-fundamentalslangchain-ai/langchain-skillsSkill1.4kyesterdayMITA46Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code