agentskill

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package agentskill installs the bundled mdoc authoring skill into agent skill directories.

Index

Constants

View Source
const SkillName = "mdoc"

Variables

This section is empty.

Functions

func CopyTo

func CopyTo(destDir string) (int, error)

CopyTo copies the bundled mdoc skill into destDir, overwriting files that already exist and leaving unrelated files alone.

Types

type InstallResult

type InstallResult struct {
	Target    string
	ParentDir string
	DestDir   string
	Files     int
}

InstallResult describes one installed skill target.

func Install

func Install(name, customParent string) ([]InstallResult, error)

Install copies the bundled mdoc skill to the requested agent target(s).

type RemoveResult

type RemoveResult struct {
	Target  string
	DestDir string
	Existed bool
}

RemoveResult describes one removed (or absent) skill target.

func Remove

func Remove(name, customParent string) ([]RemoveResult, error)

Remove deletes the installed mdoc skill for the requested agent target(s). Only the <parent>/mdoc skill directory is removed — never the parent skills directory itself. Targets that aren't present are reported with Existed=false rather than treated as an error.

type Target

type Target struct {
	Name      string
	ParentDir string
	DestDir   string
}

Target describes one resolved install destination.

func ResolveTargets

func ResolveTargets(name, customParent string) ([]Target, error)

ResolveTargets expands a target name into concrete parent/destination directories. customParent is the parent skills directory; the skill itself is always installed as <customParent>/mdoc.

Jump to

Keyboard shortcuts

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