mod

package
v0.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mod ships the Claude Code mods jaira brings along, compiled into the binary the way the roles are.

A mod is a plugin folder — .claude-plugin/plugin.json, hooks/, types/ — and Claude Code loads a plugin folder it finds in a skills directory by itself: ~/.claude/skills/<name> in every session, a project's .claude/skills/<name> once the workspace is trusted. So 'jaira roles install' writes each mod beside the roles, and nothing else is needed for it to load: no marketplace, no flag, no new command. Without that install nothing changes for anybody.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(id, rel string) ([]byte, error)

File returns the embedded bytes of one file of a mod, rel as in Mod.Files.

Types

type Mod

type Mod struct {
	// ID is the folder name, which is also the plugin's name in its manifest.
	ID string
	// Files are paths relative to the mod's folder, sorted. Its tests are
	// left out: they run here, with 'claude plugin test', not where it is
	// installed. So is what Claude Code generated into the folder.
	Files []string
}

Mod is one plugin folder and the files that are installed of it.

func Builtins

func Builtins() ([]Mod, error)

Builtins returns every embedded mod, sorted by id.

Jump to

Keyboard shortcuts

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