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

  1. 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.
  2. Run npx -y agy-powerline@latest init --yes. It installs the statusline in ~/.agy-powerline and sets statusLine in agy's settings.json, after backing that file up. --yes answers 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, ECONNREFUSED or E403, not an error printed by init), look for src/index.js in this plugin's folder: .gemini/config/plugins/agy-powerline in the user's home directory. If it's there, run node /.gemini/config/plugins/agy-powerline/src/index.js init --yes with the full path written out, and use node wherever these steps say npx agy-powerline. Tell the user this installs the version the plugin came with.
  1. Run npx agy-powerline doctor and sum up its result in two or three lines: whether the statusline command ran, and any problem it lists with the fix it suggests.
  2. Tell the user to restart agy once (quit and start agy again): the bar shows after that restart.
  3. Tell the user they can pick widgets, a theme and a layout with the agy-powerline-customize skill, or by running npx agy-powerline configure in their own terminal.

Rules

  • Never edit ~/.gemini/antigravity-cli/settings.json by hand: init changes 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-exec to npx agy-powerline import unless the user said yes to the exact commands import showed.
  • If init itself fails, show its error message as printed and don't try to work around it (for example by writing files yourself). npx agy-powerline doctor and https://github.com/wassim-azi/agy-powerline/blob/main/docs/troubleshooting.md help with the fix.