agentleFS
d-padmanabhand-padmanabhan/agent-engineering-handbook/skills/agent-workflow/SKILL.md

agent-workflow

Skill17 starsChanged 55 days agoMITView on GitHub

Structured development workflow with Plan/Implement/Review phases, QA validation, context management, and audit requirements. Enforces explicit authorization for remote mutations, risk-based checkpoints, and proportional 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.

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-agent, agent-analyze-code-quality and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not stopping after agreed scope → Confusion, frustration, rework

    line 39
  2. Distinctive:

    Check existing code - look for patterns and reusable components

    line 61
  3. Distinctive:

    Don't refactor unrelated code

    line 84
  4. Distinctive:

    Don't add features not in the plan

    line 85
  5. Distinctive:

    Check for issues - security, bugs, edge cases

    line 92

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Workflow

Mandatory classification, approval, scope, implementation, and review gates are owned by the workflow rule (${HANDBOOK_ROOT}/rules/010-workflow.mdc). This skill owns detailed procedures and templates.

Golden Rules

Follow this three-phase approach for all non-trivial work:

  1. PLAN → Design solution → Document approach → WAIT FOR EXPLICIT APPROVAL
  2. IMPLEMENT → Code ONLY what was approved → STOP when agreed scope is complete
  3. 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

LevelTypeWorkflowExample
1SimpleDirect implementation → Quick reviewFix typo, simple bug fix
2ModerateBrief plan → QA → Implement → ReviewAdd new function
3ComplexFull Plan → Creative → QA → Implement → ReviewMulti-file feature
4ArchitecturalDetailed Plan → Creative (mandatory) → QA → Implement → ReviewMajor refactoring

Phase 1: Planning

You MUST NOT begin implementation until:

  • User has explicitly approved the plan
  • All clarifying questions have been answered
  • The scope is clearly defined and agreed upon

Process:

  1. Analyze the request - understand scope, constraints, requirements
  2. Check existing code - look for patterns and reusable components
  3. Design the solution - propose approach with alternatives
  4. 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:

  • Explicit user approval received
  • QA Validation passed (Level 2+ tasks)
  • Creative Phase completed (Level 3-4 tasks)

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:

  1. Review implemented changes - verify they match the plan
  2. Check for issues - security, bugs, edge cases
  3. Suggest improvements - but DON'T implement them yet
  4. Identify cleanup opportunities
  5. Propose next steps

Independent Verification

For security, IAM, production infrastructure, destructive migrations, sensitive data or financial logic, broad architecture, difficult rollback, or explicit assurance requirements, complete normal deterministic review first and then use the independent verification skill (${HANDBOOK_ROOT}/skills/independent-verification/SKILL.md).

The independent verifier reviews an immutable commit/diff hash in a fresh read-only session, reports findings without editing, and cannot replace required human approval.

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 covering remote-mutation authorization, risk-based checkpoints, and proportional reports, see audit requirements (${HANDBOOK_ROOT}/skills/agent-workflow/references/audit-requirements.md).

For detailed context management and QA validation, see context management (${HANDBOOK_ROOT}/skills/agent-workflow/references/context-management.md).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.