skill

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package skill implements all skill-related tools: load_skill, read_skill_file, and run_skill_script. Each tool is defined in its own file; this file provides the shared constructor functions used by toolsreg (advertisement) and toolexec (dispatch).

Index

Constants

View Source
const LoadSkillToolName = "load_skill"

LoadSkillToolName is the model-facing name of the load_skill tool.

View Source
const ReadSkillFileToolName = "read_skill_file"

ReadSkillFileToolName is the model-facing name of the read_skill_file tool.

View Source
const RunSkillScriptToolName = "run_skill_script"

RunSkillScriptToolName is the model-facing name of the run_skill_script tool.

Variables

This section is empty.

Functions

func LoadSkillToolDef

func LoadSkillToolDef() tooldef.Definition

LoadSkillToolDef returns the jungi tool definition for load_skill.

func ReadSkillFileToolDef

func ReadSkillFileToolDef() tooldef.Definition

ReadSkillFileToolDef returns the jungi tool definition for read_skill_file.

func RunSkillScriptToolDef

func RunSkillScriptToolDef() tooldef.Definition

RunSkillScriptToolDef returns the jungi tool definition for run_skill_script.

func ToolDefs

func ToolDefs() []tooldef.Definition

ToolDefs returns the jungi tool definitions for all skill tools. Called by toolsreg to advertise the tools to the model; no runtime state is required.

func Tools

func Tools(reg *skillreg.Registry, workDir func() string, onSkillLoaded func() func(string, string)) map[string]tool.Tool

Tools returns a map of model-facing name → tool.Tool for all skill tools, ready to be merged into the toolexec dispatch table. reg is the skill registry; workDir is a closure returning the session's current working directory (used by run_skill_script to set the script's working directory); onSkillLoaded is a closure that returns a callback to invoke after a successful skill load — it is read lazily so the executor can set it after construction. Either the outer or inner function may return nil; the load_skill tool guards against nil before invoking.

Types

This section is empty.

Source Files

  • load_skill.go
  • read_skill_file.go
  • run_skill_script.go
  • skill.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL