skills/langgraph/SKILL.md
LangGraph framework for AI agent workflows
npx skillsauth add jcsaaddupuy/badrobots langgraphInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
LangGraph is a framework for building stateful, multi-actor applications with LLMs. It provides a graph-based approach to orchestrating LLM chains and agents.
IMPORTANT: Before working with LangGraph code, read these reference files:
Runtime[Configuration]prompts.py moduleprompts.py as UPPER_SNAKE_CASE constantsasync def for all node functionsconfig parameterprompts.py, not inlinefrom langgraph.runtime import Runtime
async def my_node(state: State, runtime: Runtime[Configuration]) -> Dict[str, Any]:
"""Process state and return updates."""
context = runtime.context or Configuration()
# Your logic here
return {"field": value}
from langchain_core.output_parsers import PydanticOutputParser
from pydantic import BaseModel
class Response(BaseModel):
answer: str
parser = PydanticOutputParser(pydantic_object=Response)
prompt = PromptTemplate(
template=PROMPT_TEMPLATE + "\n{format_instructions}",
input_variables=["query"],
partial_variables={"format_instructions": parser.get_format_instructions()},
)
result = await parser.ainvoke(await (prompt | llm).ainvoke({"query": query}))
1. Read reference files
├─ Core rules for structure
├─ Chat interface if building chat app
└─ Docker config for deployment
↓
2. Define data structures
├─ State class (with MessagesState if chat)
├─ Configuration class
└─ Pydantic models for LLM outputs
↓
3. Create prompts module
├─ Define constants in prompts.py
├─ Ensure variable consistency
└─ Plan structured outputs
↓
4. Implement nodes
├─ Async functions with Runtime
├─ Use structured LLM calls
└─ Return state updates
↓
5. Build graph
├─ Create StateGraph
├─ Add nodes and edges
└─ Compile graph
↓
6. Set up Docker
├─ Create Dockerfile with Rust support
├─ Configure docker-compose
└─ Test deployment
# Run LangGraph dev server
uv run langgraph dev --config langgraph.json --host 0.0.0.0
# With LangSmith Studio
uv run langgraph dev --studio-url https://langsmith.foundry.ubisoft.org --config langgraph.json
# Test graph
uv run python -m pytest tests/
async defconfig parameter → ✅ Use Runtime[Configuration]prompts.py moduledevelopment
DuckDB patterns for JSON/JSONL analysis, array unnesting, and common gotchas. Use when querying JSON files, nested data, or encountering "UNNEST not supported here" errors.
development
Mealie recipe manager API: recipes, shopping lists, meal plans. Requires MEALIE_BASE_URL and MEALIE_API_KEY.
business
TimeWarrior time tracking: start/stop intervals, query durations by tag or issue, compute totals for issue tracker time reporting
development
Bookmark manager for saving, searching, and annotating web content. Use when: (1) saving a webpage for later reference, (2) searching previously saved bookmarks, (3) adding highlights/annotations to saved content, (4) user asks to 'bookmark this' or 'save this article'. Requires READECK_BASE_URL and READECK_API_KEY environment variables.