PluginBench
Skill
Pass
Audit score 90

workflow

brianlovin/agent-config

Workflow orchestration for complex coding tasks with planning, verification, and autonomous bug fixing.

What is workflow?

Enforces structured execution for non-trivial tasks (3+ steps or architectural decisions) through plan-first methodology, subagent delegation, and verification loops. Use this for multi-step implementations, bug fixes, refactoring, and architectural changes to maintain code quality and prevent mistakes.

  • Enter plan mode automatically for complex tasks to reduce ambiguity and enforce structured thinking
  • Delegate research, exploration, and parallel work to subagents to keep main context clean
  • Verify all changes work before marking tasks complete with diffs, tests, and correctness checks
  • Capture lessons from corrections in tasks/lessons.md to prevent recurring mistakes
  • Demand elegant solutions for non-trivial changes while skipping over-engineering for simple fixes
  • Autonomously fix bugs by analyzing logs and errors without requiring user hand-holding

How to install workflow

npx skills add https://github.com/brianlovin/agent-config --skill workflow
Claude Code
Cursor
Windsurf
Cline

How to use workflow

  1. 1.For any task with 3+ steps or architectural decisions, enter plan mode and write detailed specs to tasks/todo.md
  2. 2.Break down complex work into checkable items and verify the plan before starting implementation
  3. 3.Use subagents liberally for research, exploration, and parallel analysis to keep main context clean
  4. 4.Run tests, check logs, and diff behavior to verify changes work before marking tasks complete
  5. 5.After any user correction, update tasks/lessons.md with the pattern and write rules to prevent the same mistake
  6. 6.Review lessons at session start and iterate ruthlessly until mistake rate drops

Use cases

Good for
  • Multi-step feature implementation with architectural decisions
  • Debugging production issues by analyzing logs and fixing root causes
  • Refactoring legacy code with verification that behavior remains unchanged
  • Coordinating parallel work across multiple subagents for complex problems
  • Building self-improving workflows that learn from corrections and update internal rules
Who it's for
  • Software engineers working on non-trivial coding tasks
  • Teams needing structured execution for complex features or bug fixes
  • Developers who want autonomous bug fixing without context-switching
  • Anyone implementing architectural changes or refactoring large codebases

workflow FAQ

When should I use this skill?

Use it for ANY non-trivial task: 3+ steps, architectural decisions, multi-step implementations, bug fixes, refactoring, or anything requiring structured execution. Skip it for simple, obvious fixes.

What's the difference between plan mode and just starting work?

Plan mode means writing detailed specs upfront to reduce ambiguity, checking in before implementation, and stopping immediately to re-plan if something goes wrong instead of pushing forward.

How do subagents help?

Subagents keep your main context window clean by handling research, exploration, and parallel analysis. Assign one focused task per subagent to avoid context bloat.

What should I do when I make a mistake?

Update tasks/lessons.md with the pattern, write rules for yourself that prevent the same mistake, and review these lessons at session start for relevant projects.

How do I know when a task is actually done?

Never mark complete without proving it works: run tests, check logs, diff behavior against main, and ask yourself if a staff engineer would approve it.

Full instructions (SKILL.md)

Source of truth, from brianlovin/agent-config.


name: workflow description: "Workflow orchestration for complex coding tasks. Use for ANY non-trivial task (3+ steps or architectural decisions) to enforce planning, subagent strategy, self-improvement, verification, elegance, and autonomous bug fixing. Triggers: multi-step implementation, bug fixes, refactoring, architectural changes, or any task requiring structured execution."

Workflow Orchestration

1. Plan Mode Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
  • If something goes sideways, STOP and re-plan immediately — don't keep pushing
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
  • Offload research, exploration, and parallel analysis to subagents
  • For complex problems, throw more compute at it via subagents
  • One task per subagent for focused execution

3. Self-Improvement Loop

  • After ANY correction from the user: update tasks/lessons.md with the pattern
  • Write rules for yourself that prevent the same mistake
  • Ruthlessly iterate on these lessons until mistake rate drops
  • Review lessons at session start for relevant project

4. Verification Before Done

  • Never mark a task complete without proving it works
  • Diff behavior between main and your changes when relevant
  • Ask yourself: "Would a staff engineer approve this?"
  • Run tests, check logs, demonstrate correctness

5. Demand Elegance (Balanced)

  • For non-trivial changes: pause and ask "is there a more elegant way?"
  • If a fix feels hacky: "Knowing everything I know now, implement the elegant solution"
  • Skip this for simple, obvious fixes — don't over-engineer
  • Challenge your own work before presenting it

6. Autonomous Bug Fixing

  • When given a bug report: just fix it. Don't ask for hand-holding
  • Point at logs, errors, failing tests — then resolve them
  • Zero context switching required from the user
  • Go fix failing CI tests without being told how

Task Management

  1. Plan First: Write plan to tasks/todo.md with checkable items
  2. Verify Plan: Check in before starting implementation
  3. Track Progress: Mark items complete as you go
  4. Explain Changes: High-level summary at each step
  5. Document Results: Add review section to tasks/todo.md
  6. Capture Lessons: Update tasks/lessons.md after corrections

Core Principles

  • Simplicity First: Make every change as simple as possible. Impact minimal code.
  • No Laziness: Find root causes. No temporary fixes. Senior developer standards.
  • Minimal Impact: Changes should only touch what's necessary. Avoid introducing bugs.