# Python Langgraph Workflow

> Use this skill when managing a Python LangGraph repository using uv and a Makefile. Covers dependency syncing, running quality controls (lint, format, typecheck, tests), generating agent graphs, and executing the git commit/push workflow.

- **Type:** Skill
- **Install:** `agentstack add skill-dor-rondel-agent-skills-python-langgraph-workflow`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dor-rondel](https://agentstack.voostack.com/s/dor-rondel)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dor-rondel](https://github.com/dor-rondel)
- **Source:** https://github.com/dor-rondel/agent-skills-mcp/tree/main/resources/langgraph/python-langgraph-workflow

## Install

```sh
agentstack add skill-dor-rondel-agent-skills-python-langgraph-workflow
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# LangGraph Python Local CI & Git Push Workflow

This skill hooks into the project's native `uv` and `Makefile` lifecycle tasks, ensuring all LangGraph agents, validation suites, and formatting checks pass cleanly before committing changes.

## 🛠️ Environment Constraints

- **Package Manager:** `uv`
- **Python Runtime Wrapper:** `uv run`
- **Task Runner:** `make`

---

## 🏃‍♂️ Step 1: Pre-Commit Quality Verification

Run the unified check command. This will execute formatting checks, Ruff/Pylint linting, Mypy type-checking, Pytest suites, and codespell in sequence. **Stop immediately if this command fails.**

```bash
make check
```

### Optional Specialized Targets

If a specific sub-task in the check fails, use these isolated commands to debug or fix:

- **Auto-format Code:** `make format`
- **Run Unit Tests:** `make test`
- **Visualize LangGraph State Machine:** Generate and inspect the compiled graph image:

```bash
make graph
```

---

## 🔍 Step 2: Stage & Diff Analysis

Once the codebase passes `make check`, audit the workspace modifications before committing.

1. **Check Workspace Status:**

```bash
git status
```

2. **Stage Changes:**

```bash
git add .
```

3. **Review Staged Changes:** Run the following command to review the exact lines modified in the graphs, prompts, or tests:

```bash
git diff --cached
```

- **Agent Instruction:** Read through the staged diff carefully. Note changes to LangGraph nodes, conditional edges, state schemas, or system prompts to write a precise, technical commit message.

---

## 🔀 Step 3: Git Commit & Push

Only proceed to this step after all local verification targets have passed and the staged changes have been audited.

1. **Commit with Context:**
   - Craft a concise, clear commit message using the imperative mood (e.g., `feat: add conditional router edge to conversational agent graph`).
   - Base the message directly on the specific logical changes found during the `git diff --cached` step.

```bash
git commit -m ""
```

2. **Push to Remote:**

```bash
git push origin HEAD
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dor-rondel](https://github.com/dor-rondel)
- **Source:** [dor-rondel/agent-skills-mcp](https://github.com/dor-rondel/agent-skills-mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dor-rondel-agent-skills-python-langgraph-workflow
- Seller: https://agentstack.voostack.com/s/dor-rondel
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
