Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add postindustria-tech/agentic-toolkit --skill langgraph-dev-testing-agentic-systemsgit clone --depth 1 https://github.com/postindustria-tech/agentic-toolkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/postindustria-tech/agentic-toolkit/langgraph-dev-testing-agentic-systems)<a href="https://agentmods.dev/skills/postindustria-tech/agentic-toolkit/langgraph-dev-testing-agentic-systems"><img src="https://agentmods.dev/badge/skills/postindustria-tech/agentic-toolkit/langgraph-dev-testing-agentic-systems/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/postindustria-tech/agentic-toolkit/langgraph-dev-testing-agentic-systems"><img src="https://agentmods.dev/badge/skills/postindustria-tech/agentic-toolkit/langgraph-dev-testing-agentic-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00055 | $0.02181 |
| Opus 5.5 | $0.00022 | $0.00872 |
| Sonnet 5.5 | $0.00011 | $0.00436 |
| Haiku 4.5 | $0.00006 | $0.00218 |
Grade A, and why
langgraph-dev-testing-agentic-systems scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Agentic Systems
Testing LLM-based systems requires different approaches than traditional software: mock LLMs for determinism, use evaluation metrics instead of assertions.
Test Pyramid for Agentic Systems
E2E Tests (Real LLM, expensive, slow)
↓
Integration Tests (Mocked LLM, medium cost)
↓
Node Unit Tests (Fully mocked, fast)
↓
State/Schema Tests (No LLM, instant)
State Schema Tests (Instant)
from typing import TypedDict
from pydantic import BaseModel
# Option 1: TypedDict (lightweight, dict-like access)
class AgentStateDict(TypedDict):
"""Define state schema for the agent graph."""
messages: list[str]
intent: str
confidence: float
# Option 2: Pydantic (recommended - validation, defaults, IDE support)
class AgentState(BaseModel):
"""Define state schema for the agent graph with validation."""
messages: list[str]
intent: str = ""
confidence: float = 0.0
def test_state_structure_typeddict():
"""Verify TypedDict state accepts valid data."""
state: AgentStateDict = {
"messages": ["Hello"],
"intent": "greeting",
"confidence": 0.95
}
assert state["messages"] == ["Hello"]
assert 0 <= state["confidence"] <= 1
def test_state_structure_pydantic():
"""Verify Pydantic state accepts valid data and validates."""
state = AgentState(messages=["Hello"], intent="greeting", confidence=0.95)
assert state.messages == ["Hello"]
assert 0 <= state.confidence <= 1
# Note: Pydantic BaseModel uses attribute access (state.messages)
# LangGraph nodes receive Pydantic instances but graph output may be dict
# For dict conversion: state.model_dump()
Node Unit Tests (Mocked LLM)
Node unit tests call the Python node function directly, bypassing graph compilation. This isolates node logic for fast, focused testing with mocked dependencies.
import pytest
from typing import TypedDict
from langchain_core.language_models import FakeListChatModel
from src.nodes import classify_node # Import the node being tested
# Use TypedDict for type safety (same pattern as State Schema Tests)
class AgentStateDict(TypedDict):
messages: list[str]
intent: str
confidence: float
@pytest.fixture
def mock_llm(monkeypatch):
"""Mock LLM using LangChain's FakeListChatModel.
The fixture handles patching internally - test functions just use the fixture.
"""
fake_llm = FakeListChatModel(responses=["greeting"])
monkeypatch.setattr('src.nodes.llm', fake_llm)
return fake_llm
def test_classify_node(mock_llm):
"""Test node function directly with mocked LLM (bypasses graph compilation)."""
# Use TypedDict for type safety (defined above, matches State Schema Tests)
state: AgentStateDict = {"messages": ["Test input"], "intent": "", "confidence": 0.0}
result = classify_node(state)
assert result["intent"] == "greeting"
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 276 lines · 55 tokens per session scan A 936318c1b443
langgraph-dev-testing-agentic-systems is a skill published in the GitHub repository postindustria-tech/agentic-toolkit (2 stars, last pushed 1mo ago), licensed MIT. It adds 55 tokens to every session and 2,181 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
langgraph-dev-testing-agentic-systems compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| langgraph-dev-testing-agentic-systemspostindustria-tech/agentic-toolkit | Skill | 2 | 1mo ago | MIT | A | 55 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 13k | today | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 6.4k | today | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 9.7k | yesterday | MIT | A | 26 | Claude Code, Codex |
| dart-testdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 18 | Claude Code, Codex |
| test-generatorrshankras/claude-code-apple-skills | Skill | 918 | 22d ago | MIT | A | 33 | Claude Code |
| restore-internals-seams-in-finally-blocks-after-each-testZaxbyHub/opencode-swarm | Skill | 549 | today | MIT | A | 26 | OpenCode |