Skip to content

feat(skills): expose user-invocable skills as slash commands - #989

Open
hakula139 wants to merge 1 commit into
mainfrom
feat/skill-slash-commands
Open

hakula139 wants to merge 1 commit into
mainfrom
feat/skill-slash-commands

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

  • Add optional user_invocable frontmatter boolean on Skill in ox-core (defaults to true for on_demand skills and false for always skills) and SkillRegistry::user_invocable().
  • Add CommandEffect::SubmitPrompt(String), CommandRegistry::register_skills(&Arc<SkillRegistry>), and App::with_skills(&Arc<SkillRegistry>) in ox-tui to register user-invocable skills as /<name> slash commands without shadowing built-in commands or aliases.
  • Dispatching /<name> [args] loads the skill body, wraps it in <skill name="...">...</skill> with any trailing user arguments, and submits it as a prompt when the TUI is idle.
  • Document user_invocable and slash command invocation in docs/reference/skills.md.

Test plan

  • nix develop -c run-hooks (all hooks including clippy, rustfmt, cspell, dprint, markdownlint-cli2)
  • nix develop -c cargo doc --no-deps
  • nix develop -c cargo llvm-cov --workspace --show-missing-lines (workspace 94.82% lines; 100% production patch coverage across touched files)

Related

@hakula139 hakula139 self-assigned this Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.11504% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
crates/ox-tui/src/command.rs 98.33% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose user-invocable skills as slash commands

1 participant