langgraph-human-in-loop
LangGraph human-in-the-loop patterns. Use when implementing approval workflows, manual review gates, user feedback integration, or interactive agent supervision.
npx skills add majiayu000/claude-skill-registry --skill langgraph-human-in-loop --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LangGraph Human-in-the-Loop Pause workflows for human intervention and approval. ## Basic Interrupt ```python workflow = StateGraph(State) workflow.add_node("draft", generate_draft) workflow.add_node("review", human_review) workflow.add_node("publish", publish_content) # Interrupt before review app = workflow.compile(interrupt_before=["review"]) # Step 1: Generate draft (stops at review) config = {"configurable": {"thread_id": "doc-123"}} result = app.invoke({"topic": "AI"}, config=config) # Workflow pauses here ``` ## Resume After Approval ```python # Step 2: Human reviews and updates state state = app.get_state(config) print(f"Draft: {state.values['draft']}") # Human decision state.values["approved"] = True state.values["feedback"] = "Looks good" app.update_state(config, state.values) # Step 3: Resume workflow result = app.invoke(None, config=config) # Continues to publish ``` ## Approval Gate Node ```python def approval_gate(state: WorkflowState) -> WorkflowState: """Check if human approved.""" if not state.get("human_reviewed"): # Will pause here due to interrupt_before return state if state["approved"]: state["next"] = "publish" else: state["next"] = "revise" return state wo
- Basic Interrupt
- Resume After Approval
- Approval Gate Node
- Feedback Loop Pattern
- API Integration
- Multiple Approval Points
- Key Decisions
- Common Mistakes
- Related Skills
- Capability Details
- interrupt-before
- resume-workflow
- approval-patterns
- feedback-integration
What does the langgraph-human-in-loop skill do?
LangGraph human-in-the-loop patterns. Use when implementing approval workflows, manual review gates, user feedback integration, or interactive agent supervision.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill langgraph-human-in-loop --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
