# wu5 dev flow

> A rigorous Python dev workflow enforcing SDD, TDD, and Git gates through an audited state machine.

wu5 dev flow is a free AI agent skill on Agensi by Owen Wen, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Owen Wen](https://www.agensi.io/creators/owen-wen)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-10
- Security: scan passed (2026-10-10); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/wu5-dev-flow
- Tags: ai-agents, python, tdd, git-workflow, code-quality

## About this skill

Software projects often fail due to drift between specifications, tests, and implementation. This skill enforces a rigorous, state-machine driven workflow that prevents unverified code from reaching your main branch.

### What it does
- **Enforce SDD/TDD**: Requires Software Design Documents and Test-Driven Development cycles for every functional change.
- **Automated Gates**: Uses a dedicated Python script to verify project state, approve baselines, and check commit readiness.
- **Zero-Hardcode Policy**: Scans and blocks implementation of hardcoded keys, environment-specific paths, or business thresholds.
- **State Persistence**: Tracks progress in `state.json` and `status.md` to maintain context across different sessions or agents.
- **Atomic Commits**: Handles local git staging and commits only after rigorous verification and review cycles.

### How it works
1. **Initialize**: Run `wu5_flow.py init` to scaffold the specification directory and baseline the existing codebase.
2. **Define**: Create a new change slug and draft the `proposal.md` and `plan.md` for user approval.
3. **Develop**: Execute the Red-Green-Refactor loop, ensuring tests fail as expected before writing business logic.
4. **Verify**: Run automated checks for types, linting, and test coverage, followed by a two-stage manual review gate.
5. **Ship**: Archive the change, update the feature documentation, and prepare the final PR summary.

### Frameworks & tools
Specifically designed for Python environments using `pytest`, `pyright`, and `ruff`. It integrates directly with Git for workflow enforcement and utilizes custom Python scripts for state management.

### Why this beats prompting it yourself
Prompting an agent to "follow TDD" often results in shortcuts or forgotten steps over long sessions. This skill uses a hard-coded state machine and external script validation that refuses to proceed if specifications are unapproved or tests are missing.

### Use cases
- Initializing a new Python project with strict architectural standards.
- Executing high-stakes refactoring where regression is not an option.
- Onboarding agents to existing repositories while maintaining a verifiable audit trail.
- Managing complex feature additions that span multiple work sessions.

### Known limitations
Does not handle database schema migrations or irreversible data transformations. Requires local Python environment to run the gatekeeper scripts.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the wu5 dev flow skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent "shortcut" coding or skipping TDD steps?

The skill enforces a state-machine driven workflow that requires specific documentation and passing tests before any code can be committed, ensuring your specifications and implementation never drift apart.

### Which AI agents are compatible with the wu5 dev flow?

This skill is optimized for any LLM-based agent with terminal and filesystem access that supports Python environments, including popular IDE-integrated agents and standalone developer bots.

### What specific files and assets are included in this purchase?

You will receive the core state-management script (`wu5_flow.py`), a suite of template structures for SDD/TDD documentation, and the configuration files needed to integrate the automated gates into your local environment.

### Can I implement this workflow into a project that is already mid-development?

Yes, while it is ideal for new projects, you can run the initialization command on an existing repository to baseline your current code and enforce the workflow for all subsequent feature additions.

### Are there specific dependencies I need to install before using this skill?

The skill is designed for Python development and requires `pytest`, `pyright`, and `ruff` to be installed in your environment for the automated verification gates to function correctly.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
