- Home
- Skills
- Agents & Orchestration
- PM + Dev Subagents: Spec-to-Code Loop with Quality Gates
Works with the AI Agents you already use
PM + Dev Subagents: Spec-to-Code Loop with Quality Gates
Implement a rigorous PM-Developer review loop with separated authority and automated quality gates.
$6
PM + Dev Subagents: Spec-to-Code Loop with Quality Gates
Example session with this skill installed
I need to implement a new JWT auth flow. Use a PM and a dev agent to ensure the spec is followed and all security tests pass before finishing.
- Read your context and instructions
- Compiled the pm + dev
Protocol initialized in .pmdev/jwt-auth-flow/. PM has generated SPEC.md with 5 acceptance criteria. Quality gate detected: npm test, npm run lint. Starting Round 01. Developer is implementing the auth provider while PM awaits the gate log for verification.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Single-agent coding tasks often suffer from "self-review blindness" where the agent decides a task is done simply because it stopped typing. Developers frequently find themselves in a "ping-pong" loop with agents that claim success while ignoring acceptance criteria or moving the goalposts by editing the spec.
What it does
- Enforces a strict separation of authority by spawning two subagents: a PM to write the spec and a Developer to write the code.
- Implements a file-based protocol (SPEC.md, BUILD.md, REVIEW.md) that persists across agent crashes or restarts.
- Automates quality gates by detecting and running project-specific tests, linters, and build commands.
- Prevents infinite loops through built-in thrash detection and hard round budgets.
- Ensures the PM agent has no write access to source code, preventing it from reviewing its own fixes.
Why this beats prompting it yourself
Writing "please review your work" in a single prompt rarely works because the agent shares the same context and bias as its mistakes. This skill provides a structured framework with specialized roles, dedicated artifacts, and bash-backed verification that forces objective accountability. It replaces vague conversational feedback with a citation-based rubric that links every code change to a specific acceptance criterion.
Use cases
- Executing complex feature requests where self-correction typically fails.
- Managing long-running refactors that require strict adherence to a multi-point checklist.
- Automating internal PR reviews before a human ever touches the code.
- Ensuring legacy code changes pass a rigorous, multi-stage quality gate without manual oversight.
Known limitations
This skill requires a repository with executable tests or build signals to populate the quality gate. It consumes 3x to 5x more tokens than a single-agent execution, making it unsuitable for trivial fixes.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.
Requires an executable test suite or build pipeline. Token usage is significantly higher (3x-5x) due to the multi-agent round protocol. Not for simple typos or exploration.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
This skill has been used 12 times.
Trust & safety
Security scan
Security scan passed 2 months ago