claude

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package claude provides the Claude Code skill adapter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter converts between canonical Skill and Claude Code skill format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for Claude skills.

func (*Adapter) Marshal

func (a *Adapter) Marshal(skill *core.Skill) ([]byte, error)

Marshal converts canonical Skill to Claude SKILL.md bytes.

func (*Adapter) Name

func (a *Adapter) Name() string

Name returns the adapter identifier.

func (*Adapter) Parse

func (a *Adapter) Parse(data []byte) (*core.Skill, error)

Parse converts Claude SKILL.md bytes to canonical Skill.

func (*Adapter) ReadFile

func (a *Adapter) ReadFile(path string) (*core.Skill, error)

ReadFile reads a Claude SKILL.md file and returns canonical Skill.

func (*Adapter) SkillFileName

func (a *Adapter) SkillFileName() string

SkillFileName returns the skill definition filename.

func (*Adapter) WriteFile

func (a *Adapter) WriteFile(skill *core.Skill, path string) error

WriteFile writes canonical Skill to a Claude SKILL.md file.

func (*Adapter) WriteSkillDir

func (a *Adapter) WriteSkillDir(skill *core.Skill, baseDir string) error

WriteSkillDir writes the complete skill directory structure.

Jump to

Keyboard shortcuts

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