Documentation
¶
Overview ¶
Package skillcli holds Physa's skill for a person's agent: the guide that teaches it to use Physa's commands and terms as Physa means them, embedded in the binary and never read from the repo, so upgrading Physa updates what every agent is told. The skill command group puts it in reach: show writes the guide exactly as it is, on any output, with no styling; setup writes a short stub into Claude Code's skills directory that tells the agent to run show, and adds a session hook to Claude Code's settings.json that runs the hidden session command when a session starts. For Codex, OpenCode and Pi, each found by its config directory or its binary on PATH, setup writes the same stub once to ~/.agents/skills/physa, and for Codex adds the hook to its hooks.json; OpenCode and Pi have no hook Physa can install, and status says so. Status lists the four agents, found or not, and says whether each stub and hook is current, stale, missing or unsupported, and remove deletes the stubs and takes out only Physa's hook entries. Setup and remove ask on a terminal and need --yes off one, and never overwrite, remove or follow a SKILL.md Physa did not write, or edit a hooks file Physa cannot read as JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command(current CurrentFunc) *cobra.Command
Command returns the skill group, reading the person's home directory and asking on the terminal. current reads the pursuit and change a session works on, for the hidden session command the session hook runs.
Types ¶
type CurrentFunc ¶ added in v0.0.17
CurrentFunc returns the pursuit and change a session works on in the repo that holds wd, read from the store and never from the engine. It returns empty names and no error when there is none, and an error when it cannot tell.