Skip to main content

Create / Refine Prompt

Following is an example to use AI to build a proper prompt.

I want to create prompt for AI, to ask the following question: In bash how to extract file name and file extension part from any given path. Give me refined prompt to ask this. This refined prompt should contain all possible missing details and edge cases in question.