AgentSkillsCN

cli-langchain

当用户需要协助使用 langchain CLI 命令时,可使用此技能,涵盖 app(管理 Langchain 应用)、integration(为 Langchain 开发集成包)、template(开发可安装的模板)、migrate、serve。全面覆盖 5 条 langchain 命令的标志、子命令、使用模式以及故障排除方法。

SKILL.md
--- frontmatter
name: cli-langchain
description: >-
  This skill should be used when the user needs help with langchain CLI commands, including app (manage langchain apps), integration (develop integration packages for langchain), template (develop installable templates), migrate, serve. Covers flags, subcommands, usage patterns, and troubleshooting for all 5 langchain commands.

langchain CLI Reference

Expert command reference for langchain v0.0.37.

  • 14 commands (3 with subcommands)
  • 40 command flags + 2 global flags
  • 0 usage examples
  • Max nesting depth: 1

When to Use

This skill applies when:

  • Constructing or validating langchain commands
  • Looking up flags, options, or subcommands
  • Troubleshooting langchain invocations or errors
  • Needing correct syntax for langchain operations

Prerequisites

Install langchain:

bash
npm install -g langchain@latest

Quick Reference

CommandDescription
langchain appManage LangChain apps.
langchain integrationDevelop integration packages for LangChain.
langchain migrateMigrate langchain to the most recent version.
langchain serveStart the LangServe app, whether it's a template or an app.
langchain templateDevelop installable templates.

Global Flags

FlagShortTypeDescription
--help``boolShow this message and exit.
--version-vboolPrint the current CLI version.

Command Overview

Command Groups

app, integration, template

Commands

migrate, serve

Common Usage Patterns

Detailed References

For complete command documentation including all flags and subcommands:

  • Full command tree: see references/commands.md
  • All usage examples: see references/examples.md

Troubleshooting

  • Use langchain --help or langchain <command> --help for inline help
  • Add --verbose for detailed output during debugging

Re-scanning

To update this plugin after a CLI version change, run the /scan-cli command or manually execute the crawler and generator.