# Agentflow

> A spec-to-ship pipeline for coding agents: auto-triggering skills enforce spec, plan, task contracts, TDD, and severity-gated review. One manifest compiles to Claude Code, Codex, Cursor, and any AGENTS.md harness. A committed ledger survives context compaction. Zero telemetry.

Agentflow is a paid AI agent skill pack (several skills in one listing) on Agensi by SHWET ANAND, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2.99 (one-time purchase)
- Creator: [SHWET ANAND](https://www.agensi.io/creators/shwet-anand)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agentflow
- Tags: ai-agents, prompt-engineering, code-review, testing, automation

## About this skill

Stop shipping half-baked code or building features based on assumptions. This skill package implements a rigorous, spec-to-ship pipeline for coding agents that treats development as a series of enforced contracts. It solves the problem of "hallucinated requirements" and scope drift by requiring explicit gates for specifications, architectural plans, and task-based execution.

### What it does
- **Enforces spec approval** by gating all product code and scaffolding until a written specification is signed off and ledgered.
- **Architects implementation plans** that define file structures, naming conventions, and test-pinned signatures before a single line of logic is written.
- **Generates task contracts** that serve as isolated dispatch units with machine-checkable "done-when" and "stop-if" conditions.
- **Drives TDD execution** where agents must write failing tests before code and run full project suites before ledgering progress.
- **Automates severity-gated reviews** using fresh agent instances to audit diffs against the original plan and spec.
- **Manages a durable ledger** that survives context compaction to ensure the agent never repeats work or loses track of technical rulings.

### How it works
1. **Initialize** the project environment using `agentflow-start` to verify the presence of the ledger and manifest.
2. **Move through stages** sequentially, starting with the `spec` stage to define human intent, followed by `plan` and `task-contracts`.
3. **Execute work** in the `execute` stage, following the TDD cycle (Red-Green-Refactor) and logging rulings to the ledger for every deviation.
4. **Finalize** by running a full integration suite and choosing a merge, PR, or branch-keep strategy.

### Why this beats prompting it yourself
Standard prompts often fail during long sessions when the context window fills up or the agent loses the "thread" of the original requirements. This skill uses a committed ledger file as a source of truth that survives session resets and prevents the agent from making creative leaps that contradict the architecture.

### Use cases
- Building complex features where architectural consistency is critical.
- Delegating coding tasks to subagents with strictly defined boundaries.
- Maintaining a clear audit trail of technical decisions and rulings.
- Preventing regression through mandatory whole-suite verification before every task completion.

### Known limitations
Requires a Git-controlled environment to manage worktrees and the ledger file. Not suitable for micro-tasks under 15 minutes that do not change behavior.

## Requires

- plus
- Node.js
- GitHub
- Git

## 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 Agentflow skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent coding agents from building the wrong features?

This skill implements a spec to ship pipeline that requires explicit gates for specifications, architectural plans, and task based execution. It prevents issues like hallucinated requirements and scope drift by ensuring no code is written until a spec is approved and ledgered.

### What technical environment is required to use this skill?

You need a Git controlled environment to manage worktrees and the durable ledger file. The process relies on these to track technical rulings and ensure progress survives context compaction.

### What specific outputs will my agent generate while using this skill?

This skill produces a suite of committed documents including written specifications, architectural implementation plans, machine checkable task contracts, and a durable ledger of all technical decisions. These artifacts provide a clear audit trail and ensure the agent never repeats work or loses track of requirements.

### Are there any types of coding tasks where this skill is not recommended?

It is not suitable for micro tasks under 15 minutes that do not change software behavior. It is specifically designed for complex features where architectural consistency and a rigorous audit trail are critical.

### How do I start a new development cycle with my agent using this skill?

You can begin by asking your agent to initialize the project environment or by proposing a new feature to start the specification stage. The agent will then guide you through sequential gates for planning, task contracting, and TDD execution.

### How does this skill handle long coding sessions where the agent might normally lose focus?

The skill uses a committed ledger file that acts as a source of truth across sessions. This prevents the agent from losing the thread of original requirements or making creative leaps that contradict the architecture when the context window fills up.

---

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.
