ask-opencli

ask-opencli is a skill for Claude Code, Codex from majiayu000/spellbook. It costs 95 tokens per session (2,057 once invoked), scanned A, original, MIT.

A helper for asking Grok or Gemini through OpenCLI, which uses an already signed-in Chrome browser session instead of a paid API.

In plain words
What is it for?
Use it when you explicitly want Grok or Gemini to answer, investigate, or analyze something through the terminal.
Why use it?
It provides a second opinion from either model without separately paying for API requests, provided the browser setup and login are ready.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code; mentions Gemini CLI.

Good fit Use it when you explicitly want Grok or Gemini to answer, investigate, or analyze something through the terminal.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/majiayu000/spellbook/ask-opencli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add majiayu000/spellbook --skill ask-opencli
Clone the repo
git clone --depth 1 https://github.com/majiayu000/spellbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ask-opencli

README.md
[![agentmods](https://agentmods.dev/badge/skills/majiayu000/spellbook/ask-opencli/github.svg)](https://agentmods.dev/skills/majiayu000/spellbook/ask-opencli)
Your own site
<a href="https://agentmods.dev/skills/majiayu000/spellbook/ask-opencli"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/ask-opencli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ask-opencli

Your own site · 80×15
<a href="https://agentmods.dev/skills/majiayu000/spellbook/ask-opencli"><img src="https://agentmods.dev/badge/skills/majiayu000/spellbook/ask-opencli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,057 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.02057
Opus 5.5 $0.00038 $0.00823
Sonnet 5.5 $0.00019 $0.00411
Haiku 4.5 $0.00010 $0.00206

Measured 3mo ago against content hash 690f661fb314, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ask-opencli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ask-opencli/SKILL.md · 175 lines

How it starts

The opening of the file, as written. The whole thing — 175 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ask via OpenCLI (Grok / Gemini)

Use opencli to query Grok or Gemini through the user's already-logged-in Chrome session. Zero API cost, fully driven by the existing browser session.

opencli 项目:https://github.com/jackwener/opencli 安装:npm install -g @jackwener/opencli(需要 Node ≥20) 首次运行:opencli doctor 会自动引导安装 Chrome Browser Bridge 扩展 登录:用装了扩展的 Chrome profile 打开 grok.com 和 gemini.google.com 登录一次 必须环境变量:export OPENCLI_BROWSER_COMMAND_TIMEOUT=300(写进 shell rc) 更深度的多 AI 并行调研工作流:use the multi-ai-research skill instead

When to trigger:

  • User explicitly asks to query Grok or Gemini ("问一下 grok", "用 gemini 查", "让 grok 看看")
  • User wants a second opinion / external advisor from Grok or Gemini
  • User says "ask grok"/"ask gemini" or mentions these two as the information source

When NOT to trigger:

  • User wants to use native Gemini CLI (gemini -p) → use ask-gemini skill instead
  • User wants Claude's own opinion → answer directly
  • User wants other AI (Doubao, Yuanbao, ChatGPT, etc.) → use other tools

Model selection

If the user doesn't specify which model, default to Grok for real-time / social / news / tech-trend questions, and Gemini for long-form reasoning, research, coding, and document analysis.

If still ambiguous, ask the user which one to use before sending.

⚠️ 常见错误命令(直接 fail fast)

❌ 错误 ✅ 正确 原因
opencli gemini chat "..." opencli gemini ask "..." 没有 chat 子命令
opencli grok chat "..." opencli grok ask "..." 只有 ask 子命令
opencli grok new opencli grok ask "..." --new true grok 的"新对话"是 ask 的参数
opencli gemini query "..." opencli gemini ask "..." 没有 query 子命令

完整子命令速查(运行 opencli grok --help 或 opencli gemini --help 查看):

Grok:
  ask <prompt>                    # 唯一命令

Gemini:
  ask <prompt>                    # 最常用
  new                             # 开新对话
  deep-research <prompt>          # Deep Research 模式
  deep-research-result [query]    # 取 Deep Research 结果
  image <prompt>                  # 图片生成

Read the full file on GitHub · 175 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 175 lines · 95 tokens per session scan A 690f661fb314

Subscribe to this mod's changes

ask-opencli is a skill published in the GitHub repository majiayu000/spellbook (303 stars, last pushed 4d ago), licensed MIT. It adds 95 tokens to every session and 2,057 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ask-opencli compared with skills from other repositories

ask-opencli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ask-openclimajiayu000/spellbookSkill3034d agoMITA95Claude Code, Codex
news-searchelvisun/newsjackSkill1.7k9d agoMITA69Claude Code
inbox-zero-apielie222/inbox-zeroSkill13kyesterdaynoneA61Codex, Cursor
telegram-userbotoyi77/1ai-skillsSkill19yesterdayMITA70Claude Code
sap-build-process-automationefeumutaslan/SAP-SKILLSSkill88mo agoMITA99Claude Code, Codex
slackvercel-labs/agent-browserSkill55ktodayApache-2.0A88Claude Code
derive-clientvercel-labs/agent-browserSkill55ktodayApache-2.0A100Claude Code