skillinstaller

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClaudeContextPath added in v0.3.0

func ClaudeContextPath() (string, error)

ClaudeContextPath resolves the global Claude CLAUDE.md path.

func CodexContextPath added in v0.3.0

func CodexContextPath() (string, error)

CodexContextPath resolves the global Codex AGENTS.md path.

func InstallClaudeContext

func InstallClaudeContext() (string, string, error)

InstallClaudeContext creates or updates the global Claude context policy block.

func InstallClaudePointerAtPath added in v0.3.0

func InstallClaudePointerAtPath(path string) (string, error)

InstallClaudePointerAtPath writes the local Claude pointer to AGENTS.md.

func InstallClaudeSkill

func InstallClaudeSkill(force bool) (string, error)

InstallClaudeSkill installs the bundled treelines skill into Claude skills directory.

func InstallCodexContext

func InstallCodexContext() (string, string, error)

InstallCodexContext creates or updates the global Codex context policy block.

func InstallCodexSkill

func InstallCodexSkill(force bool) (string, error)

InstallCodexSkill installs the bundled treelines skill into Codex skills directory.

func InstallContextAtPath

func InstallContextAtPath(path string) (string, error)

InstallContextAtPath creates or updates the managed policy block at a given path.

func InstallHookConfigAtPath added in v0.3.0

func InstallHookConfigAtPath(path string) (string, error)

InstallHookConfigAtPath merges the Treelines SessionStart hook into a JSON config.

Types

type InstallOptions added in v0.3.0

type InstallOptions struct {
	Provider  Provider
	Local     bool
	LocalRoot string
	Force     bool
}

InstallOptions configures a provider-level agent installation.

type InstallResult added in v0.3.0

type InstallResult struct {
	SkillPath           string
	ContextPath         string
	ContextAction       string
	HookPath            string
	HookAction          string
	ClaudePointerPath   string
	ClaudePointerAction string
}

InstallResult reports all paths touched by a provider install.

func InstallProvider added in v0.3.0

func InstallProvider(options InstallOptions) (InstallResult, error)

InstallProvider installs skill, context, and hooks for one supported agent.

type Provider added in v0.3.0

type Provider string

Provider identifies a supported agent integration target.

const (
	ProviderCodex  Provider = "codex"
	ProviderClaude Provider = "claude"
)

Jump to

Keyboard shortcuts

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