devchat-ai / devchat

Automate your dev tasks with AI-powered scripts, from your IDE's chat panel.
https://www.devchat.ai
Apache License 2.0
340 stars 39 forks source link

Suggest Default Prompt for Refactoring Workflow #337

Open runjinz opened 4 months ago

runjinz commented 4 months ago

Problem Description

During the refactoring workflow process, it appears that users are not provided with a default suggestion or prompt. This lack of guidance might lead to confusion or inefficiency as there are generally accepted best practices in refactoring that could be beneficial to follow. Adhering to the principle of 'Don't Make Me Think' by Steve Krug, it would enhance the user experience significantly if a default prompt were provided. Such a prompt could serve as a gentle nudge towards those best practices or as a starting point that users could then modify or override according to their specific needs.

Suggested Enhancement

I propose that we introduce a default prompt or suggestion during the initial stage of the refactoring workflow. This prompt should reflect commonly accepted best practices in refactoring. The idea is not to constrain the user but to provide a foundation which they can either accept or build upon. This approach respects the users' expertise and time by guiding them towards effective practices while still allowing for full customization.

Benefits

Implementation Considerations

This enhancement could make the refactoring process more intuitive and efficient, especially for those who might not be as familiar with the best practices involved. Looking forward to hearing the team's thoughts on this suggestion.