skill

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayText added in v0.4.1

func DisplayText(content string) string

DisplayText replaces skill chips with their Chinese labels for UI titles and previews.

func FormatChip added in v0.4.1

func FormatChip(code, label string) string

FormatChip renders a skill mention for persistence and tests.

func HasInvokedSkills added in v0.4.1

func HasInvokedSkills(content string) bool

HasInvokedSkills reports whether content includes at least one skill chip.

func ParseTokens

func ParseTokens(content string) (tokens []string, remaining string)

ParseTokens returns catalog codes in document order and the model-facing plain text (chips replaced by catalog codes).

func ParseTokensOnly

func ParseTokensOnly(content string) []string

ParseTokensOnly returns invoked Skill catalog codes scanned from content chips.

func PlainText added in v0.4.1

func PlainText(content string) string

PlainText replaces skill chips with their catalog codes for LLM / agent input.

Types

This section is empty.

Directories

Path Synopsis
Package skillarchive validates and extracts untrusted Skill zip bundles.
Package skillarchive validates and extracts untrusted Skill zip bundles.
Package builtin provides external CLI discovery and default-runtime selection.
Package builtin provides external CLI discovery and default-runtime selection.
Package cache provides skill archive utilities shared by plugin import and installation paths.
Package cache provides skill archive utilities shared by plugin import and installation paths.
Package fetch 提供从远程源发现和下载 Skill 的能力。
Package fetch 提供从远程源发现和下载 Skill 的能力。
Package store persists user-managed skills under the Leros workspace.
Package store persists user-managed skills under the Leros workspace.

Jump to

Keyboard shortcuts

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