Skills
@alphacro/agent-skills-plugin
Section titled “@alphacro/agent-skills-plugin”Package: packages/agent-skills-plugin
Skill loading/unloading plugin: contributes the four skill tools plus a DecoratePromptMessages hook that lets the model self-manage context by collapsing load/unload sequences.
Overview
Section titled “Overview”@alphacro/agent-skills-plugin: bundles all four skill tools
(list_skills, load_skill, install_skill, unload_skill) and
the DecoratePromptMessages hook that redacts superseded
load_skill bodies into one-line reload notices.
The plugin keeps no state slice \u2014 the rewriter derives everything it needs from the tool-call/tool-result pairs already in the prompt, so a hibernating DO that re-hydrates from the event log produces the same rewritten prompt without re-playing any plugin state.
Contributions
Section titled “Contributions”| Contribution | Declared |
|---|---|
| Tools | ✅ |
| Hooks | ✅ |
| Sub-agents | ❌ |
| Slash commands | ❌ |
| HTTP routes | ❌ |
| RPC methods | ❌ |
| Workflows | ❌ |
| Permissions | ❌ |
| Tool cards | ❌ |
| State slice | ❌ |
| Reducer | ❌ |
| Session start handler | ❌ |
| Session end handler | ❌ |
| Startup phase | ❌ |
| Dependencies | ❌ |
install_skilllist_skillsload_skillunload_skill
DecoratePromptMessages
Source
Section titled “Source”- Plugin factory:
packages/agent-skills-plugin/src/plugin.ts