plugins

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: 3 Imported by: 0

Documentation

Overview

Package plugins provides adapters for AI assistant plugin/extension manifests.

Supported tools:

  • Claude Code: .claude-plugin/plugin.json
  • Gemini CLI: gemini-extension.json

Example usage:

package main

import (
    "github.com/agentplexus/assistantkit/plugins"
    "github.com/agentplexus/assistantkit/plugins/core"
)

func main() {
    // Create a new plugin
    plugin := plugins.NewPlugin("my-plugin", "1.0.0", "My awesome plugin")
    plugin.AddDependency("git", "git")
    plugin.Commands = "commands"
    plugin.Skills = "skills"

    // Write to Claude format
    claudeAdapter, _ := plugins.GetAdapter("claude")
    claudeAdapter.WritePlugin(plugin, "./plugins/claude")

    // Write to Gemini format
    geminiAdapter, _ := plugins.GetAdapter("gemini")
    geminiAdapter.WritePlugin(plugin, "./plugins/gemini")
}

Index

Constants

This section is empty.

Variables

View Source
var (
	NewPlugin          = core.NewPlugin
	GetAdapter         = core.GetAdapter
	AdapterNames       = core.AdapterNames
	Convert            = core.Convert
	ReadCanonicalFile  = core.ReadCanonicalFile
	WriteCanonicalFile = core.WriteCanonicalFile
)

Re-export core functions

Functions

This section is empty.

Types

type Adapter

type Adapter = core.Adapter

Re-export core types for convenience

type Dependency

type Dependency = core.Dependency

Re-export core types for convenience

type MCPServer

type MCPServer = core.MCPServer

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 Plugin

type Plugin = core.Plugin

Re-export core types for convenience

type ReadError

type ReadError = core.ReadError

Re-export error types

type ValidationError

type ValidationError = core.ValidationError

Re-export error types

type WriteError

type WriteError = core.WriteError

Re-export error types

Directories

Path Synopsis
Package claude provides the Claude Code plugin adapter.
Package claude provides the Claude Code plugin adapter.
Package core provides canonical types for AI assistant plugin/extension definitions.
Package core provides canonical types for AI assistant plugin/extension definitions.
Package gemini provides the Gemini CLI extension adapter.
Package gemini provides the Gemini CLI extension adapter.

Jump to

Keyboard shortcuts

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