Repository navigation
feat(ox-core): add deterministic auto-loaded skills with matchers and role metadata - #981
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
hakula139
force-pushed
the
feat/auto-loaded-skills
branch
2 times, most recently
from
December 1, 2026 10:51
482e3bc to
e0ceef6
Compare
hakula139
force-pushed
the
feat/auto-loaded-skills
branch
from
December 1, 2026 10:53
e0ceef6 to
526a1c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SKILL.mdfrontmatter parsing inox-core::skillswithactivation(on_demanddefault oralways),on_filesandon_toolscomma-separated glob matchers, and optional agent role metadata (model,tools).pub(crate) fn glob_matchesfromox-core::hooksand reuse it for deterministic skill file and tool matching.SkillRegistryintoAgentviaAgent::with_skills: injectactivation: alwaysskills into the system prompt at session start and inject matchingon_files/on_toolsskills at thePreToolUsestage, trackingloaded_skillsso each skill is injected at most once per session.docs/reference/skills.md.Test plan
nix develop -c run-hooks(all formatting, spelling, markdownlint, and clippy hooks passed)nix develop -c cargo llvm-cov --workspace --show-missing-lines(skills.rs: 98.36% lines,agent.rs: 96.89% lines, workspace total: 94.84% lines)nix develop -c cargo doc --no-depsRelated