1. Check authentication status using `xhs status`. If not authenticated, guide the user through the login process using `xhs login` or `xhs login --qrcode`.
2. Based on the user's request (e.g., search, read, like, comment), construct the appropriate `xhs` command with necessary parameters.
3. Execute the `xhs` command using the CLI.
4. Parse the output of the command, typically in YAML or JSON format.
5. Handle potential errors such as `NoCookieError`, `NeedVerifyError`, `IpBlockedError`, or `SessionExpiredError` by guiding the user to resolve them.
6. Provide feedback to the user based on the command's output, including relevant data or error messages.
7. If performing multiple operations, add `time.sleep()` between CLI calls to avoid rate limiting.