Add skill system for shareable prompt-level agent behaviors

Skills are TOML manifests containing instructions injected into the LLM
context. They can be loaded from GitHub repos, URLs, or local files and
activated via /skill commands or custom slash commands from any channel.

Five defense layers protect against malicious skills: static analysis
(Aho-Corasick + skill-specific regex), hard tool whitelist (registry +
execution level), resource restrictions (domains, workspace paths, tool
call budget), BLAKE3 approval pinning, and structural prompt isolation
via <external_skill> wrapper with reassertion block.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Illia Polosukhin
2026-02-06 08:51:50 -08:00
co-authored by Claude Opus 4.6
parent 48ab73574e
commit c19986f06d
12 changed files with 2558 additions and 5 deletions
Generated
+1
View File
@@ -2157,6 +2157,7 @@ dependencies = [
"tokio-postgres",
"tokio-stream",
"tokio-test",
"toml",
"tower",
"tower-http",
"tracing",