skillcli

package
v0.0.32 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: 24 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 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.

func Guide

func Guide() string

Guide is the guide a person's agent loads, as show prints it.

func Notice added in v0.0.21

func Notice(agent, home string) string

Notice is the line `physa init` prints when the agent it ran with has no current Physa skill, naming the command that installs or updates it, or "" when the skill is current, its state cannot be read, home is empty or no agent has that name. It reads the same agent list as `physa skill status` and only reads: it never writes, updates or removes a stub or a hook. The line carries no prefix and no trailing newline, and writes the stub's path with ~ for home.

Types

type CurrentFunc added in v0.0.17

type CurrentFunc func(wd, session string) (pursuit, change string, err error)

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.

Jump to

Keyboard shortcuts

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