in devai-cli/src/devai/commands/prompts.py [0:0]
def get_user_prompts_dir() -> Optional[Path]:
"""Get the user's custom prompts directory if configured."""
# First check if user has set a custom path in config
config = get_config()
prompts_dir = config.get('prompts_dir')
if prompts_dir and prompts_dir.strip():
return Path(prompts_dir)
# If no custom path, check if user has initialized prompts directory
default_dir = Path.home() / '.devai' / 'prompts'
if default_dir.exists():
return default_dir
return None