refactor(create-expert): add error recovery guidance to expert templates#373
Merged
refactor(create-expert): add error recovery guidance to expert templates#373
Conversation
Add Error Handling sections to: - Main Expert Template: standard error format with 'To fix:' guidance - Setup Expert Template: error handling with doctor expert suggestion Closes #362
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add explicit error handling sections to expert templates to ensure all experts provide actionable "To fix:" guidance when errors occur.
Changes
Main Expert Template:
Setup Expert Template:
Rationale
This reinforces Design Principle #7: "All errors must include 'To fix: ...' guidance". The Doctor Expert Template already had this, but Main and Setup templates did not.
Closes #362
🤖 Generated with Claude Code
Note
Summary
Strengthens error guidance across expert templates by standardizing messages that include actionable "To fix:" steps.
apps/create-expert/src/lib/create-expert-toml.ts:## Error Handlingwith formatted error output and no-silent-fail policy## Error Handlingwith failure format and suggestion to run the doctor expert.changeset/add-error-recovery-guidance.mddocumenting a patch change and the new guidanceReinforces Design Principle #7: All errors must include "To fix: ..." guidance.
Written by Cursor Bugbot for commit 4f6ebc2. This will update automatically on new commits. Configure here.