Open History to see the last commit
1/**
2 * `@tanstack/ai-skills` — portable Agent Skills (`SKILL.md`) as a first-class
3 * `chat()` middleware. Edge-safe root export; `skillDirectory` (node:fs) lives
4 * behind the `/node` subpath, the Vite plugin behind `/static`, and the
5 * conformance suite behind `/testing`.
6 */
7export type {
8 SkillSource,
9 SkillMetadata,
10 SkillScriptRef,
11 LoadSkillResult,
12 ModelFamily,
13} from './types'
14export { modelFamilyOf } from './types'
15
16export { parseSkill, stripFrontmatter, SkillParseError } from './parse'
17export type { ParsedSkill, ParseWarning } from './parse'
18
19export { walkSkillDirs, SKILL_FILE, MAX_SKILL_WALK_DEPTH } from './walk'
20export type { DiscoveredSkillDir, WalkEntry, ListDir } from './walk'
21
22export { inlineSkill } from './sources/inline'
23export type { InlineSkillConfig } from './sources/inline'
24
25export { aggregate, dedupe, filter, cache, combineSources } from './combinators'
26export type { FilterContext, FilterPredicate } from './combinators'
27
28export { renderCatalog, sortSkills } from './catalog'
29
30export { withSkills, SKILLS_STATE_EVENT } from './middleware'
31export type { SkillsOptions, SkillsStateEventValue } from './middleware'
32
33export { createLoadSkillTool, ALREADY_LOADED } from './tools/load-skill'
34export {
35 createResourceTool,
36 READ_RESOURCE_TOOL_NAME,
37} from './tools/read-resource'
38
39export { validateSkill } from './validate'
40export type {
41 SkillTarget,
42 SkillValidationIssue,
43 SkillValidationResult,
44} from './validate'
45
46export { SkillLimitError } from './errors'
47export type { SkillLimitErrorInit } from './errors'
48
49export { assertSafeResourcePath, stableHash } from './util'