Token导航 LogoToken导航

Agent Skill · 开发

langsmith(langsmith 命令行)

langsmith 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

langsmith 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 11,291。

总安装 1,853周安装 78GitHub Stars 11下载 649核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill langsmith

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于 LangSmith 环境下的追踪、评估、评审和实验对比等运维任务。适合处理 @traceable、run trees、数据集比对或 Prompt Hub 相关操作。使用时需已有基础设置,若信心不足应先完成最小可用包配置。涉及多服务血缘时应明确是否需要调试追踪或离线评估门禁。

langsmith 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/langsmith

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill langsmith;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

langsmith 怎么安装?

在终端执行 npx skills add https://github.com/akillness/oh-my-skills --skill langsmith。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

langsmith 支持哪些 AI 工具?

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

langsmith 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

langsmith 是免费的吗?

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

langsmith 用的人多吗?

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

langsmith 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

开发类 Skill 对比

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

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
langsmith

langsmith 命令行 · 本页

1,85311需要联网未明确有提醒

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

SKILL.md 原文

LangSmith

When to use this skill

  • The user already chose LangSmith and needs the smallest useful packet for tracing, evals, review, prompt ownership, or trace propagation.
  • A request mentions LangChain tracing, @traceable / traceable, wrap_openai / wrapOpenAI, annotation queues, run trees, trace IDs, datasets, or experiment comparison.
  • The team needs to decide whether a change needs debugging traces, an offline eval gate, an online review queue, Prompt Hub / prompt-registry work, or multi-service lineage.
  • The user has some LangSmith setup already, but confidence is still low and they need an audit / gap review.

Do not use this skill as the main workflow when:

  • The real job is generic dashboards / alerts / SLOs / telemetry ownership → monitoring-observability
  • The real job is existing-log root-cause triage → log-analysis
  • The real job is code-level reproduction / bug isolation → debugging
  • The real job is deployment / rollout choreography → deployment-automation
  • The real job is generic exported-metrics interpretation or KPI synthesis → data-analysis
  • The real job is runtime guardrails / approvals / policy middleware → the relevant security or policy skill

Core idea

langsmith should behave like a workflow packet router, not a giant SDK encyclopedia.

  1. Label the request before naming APIs.
  2. Choose one primary packet.
  3. Pick the smallest instrumentation / eval / review surface that answers the question.
  4. Return a compact operator brief.
  5. Route adjacent observability, debugging, deployment, and policy work outward fast.

Read these support docs before choosing the packet:

Instructions

Step 1: Normalize the request

Convert the prompt into this intake packet first:

langsmith_packet:
  primary_packet: trace-debug | eval | review | prompt-registry | propagation | audit
  app_shape: chat | rag | tool-calling | agent | batch-job | multi-service | mixed | unknown
  runtime: python | typescript | mixed | cli-only | unknown
  request_type: setup | debug | pre-ship gate | production review | prompt decision | cross-service tracing | audit
  current_evidence: traces | datasets | evaluators | feedback queues | prompt versions | exported runs | none
  confidence_problem: missing traces | noisy traces | no regression gate | weak review rubric | prompt drift | broken lineage | mixed | unknown
  route_after: stay-here | monitoring-observability | log-analysis | debugging | deployment-automation | data-analysis

Choose one primary packet for the run. If two seem plausible, pick the one that reduces uncertainty fastest.

Step 2: Choose the packet

PacketUse whenMain outputTypical signals
trace-debugThe real question is “what happened?”trace-debug packetmissing visibility, wrappers/decorators, trace coverage, metadata discipline
evalA change needs pre-ship or regression confidenceeval packetdataset creation, evaluators, experiments, baseline/candidate comparison
reviewTraces exist but trust is weak in productionreview packetannotation queues, feedback criteria, human scoring, inline review
prompt-registryPrompt/version ownership is the bottleneckprompt packetPrompt Hub, prompt versions, Git sync, compare prompt variants
propagationOne request spans services, jobs, tools, or agentspropagation packetparent/child trace IDs, cross-service headers, multi-hop lineage
auditLangSmith is present but still not usefulaudit packetnoisy traces, missing IDs, absent evals, unclear prompt ownership

Packet rules:

  • Prefer trace-debug when the team cannot explain the run tree.
  • Prefer eval when the next risk is shipping without a regression gate.
  • Prefer review when real-user output needs human or structured quality feedback.
  • Prefer prompt-registry only when prompt/version choice is the actual bottleneck.
  • Prefer propagation when one request fans out beyond a single service boundary.
  • Prefer audit when the system already “has LangSmith” but confidence is still low.

Step 3: Pick the smallest useful surface

SurfaceUse whenStrengthsRisks
Provider wrappers (wrap_openai, wrap_anthropic, wrapOpenAI)Need quick model-call coverageFastest path to visible tracesMisses higher-level workflow context if used alone
Decorators / traceable()Need named spans around app functionsClear span boundaries, reusableStill needs deliberate placement
Manual trace blocks / tracing contextNeed scoped or temporary visibilityGood for audits and suspicious blocksEasy to under-instrument
Annotation queues + feedback criteriaNeed structured human reviewPreserves rubric and reviewer flowReview ownership still has to be designed
Dataset + experiment workflowNeed benchmark or regression checksGives pre-ship comparisonCan drift into generic eval theory if not bounded
CLI export/list/get flowsNeed audit/export operations more than instrumentationGood for scripts and inspectionNot a substitute for instrumentation design
Cross-service propagation headers / metadataNeed end-to-end lineagePreserves parent/child contextEasy to forget at service boundaries

Rules:

  • Prefer the smallest surface that answers the present question.
  • Always name project/workspace/environment grouping.
  • Preserve run_id, trace_id, and metadata if humans or downstream tools will review runs later.
  • Include shutdown flush / wait behavior for CLIs, workers, and short-lived jobs.

Step 4: Choose the eval or review layer only when needed

LayerUse whenNotes
Deterministic / code evaluatorOutput can be checked mechanicallyBest first choice for structure/factual rules
LLM-as-judge (openevals)Quality is subjective or reference-lightUseful, but not ground truth
Human reviewStakes are high or nuance dominatesNeeds rubric, reviewer, and cadence
Pairwise comparisonTwo prompts/models/app versions are being comparedGood for baseline vs candidate decisions
Online evaluatorProduction traffic needs ongoing scoringPair with explicit alert/review semantics

Do not pretend one layer replaces the others.

Step 5: Return one compact LangSmith brief

Default response shape:

## LangSmith brief
- Packet: trace-debug | eval | review | prompt-registry | propagation | audit
- App shape: ...
- Runtime: ...
- Current evidence: ...

## Chosen surface
- wrappers / decorators / manual trace / dataset+experiment / review queue / prompt registry / propagation headers

## Required config
- `LANGSMITH_API_KEY`
- project/workspace/environment
- endpoint/workspace overrides if self-hosted

## Required IDs / metadata
- `run_id`, `trace_id`, tags, metadata fields, user/session identifiers as needed

## Verification step
- one trace query, one experiment comparison, one queue review check, or one prompt-version sanity check

## Route-out
- next neighboring skill if the bottleneck moves

Keep it compact. The point is to leave the user with one smallest next artifact, not a wall of SDK notes.

Step 6: Packet-specific heuristics

For trace-debug
  • Start from the missing visibility surface: app span, tool calls, retrieval, provider call, or worker boundary.
  • Prefer wrappers plus a few high-value decorators over tracing everything blindly.
  • Return the first trace query/filter the team should run once instrumentation lands.
For eval
  • Define the smallest dataset that reflects the risky change.
  • Separate deterministic checks from LLM-as-judge or human review.
  • Name baseline/candidate comparison, experiment naming, concurrency/cost limits, and the ship/no-ship decision point.
For review
  • Define feedback keys, scale semantics, reviewer ownership, and queue cadence.
  • Preserve run_id / trace_id so feedback attaches to the right artifact later.
  • Route broader support-ops workflows out if the issue is bigger than output review.
For prompt-registry
  • Explicitly decide whether Prompt Hub / LangSmith should own the prompt or whether Git/app config should stay canonical.
  • Connect prompt versions to evals or experiments; do not treat registry as a separate island.
  • Be explicit when public hub browsing is reference-only rather than the team's source of truth.
For propagation
  • Name parent/child headers, metadata handoff rules, and which services must preserve trace context.
  • Keep distributed-systems reliability and alerting concerns routed to generic observability where appropriate.
For audit
  • Rank gaps by severity: missing coverage, bad metadata, absent evals, weak review flow, prompt/version ambiguity, broken flush or lineage.
  • Recommend the first ratchet, not a giant reinstall plan.

Step 7: Route out aggressively

Switch as soon as LangSmith is no longer the main bottleneck:

  • Generic telemetry / dashboards / alerts / SLOs → monitoring-observability
  • Existing-log root-cause triage → log-analysis
  • Reproduction and bug isolation → debugging
  • Rollout / deploy / environment promotion → deployment-automation
  • Exported metrics, experiments, or KPI interpretation → data-analysis
  • Policy / approval / runtime guardrails → the relevant security or policy skill

Examples

Example 1: Trace-debug packet

Prompt:

Add LangSmith to this FastAPI RAG service so we can debug why answer quality regressed after a retriever change.

Good response shape:

  • choose trace-debug
  • recommend wrappers plus targeted higher-level spans if retrieval/tools must be visible
  • define project/tags/metadata and a flush step for short-lived runs
  • route generic service-health observability outward

Example 2: Eval packet

Prompt:

Before we ship this prompt rewrite, build a LangSmith eval workflow with a baseline, a candidate, and one judge for subjective quality.

Good response shape:

  • choose eval
  • define dataset, evaluator mix, experiment naming, and verification step
  • separate deterministic checks from LLM-as-judge and human review
  • keep rollout orchestration out of scope

Example 3: Review packet

Prompt:

We already have LangSmith traces, but support leads still do not trust the AI assistant. Set up a review workflow with human scoring.

Good response shape:

  • choose review
  • define feedback keys, rubric, queue ownership, and run-ID preservation
  • keep the answer grounded in review workflow rather than generic prompt management

Example 4: Prompt-registry packet

Prompt:

Should these prompts live in LangSmith Prompt Hub or stay in Git?

Good response shape:

  • choose prompt-registry
  • compare platform-owned vs Git-owned prompt source of truth
  • connect the choice to experiments and release confidence
  • stay honest when Prompt Hub is optional

Example 5: Propagation packet

Prompt:

One chat request fans out to workers and tools. How do we keep one trace through LangSmith?

Good response shape:

  • choose propagation
  • define parent/child IDs, metadata propagation, and service boundaries
  • route generic distributed-systems observability outward when needed

Best practices

  1. Start with the packet, not the SDK call.
  2. Treat LangSmith as a trace/eval/review substrate, not the entire production control plane.
  3. Preserve run_id, trace_id, tags, and metadata deliberately.
  4. Prefer the smallest useful surface that answers the present question.
  5. Keep deterministic checks, LLM judges, and human review distinct.
  6. Be explicit when Prompt Hub is optional or reference-only.
  7. Include flush/wait behavior for scripts, workers, and cron-style jobs.
  8. End with one verification step and one route-out.

References

平台分布

Codex

37.4%
按下载量换算243

Claude

28.41%
按下载量换算184

Cursor

17.15%
按下载量换算111

Gemini CLI

9.67%
按下载量换算63

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills