skillagent

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package skillagent is the agents Physa's skill is set up for: where each keeps Physa's stub and session hook, and whether it is found on this account, by its config directory or its binary on PATH. It only reads.

The paths, with home the person's home directory:

  • Claude Code: stub claude.SkillFile(home, "physa"), hook claude.SettingsFile(home); found by home/.claude or `claude`. CLAUDE_CONFIG_DIR is not followed, as the adapter does not.
  • Codex: config directory $CODEX_HOME when set, else home/.codex; stub home/.agents/skills/physa/SKILL.md, hook <config directory>/hooks.json; found by the directory or `codex`.
  • OpenCode: config directory $XDG_CONFIG_HOME/opencode when XDG_CONFIG_HOME is set and absolute, else home/.config/opencode; the shared stub, no hook; found by the directory or `opencode`.
  • Pi: config directory $PI_CODING_AGENT_DIR when set, else home/.pi/agent; the shared stub, no hook; found by the directory or `pi`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Name  string // as --json names it
	Label string // as people read it
	Stub  string // the SKILL.md path
	Hook  string // the hook file path, empty when Physa installs no session hook
	Found bool
	// Shared is true when Stub is the shared ~/.agents/skills/physa/SKILL.md.
	Shared bool
}

Agent is one agent Physa's skill is set up for.

func List

func List(e Env) []Agent

List returns Claude Code, Codex, OpenCode and Pi, in that order.

func (Agent) Supported

func (a Agent) Supported() bool

Supported reports whether Physa installs a session hook for the agent.

type Env

type Env struct {
	Home     string
	Getenv   func(string) string
	LookPath func(string) (string, error)
	Stat     func(string) (os.FileInfo, error)
}

Env is what List reaches outside itself for. A nil Stat means os.Stat.

Jump to

Keyboard shortcuts

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