Skip to content

feat: add error self-recovery instructions to taskMaestro worker prompt template #870

@JeremyDev87

Description

@JeremyDev87

Purpose

Workers that encounter errors (git add failure, test failure, tool call error) often stop and wait for conductor intervention instead of self-recovering. The worker prompt template should include explicit self-recovery instructions.

Changes

  • .claude/skills/taskmaestro/SKILL.md — Enhance worker prompt template in assign subcommand

Expected Behavior

Add to worker prompt template:

[ERROR RECOVERY PROTOCOL]
If any command fails:
1. DO NOT STOP. Read the error message carefully.
2. Diagnose: run git status, check file paths, verify dependencies
3. Fix: apply the minimal fix to resolve the error
4. Retry: re-run the failed command
5. If 3 retries fail: write RESULT.json with status "failure" and error details
6. Reference systematic-debugging skill for complex errors

NEVER go idle after an error without either:
  a) Recovering and continuing, OR
  b) Writing RESULT.json with failure status

Acceptance Criteria

  • Error recovery protocol added to worker prompt template
  • Covers: git errors, test failures, tool call errors, dependency issues
  • Maximum 3 retry attempts before failure RESULT.json
  • References systematic-debugging skill
  • Can be merged independently

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    featsub-issue상위 이슈의 하위 작업

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions