zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot

Claude Code and agent skill by zxfccmm4/obsidian-opencode-knowledge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when quickly generating a single OpenCLI command from a specific URL and goal description. 4-step process — open page, capture API, write TS adapter, test. For full site exploration, use opencli-explorer instead.

Install

npx vskill@latest install zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot

SKILL.md

CLI-ONESHOT — 单点快速 CLI 生成

给一个 URL + 一句话描述,4 步生成一个 CLI 命令。
完整探索式开发请看 opencli-explorer skill。

遇到以下情况立即切换到 explorer:

  • Step 3 验证 fetch 始终拿不到数据
  • 需要 Pinia Store Action 触发 API
  • 同一站点要生成 2 个以上命令

输入

项目示例
URLhttps://x.com/jakevin7/lists
Goal获取我的 Twitter Lists

流程

Step 1: 打开页面 + 抓包
bash
opencli browser open <目标 URL>
opencli browser wait time 3
opencli browser network
Step 2: 锁定一个接口
bash
opencli browser network --detail <N> # 查看第 N 条请求的完整响应体
Step 3: 验证接口能复现
bash
# Tier 2 (Cookie)
opencli browser eval "fetch('/api/endpoint', { credentials: 'include' }).then(r => r.json())"
# Tier 2.5 (localStorage Bearer)
opencli browser eval "(async () => {
const token = localStorage.getItem('access_token');
const res = await fetch('https://api.example.com/endpoint', {
headers: { 'Authorization': 'Bearer ' + token },
credentials: 'include'
});
return res.json();
})()"
Step 4: 套模板,生成 adapter
javascript
// clis/<site>/<name>.js
import { cli, Strategy } from '@jackwener/opencli/registry';
cli({
site: 'mysite',
name: 'mycommand',
description: '一句话描述',
domain: 'www.example.com',
strategy: Strategy.COOKIE,
browser: true,
args: [{ name: 'limit', type: 'int', default: 20 }],
columns: ['rank', 'title', 'value'],
func: async (page, kwargs) => {
await page.goto('https://www.example.com/target-page');
const data = await page.evaluate(`(async () => {
const res = await fetch('/api/target', { credentials: 'include' });
const d = await res.json();
return (d.data?.items || []).map(item => ({
title: item.title,
value: item.value,
}));
})()`);
return (data as any[]).slice(0, kwargs.limit).map((item, i) => ({
rank: i + 1,
title: item.title || '',
value: item.value || '',
}));
},
});

认证速查

fetch(url) 直接能拿到? → Tier 1: public (browser: false)
fetch(url, {credentials:'include'})? → Tier 2: cookie
localStorage 有 token + Bearer header 能拿到? → Tier 2.5: localStorage Bearer
加 CSRF/Bearer header 后拿到? → Tier 3: header
都不行,但页面自己能请求成功? → Tier 4: intercept

测试

bash
# Repo 贡献
npm run build
opencli list | grep mysite
opencli mysite mycommand --limit 3 -v
# 私人 adapter
opencli browser verify <site>/<name>

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot/badge)](https://verified-skill.com/skills/zxfccmm4/obsidian-opencode-knowledge/opencli-oneshot)

Something wrong with this skill or its page? Tell us.