name: agent-workflow
description: Structured development workflow with Plan/Implement/Review phases, QA validation, context management, and audit requirements. Enforces no remote writes, mandatory checkpoints, and verifiable audit reports. Use when working on complex tasks, multi-file changes, or when the user mentions planning, workflow, implementing features, or needs structured development guidance.
Agent Workflow
Golden Rules
Follow this three-phase approach for all non-trivial work:
- PLAN → Design solution → Document approach → WAIT FOR EXPLICIT APPROVAL
- IMPLEMENT → Code ONLY what was approved → STOP when agreed scope is complete
- REVIEW → Verify results → Suggest improvements → Return to PLAN phase
Critical Violations to Avoid
- DON'T DO THIS:
User: "Can you add authentication?"
AI: [Immediately starts coding without discussion]
+ DO THIS INSTEAD:
User: "Can you add authentication?"
AI: "Let me design a solution first. Key decisions needed:
- OAuth 2.0 vs local authentication?
- JWT tokens vs session-based?
- User data storage location?
Let's agree on the approach before I write any code."
Why This Matters:
- Skipping planning → Wasted time, wrong solutions, scope creep
- Implementing unplanned features → Breaking existing code, technical debt
- Not stopping after agreed scope → Confusion, frustration, rework
Complexity Levels
| Level |
Type |
Workflow |
Example |
| 1 |
Simple |
Direct implementation → Quick review |
Fix typo, simple bug fix |
| 2 |
Moderate |
Brief plan → QA → Implement → Review |
Add new function |
| 3 |
Complex |
Full Plan → Creative → QA → Implement → Review |
Multi-file feature |
| 4 |
Architectural |
Detailed Plan → Creative (mandatory) → QA → Implement → Review |
Major refactoring |
Phase 1: Planning
You MUST NOT begin implementation until:
Process:
- Analyze the request - understand scope, constraints, requirements
- Check existing code - look for patterns and reusable components
- Design the solution - propose approach with alternatives
- WAIT FOR APPROVAL - present plan and await confirmation
Key Questions:
- What is the simplest solution that meets requirements?
- Can we reuse existing code or patterns?
- What are the security implications?
- How will this be tested?
Phase 2: Implementation
Implementation Gate Checks:
Constraints:
- Implement only what was planned
- Make incremental changes
- Don't refactor unrelated code
- Don't add features not in the plan
Phase 3: Review
Process:
- Review implemented changes - verify they match the plan
- Check for issues - security, bugs, edge cases
- Suggest improvements - but DON'T implement them yet
- Identify cleanup opportunities
- Propose next steps
Quick Commands
- "Plan this:" → Enter Planning phase
- "QA" → Run QA Validation (interrupts any process)
- "Implement:" → Enter Implementation phase
- "Review:" → Enter Review phase
- "What's the status?" → Check current phase
Audit Requirements
For audit requirements including no remote writes, checkpoint management, and audit reports, see references/audit-requirements.md.
For detailed context management and QA validation, see references/context-management.md.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: kiraneswaran-engineering-skills-agent-workflow3description: ---4---5---6name: agent-workflow7description: Structured development workflow with Plan/Implement/Review phases, QA validation, context management, and audit requirements. Enforces no remote writes, mandatory checkpoints, and verifiable audit reports. Use when working on complex tasks, multi-file changes, or when the user mentions planning, workflow, implementing features, or needs structured development guidance.8---910# Agent Workflow1112## Golden Rules1314**Follow this three-phase approach for all non-trivial work:**15161. **PLAN** → Design solution → Document approach → **WAIT FOR EXPLICIT APPROVAL**172. **IMPLEMENT** → Code ONLY what was approved → **STOP** when agreed scope is complete183. **REVIEW** → Verify results → Suggest improvements → Return to PLAN phase1920## Critical Violations to Avoid2122```diff23- DON'T DO THIS:24User: "Can you add authentication?"25AI: [Immediately starts coding without discussion]2627+ DO THIS INSTEAD:28User: "Can you add authentication?"29AI: "Let me design a solution first. Key decisions needed:30 - OAuth 2.0 vs local authentication?31 - JWT tokens vs session-based?32 - User data storage location?33 34 Let's agree on the approach before I write any code."35```3637**Why This Matters:**38- Skipping planning → Wasted time, wrong solutions, scope creep39- Implementing unplanned features → Breaking existing code, technical debt40- Not stopping after agreed scope → Confusion, frustration, rework4142## Complexity Levels4344| Level | Type | Workflow | Example |45|-------|------|----------|---------|46| **1** | Simple | Direct implementation → Quick review | Fix typo, simple bug fix |47| **2** | Moderate | Brief plan → QA → Implement → Review | Add new function |48| **3** | Complex | Full Plan → Creative → QA → Implement → Review | Multi-file feature |49| **4** | Architectural | Detailed Plan → Creative (mandatory) → QA → Implement → Review | Major refactoring |5051## Phase 1: Planning5253**You MUST NOT begin implementation until:**54- [ ] User has explicitly approved the plan55- [ ] All clarifying questions have been answered56- [ ] The scope is clearly defined and agreed upon5758**Process:**591. Analyze the request - understand scope, constraints, requirements602. Check existing code - look for patterns and reusable components613. Design the solution - propose approach with alternatives624. **WAIT FOR APPROVAL** - present plan and await confirmation6364**Key Questions:**65- What is the simplest solution that meets requirements?66- Can we reuse existing code or patterns?67- What are the security implications?68- How will this be tested?6970## Phase 2: Implementation7172**Implementation Gate Checks:**73- [ ] Explicit user approval received74- [ ] QA Validation passed (Level 2+ tasks)75- [ ] Creative Phase completed (Level 3-4 tasks)7677**Constraints:**78- Implement only what was planned79- Make incremental changes80- Don't refactor unrelated code81- Don't add features not in the plan8283## Phase 3: Review8485**Process:**861. Review implemented changes - verify they match the plan872. Check for issues - security, bugs, edge cases883. Suggest improvements - but DON'T implement them yet894. Identify cleanup opportunities905. Propose next steps9192## Quick Commands9394- **"Plan this:"** → Enter Planning phase95- **"QA"** → Run QA Validation (interrupts any process)96- **"Implement:"** → Enter Implementation phase97- **"Review:"** → Enter Review phase98- **"What's the status?"** → Check current phase99100## Audit Requirements101102For audit requirements including no remote writes, checkpoint management, and audit reports, see [references/audit-requirements.md](references/audit-requirements.md).103104For detailed context management and QA validation, see [references/context-management.md](references/context-management.md).105106107---108> Converted and distributed by [TomeVault](https://tomevault.io/claim/kiraneswaran) — claim your Tome and manage your conversions.109<!-- tomevault:4.0:skill_md:2026-04-11 -->