Package com.tnsai.skills
Interface SkillStore
- All Known Implementing Classes:
FileSystemSkillStore,InMemorySkillStore
public interface SkillStore
SPI for skill discovery and lookup (TNS-289). The store is the
source of truth — agents do NOT keep their own skill cache,
because skill content can change at deploy time and a stale cache
would silently serve the wrong procedure.
Implementations
InMemorySkillStore— programmatic registration; intended for tests and embedded use cases.FileSystemSkillStore— disk-backed; reads the Claude Code-compatible<root>/<skill>/SKILL.mdlayout.- Operators ship custom adapters for classpath / database / enterprise registry backends via the same SPI.
Concurrency
Implementations MUST be safe to call from multiple agent threads — skill lookup happens on the LLM dispatch hot path.- Since:
- 0.10.0 (TNS-289)
-
Method Summary
-
Method Details
-
findByName
Look up a skill by its declaredname. -
list
Enumerate every registered skill. Used bySkillResolverto rank candidates against a user message and by tooling that needs to render a skill catalog. -
register
Register or replace a skill. Implementations MAY reject registration (e.g. read-only stores) by throwingUnsupportedOperationException.
-