@zenalexa/unicli 0.218.0 → 0.218.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +19 -1
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/bin/unicli-mcp.d.ts +10 -0
- package/dist/bin/unicli-mcp.d.ts.map +1 -0
- package/dist/bin/unicli-mcp.js +10 -0
- package/dist/bin/unicli-mcp.js.map +1 -0
- package/dist/manifest.json +1 -1
- package/package.json +22 -8
- package/server.json +44 -0
- package/skills/README.md +39 -0
- package/skills/talk-normal/SKILL.md +25 -0
- package/skills/talk-normal/prompt.md +35 -0
- package/skills/unicli/SKILL.md +389 -0
- package/skills/unicli/references/auth.md +188 -0
- package/skills/unicli/references/output.md +238 -0
- package/skills/unicli/references/sites.md +259 -0
- package/skills/unicli-browser/SKILL.md +99 -0
- package/skills/unicli-claude-code/SKILL.md +172 -0
- package/skills/unicli-explorer/SKILL.md +90 -0
- package/skills/unicli-hermes/SKILL.md +83 -0
- package/skills/unicli-oneshot/SKILL.md +59 -0
- package/skills/unicli-operate/SKILL.md +113 -0
- package/skills/unicli-repair/SKILL.md +209 -0
- package/skills/unicli-repair/references/error-codes.md +149 -0
- package/skills/unicli-repair/references/yaml-patches.md +321 -0
- package/skills/unicli-smart-search/SKILL.md +80 -0
- package/skills/unicli-usage/SKILL.md +65 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: unicli-smart-search
|
|
3
|
+
description: >
|
|
4
|
+
Route search queries to the best platform via unicli. Use when searching across
|
|
5
|
+
websites, social media, tech forums, news, finance, shopping, or academic sources.
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
triggers:
|
|
8
|
+
- "search"
|
|
9
|
+
- "find information"
|
|
10
|
+
- "trending"
|
|
11
|
+
- "hot topics"
|
|
12
|
+
- "unicli search"
|
|
13
|
+
allowed-tools: [Bash]
|
|
14
|
+
protocol: 2.0
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## When to Use
|
|
18
|
+
|
|
19
|
+
Searching for information, checking trending topics, or gathering data across platforms.
|
|
20
|
+
Commands return a v2 AgentEnvelope; pass `-f json` when you need JSON for parsing.
|
|
21
|
+
|
|
22
|
+
## Pre-Check
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
unicli <site> --help # Verify subcommands exist
|
|
26
|
+
unicli <site> <command> --help # Check args and output columns
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Search Routing
|
|
30
|
+
|
|
31
|
+
| Category | Command |
|
|
32
|
+
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
33
|
+
| **Web** | `unicli google search <q>`, `unicli baidu search <q>` |
|
|
34
|
+
| **Tech** | `unicli hackernews top`, `unicli hackernews search <q>`, `unicli stackoverflow hot`, `unicli lobsters hot`, `unicli v2ex hot`, `unicli linux-do hot` |
|
|
35
|
+
| **Social** | `unicli twitter search <q>`, `unicli twitter trending`, `unicli reddit search <q>`, `unicli reddit hot`, `unicli weibo hot`, `unicli zhihu hot`, `unicli tieba hot`, `unicli threads hot` |
|
|
36
|
+
| **Finance** | `unicli xueqiu hot`, `unicli xueqiu hot-stock`, `unicli binance hot`, `unicli eastmoney hot`, `unicli bloomberg markets`, `unicli yahoo-finance search <q>` |
|
|
37
|
+
| **Academic** | `unicli arxiv search <q>`, `unicli arxiv paper <id>` |
|
|
38
|
+
| **Shopping** | `unicli amazon search <q>`, `unicli jd search <q>`, `unicli taobao search <q>`, `unicli smzdm hot`, `unicli xianyu search <q>` |
|
|
39
|
+
| **Video** | `unicli bilibili hot`, `unicli bilibili search <q>`, `unicli youtube search <q>`, `unicli tiktok search <q>` |
|
|
40
|
+
| **News** | `unicli toutiao hot`, `unicli 36kr hot`, `unicli bbc hot`, `unicli cnn top`, `unicli nytimes top`, `unicli reuters top` |
|
|
41
|
+
| **Dev** | `unicli github-trending`, `unicli producthunt hot`, `unicli docker-hub search <q>` |
|
|
42
|
+
| **Reading** | `unicli douban search <q>`, `unicli douban top250`, `unicli weread ranking`, `unicli wikipedia search <q>` |
|
|
43
|
+
| **Jobs** | `unicli boss search <q>`, `unicli linkedin search <q>`, `unicli maimai search <q>` |
|
|
44
|
+
|
|
45
|
+
## Multi-Source Pattern
|
|
46
|
+
|
|
47
|
+
For comprehensive research, query 2-3 complementary sources:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
# Tech topic
|
|
51
|
+
unicli hackernews search "LLM agents" --limit 10
|
|
52
|
+
unicli reddit search "LLM agents" --limit 10
|
|
53
|
+
unicli arxiv search "LLM agents" --limit 5
|
|
54
|
+
|
|
55
|
+
# Chinese trending
|
|
56
|
+
unicli weibo hot --limit 20
|
|
57
|
+
unicli zhihu hot --limit 20
|
|
58
|
+
|
|
59
|
+
# Market research
|
|
60
|
+
unicli producthunt hot --limit 10
|
|
61
|
+
unicli hackernews search "startup" --limit 10
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Output Handling
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
unicli hackernews top --limit 5 | jq '.[].title'
|
|
68
|
+
unicli xueqiu hot | jq '.[] | {name, change}'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Fallback
|
|
72
|
+
|
|
73
|
+
- Exit 77 -> `unicli auth setup <site>` then retry
|
|
74
|
+
- Exit 69 -> `unicli browser start` then retry
|
|
75
|
+
- Exit 66 -> try different query terms
|
|
76
|
+
- Site down -> switch to alternative from routing table
|
|
77
|
+
|
|
78
|
+
## Budget
|
|
79
|
+
|
|
80
|
+
Per question: 1-2 primary sources + 1 supplementary. Do not query same site twice.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: unicli-usage
|
|
3
|
+
description: >
|
|
4
|
+
Command reference and usage guide for unicli — the universal CLI for AI agents.
|
|
5
|
+
Use when you need to discover, run, or pipe unicli commands.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# unicli Usage Guide
|
|
9
|
+
|
|
10
|
+
## Quick Reference
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
unicli list # List all available commands
|
|
14
|
+
unicli list --type web-api # Filter by adapter type
|
|
15
|
+
unicli list --site bilibili # Filter by site name
|
|
16
|
+
|
|
17
|
+
unicli <site> <command> [options] # Run any command
|
|
18
|
+
unicli hackernews top --limit 5 # Example: HN top stories
|
|
19
|
+
unicli hackernews search "AI agents" # Example: search HN
|
|
20
|
+
|
|
21
|
+
unicli doctor # System health check
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Output Formats
|
|
25
|
+
|
|
26
|
+
All commands support `--format` / `-f`:
|
|
27
|
+
|
|
28
|
+
| Format | Use Case |
|
|
29
|
+
| --------- | ----------------------------------- |
|
|
30
|
+
| `md` | Default v2 AgentEnvelope for agents |
|
|
31
|
+
| `json` | Machine parsing / jq |
|
|
32
|
+
| `yaml` | Config-friendly envelope |
|
|
33
|
+
| `csv` | Spreadsheet import |
|
|
34
|
+
| `compact` | Pipe-friendly row stream |
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
unicli hackernews top -f json | jq '.data[0].title'
|
|
38
|
+
unicli hackernews top -f csv > stories.csv
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Adapter Types
|
|
42
|
+
|
|
43
|
+
| Type | Description | Example |
|
|
44
|
+
| --------- | ------------------------ | -------------------- |
|
|
45
|
+
| `web-api` | REST API calls | hackernews, bilibili |
|
|
46
|
+
| `desktop` | Local desktop software | blender, gimp |
|
|
47
|
+
| `browser` | Full browser automation | xiaohongshu |
|
|
48
|
+
| `bridge` | Existing CLI passthrough | gh, docker |
|
|
49
|
+
| `service` | HTTP services | ollama, comfyui |
|
|
50
|
+
|
|
51
|
+
## Exit Codes
|
|
52
|
+
|
|
53
|
+
Use exit codes for scripting:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
unicli hackernews top || echo "exit $?"
|
|
57
|
+
[ $? -eq 77 ] && echo "Login required"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
| Code | Meaning |
|
|
61
|
+
| ---- | ------------------- |
|
|
62
|
+
| 0 | Success |
|
|
63
|
+
| 66 | Empty result |
|
|
64
|
+
| 69 | Service unavailable |
|
|
65
|
+
| 77 | Auth required |
|