writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
langgraphBuild, run, persist, deploy, and operate LangGraph Python applications using the core runtime, prebuilt agents, checkpointing, CLI, and SDK clients.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill when a task involves LangGraph, the low-level orchestration framework for building stateful agents and long-running workflows. It covers the Python monorepo packages langgraph, langgraph-prebuilt, langgraph-checkpoint, langgraph-checkpoint-sqlite, langgraph-checkpoint-postgres, langgraph-cli, and langgraph-sdk.
Install the core package for most application work:
pip install -U langgraph
For focused packages or deployment tooling:
pip install -U langgraph-cli
pip install -U langgraph-sdk
pip install -U langgraph-checkpoint-sqlite
pip install -U langgraph-checkpoint-postgres "psycopg[binary]"
Minimal import and graph smoke check:
from typing_extensions import TypedDict
from langgraph.graph import END, START, StateGraph
class State(TypedDict):
value: int
def inc(state: State) -> State:
return {"value": state["value"] + 1}
builder = StateGraph(State)
builder.add_node("inc", inc)
builder.add_edge(START, "inc")
builder.add_edge("inc", END)
app = builder.compile()
assert app.invoke({"value": 1})["value"] == 2
sub-skills/graph-runtime/SKILL.md for StateGraph, reducers, node signatures, conditional edges, Command, Send, interrupts, streaming, subgraphs, low-level Pregel, and runtime debugging.sub-skills/prebuilt-agents/SKILL.md for create_react_agent, ToolNode, ValidationNode, injected state/store/runtime, tool-call errors, structured responses, and human interrupt payloads.sub-skills/persistence/SKILL.md for checkpointers, thread_id, checkpoint resume, SQLite, Postgres, in-memory savers, InMemoryStore, semantic search, and serde hardening.sub-skills/cli-deployment/SKILL.md for langgraph new, dev, up, build, dockerfile, validate, langgraph.json, Docker/server configuration, and local deployment troubleshooting.sub-skills/sdk-clients/SKILL.md for Python async/sync SDK clients, assistants, threads, runs, cron, store APIs, v3 thread-centric streaming, auth headers, and JS SDK relocation status.references/repo-provenance.md when deciding whether this skill matches a checkout or should be refreshed.references/package-map.md to map user requests to the monorepo packages, install commands, import modules, and common optional dependencies.references/troubleshooting.md for cross-cutting install, import, config, service, security, and version-mismatch failures before drilling into a sub-skill’s troubleshooting file.scripts/run_core_smokes.py --help or selected smoke checks when validating a LangGraph environment without relying on the original repository checkout.StateGraph when a task needs custom state schemas, deterministic routing, reducers, subgraphs, or precise interrupt/resume control.langgraph dev for local hot-reload development, langgraph up for a local Docker API server, langgraph build for an image, and langgraph dockerfile when a user needs to review or customize the generated container recipe.langgraph-sdk.config={"configurable": {"thread_id": "..."}} and verify resume/list behavior.langgraph.json before running dev, up, or build.This skill is self-contained. Do not require the original LangGraph repository checkout for runtime use. The bundled references and scripts distill repo evidence into reusable guidance; original tests and examples remain verification evidence, not runtime dependencies.