paxm-setup
GitHub指导用户完成paxm首次配置,包括诊断环境、安装二进制文件、配置Codex插件集成及验证记忆回环。遵循安全规范,确保不泄露密钥或绕过钩子信任机制。
Trigger Scenarios
Install
npx skills add pax-beehive/paxm --skill paxm-setup -g -y
SKILL.md
Frontmatter
{
"name": "paxm-setup",
"description": "Guide a user through first-time paxm setup for the Codex memory plugin, including binary installation, provider configuration, hook trust, and a real smoke test."
}
Set up paxm for Codex
Run this workflow only when the user asks to configure, repair, or verify paxm. Do not silently install a binary, write provider credentials, or modify Codex hooks.
1. Diagnose first
Run the read-only checks:
paxm version
paxm config doctor --json
If paxm is not on PATH, check the standard user install locations before
offering installation. Explain that the installer downloads the latest release
binary by default and ask for explicit approval before running:
curl -fsSL https://github.com/pax-beehive/paxm/releases/latest/download/install.sh | bash
When a reproducible install or rollback is required, export a compatible release before running the command:
export PAXM_VERSION=v0.1.20
curl -fsSL https://github.com/pax-beehive/paxm/releases/latest/download/install.sh | bash
After installation, run paxm version again and report the resolved path.
The equivalent bundled helper is scripts/install-paxm.sh when the plugin's
absolute install path is available; do not assume PLUGIN_ROOT exists in a
skill shell environment.
2. Configure the plugin-owned integration
Ask the user to choose providers and passive behavior, then run the interactive setup with Codex plugin ownership:
paxm setup --integration codex-plugin
The equivalent bundled helper is scripts/setup-paxm.sh when its absolute
plugin path is available. This keeps provider credentials and profiles in paxm while preventing paxm from
registering a duplicate global Codex hook. The plugin's own hook definitions
remain subject to Codex's normal /hooks review and trust flow.
3. Verify the loop
After setup:
- Run
paxm config doctor. - Write one random test fact to STM and immediately recall it.
- Explain which provider answered and that the test fact will expire.
- Ask the user to start a fresh Codex task or submit one prompt so the passive hook can be observed.
- Use
paxm history --days 1to confirm the hook event.
If a check fails, identify the layer (plugin, binary, config, provider, hook trust, or Codex task lifecycle) and give one next action. Do not reinstall everything by default.
Safety rules
- Never print or echo provider API keys.
- Never modify
~/.codex/config.tomlfrom a setup script. - Never bypass Codex hook trust.
- Hook failures must not block the user's Codex task.
- Keep MCP optional until the binary and plugin-owned hook path are healthy.
Version History
- 2909519 Current 2026-07-22 09:40


