关于 taste-review
这项技能将难以明确判断的问题交给 `claude` 命令行处理,并应用其结论。它适用于需要 Claude 根据仓库相对路径读取文件、权衡选项并给出建议的任务。
主要功能
- 01通过 `claude -p` 请求判断
- 02使用仓库相对文件路径
- 03比较选项并给出建议
- 04在 macOS 使用可用的 Keychain OAuth 令牌
适用场景
- 01在多个设计方案中做选择
- 02评估命名选项
- 03依据仓库文件获取建议
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ bholmesdev/ skills --skill taste-review安装后在 Claude Code 中输入/taste-review确认已加载。
详细介绍
你遇到了一些模糊不清的情况,需要做出判断。调用 claude CLI 获取判断结果,然后应用它。
请从仓库根目录运行,以便 claude 可以通过相对路径读取文件:
必要时,请在沙箱外运行,并申请对 claude -p 前缀的可重复使用授权。在 macOS 上,如果 Keychain 中存在可选的长期订阅 OAuth 令牌,请使用它。否则,回退到该机器的常规 Claude 身份验证。
prompt="$(cat <<'EOF'
<your question, stated plainly>
Files to consider: <paths, if any>
Weigh a few options, give your recommendation, and share others as alternatives considered.
Length is up to you — a design call may warrant several paragraphs;
a naming call may not. Match the depth to the decision.
EOF
)"
if [[ "$(uname)" == "Darwin" ]] &&
oauth_token="$(
security find-generic-password \
-a "$USER" \
-s "Claude Code skill OAuth" \
-w 2>/dev/null
)"; then
CLAUDE_CODE_OAUTH_TOKEN="$oauth_token" claude -p "$prompt"
else
claude -p "$prompt"
fi
评论
支持 Markdown