skills

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package skills provides adapters for AI assistant skill definitions.

Supported tools:

  • Claude Code: skills/<name>/SKILL.md
  • OpenAI Codex: skills/<name>/SKILL.md

Example usage:

package main

import (
    "github.com/agentplexus/assistantkit/skills"
)

func main() {
    // Create a new skill
    skill := skills.NewSkill("version-analysis", "Analyze git history for semantic versioning")
    skill.Instructions = "Analyze commits since the last tag..."
    skill.AddTrigger("version")
    skill.AddTrigger("semver")
    skill.AddDependency("git")

    // Write to Claude format
    claudeAdapter, _ := skills.GetAdapter("claude")
    claudeAdapter.WriteSkillDir(skill, "./skills")

    // Write to Codex format
    codexAdapter, _ := skills.GetAdapter("codex")
    codexAdapter.WriteSkillDir(skill, "./skills")
}

Index

Constants

This section is empty.

Variables

View Source
var (
	NewSkill           = core.NewSkill
	GetAdapter         = core.GetAdapter
	AdapterNames       = core.AdapterNames
	Convert            = core.Convert
	ReadCanonicalFile  = core.ReadCanonicalFile
	WriteCanonicalFile = core.WriteCanonicalFile
	ReadCanonicalDir   = core.ReadCanonicalDir
	WriteSkillsToDir   = core.WriteSkillsToDir
)

Re-export core functions

Functions

This section is empty.

Types

type Adapter

type Adapter = core.Adapter

Re-export core types for convenience

type MarshalError

type MarshalError = core.MarshalError

Re-export error types

type ParseError

type ParseError = core.ParseError

Re-export error types

type ReadError

type ReadError = core.ReadError

Re-export error types

type Skill

type Skill = core.Skill

Re-export core types for convenience

type WriteError

type WriteError = core.WriteError

Re-export error types

Directories

Path Synopsis
Package claude provides the Claude Code skill adapter.
Package claude provides the Claude Code skill adapter.
Package codex provides the OpenAI Codex skill adapter.
Package codex provides the OpenAI Codex skill adapter.
Package core provides canonical types for AI assistant skill definitions.
Package core provides canonical types for AI assistant skill definitions.

Jump to

Keyboard shortcuts

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