Creator · soba-labs
Last updated · Sep 7, 2026
Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory evaluation (match or LLM-as-judge), running LangSmith dataset evaluations, and comparing two ag
Sandbox only
Install targets
Codex install prompt
Install the "langgraph-testing-evaluation" agent skill from https://github.com/soba-labs/langchain-agent-skills/tree/main/skills/langgraph-testing-evaluation. Read its SKILL.md or equivalent instructions first, install only the files needed for this workspace, and summarize any required setup before using it. Skill purpose: Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory evaluation (match or LLM-as-judge), running LangSmith dataset evaluations, and comparing two agent versions with A/B-style offline analysis. Use it for Python and JavaScript/TypeScript workflows, evaluator design, experiment setup, regression gates, and debugging flaky/incorrect evaluation results. After the install attempt, report the result to https://www.openagentskill.com/api/agent/outcome with POST JSON {"event_id":"install_<unique-id>","skill_slug":"soba-labs-langgraph-testing-evaluation","task":"Install langgraph-testing-evaluation","agent":"codex","outcome":"success","install_used":true}. Replace event_id with a unique value and outcome with success or failed. Report success only after the skill is installed and a minimal verification passes.Supply asset profile
Code review, repo analysis, testing, CI, GitHub, DevOps, and developer workflow skills.
Scenario
Testing and QA
I need my agent to test a web app, reproduce bugs, and verify fixes.
Agent fit
Claude Code + OpenAI Agents + LangChain
Codex, Claude Code, Cursor, CLI, or custom agents.
Install
Ready
npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation
Maintenance
fresh
22d since push
Risk
Needs review
Permission surface may require sandboxing
GitHub quality
106
67/100 Quality · 77/100 Trust
Coverage tags
Review notes
Permission surface may require sandboxing · Quality score needs review
Agent adoption scorecard
These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.
Quality
PromisingUseful candidate, but compare it with alternatives before adopting.
Trust
Sandbox onlyUseful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
Audit
Needs reviewA machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
OpenAgentSkill Trust Score v5
Run only in a sandbox and compare close alternatives before using it for real work.
Stars
106 GitHub stars
Repo activity
106 stars, 15 forks
Maintenance
22d since push
License
MIT
Install
npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation
Install safety
Agent-readable metadata
Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.
Suited tasks
Suited agents
Install decision
Trust and risk
Outcome loop
Install command
npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluationDo not use when
Alternative
175.1K Stars
npx skills add anthropics/skills --skill frontend-design
Alternative
85.2K Stars
npx skills add Leonxlnx/taste-skill --skill design-taste-frontend
Alternative
1.8K Stars
npx skills add Alisa0808/vox-director --skill vox-director
Alternative
175.1K Stars
npx skills add anthropics/skills --skill canvas-design
Agent safety v2
Sparse or mixed signals. Useful for discovery, but not for autonomous installation.
Test manually in an isolated workspace and compare against safer alternatives.
high
Skill metadata references terminal, CLI, shell, subprocess, or command execution workflows.
medium
Skill likely fetches remote pages, APIs, repositories, or external services.
medium
Skill may read or write project files, documents, generated artifacts, or local workspace state.
medium
Skill may inspect schemas, query databases, or work with persistent stores.
Agent resolve plan
The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.
Open JSON
/api/agent/resolve?task=Use%20langgraph-testing-evaluation%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Resolve text
/api/agent/resolve?task=Use%20langgraph-testing-evaluation%20for%20an%20agent%20workflow&agent=codex&max_risk=medium&format=text
Install handoff
/api/skills/soba-labs-langgraph-testing-evaluation/install
Agent should check
Copy prompt
Task: Use langgraph-testing-evaluation in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20langgraph-testing-evaluation%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/soba-labs-langgraph-testing-evaluation/install
Install command: npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.Agent handoff
Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.
Install handoff
/api/skills/soba-labs-langgraph-testing-evaluation/install
LLM text format
/api/skills/soba-labs-langgraph-testing-evaluation/install?format=text
Find alternatives
/api/skills/search?q=langgraph-testing-evaluation&limit=3
Agent prompt
Use langgraph-testing-evaluation for this task. Review https://www.openagentskill.com/api/skills/soba-labs-langgraph-testing-evaluation/install, then install with: npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluationRegistry metadata
This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.
Manifest
/api/registry/manifest/soba-labs-langgraph-testing-evaluation
LLM text
/api/registry/manifest/soba-labs-langgraph-testing-evaluation?format=text
Install alias
/api/registry/install/soba-labs-langgraph-testing-evaluation
Recommend
/api/registry/recommend?task=Use%20langgraph-testing-evaluation%20in%20an%20agent%20workflow&limit=3
Agent fit
Research agents
Use-case tags
Platforms
Claude Code, OpenAI Agents, LangChain
Audit report
A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.
Agent decision cockpit
Prototype with this skill first; keep a fallback candidate ready.
Role in stack
Fallback candidate
Primary fit
Research agents
Trust label
Prototype first
Install path
Command ready
Use when
Evidence
review first
Implementation path
Trust profile
Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.
GitHub adoption
INFO106 GitHub stars
Stars/forks activity
CHECK106 stars, 15 forks; issue activity unavailable in current metadata
Recent maintenance
PASS22d since push
License clarity
PASSMIT
Good signals
Review before install
Recommended action
Run only in a sandbox and compare close alternatives before using it for real work.
Quality profile
Useful candidate, but compare it with alternatives before adopting.
Workflow fit
Investigate faster
I need my agent to research a topic, compare sources, and produce a concise report.
Verify behavior
I need my agent to test a web app, reproduce bugs, and verify fixes.
Operate web apps
I need my agent to control a browser, fill forms, and verify web app workflows.
Workflow fit
Operate and verify web apps
A workflow for agents that navigate products, fill forms, take screenshots, and verify real user flows across web applications.
Design, build, test, and ship interfaces
A practical workflow for agents that turn product briefs or Figma designs into polished frontend code, review the result, test it in a browser, and prepare a safe deployment.
Find, compare, and synthesize
A workflow for agents that gather sources, compare claims, summarize long material, and draft useful research briefs.
Alternative shortlist
Similar skills that may fit this task.
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
--- name: langgraph-testing-evaluation description: "Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory evaluation (match or LLM-as-judge), running LangSmith dataset evaluations, and comparing two agent versions with A/B-style offline analysis. Use it for Python and JavaScript/TypeScript workflows, evaluator design, experiment setup, regression gates, and debugging flaky/incorrect evaluation results." ---
# LangGraph Testing & Evaluation
Practical workflows for validating agent quality with: - Unit/integration tests - Trajectory evaluation - LangSmith dataset evaluations - A/B-style comparisons between versions
Use this file for high-level flow. Load `references/*` for detailed implementation.
## Start Here
Choose the smallest approach that answers your question:
| Goal | Primary method | Load first | | --- | --- | --- | | Validate node logic quickly | Unit tests with mocks | `references/unit-testing-patterns.md` | | Validate multi-step agent behavior | Trajectory evaluation | `references/trajectory-evaluation.md` | | Track quality over datasets over time | LangSmith evaluation | `references/langsmith-evaluation.md` | | Compare old vs new agent versions | A/B comparison | `references/ab-testing.md` |
Recommended order: 1. Unit tests 2. Integration/trajectory checks 3. Dataset evaluation in LangSmith 4. A/B comparison before deployment
## Quick Commands
Run from repo root.
### Generate test scaffolding
```bash # Python (preferred) uv run skills/langgraph-testing-evaluation/scripts/generate_test_cases.py my_agent:graph --output tests/ --framework pytest
# JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/generate_test_cases.js ./my-agent.ts:graph --output tests/ --framework vitest ```
### Run trajectory evaluation
```bash # Python: LLM-as-judge uv run skills/langgraph-testing-evaluation/scripts/run_trajectory_eval.py my_agent:run_agent my_dataset --method llm-judge --model openai:o3-mini
# Python: trajectory match uv run skills/langgraph-testing-evaluation/scripts/run_trajectory_eval.py my_agent:run_agent dataset.json --method match --trajectory-match-mode strict --reference-trajectory reference.json
# JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/run_trajectory_eval.js ./agent.ts:runAgent my_dataset --method llm-judge --model openai:o3-mini --max-concurrency 4 ```
### Run LangSmith dataset evaluation
```bash # Python uv run skills/langgraph-testing-evaluation/scripts/evaluate_with_langsmith.py my_agent:run_agent my_dataset --evaluators accuracy,latency --max-concurrency 4
# Python (do not upload experiment results) uv run skills/langgraph-testing-evaluation/scripts/evaluate_with_langsmith.py my_agent:run_agent my_dataset --evaluators accuracy --no-upload
# JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/evaluate_with_langsmith.js ./agent.ts:runAgent my_dataset --evaluators accuracy,latency --max-concurrency 4 ```
### Compare two agent versions
```bash # Python uv run skills/langgraph-testing-evaluation/scripts/compare_agents.py my_agent:v1 my_agent:v2 dataset.json --output comparison_report.json
# JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/compare_agents.js ./v1.ts:run ./v2.ts:run dataset.json --output comparison_report.json
# JavaScript/TypeScript (force local dataset file only) node skills/langgraph-testing-evaluation/scripts/compare_agents.js ./v1.ts:run ./v2.ts:run dataset.json --no-langsmith ```
### Create mock response configs
```bash # Python uv run skills/langgraph-testing-evaluation/scripts/mock_llm_responses.py create --type sequence --output mock_config.json
# JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/mock_llm_responses.js create --type sequence --output mock_config.json ```
## Core Workflow
1. Define test scope. - Unit: deterministic logic in one node/function. - Integration: node interactions and routing. - End-to-end: complete response quality on realistic inputs.
2. Start from deterministic checks. - Mock LLM/tool IO for speed and repeatability. - Keep real-model tests as a smaller, explicit suite.
3. Build/curate dataset examples. - Use stable inputs and expected outputs. - Keep schema simple: `inputs` and `outputs` objects (optional `metadata`). - Compatibility note: scripts also accept singular keys (`input`, `output`) for legacy datasets.
4. Run evaluation with explicit gates. - Use evaluator keys that map to deployment decisions. - Set thresholds in CI for regression prevention.
5. Compare versions before rollout. - Run same dataset on both versions. - Check both quality and latency.
6. Diagnose failures from traces/experiments. - Inspect low-scoring examples. - Split failures by pattern (routing, tool usage, hallucination, latency spikes).
## Current References (Load On Demand)
### `references/unit-testing-patterns.md` Load when: - You need node-level and routing test patterns. - You need pytest/vitest/Jest integration patterns. - You need robust mocking and flaky-test reduction.
### `references/trajectory-evaluation.md` Load when: - You need trajectory match evaluation (`strict`, `unordered`, `subset`, `superset`). - You need LLM-as-judge trajectory scoring. - You need LangSmith experiment comparison for trajectory results.
### `references/langsmith-evaluation.md` Load when: - You need dataset creation/management in LangSmith. - You need evaluator signatures and experiment runs in Python/TS. - You need CI-friendly workflows with quality thresholds.
### `references/ab-testing.md` Load when: - You need offline A/B comparison methodology. - You need significance testing and interpretation. - You need production traffic split strategy and guardrails.
## Assets
### `assets/templates/test_template.py` - Runnable Python pytest template aligned with current LangGraph testing patterns. - Includes: - Compiled-graph invocation with `thread_id` - Single-node testing via `compiled_graph.nodes[...]` - Integration-test placeholder
### `assets/datasets/sample_dataset.json` - Deterministic seed dataset for LangSmith ingestion. - Uses `examples: [{ inputs, outputs, metadata }]` format.
### `assets/examples/README.md` - Documentation-only index for current asset usage. - Notes where runnable assets live today.
## Script Interface Summary
### `scripts/generate_test_cases.py` / `.js` Use for fast test scaffolding.
Inputs: - Graph module path - Python: `my_module:graph` or `my_module.graph` - JS/TS: `./file.ts:graph`
Outputs: - Framework-specific starter tests in target directory.
### `scripts/run_trajectory_eval.py` / `.js` Use for trajectory scoring with either: - `--method match` - `--method llm-judge`
Supports: - Local dataset files (`.json`) - LangSmith dataset names - Optional reference trajectory file with `--reference-trajectory` - Match modes: `strict`, `unordered`, `subset`, `superset`
Local-only mode: - `--no-langsmith` in both Python and JavaScript scripts (requires local JSON dataset file)
### `scripts/evaluate_with_langsmith.py` / `.js` Use for dataset-based evaluation runs and experiment tracking.
Supports: - Existing dataset by name - Dataset creation from JSON examples file - Multiple evaluators (`--evaluators accuracy,latency,...`) - Concurrency control (`--max-concurrency`)
Python-only: - `--no-upload` to run without uploading experiment results
### `scripts/compare_agents.py` / `.js` Use for offline version comparisons: - Shared dataset input - Success/latency summaries - JSON report output for CI artifacts - Local JSON datasets or LangSmith datasets (JS supports `--no-langsmith` to disable remote loading)
### `scripts/mock_llm_responses.py` / `.js` Use for deterministic test doubles: - single - sequence - conditional
## Decision Rules
If behavior is deterministic and local: - Use unit tests first.
If behavior depends on tool sequence/routing: - Add trajectory evaluation.
If behavior depends on realistic distribution quality: - Run LangSmith dataset evaluation.
If approving a replacement model/prompt/graph: - Run A/B comparison and check both quality and latency.
## Common Failure Patterns
### Flaky tests - Cause: real-model nondeterminism in unit scope. - Fix: mock LLM/tool calls for unit tests; reserve real-model tests for separate integration marks.
### High trajectory variance - Cause: overly strict matching for workflows with equivalent paths. - Fix: switch match mode (`unordered`, `subset`, or `superset`) where appropriate.
### Regressions hidden by averages - Cause: only aggregate score monitored. - Fix: inspect per-example failures and segment by category metadata.
### Latency regressions with same quality - Cause: no explicit latency gate. - Fix: include latency evaluator and CI threshold.
## Minimal Best Practices
1. Keep fast deterministic tests as the largest share. 2. Version datasets and keep them stable. 3. Track both correctness and latency. 4. Add explicit go/no-go thresholds in CI. 5. Compare candidate vs baseline before production rollout. 6. Investigate failures with trace-level evidence, not only aggregate scores.
Source provenance
Decision snapshot
recent repository activity
Audit
Install and adoption review
Agent-proven evidence
Outcome reports after resolve, review, install, and one narrow run.
No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.
Install
Free and open source. Review the report before installing into production agents.
Growth loop
Scenario-led draft for langgraph-testing-evaluation, ready for a manual X post.
langgraph-testing-evaluation: Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or... 106 stars https://www.openagentskill.com/skills/soba-labs-langgraph-testing-evaluation?ref=x
Listing + install path for langgraph-testing-evaluation: https://www.openagentskill.com/skills/soba-labs-langgraph-testing-evaluation?ref=x Install: npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation
Listing source
This listing was indexed from public sources and is not marked official until a maintainer claim is approved.
Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.
Claim this skillOwner claim
This Registry indexed listing is attributed to soba-labs but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.
Creator backlink kit
Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.
[](https://www.openagentskill.com/skills/soba-labs-langgraph-testing-evaluation?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/soba-labs-langgraph-testing-evaluation?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)
[](https://www.openagentskill.com/skills/soba-labs-langgraph-testing-evaluation/audit)
[](https://www.openagentskill.com/skills/soba-labs-langgraph-testing-evaluation?ref=github&utm_source=github&utm_medium=referral&utm_campaign=creator_badge)soba-labs
@soba-labs
Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.
Sandbox only
Frontend Design
Guidance for distinctive, intentional UI design, typography, visual direction, and non-template-like product interfaces.
175.1K StarsTaste Skill: Anti-Slop Frontend
Design and implementation guidance for distinctive landing pages, portfolios, product demos, and purposeful redesigns.
85.2K StarsVox Director
Turn one topic into a narrated Vox-style paper-collage explainer or ad video, from script through captions.
1.8K StarsCanvas Design
Create original visual art, posters, PNG assets, and PDF documents through a clear design philosophy.
175.1K StarsPermission surface
shell or command execution, filesystem or document access
Agent outcomes
No agent outcome data yet
Docs
Strong README/SKILL.md context
Risk summary
Install readiness