Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create and use LangChain agents with createAgent - includes agent loops, ReAct pattern, tool execution, and state management
.claude/skills/majiayu000-langchain-agents/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -14% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 81% | 0% |
| case-11 | ✓→✓ | = Same ✓ | -2% | 0% |
name: langchain-agents description: Building LLM agents with LangChain and LangGraph, covering tool-calling model initialization, state management, and observability with LangSmith. Triggers: langchain, langgraph, langsmith, agent-executor, chat-model-tools.
LangChain provides a standard interface for building LLM agents that can use tools. Modern agent development is moving toward LangGraph to handle stateful, multi-turn, and non-linear logic that simple loops cannot capture.
create_agent abstraction.ChatAnthropic).create_agent(model, tools=[...]) to generate the agent.agent.invoke({"messages": [...]}).LANGSMITH_API_KEY, LANGSMITH_TRACING).Checkpointer or Memory object.agent_executor is often enough for under 10 lines of code.scripts/langchain-agents_tool.py: Python script for tool definition and agent invocation.scripts/langchain-agents_tool.js: Equivalent logic using LangChain.js.langchainlanggraphlangsmith| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-22 | pass→pass | 12,239 | 13,906 | +14% | 1 | 1 | 0% | 2,106 | 3,817 | +81% | 0 | 0 | — |
case-11 | pass→pass | 19,330 | 13,514 | -30% | 1 | 1 | 0% | 3,064 | 3,011 | -2% | 0 | 0 | — |
case-20 | pass→pass | 18,858 | 14,921 | -21% | 1 | 1 | 0% | 4,033 | 4,011 | -1% | 0 | 0 | — |
case-01 | fail→fail | 14,780 | 15,187 | +3% | 1 | 1 | 0% | 2,197 | 2,911 | +32% | 0 | 0 | — |
case-02 | fail→fail | 24,593 | 16,677 | -32% | 1 | 1 | 0% | 3,488 | 2,570 | -26% | 0 | 0 | — |
case-03 | pass→pass | 15,186 | 5,253 | -65% | 1 | 1 | 0% | 1,473 | 1,810 | +23% | 0 | 0 | — |
case-04 | pass→pass | 16,183 | 7,342 | -55% | 1 | 1 | 0% | 2,640 | 2,191 | -17% | 0 | 0 | — |
case-05 | fail→pass | 17,561 | 12,055 | -31% | 1 | 1 | 0% | 2,414 | 2,621 | +9% | 0 | 0 | — |
case-06 | pass→pass | 12,962 | 10,539 | -19% | 1 | 1 | 0% | 2,329 | 2,573 | +10% | 0 | 0 | — |
case-21 | pass→pass | 23,170 | 18,585 | -20% | 1 | 1 | 0% | 3,883 | 4,012 | +3% | 0 | 0 | — |
case-07 | pass→pass | 14,179 | 15,131 | +7% | 1 | 1 | 0% | 2,309 | 3,193 | +38% | 0 | 0 | — |
case-08 | pass→pass | 17,231 | 16,839 | -2% | 1 | 1 | 0% | 2,941 | 3,288 | +12% | 0 | 0 | — |
case-09 | pass→pass | 13,648 | 8,517 | -38% | 1 | 1 | 0% | 1,842 | 2,065 | +12% | 0 | 0 | — |
case-10 | pass→pass | 13,150 | 6,562 | -50% | 1 | 1 | 0% | 2,282 | 1,729 | -24% | 0 | 0 | — |
case-12 | pass→pass | 8,428 | 5,129 | -39% | 1 | 1 | 0% | 1,607 | 1,759 | +9% | 0 | 0 | — |
case-13 | pass→pass | 15,976 | 8,635 | -46% | 1 | 1 | 0% | 2,642 | 2,429 | -8% | 0 | 0 | — |
case-14 | pass→pass | 21,181 | 25,503 | +20% | 1 | 1 | 0% | 3,431 | 5,481 | +60% | 0 | 0 | — |
case-15 | pass→pass | 10,633 | 4,178 | -61% | 1 | 1 | 0% | 1,782 | 1,537 | -14% | 0 | 0 | — |
case-16 | fail→pass | 9,775 | 4,185 | -57% | 1 | 1 | 0% | 1,841 | 1,588 | -14% | 0 | 0 | — |
case-17 | pass→pass | 10,962 | 7,309 | -33% | 1 | 1 | 0% | 1,858 | 2,141 | +15% | 0 | 0 | — |
case-18 | pass→pass | 14,771 | 9,021 | -39% | 1 | 1 | 0% | 2,149 | 2,292 | +7% | 0 | 0 | — |
case-19 | fail→pass | 8,577 | 4,172 | -51% | 1 | 1 | 0% | 1,484 | 1,558 | +5% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +14 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.