feat(skills): scaffold experimental skills system#1
Merged
Conversation
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.
This pull request introduces experimental support for "Agent Skills" in the mini-forensics-agent, allowing the agent to discover, activate, and utilize modular skill plugins defined in the workspace or user directories. The changes span the CLI, agent loop, prompting, and a new
skills.pymodule, enabling dynamic skill discovery, activation, and resource access during agent runs.The most important changes are:
Agent Skills Framework:
skills.pymodule that implements skill discovery, parsing, cataloging, activation, and resource reading. Skills are defined by directories containing aSKILL.mdfile with YAML frontmatter and instructions. The module provides theSkillCatalog,SkillRecord, and functions for rendering and activating skills.CLI and Workflow Integration:
cli.py) to support new arguments:--enable-skills,--skill-dir, and--list-skills. The agent can now discover skills, list them, and enable skill-based workflows. The task argument is now optional if listing models or skills. The CLI output includes discovered skills and their roots when skills are enabled. [1] [2] [3] [4] [5]Agent Loop and Tooling:
loop.py) to support skill activation and resource access. The loop tracks active skills, exposes skill information in prompts, and routes new tool calls (ActivateSkill,ReadSkillResource) to the appropriate handlers. Active skills are updated as the agent runs. [1] [2] [3] [4] [5] [6] [7]Prompting and Guidance:
prompting.py) to include available skills, active skill context, and new tool usage instructions when skills are enabled. The prompt guides the model on how and when to activate and use skills. [1] [2] [3] [4]Documentation:
README.mdto document the experimental Agent Skills feature, including usage examples, skill directory precedence, skill structure, and relevant CLI commands.