@anysiteio/agent-skills 1.0.1 → 1.3.0
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/.claude-plugin/marketplace.json +25 -1
- package/.claude-plugin/plugin.json +3 -1
- package/README.md +28 -8
- package/bin/install.js +174 -43
- package/package.json +5 -3
- package/skills/anysite-cli/README.md +419 -0
- package/skills/anysite-cli/SKILL.md +548 -0
- package/skills/anysite-cli/references/api-reference.md +225 -0
- package/skills/anysite-cli/references/dataset-guide.md +870 -0
- package/skills/anysite-cli/references/llm-reference.md +274 -0
- package/skills/skill-audit/README.md +287 -0
- package/skills/skill-audit/SKILL.md +274 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Anysite CLI API Reference
|
|
2
|
+
|
|
3
|
+
## anysite api
|
|
4
|
+
|
|
5
|
+
Call any API endpoint. Parameters are `key=value` pairs, auto-typed via schema cache.
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
anysite api <endpoint> [key=value ...] [OPTIONS]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Output Options
|
|
12
|
+
```
|
|
13
|
+
--format, -f TEXT json|jsonl|csv|table|parquet (default: json)
|
|
14
|
+
--fields TEXT Comma-separated fields to include (dot-notation supported)
|
|
15
|
+
--exclude TEXT Comma-separated fields to exclude
|
|
16
|
+
--fields-preset TEXT Built-in preset: minimal|contact|recruiting
|
|
17
|
+
--compact Compact JSON (no indentation)
|
|
18
|
+
--output, -o PATH Save to file (supports {{date}}/{{datetime}} templates)
|
|
19
|
+
--append Append to existing output file
|
|
20
|
+
--quiet, -q Suppress non-data output (use for piping)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Batch Input Options
|
|
24
|
+
```
|
|
25
|
+
--from-file PATH Input file (txt/JSONL/CSV)
|
|
26
|
+
--stdin Read from stdin
|
|
27
|
+
--input-key TEXT Parameter name for input values
|
|
28
|
+
--parallel, -j INT Parallel requests (default: 1)
|
|
29
|
+
--delay FLOAT Delay between requests (seconds)
|
|
30
|
+
--rate-limit TEXT Rate limit: "10/s", "100/m", "1000/h"
|
|
31
|
+
--on-error TEXT Error handling: stop|skip|retry (default: stop)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Progress Options
|
|
35
|
+
```
|
|
36
|
+
--progress/--no-progress Show/hide progress bar
|
|
37
|
+
--stats Display statistics after completion
|
|
38
|
+
--verbose Detailed debug output
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Examples
|
|
42
|
+
```bash
|
|
43
|
+
# Single call
|
|
44
|
+
anysite api /api/linkedin/user user=satyanadella --format table
|
|
45
|
+
|
|
46
|
+
# Batch with rate limiting
|
|
47
|
+
anysite api /api/linkedin/user --from-file users.txt --input-key user \
|
|
48
|
+
--parallel 5 --rate-limit "10/s" --on-error skip --format csv --output results.csv
|
|
49
|
+
|
|
50
|
+
# Pipe to jq
|
|
51
|
+
anysite api /api/linkedin/company company=anthropic -q | jq '.employee_count'
|
|
52
|
+
|
|
53
|
+
# Pipe to database
|
|
54
|
+
anysite api /api/linkedin/user user=satyanadella -q --format jsonl \
|
|
55
|
+
| anysite db insert mydb --table profiles --stdin --auto-create
|
|
56
|
+
|
|
57
|
+
# Array/set parameters accept comma-separated values
|
|
58
|
+
anysite api /api/linkedin/google/company keywords=fuzzy.so # auto-wrapped to ["fuzzy.so"]
|
|
59
|
+
anysite api /api/linkedin/google/company keywords=saas,fintech # becomes ["saas","fintech"]
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## anysite describe
|
|
65
|
+
|
|
66
|
+
Discover and inspect API endpoints.
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
anysite describe [endpoint] [OPTIONS]
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
--search, -s TEXT Search endpoints by keyword
|
|
74
|
+
--json Output as JSON
|
|
75
|
+
--quiet, -q Show only paths
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Examples
|
|
79
|
+
```bash
|
|
80
|
+
anysite describe # List all endpoints
|
|
81
|
+
anysite describe /api/linkedin/company # Full endpoint details
|
|
82
|
+
anysite describe --search "company" # Search by keyword
|
|
83
|
+
anysite describe --json -q # Machine-readable output
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Output shows: endpoint path, description, input parameters (name, type, required), output fields (name, type). Nested objects and arrays are expanded with dot-notation:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
Output fields (15):
|
|
90
|
+
name string
|
|
91
|
+
urn object
|
|
92
|
+
.type string
|
|
93
|
+
.value string
|
|
94
|
+
experience array[object]
|
|
95
|
+
.title string
|
|
96
|
+
.company_urn string
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Use these dot-notation paths in `--fields`, `dependency.field`, and `db_load.fields`.
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## anysite config
|
|
104
|
+
|
|
105
|
+
Manage configuration in `~/.anysite/config.yaml`.
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
anysite config set <key> <value> # Set value (supports nesting: defaults.format)
|
|
109
|
+
anysite config get <key> # Get value
|
|
110
|
+
anysite config list # Show all settings
|
|
111
|
+
anysite config path # Show config file location
|
|
112
|
+
anysite config init # Interactive setup
|
|
113
|
+
anysite config reset --force # Reset to defaults
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
### Config Priority
|
|
117
|
+
1. CLI arguments (`--api-key`)
|
|
118
|
+
2. Environment variables (`ANYSITE_API_KEY`, `ANYSITE_BASE_URL`)
|
|
119
|
+
3. Config file (`~/.anysite/config.yaml`)
|
|
120
|
+
4. Defaults
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## anysite schema
|
|
125
|
+
|
|
126
|
+
Manage the API schema cache.
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
anysite schema update # Fetch and cache OpenAPI spec
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Schema is cached to `~/.anysite/schema.json`. Required for `anysite describe` and auto-type conversion in `anysite api`.
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Global Options
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
--api-key TEXT Override API key
|
|
140
|
+
--base-url TEXT Override API base URL
|
|
141
|
+
--debug Enable debug output
|
|
142
|
+
--no-color Disable colored output
|
|
143
|
+
--json Force JSON envelope output (auto-enabled in pipes)
|
|
144
|
+
--human Force human-readable output (override auto-JSON in pipes)
|
|
145
|
+
--non-interactive Disable interactive prompts (auto-enabled when stdin is not a TTY)
|
|
146
|
+
--version, -v Show version
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## Exit Codes
|
|
152
|
+
|
|
153
|
+
| Code | Meaning |
|
|
154
|
+
|------|---------|
|
|
155
|
+
| 0 | Success |
|
|
156
|
+
| 1 | General error |
|
|
157
|
+
| 2 | Usage error (invalid args, missing params) |
|
|
158
|
+
| 3 | Authentication failed |
|
|
159
|
+
| 4 | Resource not found |
|
|
160
|
+
| 5 | Network / timeout / rate limit |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## Common API Endpoints
|
|
165
|
+
|
|
166
|
+
### LinkedIn
|
|
167
|
+
```
|
|
168
|
+
/api/linkedin/user user=<username>
|
|
169
|
+
/api/linkedin/company company=<alias>
|
|
170
|
+
/api/linkedin/search/users keywords=<text> count=<n>
|
|
171
|
+
/api/linkedin/company/employees companies=[{type,value}] count=<n>
|
|
172
|
+
/api/linkedin/user/posts urn=<urn> count=<n>
|
|
173
|
+
/api/linkedin/post/comments urn=<urn> count=<n>
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
### Instagram
|
|
177
|
+
```
|
|
178
|
+
/api/instagram/user user=<username>
|
|
179
|
+
/api/instagram/user/posts user=<username> count=<n>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Twitter/X
|
|
183
|
+
```
|
|
184
|
+
/api/twitter/user user=<username>
|
|
185
|
+
/api/twitter/user/posts user_id=<id> count=<n>
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Web
|
|
189
|
+
```
|
|
190
|
+
/api/web/parse url=<url>
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Use `anysite describe --search <keyword>` to discover more endpoints.
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
## anysite dataset guide
|
|
198
|
+
|
|
199
|
+
Show comprehensive dataset configuration reference with examples.
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
anysite dataset guide [OPTIONS]
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
--section, -s TEXT Show specific section (e.g., sources, llm, db_load)
|
|
207
|
+
--example, -e TEXT Show a complete example config (e.g., basic, advanced)
|
|
208
|
+
--list List available sections and examples
|
|
209
|
+
--json Output as machine-readable JSON
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
### Examples
|
|
213
|
+
```bash
|
|
214
|
+
anysite dataset guide # full reference
|
|
215
|
+
anysite dataset guide --section sources # source types only
|
|
216
|
+
anysite dataset guide --section llm # LLM enrichment config
|
|
217
|
+
anysite dataset guide --example basic # basic config example
|
|
218
|
+
anysite dataset guide --example advanced # multi-source pipeline
|
|
219
|
+
anysite dataset guide --list # list all sections and examples
|
|
220
|
+
anysite dataset guide --json # structured JSON for agents
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Available sections: `sources`, `params`, `dependencies`, `llm`, `transform`, `export`, `db_load`, `storage`, `schedule`, `notifications`, `incremental`.
|
|
224
|
+
|
|
225
|
+
Available examples: `basic`, `advanced`, `from_file`, `llm_enrichment`.
|