Communitygithub.com

mvanhorn/printing-press-library

第一个支持 Great Clips 在线签到的 CLI 工具:涵盖每个端点的请求结构与主机路由,捕获 Cookie 后即可发起真实调用。触发短语:`great clips wait time`、`check me into great clips`、`how long is the wait at great clips`、`add me and my kids to the great clips wait list`、`great clips request shape`、`use greatclips`、`run greatclips`。

printing-press-library 是什么?

该技能驱动 `greatclips-pp-cli` 二进制程序,它是一个专为 Great Clips Online Check-In SPA(单页应用)设计的命令行界面。它包含了 SPA 发送的每一个 HTTP 端点的精确请求结构,并支持 `--dry-run` 和 `--json` 输出。这使得 AI 代理能够基于 Great Clips 的签到流程构建自动化工作流。 支持多种平台:macOS、Linux 和 Windows。安装方式包括通过 Node.js 的 `npx` 安装器或直接通过 Go 编译安装。该 CLI 使用兼容 Chrome 的 HTTP 传输层,但端到端的真实调用还需要一个登录状态的 Chrome 浏览器中手动捕获的会话 Cookie。技能文档提供了完整的命令参考,包括签入、客户信息查询、门店搜索、等待时间查询、取号取消、营业时间查询等功能。 该技能还包含一个“代理模式”(`--agent` 标志),可输出 JSON 格式的结果,支持管道、字段过滤和干运行。它支持命名配置文件以复用参数、通过 `which` 命令进行自然语言能力查询、支持输出传递到文件或 Webhook,并收集本地反馈。该 CLI 提供 MCP 服务器安装选项,以便与 Claude Desktop 等 AI 应用集成。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-greatclips

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Great Clips — Printing Press CLI

前提条件:安装 CLI

本技能驱动 greatclips-pp-cli 二进制程序。在调用本技能的任何命令之前,必须验证 CLI 是否已安装。 如果缺失,请先安装:

  1. 通过 Printing Press 安装器安装。在 macOS/Linux 上,二进制文件默认安装到 $HOME/.local/bin;在 Windows 上,安装到 %LOCALAPPDATA%\Programs\PrintingPress\bin:
    npx -y @mvanhorn/printing-press-library install greatclips --cli-only
    
  2. 验证:greatclips-pp-cli --version
  3. 确保报告的安装目录已加入将要调用此技能的代理/运行时的 $PATH 环境变量。

如果 npx 安装失败(无 Node 环境、离线等),请回退到直接使用 Go 安装(需要 Go 1.26.6 或更新版本):

go install github.com/mvanhorn/printing-press-library/library/other/greatclips/cmd/greatclips-pp-cli@latest

如果 --version 在安装后仍报告“command not found”,说明运行时无法在 $PATH 中找到二进制目录。在验证成功之前,请勿继续执行技能命令。

何时使用此 CLI

使用此 CLI 从命令行发送 Great Clips Online Check-In SPA 发送的精确 HTTP 请求,支持 --dry-run 和 --json 输出。v0.1 版本包含了每个端点的请求结构,以便代理在其上构建流程;真实调用需要从已登录的 Chrome 会话中手动捕获 Cookie。

HTTP 传输

此 CLI 为浏览器端端点使用兼容 Chrome 的 HTTP 传输层。正常的 API 调用不需要常驻的浏览器进程。

发现信号

此 CLI 是在浏览器观察到的流量上下文中生成的。

  • 捕获覆盖率:从 22 个网络条目中捕获了 9 个 API 条目
  • 协议:(0% 置信度),(0% 置信度),(0% 置信度)
  • 生成提示:双主机单认证:发出一个处理 webservices.greatclips.com 和 www.stylewaretouch.net 两个域名的 bearer-token 客户端。POST /api/store/waitTime 接受一个由 {storeNumber} 对象组成的 JSON 数组,而非单个对象。单人沙龙的调用发送一个长度为 1 的数组。认证通过已登录的 Chrome 会话中的 Claude-in-Chrome MCP 实时捕获;发布的 CLI 应附带一个 auth login --chrome 辅助命令,用于执行相同的流程。

命令参考

cancel — 取消您的有效签入

  • greatclips-pp-cli cancel — 取消此账户的有效签入

checkin — 为您自己和同行人员(1-5 人)提交签入

  • greatclips-pp-cli checkin — 将您自己以及可选的同行人员添加到沙龙的等候名单

customer — 读取您的 Great Clips 客户资料(姓名、电话、收藏、近期访问)

  • greatclips-pp-cli customer — 获取已认证客户的资料

geo — 将邮政编码或城市名称解析为经纬度

  • greatclips-pp-cli geo — 将邮政编码解析为纬度/经度/城市/州

hours — 读取沙龙营业时间(当天及包含特别营业时间的 14 天预报)

  • greatclips-pp-cli hours — 获取某个沙龙的 14 天营业时间预报

salons — 搜索和查找 Great Clips 沙龙

  • greatclips-pp-cli salons get — 根据沙龙编号获取单个沙龙
  • greatclips-pp-cli salons search — 按邮政编码、城市或指定半径内的坐标搜索沙龙

status — 查看您在当前有效签入中的排队位置

  • greatclips-pp-cli status — 获取您的有效签入状态(排队位置、预计等待时间)

wait — 从 ICS Net Check-In 服务读取预计等待时间

  • greatclips-pp-cli wait — 获取某个沙龙的等待时间(请求体为包含单个 {storeNumber} 对象的数组)

查找正确的命令

当您知道要做什么,但不确定哪个命令能实现时,可以直接询问 CLI:

greatclips-pp-cli which "<用您自己的话描述的功能>"

which 将自然语言的功能查询解析为此 CLI 精选功能索引中最匹配的命令。退出码 0 表示至少找到一个匹配;退出码 2 表示没有可靠匹配——请回退到 --help 或使用更精确的查询。

配方

四人同行签入请求体

greatclips-pp-cli checkin --first-name Matt --last-name VanHorn --phone-number '(206) 555-0100' --salon-number 8991 --guests 4 --dry-run --json

输出被 POST 到 www.stylewaretouch.net/api/customer/checkIn 的、用于在 Island Square 进行四人同行签入的精确 JSON 请求体。

沙龙的等待时间请求

greatclips-pp-cli wait --store-number 8991 --dry-run --json

ICS Net Check-In waitTime 端点的请求结构。

查找邮政编码附近的沙龙

greatclips-pp-cli salons search --term 98040 --radius 5 --dry-run --json

带 5 英里半径的 salon-search/term 端点的请求结构。

14 天营业时间预报

greatclips-pp-cli hours --salon 8991 --dry-run

调用一个沙龙的 salon-hours/upcoming 端点;响应中包含特别营业时间和节假日关闭信息。

地理编码邮政编码

greatclips-pp-cli geo --query 98040 --dry-run --json --select results.city,results.state,results.lat,results.lng

通过 geo-names 端点将邮政编码解析为纬度/经度/城市/州。

认证设置

Great Clips 使用来自 cid.greatclips.com 的 Auth0 租户的 HttpOnly 会话 Cookie。浏览器嗅探确认所有调用都通过浏览器附加的 Cookie 成功执行,而非通过 Authorization 标头。此 CLI 的 v0.1 版本提供了请求结构和主机路由;要进行真实调用,请将已登录 Chrome 会话中的 Cookie 粘贴到 ~/.config/greatclips-pp-cli/config.toml 中。将 GREATCLIPS_TOKEN 设置为任意占位符,以便 doctor 检查通过(保留此环境变量是为了 v0.2 版本可能引入的 bearer 支持)。

运行 greatclips-pp-cli doctor 验证设置。

代理模式

为任何命令添加 --agent 标志。它将扩展为:--json --compact --no-input --no-color --yes。

  • 可管道传输 — JSON 输出到标准输出,错误输出到标准错误

  • 可过滤 — --select 保留字段子集。点号路径可深入嵌套结构;数组会按元素遍历。这对于在输出冗长的 API 上保持上下文体积小巧至关重要:

    greatclips-pp-cli salons get --num example-value --agent --select id,name,status
    
  • 可预览 — --dry-run 显示请求而不实际发送

  • 非交互式 — 从不提示,每个输入都是标志参数

  • 显式重试 — 仅当已存在的创建操作应被视为成功时,才使用 --idempotent

代理反馈

当您(或代理)注意到此 CLI 的异常行为时,请记录下来:

greatclips-pp-cli feedback "--since 标志是包含性的,但文档说是排他性的"
greatclips-pp-cli feedback --stdin < notes.txt
greatclips-pp-cli feedback list --json --limit 10

条目本地存储在 ~/.greatclips-pp-cli/feedback.jsonl。除非设置了 GREATCLIPS_FEEDBACK_ENDPOINT 并且传递了 --send 参数或设置了 GREATCLIPS_FEEDBACK_AUTO_SEND=true,否则永远不会被 POST 出去。默认行为是仅本地存储。

请写下让您感到意外的事情,而不是错误报告。简短、具体、一行:正是这种细节才有累积价值。

输出传递

每个命令都接受 --deliver <sink> 参数。输出会发送到指定的目标,除标准输出外(或替代标准输出),以便代理无需手动管道即可路由命令结果。支持三种目标:

目标效果
stdout默认值;仅输出到标准输出
file:<path>原子性地将输出写入 <path>(临时文件 + 重命名)
webhook:<url>将输出正文 POST 到该 URL(application/json 或当 --compact 时的 application/x-ndjson)

未知方案将被拒绝,并返回包含支持方案列表的结构化错误。Webhook 失败返回非零退出码,并在标准错误输出中记录 URL 和 HTTP 状态。

命名配置文件

配置文件是一组保存的标志值,可在多次调用中重用。当定时代理在每次运行时使用相同的配置调用完全相同的命令时使用——类似于 HeyGen 的“Beacon”模式。

greatclips-pp-cli profile save briefing --json
greatclips-pp-cli --profile briefing salons get --num example-value
greatclips-pp-cli profile list --json
greatclips-pp-cli profile show briefing
greatclips-pp-cli profile delete briefing --yes

显式标志的值始终覆盖配置文件的值;配置文件的值覆盖默认值。agent-context 会在 available_profiles 下列出所有可用的配置文件,以便进行内省的代理在运行时发现它们。

退出码

代码含义
0成功
2使用错误(参数错误)
3未找到资源
4需要认证
5API 错误(上游问题)
7请求频率受限(等待后重试)
10配置错误

参数解析

解析 $ARGUMENTS:

  1. 空、help 或 --help → 显示 greatclips-pp-cli --help 输出
  2. 以 install 开头 → 若以 mcp 结尾 → MCP 安装;否则 → 参见上方的前提条件
  3. 其他情况 → 直接使用(作为 CLI 命令执行,并带 --agent 标志)

MCP 服务器安装

从此 CLI 的已发布公共库条目或预发布版本安装 MCP 二进制程序,然后注册:

claude mcp add greatclips-pp-mcp -- greatclips-pp-mcp

验证:claude mcp list

直接使用

  1. 检查是否已安装:which greatclips-pp-cli 如果未找到,提供安装选项(参见本技能顶部的“前提条件”)。
  2. 将用户查询与上方“独特功能”和“命令参考”中的最佳命令进行匹配。
  3. 使用 --agent 标志执行:
    greatclips-pp-cli <command> [subcommand] [args] --agent
    
  4. 如果存在歧义,请深入查看子命令帮助:greatclips-pp-cli <command> --help。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

mvanhorn/pp-espn

Use this skill whenever the user asks about live sports scores, standings, team stats, game summaries (with box score, leaders, scoring plays, odds, and win probability), NFL / NBA / MLB / NHL / NCAA / MLS / EPL / WNBA games, team schedules, polls, or rankings. ESPN sports CLI with live scores across 10 leagues, offline search, head-to-head comparisons, and rich per-game summary payloads. No API key required. Triggers on natural phrasings like 'what's the score of the Lakers game', 'Patriots schedule this week', 'NFL standings', 'box score for tonight's Mavs game', 'Chiefs vs Eagles head to head', 'who's on top of the AP poll'.

mvanhorn/pp-flight-goat

Search Google Flights, scan Kayak long-haul routes, and join FlightAware AeroAPI reliability, alerts, and tracking from one CLI.

mvanhorn/pp-movie-goat

The movie CLI that combines TMDb's discovery engine with OMDb's multi-source ratings — and ships a SQLite watchlist that flags what's streaming on your services right now. Trigger phrases: `what should I watch tonight`, `where can I stream <title>`, `rate <title>`, `compare <title> and <title>`, `what's <person>'s filmography`, `plan a <franchise> marathon`, `use movie-goat`, `run movie-goat`.

mvanhorn/pp-recipe-goat

Find the best version of any recipe across 37 trusted sites — with offline cookbook, pantry match, substitution lookup, meal planning, and USDA-backed nutrition. Trigger phrases: `find the best recipe for`, `what can I make with`, `substitute for <ingredient>`, `nutrition for <recipe>`, `use recipe-goat`.

相关技能