Skip to content

feat(rules): add Error Recovery policy to shared rules #689

@JeremyDev87

Description

@JeremyDev87

Background

The Error Recovery rules currently exist only in CLAUDE.md (project root, Claude Code specific):

## Error Recovery
- On CLI command failure, automatically try alternatives
- Do not wait for user confirmation on recoverable errors
- Only report to user on unrecoverable errors
- Never break the workflow on error

Other AI tools (Cursor, Codex, Q, Kiro, Antigravity) are unaware of this policy.

Proposed Fix

Add an Error Recovery section to packages/rules/.ai-rules/rules/core.md under the ACT mode section:

### Error Recovery (ACT mode)
- On recoverable errors (file not found, command failure, path issues), try alternatives immediately
- Do not wait for user confirmation on recoverable errors — recover immediately
- Only report to user on unrecoverable errors (auth failure, critical data loss risk)
- Never break the workflow on error — try alternatives and continue

Scope

  • File: packages/rules/.ai-rules/rules/core.md
  • The Error Recovery section in CLAUDE.md can be replaced with a reference to shared rules
  • Applies consistent Error Recovery policy across all AI tools

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions