kiro

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 kiro provides the Kiro CLI skill adapter for steering files.

Index

Constants

View Source
const (
	// AdapterName is the identifier for this adapter.
	AdapterName = "kiro"

	// SteeringDir is the default steering directory name.
	SteeringDir = "steering"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

Adapter converts between canonical Skill and Kiro CLI steering file format.

func (*Adapter) DefaultDir

func (a *Adapter) DefaultDir() string

DefaultDir returns the default directory name for Kiro steering files.

func (*Adapter) Marshal

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

Marshal converts canonical Skill to Kiro steering file 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 Kiro steering file bytes to canonical Skill.

func (*Adapter) ReadFile

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

ReadFile reads a Kiro steering file and returns canonical Skill.

func (*Adapter) SkillFileName

func (a *Adapter) SkillFileName() string

SkillFileName returns the skill definition filename. For Kiro, steering files are named <skill-name>.md directly.

func (*Adapter) WriteFile

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

WriteFile writes canonical Skill to a Kiro steering file.

func (*Adapter) WriteSkillDir

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

WriteSkillDir writes the skill as a steering file. For Kiro, skills are flat files in the steering directory, not subdirectories.

Jump to

Keyboard shortcuts

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