feat(skills): add runtime skill activation#62
Open
narutoZed wants to merge 4 commits intoHKUDS:mainfrom
Open
Conversation
Introduce metadata-driven skill loading, alias-aware registration, slash-command activation, and same-turn skill runtime enforcement. This keeps model-only access boundaries intact while applying skill model, prompt, and tool constraints immediately after activation.
Add tool_call_id field to ToolExecutionStarted and ToolExecutionCompleted events so downstream consumers can correlate tool invocations with their results. Propagate through UI protocol, backend host, and all output renderers. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # pyproject.toml # src/openharness/commands/registry.py # src/openharness/engine/query.py # src/openharness/engine/query_engine.py # src/openharness/plugins/loader.py # src/openharness/prompts/context.py # src/openharness/skills/bundled/__init__.py # src/openharness/skills/loader.py # src/openharness/tools/skill_tool.py # src/openharness/ui/runtime.py # src/openharness/ui/textual_app.py # tests/test_commands/test_registry.py # tests/test_engine/test_query_engine.py # tests/test_skills/test_loader.py
Restore QueryEngine.set_active_skill / active_skill property and wire active_skill filtering into the per-turn request builder in run_query (model override, system prompt injection, tool filtering). Also fix a test assertion for the tool_call_id display change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
skilltoolTest plan
uv run pytest -q tests/test_tools/test_core_tools.py tests/test_engine/test_query_engine.py tests/test_commands/test_registry.py tests/test_skills/test_loader.pyuv run ruff check src/openharness/skills/runtime.py src/openharness/tools/skill_tool.py src/openharness/prompts/context.py src/openharness/engine/query.py src/openharness/engine/query_engine.py src/openharness/ui/runtime.py src/openharness/commands/registry.py tests/test_tools/test_core_tools.py tests/test_engine/test_query_engine.py tests/test_commands/test_registry.py tests/test_skills/test_loader.py🤖 Generated with Claude Code