Open
Conversation
Formalizes Skill as pure declarative configuration — system prompt, optional examples, tools/delegates by name reference, light config. 12 invariants (S1-S12). Key decisions: - A skill is what the model BECOMES, not what it CALLS (vs Tool) - Pure declaration enables marketplace, sharing, agent-generated skills - Tools by reference (not inline) enables reuse and composition - Delegates by reference scales to multi-agent topologies (#157) - No skill.run() — runtime activates, no method to implement - onActivate is the narrow escape hatch for dynamic per-user/tenant tools Confusing skills with tools is the recurring failure mode in agent libraries (LangChain's 'agents' do this). This contract makes the distinction load-bearing. Unblocks: - Skill marketplace (#181) — JSON-serializable, versionable - Multi-agent topologies (#157) — supervisor/swarm/hierarchical via delegates - Skill manifest spec MCP-aligned (#182) — at most a few standardized metadata keys - agentskit ai (#144) — agents generating skills emit pure JSON Refs #214
This was referenced Apr 14, 2026
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
Fifth ADR of Phase 0 — formalizes Skill as pure declarative configuration: a system prompt + optional examples + tools/delegates by name reference. 12 invariants (S1-S12).
Builds on #267 (Adapter), #270 (Tool), #271 (Memory), #272 (Retriever).
The load-bearing distinction
Confusing them is the recurring failure mode in agent libraries (LangChain's "agents" half-conflate them). This contract makes the distinction explicit through three invariants:
Highlight invariants
Trade-offs accepted
onActivateis the only function in an otherwise pure-data contract — accepted because per-user dynamic tools are realmetadata.versionis convention; manifest spec ([F3] #69 — Skill marketplace with versioning #182) will formalizeUnlocks
delegatesgraphsmetadatakeysSkillDefinitionsTest plan
packages/skills/src/*(researcher, critic, summarizer, coder, planner)?onActivatethe right escape hatch shape?Refs #214 #211