‹ 首页

consult

@cluesmith · 收录于 5 天前 · 上游提交 6 天前

AI consultation CLI — query Gemini, Codex, or Claude for reviews and analysis. ALWAYS check this skill before running any `consult` command. Use when reviewing specs, plans, implementations, or PRs with external models, running parallel 3-way reviews (cmap), or checking consultation stats. The `-m` model flag is always required except for `consult stats`.

适合你,如果需要在终端中用AI模型做代码或设计评审

/ 通过 npx 安装 校验哈希
npx oh-my-skill add cluesmith/codev/consult
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- cluesmith/codev/consult
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify cluesmith/codev/consult
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
282GitHub stars
~764上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 12d42bb · 表述以原文为准
它做什么

装上后,Claude 能使用 `consult` 命令调用外部 AI 模型(Gemini、Codex、Claude)进行规格、计划、代码或 PR 的评审,并行三方评审,或查看统计数据。

什么时候触发

当用户需要评审规格、计划、实现或 PR,或运行三方并行评审,或查看咨询统计时触发。

装好后可以这样说
运行三方并行评审
技能原文 SKILL.md作者撰写 · Apache-2.0 · 12d42bb

consult - AI Consultation CLI

Query external AI models for reviews and analysis. Supports Gemini, Codex, and Claude.

Synopsis
consult -m <model> [options]
consult stats [options]

The -m / --model flag is always required except for consult stats.

Models

| Flag value | Alias | Notes | |------------|-------|-------| | gemini | pro | Antigravity CLI (agy); agentic file access (--sandbox), OAuth login; skips non-blockingly if unavailable | | codex | gpt | Thorough (~200-250s), shell exploration | | claude | opus | Agent SDK with tool use (~60-120s) |

All flags
-m, --model <model>         Model to use (required except stats)
--prompt <text>              Inline prompt (general mode)
--prompt-file <path>         Prompt file path (general mode)
--protocol <name>            Protocol: spir, aspir, air, bugfix, maintain
-t, --type <type>            Review type (see below)
--issue <number>             Issue number (required in architect context)
--output <path>              Save result to file
--plan-phase <phase>         Scope review to a plan phase (porch use)
--context <path>             Context file with feedback (porch use)
--project-id <id>            Project ID for metrics (porch use)
--days <n>                   Stats: limit to last N days (default: 30)
--project <id>               Stats: filter by project ID
--last <n>                   Stats: show last N invocations
--json                       Stats: output as JSON
Review types (--type)

| Type | When to use | |------|-------------| | spec | Review a specification for completeness | | plan | Review an implementation plan | | impl | Review code implementation | | pr | Review a pull request before merge | | phase | Phase-scoped review (builder context only) | | integration | Architect's integration review of a PR |

Usage patterns

General query:

consult -m gemini --prompt "What's the best way to structure auth?"
consult -m codex --prompt-file review-checklist.md

Protocol review:

consult -m gemini --type spec --issue 42
consult -m codex --type plan --issue 42
consult -m claude --type integration --issue 42

3-way parallel review (cmap): Always use --output for background runs — without it, results go to a temp file that may be garbage-collected.

consult -m gemini --type integration --issue 42 --output /tmp/cmap-gemini-42.md &
consult -m codex --type integration --issue 42 --output /tmp/cmap-codex-42.md &
consult -m claude --type integration --issue 42 --output /tmp/cmap-claude-42.md &
wait

Stats:

consult stats                     # 30-day summary
consult stats --days 7 --json     # Last 7 days as JSON
consult stats --project 42        # Filter by project
Rules
  • -m is required for all non-stats commands
  • --prompt and --type are mutually exclusive (different modes)
  • --prompt and --prompt-file are mutually exclusive
  • --protocol requires --type
  • From architect context (outside .builders/), --issue is required for protocol reviews
  • From builder context (inside .builders/), project auto-detects from porch state
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。