- Home
- Skills
- Agents & Orchestration
- Agent Engineering Method
Agent Engineering Method
A disciplined, spec-first engineering framework for coding agents to reduce rework and ensure test-driven results.
$5
Works with the AI tools you already use
Agent Engineering Method
Example session with this skill installed
I need to add a 'forgot password' flow to my Next.js app using Auth.js. Follow the engineering method to start Phase 0 and Phase 1.
- Read your context and instructions
- Compiled the agent engineering method
- Generated the document
I have initiated the Agent Engineering Method. I have defined the scope and generated a verifiable execution plan to ensure the authentication flow is secure and testable.
Project Spec & Execution Plan
| Phase | Task | Details | Verification Check |
|---|---|---|---|
| Spec | Problem Definition | Users locked out of accounts need a secure way to reset passwords via email. | Spec file saved to .docs/reset-flow-spec.md |
| Spec | Constraints | Must use existing Postmark SMTP; must not bypass MFA if enabled; tokens must expire in 1 hour. | Constraint list verified against auth.ts |
| Plan 1 | Schema Update | Add resetToken and resetTokenExpiry to the User model in Prisma. | npx prisma validate |
| Plan 2 | API Route | Create POST /api/auth/reset-request to validate email and send token. | Red/Green test for 200 OK on valid email |
| Plan 3 | Email Service | Configure Postmark template for password reset link delivery. | Manual check of sent email metadata |
| Plan 4 | Reset Page | Build Next.js form for new password entry with token validation. | Test for 400 error on expired token |
| Plan 5 | Password Update | Implement PATCH /api/auth/reset-password to update hash and clear tokens. | Verify login with new credentials |
| Merge | Final Review | Audit token cleanup and redirect logic. | Check all tests pass and diff review |
Next steps
- Review the generated spec in
.docs/reset-flow-spec.mdand approve the constraints. - I will now begin Phase 2 by writing the failing Prisma schema test.
- Once the schema is green, I will delegate the API route to a subagent.
agent-engineering-method.pdf
PDF · document
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
The problem
Coding agents often start writing code before fully understanding the requirements, leading to hallucinations and broken builds. Without a structured plan, agents frequently waste tokens on circular debugging and plausible-looking but incorrect logic.
What it does
- Enforces a brainstorm phase to define observable behavior and constraints before any code is generated.
- Generates an executable, step-by-step implementation plan where every task includes a verification check.
- Implements a Red/Green TDD cycle, requiring failing tests before writing functional code.
- Manages subagent delegation by assigning specific file paths and success criteria to prevent file conflicts.
- Provides a systematic debugging framework focused on root-cause analysis rather than symptom patching.
Why this beats prompting it yourself
Generic prompts rely on the agent's internal logic to maintain context, which decays as the session grows. This skill provides a rigid engineering framework that forces documentation and verification at every stage. It stops the agent from "guessing" by requiring written specs and test-driven proofs, significantly reducing rework and drift.
Use cases
- Architecting complex new features where multiple files must be synchronized.
- Refactoring legacy modules where regression testing is critical.
- Orchestrating a team of subagents to work on independent components in parallel.
- Solving elusive bugs through disciplined hypothesis testing and reproduction steps.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 24 days ago
- Passed all security checks, Safe to install