setup-gman-skills

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

setup-gman-skills

gman-skills 首次设置

First-time setup for the gman-skills package. Run once after
npx skills add gvdvenis/gman-skills
.
gman-skills 包的首次设置流程,需在执行
npx skills add gvdvenis/gman-skills
后运行一次。

Step 1 — Check and install the dotnet-blazor plugin

步骤1 — 检查并安装 dotnet-blazor 插件

Run
copilot plugin list
and look for
dotnet-blazor
in the output.
If missing, install it in two steps:
  1. copilot plugin marketplace add dotnet/skills
  2. copilot plugin install dotnet-blazor@dotnet-agent-skills
If present, skip — it is already installed.
Record the result:
installed
(was just installed),
present
(was already there), or
failed
.
Done when: the dotnet-blazor plugin is installed or confirmed present, or the install failed and the error is recorded.
执行
copilot plugin list
,在输出中查找
dotnet-blazor
缺失,分两步安装:
  1. copilot plugin marketplace add dotnet/skills
  2. copilot plugin install dotnet-blazor@dotnet-agent-skills
已存在,跳过——插件已安装。
记录结果:
installed
(刚完成安装)、
present
(已存在)或
failed
(安装失败)。
完成标志:dotnet-blazor 插件已安装或确认存在,或安装失败并已记录错误信息。

Step 2 — Check and download the report-server binary

步骤2 — 检查并下载 report-server 二进制文件

Check whether the report-server binary exists at
~/.copilot/gman-skills/bin/
:
  • Windows:
    report-server.exe
  • Linux / macOS:
    report-server
    (no extension)
If present, skip — it is already installed. Record
present
.
If missing, run the platform-appropriate download script from this skill's
scripts/
directory:
  • Windows:
    scripts/setup-report-server.ps1
  • Linux / macOS:
    scripts/setup-report-server.sh
The script detects OS + architecture, downloads the matching asset from the
gvdvenis/gman-skills
GitHub Releases, and extracts the binary to
~/.copilot/gman-skills/bin/
.
Record the result:
downloaded
(was just downloaded),
present
(was already there), or
failed
.
Done when: the binary exists at
~/.copilot/gman-skills/bin/
or the download failed and the error is recorded.
检查 report-server 二进制文件是否存在于
~/.copilot/gman-skills/bin/
  • Windows
    report-server.exe
  • Linux / macOS
    report-server
    (无扩展名)
已存在,跳过——文件已安装。记录
present
缺失,运行本技能
scripts/
目录中对应平台的下载脚本:
  • Windows
    scripts/setup-report-server.ps1
  • Linux / macOS
    scripts/setup-report-server.sh
该脚本会检测操作系统与架构,从
gvdvenis/gman-skills
的 GitHub Releases 下载匹配的资源,并将二进制文件解压至
~/.copilot/gman-skills/bin/
记录结果:
downloaded
(刚完成下载)、
present
(已存在)或
failed
(下载失败)。
完成标志:二进制文件已存在于
~/.copilot/gman-skills/bin/
,或下载失败并已记录错误信息。

Step 3 — Print the summary

步骤3 — 打印总结信息

Print a summary table so the user can see what happened. This is mandatory — the user needs confirmation that setup worked:
[setup-gman-skills] Setup complete

  Component            Status
  ───────────────────────────────
  dotnet-blazor plugin  installed
  report-server binary  downloaded
If any component failed, print the failure reason and a suggested fix:
[setup-gman-skills] Setup complete with warnings

  Component            Status     Note
  ───────────────────────────────────────────────
  dotnet-blazor plugin  present
  report-server binary  failed     No GitHub Release found. Build from source:
                                    cd src/report-server && dotnet publish -c Release -r win-x64
                                    Then copy the binary to ~/.copilot/gman-skills/bin/
Done when: the summary table is printed with every component's status visible.
打印汇总表格,让用户了解设置结果。此步骤为必填项——用户需要确认设置是否成功:
[setup-gman-skills] Setup complete

  Component            Status
  ───────────────────────────────
  dotnet-blazor plugin  installed
  report-server binary  downloaded
若有组件设置失败,打印失败原因及建议修复方案:
[setup-gman-skills] Setup complete with warnings

  Component            Status     Note
  ───────────────────────────────────────────────
  dotnet-blazor plugin  present
  report-server binary  failed     No GitHub Release found. Build from source:
                                    cd src/report-server && dotnet publish -c Release -r win-x64
                                    Then copy the binary to ~/.copilot/gman-skills/bin/
完成标志:已打印汇总表格,且所有组件的状态清晰可见。