Loading...
Loading...
Compare original and translation side by side
~/.claude/skills/.claude/skills/~/.claude/skills/.claude/skills/~/.claude/skills/*/SKILL.md.claude/skills/*/SKILL.mdskill-prereq-check~/.claude/skills/*/SKILL.md.claude/skills/*/SKILL.mdskill-prereq-checkbashshellsh## Prerequisitesechocatlsmkdircdgrepsedawkrmcpmvdatewcheadtailsortuniqexportsettesttruefalseifthenelsefifordodonewhilecaseesaccommandwhichlocalreturnreadshiftprintfdeclaregitgit commitmcp__<server>__<server><Name> MCP server<Name> MCP tools<Name>gh <word><word>prissuereleaseapiauthrepoprojectrunextensiongistssh-keygpg-keysecretvariablecodespacelabelrulesetcacheattestationstatusbrowsesearchworkflowconfigaliasauth statusauth loginauth testauth checkauthenticatedbashshellsh## Prerequisitesechocatlsmkdircdgrepsedawkrmcpmvdatewcheadtailsortuniqexportsettesttruefalseifthenelsefifordodonewhilecaseesaccommandwhichlocalreturnreadshiftprintfdeclaregitgit commitmcp__<server>__<server><Name> MCP server<Name> MCP tools<Name>gh <word><word>prissuereleaseapiauthrepoprojectrunextensiongistssh-keygpg-keysecretvariablecodespacelabelrulesetcacheattestationstatusbrowsesearchworkflowconfigaliasauth statusauth loginauth testauth checkauthenticatedcommand -v <tool>timeout 10 <tool> auth status 2>&1timeout 10 <tool> auth check 2>&1+<server>mcp__<server>__*auth_testgh extension list/<extension-name>command -v <tool>timeout 10 <tool> auth status 2>&1timeout 10 <tool> auth check 2>&1+<server>mcp__<server>__*auth_testgh extension list/<extension-name>undefinedundefined| # | Skill | Tool | Type | Installed | Auth |
|---|---|---|---|---|---|
| 1 | slack-triage | slack | mcp | yes | yes |
| 2 | meeting-scheduler | gws | cli | yes | FAIL |
| 3 | daily-report | gh | cli | yes | yes |
| 4 | daily-report | slackcli | cli | no | — |
| 5 | oss-release | oss-watch | gh-ext | no | — |
- "yes" = check passed
- "FAIL" = check ran and failed
- "—" = not applicable (not installed, or no auth pattern detected)
- Number each row for reference in the fix phase
If no issues found, print "All prerequisites satisfied." and stop.| 序号 | Skill | 工具 | 类型 | 已安装 | 认证状态 |
|---|---|---|---|---|---|
| 1 | slack-triage | slack | mcp | yes | yes |
| 2 | meeting-scheduler | gws | cli | yes | FAIL |
| 3 | daily-report | gh | cli | yes | yes |
| 4 | daily-report | slackcli | cli | no | — |
| 5 | oss-release | oss-watch | gh-ext | no | — |
- "yes" = 检查通过
- "FAIL" = 检查执行失败
- "—" = 不适用(未安装或未检测到认证模式)
- 为每行编号,以便在修复阶段引用
如果未发现问题,打印「所有前置条件均已满足。」并终止流程。| Type | Issue | Fix Strategy |
|---|---|---|
| cli | not installed | Try |
| cli | auth FAIL | Run |
| mcp | not available | Tell user: "Add the |
| gh-ext | not installed | Run |
| 类型 | 问题 | 修复策略 |
|---|---|---|
| cli | 未安装 | 尝试执行 |
| cli | 认证失败 | 执行 |
| mcp | 不可用 | 告知用户:"请将 |
| gh-ext | 未安装 | 执行 |
~/.claude/skills/.claude/skills/brew~/.claude/skills/.claude/skills/brewUser: "check prerequisites"
Action: Scan all skills, parse deps, check each, show tableUser: "/skill-prereq-check slack-triage meeting-scheduler"
Action: Scan only those two skills, parse deps, check, show tableUser: (after seeing table) "fix 2, 5"
Action: Run `gws auth login` for item 2, `gh extension install` for item 5, re-check用户:"check prerequisites"
操作:扫描所有Skill,解析依赖项,执行检查,展示表格用户:"/skill-prereq-check slack-triage meeting-scheduler"
操作:仅扫描这两个Skill,解析依赖项,执行检查,展示表格用户:(查看表格后)"fix 2, 5"
操作:为项目2执行`gws auth login`,为项目5执行`gh extension install`,重新检查