51 wassim-azi
agy-powerline-setup Skill
安装或更新 agy-powerline 状态栏并接入 agy 设置。当用户要求安装、更新、修复或检查 agy-powerline 时使用。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
Set up agy-powerline
agy-powerline is a statusline for agy. These steps install it (or update it) and point agy's settings at it. Run each command with your shell tool, one at a time, and show the user what it printed.
Steps
- Run
node -v. If the version is below v20, stop: tell the user to install Node.js 20 or newer from https://nodejs.org, then ask you again. - Run
npx -y agy-powerline@latest init --yes. It installs the statusline in~/.agy-powerlineand setsstatusLinein agy'ssettings.json, after backing that file up.--yesanswers its prompts, which you can't answer interactively.
- If npx can't download the package (a network, proxy or registry error such as
ENOTFOUND,ETIMEDOUT,ECONNREFUSEDorE403, not an error printed byinit), look forsrc/index.jsin this plugin's folder:.gemini/config/plugins/agy-powerlinein the user's home directory. If it's there, runnode /.gemini/config/plugins/agy-powerline/src/index.js init --yeswith the full path written out, and usenodewherever these steps saynpx agy-powerline. Tell the user this installs the version the plugin came with.
- Run
npx agy-powerline doctorand sum up its result in two or three lines: whether the statusline command ran, and any problem it lists with the fix it suggests. - Tell the user to restart agy once (quit and start
agyagain): the bar shows after that restart. - Tell the user they can pick widgets, a theme and a layout with the
agy-powerline-customizeskill, or by runningnpx agy-powerline configurein their own terminal.
Rules
- Never edit
~/.gemini/antigravity-cli/settings.jsonby hand:initchanges it safely and keeps a backup. - Never run
npx agy-powerline configure: it's an interactive full-screen editor and would hang your shell tool. Suggest it to the user instead. - Never pass
--allow-exectonpx agy-powerline importunless the user said yes to the exact commandsimportshowed. - If
inititself fails, show its error message as printed and don't try to work around it (for example by writing files yourself).npx agy-powerline doctorand https://github.com/wassim-azi/agy-powerline/blob/main/docs/troubleshooting.md help with the fix.