Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.63 KB

claude-code.md

File metadata and controls

73 lines (49 loc) · 1.63 KB

Claude Code Usage

This document shows how to install and use the OpenCLI skill in Claude Code.

Install

Clone this repository into Claude Code's skills directory:

git clone https://github.com/GloriaGuo/opencli-skill.git ~/.claude/skills/opencli

If the folder already exists, update it:

cd ~/.claude/skills/opencli
git pull

Triggering The Skill

Claude Code can often pick the skill from context, but explicit invocation is more reliable:

Use $opencli to inspect the local OpenCLI setup and run the correct command.

Example Prompts

Browser-backed sites

Use $opencli to fetch the top 10 Bilibili hot videos as JSON.
Use $opencli to search Zhihu for "Android 性能优化" and summarize the top results.

Desktop adapters

Use $opencli to inspect the local OpenCLI setup and tell me whether Codex and Cursor adapters are available.
Use $opencli to read the current Codex desktop conversation and summarize the latest progress.

Troubleshooting

Use $opencli to diagnose why my browser-backed command is returning empty data.
Use $opencli to compare the installed OpenCLI command surface with the README and tell me what is actually available.

Recommended Prompt Pattern

The most reliable structure is:

  1. mention $opencli
  2. describe the target site or app
  3. state the expected output format or outcome
  4. ask for read-first behavior if the task could become write-capable

Example:

Use $opencli to inspect the installed command surface, then run a read-first workflow against Zhihu and return JSON only.