Token导航 LogoToken导航

Agent Skill · 研究检索

langchain-langgraph-coding-assistant(LangChain langgraph coding 助手)

langchain-langgraph-coding-assistant 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

langchain-langgraph-coding-assistant 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,323。

总安装 188周安装 8GitHub Stars 123下载 66核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:langchain-langgraph-coding-assistant(LangChain langgraph coding 助手)
来源仓库:https://github.com/5zjk5/prompt-engineering
仓库路径:skills/langchain-langgraph-coding-assistant
安装命令:
npx skills add https://github.com/5zjk5/prompt-engineering --skill langchain-langgraph-coding-assistant
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/5zjk5/prompt-engineering --skill langchain-langgraph-coding-assistant

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

该技能用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。支持基于关键词、任务场景或来源线索进行信息检索与筛选。通过 GitHub 仓库安装,需确认权限范围和维护状态后再使用。

安装命令为 npx skills add https://github.com/5zjk5/prompt-engineering --skill langchain-langgraph-coding-assistant。使用前建议核实是否会触发联网、命令执行或文件读写等操作。

来源仓库内路径:skills/langchain-langgraph-coding-assistant

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/5zjk5/prompt-engineering --skill langchain-lan…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

langchain-langgraph-coding-assistant 怎么安装?

在终端执行 npx skills add https://github.com/5zjk5/prompt-engineering --skill langchain-langgraph-cod…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

langchain-langgraph-coding-assistant 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

langchain-langgraph-coding-assistant 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

langchain-langgraph-coding-assistant 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

langchain-langgraph-coding-assistant 用的人多吗?

公开数据是累计安装 188 次,近一周安装 8 次,下载 66 次,GitHub 123 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

langchain-langgraph-coding-assistant 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
langchain-langgraph-coding-assistant

LangChain langgraph coding 助手 · 本页

188123调用外部服务未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

LangChain & LangGraph 编程助手

描述

本技能提供LangChain和LangGraph框架的编程辅助功能。当用户需要编写相关代码时,智能体将根据用户需求,参考resources文件夹中的示例代码,协助用户完成编码工作。resources文件夹包含了丰富的示例代码,涵盖RAG、Agent、工作流、工具定义、中间件、大模型调用等多个功能模块。

使用场景

当用户明确要求使用LangChain或LangGraph框架时,触发此技能:

  • 明确提到使用LangChain编写代码
  • 明确提到使用LangGraph编写代码
  • 明确要求使用LangChain的API(如文档加载器、向量存储、工具等)
  • 明确要求使用LangGraph的API(如StateGraph、函数式API、图API等)
  • 要求参考resources文件夹中的LangChain/LangGraph示例代码
  • 提到使用LangChain的特定功能(如Agent、RAG、中间件等)并暗示使用该框架
  • 提到使用LangGraph的特定功能(如工作流、子图、中断等)并暗示使用该框架

指令

1. 需求分析

  • 仔细分析用户的具体需求,确定需要实现的功能模块
  • 识别用户使用的技术栈(LangChain、LangGraph或两者结合)
  • 确定需要参考的示例代码所在的resources子目录

2. 查找相关示例

根据用户需求,在resources文件夹中查找对应的示例代码:

RAG相关需求

  • 文档加载:resources/RAG/document_loaders.py
  • 文本分割:resources/RAG/splitters.py
  • 向量存储:resources/RAG/vectorstores_retrievers.py

Agent相关需求

  • Agent创建:resources/agent/create_agent.py
  • 中间件实现:resources/agent/middleware.py
  • 自定义模型:resources/agent/ChatOpenAIModel_LangChian.py

工作流相关需求

  • 函数式API:resources/functional(workflow)_api/
  • 图API:resources/graph-api/
  • 工作流对比:resources/工作流_图_对比/

- 链式提示:chain_prompt_graph.py / chain_prompt_workflow.py - 评估器-优化器:evaluator_optimizer_graph.py / evaluator_optimizer_workflow.py - 并行化:parallelization_graph.py / parallelization_workflow.py - 计划器-工作者:planner_worker_graph.py / planner_worker_workflow.py - ReAct智能体:react_agent_graph.py / react_agent_workflow.py - 路由工作流:routing_graph.py / routing_workflow.py

工具定义相关需求

  • 基本工具定义:resources/工具定义/tool_define.py
  • Command工具:resources/工具定义/tool_command.py
  • 内存存储:resources/工具定义/tool_memery_store.py
  • 运行时上下文:resources/工具定义/tool_runtime_context.py
  • 流式写入:resources/工具定义/tool_stream_writer.py

中间件相关需求

  • 基于类的中间件:resources/中间件/class_based_middleware.py
  • 基于装饰器的中间件:resources/中间件/decorator_based_middleware.py
  • 上下文编辑:resources/中间件/context_editing.py
  • 人工审核:resources/中间件/human_in_the_loop.py
  • LLM工具选择:resources/中间件/llm_tool_selector.py
  • 模型调用限制:resources/中间件/model_call_limit.py
  • 模型回退:resources/中间件/model_fallback.py
  • PII检测:resources/中间件/pii_detection.py
  • 规划:resources/中间件/planning.py
  • 摘要:resources/中间件/summary.py
  • 工具调用限制:resources/中间件/tool_call_limit.py
  • 工具重试:resources/中间件/tool_retry.py

大模型调用相关需求

  • OpenAI兼容模型:resources/大模型调用/ChatOpenAIModel_LangChian.py
  • Azure OpenAI:resources/大模型调用/Azure.py
  • Gemini:resources/大模型调用/Gemini.py
  • OpenAI官方API:resources/大模型调用/OpanAI.py

Embedding相关需求

  • 本地Embedding:resources/embedding模型调用/local_embedding.py
  • 云端Embedding:resources/embedding模型调用/cloud_embedding.py
  • OpenAI兼容Embedding:resources/embedding模型调用/opanai_embedding.py

上下文工程相关需求

  • 消息管理:resources/上下文工程/messages.py
  • 系统提示:resources/上下文工程/system_prompt.py

子图相关需求

  • 状态共享:resources/子图/share_state.py
  • 多级子图:resources/子图/father_son_grandson_noShareState.py
  • 持久化:resources/子图/add_persistence.py

LangGraph中断相关需求

  • 审批或拒绝:resources/langgraph中断/approve_or_reject.py
  • 工具中的中断:resources/langgraph中断/interrupts_in_tools.py
  • 审查和编辑状态:resources/langgraph中断/review_and_edit_state.py
  • 验证人工输入:resources/langgraph中断/validating_human_input.py

时间旅行相关需求

  • 时间旅行功能:resources/时间旅行/use_time_travel.py

MCP相关需求

  • 调用本地工具:resources/MCP/调用本地工具/
  • 调用远程MCP服务:resources/MCP/调用远程mcp服务/

完整案例参考

  • 计算器Agent:resources/案例/Calculator_Agent/
  • 深度研究:resources/案例/Deep_Research/
  • RAG Agent:resources/案例/RAG_Agent/

3. 代码实现

  • 阅读相关示例代码的readme.md文件(如果存在),理解功能和使用方法
  • 参考示例代码的实现方式和代码结构
  • 根据用户的具体需求,编写符合要求的代码
  • 确保代码风格与示例代码保持一致
  • 如需要使用自定义模型,参考ChatOpenAIModel_LangChian.py的实现

4. 必要导入(重要)

在编写代码时,必须确保包含所有必要的导入语句。以下是常用导入说明:

通用基础导入

  • typing: TypedDict, List, Any, Dict, Optional
  • typing_extensions: TypedDict(用于更复杂的类型定义)

LangChain核心导入

  • langchain_core.messages: AIMessage, HumanMessage, SystemMessage, ToolMessage
  • langchain_core.prompts: ChatPromptTemplate
  • langchain_core.output_parsers: StrOutputParser
  • langchain_core.runnables: RunnablePassthrough
  • langchain.tools: tool
  • langchain.agents: create_agent

LangGraph图API导入

  • langgraph.graph: StateGraph, START, END, MessagesState
  • langgraph.graph.message: add_messages
  • langgraph.checkpoint.memory: InMemorySaver
  • langgraph.types: interrupt

LangGraph函数式API导入

  • langgraph.func: entrypoint, task

LangChain Agent中间件导入

  • langchain.agents.middleware: before_model, after_model, wrap_model_call, wrap_tool_call, AgentState, ModelRequest, ModelResponse, dynamic_prompt
  • langgraph.runtime: Runtime

LangChain文档加载器导入

  • langchain_community.document_loaders.csv_loader: CSVLoader
  • langchain_community.document_loaders: JSONLoader, BSHTMLLoader
  • langchain_docling.loader: DoclingLoader

LangChain文本分割器导入

  • langchain_text_splitters: RecursiveCharacterTextSplitter, CharacterTextSplitter, MarkdownHeaderTextSplitter, RecursiveJsonSplitter

LangChain向量存储导入

  • langchain_chroma: Chroma
  • langchain_core.vectorstores: VectorStore
  • langchain_core.embeddings: Embeddings

LangChain Embedding导入

  • langchain_openai: OpenAIEmbeddings
  • langchain_community.embeddings: HuggingFaceEmbeddings

LangChain模型导入

  • langchain_openai: ChatOpenAI
  • langchain_azure_chat_models: AzureChatOpenAI
  • langchain_google_genai: ChatGoogleGenerativeAI

LangChain RAG导入

  • langchain.chains: RetrievalQA
  • langchain_core.runnables: RunnablePassthrough

自定义模型导入

  • ChatOpenAIModel_LangChian: ChatOpenAIModel(如果使用resources中的自定义模型)

可视化导入

  • IPython.display: Image, display

其他常用导入

  • asyncio, uuid, time, os, pathlib.Path

导入注意事项

  1. 在提供代码时,必须包含所有使用的导入语句
  2. 如果代码中使用了某个类或函数,必须在导入部分包含对应的导入
  3. 对于自定义的类或函数,需要明确说明其来源或提供完整定义
  4. 建议将导入语句按照功能分组,便于阅读和维护
  5. 如果使用了第三方库,需要提醒用户安装相应的依赖包

5. 代码说明

  • 提供清晰的代码注释,说明关键逻辑
  • 解释代码的工作原理和使用方法
  • 指出代码中使用的LangChain/LangGraph核心概念和API
  • 如涉及复杂功能,提供使用示例

6. 注意事项

  • 不要修改resources文件夹中的任何示例代码
  • 参考示例代码时,理解其设计思路和实现方式
  • 根据用户实际需求进行适配和调整
  • 确保代码的正确性和可运行性
  • 如涉及API密钥等敏感信息,提醒用户自行配置

常见错误及解决方案

  1. 缺少导入语句

- 错误:NameError: name 'AIMessage' is not defined - 解决:确保导入了 from langchain_core.messages import AIMessage, HumanMessage, SystemMessage, ToolMessage

  1. 缺少类型定义

- 错误:NameError: name 'TypedDict' is not defined - 解决:确保导入了 from typing import TypedDict 或 from typing_extensions import TypedDict

  1. 缺少工具装饰器

- 错误:工具函数无法被识别 - 解决:确保导入了 from langchain.tools import tool 并使用 @tool 装饰器

  1. 缺少状态定义

- 错误:NameError: name 'State' is not defined - 解决:确保定义了状态类,例如 class State(TypedDict):...

  1. 缺少图API导入

- 错误:NameError: name 'StateGraph' is not defined - 解决:确保导入了 from langgraph.graph import StateGraph, START, END

  1. 缺少中间件导入

- 错误:NameError: name 'before_model' is not defined - 解决:确保导入了 from langchain.agents.middleware import before_model, after_model,...

  1. 自定义模型未导入

- 错误:ModuleNotFoundError: No module named 'ChatOpenAIModel_LangChian' - 解决:确保自定义模型文件在正确路径,或提供完整的模型实现代码

  1. 第三方库未安装

- 错误:ModuleNotFoundError: No module named 'langchain_chroma' - 解决:提醒用户安装相应的依赖包,例如 pip install langchain-chroma

代码质量保证

  • 在提供代码前,检查所有导入是否完整
  • 确保所有使用的类和函数都有对应的导入
  • 对于自定义的类或函数,提供完整的实现或明确说明来源
  • 建议用户在运行代码前安装必要的依赖包

平台分布

Codex

37.43%
按下载量换算25

Claude

32.82%
按下载量换算22

Cursor

17.35%
按下载量换算11

Gemini CLI

8.58%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

未通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills