用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SorraTheOrc/ampa --skill install-ampa-skill命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | Install AMPA Skill |
| description | Install, upgrade and maintain the ampa Worklog plugin by running the bundled installer script. |
Provide a simple, canonical installer for AMPA. Installs or upgrades the AMPA plugin for Worklog.
User asks to "Install AMPA", "Install PM Agent", "Upgrade AMPA", "Upgrade PM Agent", "Change AMPA", "Configure AMPA" or similar.
NOTE: the work carried out by this skill does not require a work item, but the agent may optionally parse a work item token from the prompt to link the installation activity to a work item.
Run wl plugins --json to discover whether the AMPA plugin is currently installed or not.
If AMPA is currently installed AND the skill was activated with either an install or upgrade request display a message indicated that the installation will be upgraded using the existing configuration and instructing the requestor to request to "Configure AMPA" if they wish to change the configuraiton.
If there is currently no installation or the skill was activated with a request to configure or change AMPA continue to step 2, otherwise skip to step 3.
If a bot token was provided in the prompt that triggered this skill skip ahead to the next step.
Explain that a Discord bot token and channel ID are required for notifications from the AMPA agent and request the bot token and channel ID.
Always run the installer from the repository root (project root). This is important because the installer may start the local daemon and the daemon loads per-project configuration from <projectRoot>/.worklog/ampa/.env based on its working directory.
Run the installer from the repository root providing any configuration options we have been given. If no options have been given then run the installer with only the --yes flag.
If the prompt that triggered this skill indicates that we want to install or upgrade locally then run the installer with the --local flag and make sure your current working directory is the project root. For example:
cd /path/to/your/project
./skill/install-ampa/scripts/install-worklog-plugin.sh --local --bot-token <discord_bot_token> --channel-id <discord_channel_id> --yes
If you run the installer from another directory (for example the skill directory) the daemon started by the installer may use that directory as its cwd and will not see the project's .worklog/ampa/.env file, causing startup to fail when required env vars are missing.
Notes:
/tmp (e.g. /tmp/ampa_install_decisions.<pid> and /tmp/ampa_install_*.log).ampa package in skill/install-ampa/resources/ampa_py/ampa so projects that lack a local ampa/ get a working copy. The installer will also look in ${XDG_CONFIG_HOME:-$HOME/.config}/opencode/ampa.