Package com.tnsai.skills
Class InMemorySkillStore
java.lang.Object
com.tnsai.skills.InMemorySkillStore
- All Implemented Interfaces:
SkillStore
In-memory
SkillStore backed by a thread-safe map.
Suitable for tests and embedded use cases where skills are wired
programmatically rather than loaded from disk. Lookups are
case-insensitive on skill name to match the Claude Code convention
(the directory under <root>/ acts as the name and is
conventionally lowercase).
- Since:
- 0.10.0 (TNS-289)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InMemorySkillStore
public InMemorySkillStore() -
InMemorySkillStore
-
-
Method Details
-
findByName
Description copied from interface:SkillStoreLook up a skill by its declaredname.- Specified by:
findByNamein interfaceSkillStore
-
list
Description copied from interface:SkillStoreEnumerate every registered skill. Used bySkillResolverto rank candidates against a user message and by tooling that needs to render a skill catalog.- Specified by:
listin interfaceSkillStore
-
register
Description copied from interface:SkillStoreRegister or replace a skill. Implementations MAY reject registration (e.g. read-only stores) by throwingUnsupportedOperationException.- Specified by:
registerin interfaceSkillStore
-