agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/langchain/SKILL.md

langchain

Skill13 starsChanged 27 days agoMITView on GitHub

Framework for developing applications powered by language models. - llamaindex (Score: 0.93) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Can deploy to any, Similar network profile - ollama (Score: 0.83) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Similar network profile - vllm (Score: 0.82) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Similar network profile

  • Installs packages

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use analytics-metrics, aws-account-management and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • hoodiniSkill

    analytics-metrics

    Build data visualization and analytics dashboards. Use when creating charts, KPI displays, metrics dashboards, or data visualization components. Triggers on analytics, dashboard, charts, metrics, KPI, data visualization, Recharts.

    Also in 3 projects that use this

  • hoodiniSkill

    aws-account-management

    Manage AWS accounts, organizations, IAM, and billing. Use when setting up AWS Organizations, managing IAM policies, controlling costs, or implementing multi-account strategies. Triggers on AWS Organizations, AWS IAM, AWS billing, Cost Explorer, SCPs, multi-account, AWS SSO, Identity Center.

    Also in 3 projects that use this

  • carapace-shSkill

    bun

    Use when working with the bun CLI — Bun's all-in-one JavaScript runtime and toolkit. Covers the CLI command reference (install, add, remove, run, build, test, x, create, init, pm, upgrade, link, unlink), bunfig.toml configuration, environment variables, the package manager and lockfile, the test runner, the bundler, the Bun runtime API (Bun.serve, Bun.file, Bun.spawn, Bun.write, hashing, transpiler), the Bun shell ($ template literal), module resolution and loaders, and globals. Triggers on: "bun", "bunx", "bun install", "bun add", "bun remove", "bun run", "bun build", "bun test", "bun x", "bun create", "bun init", "bun pm", "bun upgrade", "bun link", "bun unlink", "bunfig.toml", "bun.lock", "Bun.serve", "Bun.file", "Bun.write", "Bun.spawn", "Bun.hash", "Bun.password", "bun:test", "Bun.build", "Bun.Transpiler", "bun shell", "$ template", "import.meta", "JavaScriptCore", "Bun.serve", "HTMLRewriter", "Bun.SQL", "Bun.RedisClient", "Bun.Glob", "Bun.plugin", "bun:ffi".

    Also in 5 projects that use this

  • MongoDBSkill

    mongodb

    Front door for MongoDB and MongoDB Atlas. Use it before answering which database, MongoDB deployment, Atlas tier, or database hosting to use, even for advice-only questions. MongoDB updates frequently, so check this skill first. Also use it before setting up, provisioning, or connecting to MongoDB or Atlas, or creating a throwaway or prototype database. Also use when the user mentions "MongoDB", "Atlas", "MongoDB quickstart", "document database", "NoSQL", "BSON", "Mongoose", "PyMongo", "RAG", "Vector Search", "aggregation pipeline", "change streams", or "backend", and for general MongoDB development questions (CRUD, transactions, drivers and ODMs, server versions) from current docs. If a more specific MongoDB skill is installed and matches the task (schema design, query writing or optimization, search and vector search, stream processing, connection tuning, MCP server setup, queryable encryption sizing), load that instead; if it isn't installed, use this skill, which routes to it.

    Also in 3 projects that use this

  • +7 more from hoodini

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Avoid using massive legacy chain classes (like ConversationalRetrievalChain).

    line 37
  2. Distinctive:

    Never give an Agent unmitigated access to destructive Tools (e.g., SQL DELETE capabilities or Shell execution).

    line 47
  3. Distinctive:

    Use this when your agent works with langchain — structured patterns beat pasted docs and prevent common hallucinations.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LangChain Skill

Framework for developing applications powered by language models.

Ecosystem Graph Preview

graph LR
  langchain["langchain"]:::core
  classDef core fill:#f9f,stroke:#333,stroke-width:4px;
  langchain -- "alternative to" --> llamaindex
  langchain -- "integrates with" --> openai
  langchain -- "integrates with" --> pinecone
  llamaindex -- "alternative to" --> langchain
  ollama -- "integrates with" --> langchain
  vllm -- "integrates with" --> langchain

Recommended Next Skills

  • llamaindex (Score: 0.93) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Can deploy to any, Similar network profile
  • ollama (Score: 0.83) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Similar network profile
  • vllm (Score: 0.82) Why: Direct relationship, Both are AI, Shared ecosystem (ai), Similar network profile

Quick Start

LangChain provides standard interfaces for LLMs, Vector Stores, and Memory, allowing you to chain them together to build complex Agents and Retrieval-Augmented Generation (RAG) pipelines.

pip install langchain langchain-openai

Production Patterns

LCEL (LangChain Expression Language)

Avoid using massive legacy chain classes (like ConversationalRetrievalChain). Migrate entirely to LCEL, which uses Python pipe operators (|) to compose prompts, models, and output parsers declaratively. It automatically handles streaming and async logic.

Architecture & Scaling

Agents vs Chains

A Chain is a deterministic sequence of operations. An Agent utilizes an LLM's reasoning to dynamically determine which Tools to execute and in what order to solve a complex goal.

Error Recovery

LLMs frequently output invalid JSON when asked for structured data. Use LangChain's OutputFixingParser which automatically catches parsing errors and feeds the broken output back to the LLM with instructions to fix it.

Security Notes

Never give an Agent unmitigated access to destructive Tools (e.g., SQL DELETE capabilities or Shell execution). Always enforce human-in-the-loop approval or strict sandbox environments.

References

Why use this skill

Use this when your agent works with langchain — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using deprecated model IDs or wrong API endpoints
  • Confusing chat vs completions vs embeddings APIs
  • Omitting rate-limit and token budget handling

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • llamaindex — alternative to
  • openai — integrates with
  • pinecone — integrates with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.