//! Side-effect actions invoked from the skills dialog.
use crateApp;
use crate;
/// Open the skills dialog. Resets filter + selection so re-opening
/// always lands on the unfiltered top of the list.
/// Send `body` as a prompt to the agent — same path the slash-command
/// dispatcher uses for skill auto-registration. Caller has already
/// flipped `app.mode` back to Chat before invoking this so the prompt
/// lands in the chat surface.