veryfront/skill

Import

TypeScript
import {  createExecuteSkillScriptTool,  createLoadSkillReferenceTool,  createLoadSkillTool,  filterToolNamesForSkill,  filterToolsForSkill,  getAllSkills,} from "veryfront/skill";

Examples

TypeScript
import { parseSkillFrontmatter, validateSkillMetadata } from "veryfront/skill"; const parsed = await parseSkillFrontmatter("---\nname: review\ndescription: Review code\n---\n");validateSkillMetadata(parsed.frontmatter, "review");

Exports

Components

NameDescriptionSource
SKILL_ALLOWED_TOOL_PATTERN_REGEXPublic inspection matcher for exact tool IDs and prefix wildcards. Mutating this compatibility value does not alter authorization decisions.source
SKILL_ASSETS_DIRsource
SKILL_DESCRIPTION_MAX_LENGTHMaximum description length in characterssource
SKILL_MD_FILENAMEStandard SKILL.md filename per agentskills.io specsource
SKILL_METADATA_KEY_MAX_LENGTHsource
SKILL_METADATA_MAX_ENTRIESsource
SKILL_METADATA_VALUE_MAX_LENGTHsource
SKILL_NAME_REGEXHistorical public skill-name inspection matcher. Mutating this compatibility value does not alter framework admission.source
SKILL_READABLE_DIRSCanonical read-only skill directories exposed through reference loading.source
SKILL_REFERENCES_DIRsource
SKILL_RESOURCES_DIRsource
SKILL_SCRIPTS_DIRConventional subdirectory namessource
SKILL_TOOL_IDSPublic snapshot of tool IDs that belong to the skill system.source

Functions

NameDescriptionSource
createExecuteSkillScriptToolCreate the execute_skill_script tool. Executes a script from a skill's scripts/ directory.source
createLoadSkillReferenceToolCreate the load_skill_reference tool. Reads a reference file from a skill's references/, resources/, or assets/ directory.source
createLoadSkillToolCreate the load_skill tool. Loads a skill's full instructions, available references, and scripts.source
filterToolNamesForSkillFilter provider-native or other name-only tool inventories through the same boundary.source
filterToolsForSkillFilter tool definitions before sending them to the model.source
getAllSkillssource
getSkillsource
getSkillScriptExecutorGet the appropriate script executor. Checks cloud auth availability on every call so request-scoped credentials and environment overrides are respected.source
isSkillInfrastructureToolIdFramework-owned membership check that cannot be changed by public Set mutation.source
isSkillToolAvailableCheck whether a specific tool call is available at execution time.source
isSkillVisibleToWhether a skill is visible to the caller identified by the scope.source
isValidProviderSafeSkillIdFramework-owned provider-safe owned skill-id grammar check.source
isValidSkillNameFramework-owned historical skill-name grammar check.source
isValidStrictSkillNameFramework-owned strict filesystem skill-name grammar check.source
listSkillSubdirList files with the public compatibility resource policy. Enumeration is not entry-capped and preserves the filesystem adapter's iteration order. listStrictSkillSubdir applies the runtime filesystem ceilings and deterministic ordering.source
parseBoundedSkillDocumentParse one bounded Skill document with an explicit provider or the active extension contract generation.source
parseSkillFileFrontmatterParse and bound an untrusted SKILL.md document read from a filesystem boundary. YAML frontmatter is decoded by the explicit provider, or by the active SkillDocumentParserProvider registration when the argument is omitted.source
parseSkillFrontmatterParse SKILL.md content through the bounded, fail-closed format. Malformed YAML, invalid Unicode, and oversized documents are rejected. YAML frontmatter is decoded by the explicit provider, or by the active SkillDocumentParserProvider registration when the argument is omitted.source
registerSkillsource
validateSkillFileMetadataValidate metadata loaded from a filesystem skill. The caller-supplied directory/runtime identity remains canonical; a differing authored name is display metadata and never participates in lookup or authorization.source
validateSkillMetadataValidate and normalize parsed frontmatter into SkillMetadata.source
validateSkillPathValidate a requested path with the public compatibility resource policy. Relative paths may contain up to 4096 characters and filesystem directory enumeration is not entry-capped. validateStrictSkillPath applies the runtime filesystem ceilings.source

Types

NameDescriptionSource
ActiveSkillContextActive skill context for runtime availability and delegation trackingsource
AgentCapabilityScopeCaller scope used for owner-aware capability resolution.source
ParsedSkillContentResult of splitting and decoding one bounded SKILL.md document.source
SkillRegistered skill instancesource
SkillContentFull skill content returned by load_skill toolsource
SkillMetadataParsed frontmatter metadata from SKILL.mdsource
SkillScriptExecutorScript executor interface.source
SkillScriptExecutorInputInput for the script executorsource
SkillScriptResultResult from executing a skill script.source
SkillScriptSnapshotBounded, validated script tree used to preserve same-directory imports.source
SkillScriptSnapshotFileOne validated text file retained in an executable skill-script snapshot.source
SkillSelectorsource

Constants

NameDescriptionSource
skillRegistrysource