Vibe.Skill (vibe v0.2.1)

Copy Markdown View Source

Procedural memory for Vibe.

Skills are markdown files with YAML frontmatter. They capture reusable workflows and can be patched as Vibe learns.

Summary

Functions

apis()

@spec apis() :: [Vibe.Plugin.API.t()]

Intentional facade for the public Vibe API boundary.

context(text, opts \\ [])

@spec context(
  String.t(),
  keyword()
) :: String.t()

create(name, content, opts \\ [])

@spec create(String.t(), String.t(), keyword()) ::
  {:ok, String.t()} | {:error, String.t()}

create_from_session(session_id, name, opts \\ [])

@spec create_from_session(String.t(), String.t(), keyword()) ::
  {:ok, String.t()} | {:error, String.t()}

dir()

@spec dir() :: String.t()

executable()

@spec executable() :: [Vibe.Skill.Executable.t()]

find(name)

@spec find(String.t()) :: {:ok, String.t()} | {:error, String.t()}

get(name)

@spec get(String.t()) :: {:ok, map()} | {:error, String.t()}

invocation(name, args \\ "")

@spec invocation(String.t(), String.t()) :: {:ok, String.t()} | {:error, String.t()}

list()

@spec list() :: [map()]

match(text, opts \\ [])

@spec match(
  String.t(),
  keyword()
) :: [map()]

patch(name, old, new, opts \\ [])

@spec patch(String.t(), String.t(), String.t(), keyword()) ::
  {:ok, String.t()} | {:error, String.t()}

script_paths()

@spec script_paths() :: [String.t()]

validate_content(content)

@spec validate_content(String.t()) :: :ok | {:error, String.t()}