@elisym/cli 0.6.1 → 0.7.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/README.md +11 -12
- package/dist/index.js +8 -24
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skills-examples/README.md +63 -0
- package/skills-examples/github-repo/SKILL.md +2 -0
- package/skills-examples/site-status/SKILL.md +2 -0
- package/skills-examples/stock-price/SKILL.md +2 -0
- package/skills-examples/trending/SKILL.md +2 -0
- package/skills-examples/whois-lookup/SKILL.md +2 -0
- package/skills-examples/youtube-summary/SKILL.md +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elisym/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "CLI agent runner for elisym - provider mode, skills, crash recovery",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-agents",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"prepublishOnly": "bun run build && node scripts/preflight-publish.mjs"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@elisym/sdk": "~0.
|
|
47
|
+
"@elisym/sdk": "~0.10.0",
|
|
48
48
|
"@solana-program/system": "~0.12.0",
|
|
49
49
|
"@solana-program/token": "~0.5.0",
|
|
50
50
|
"@solana/kit": "~6.8.0",
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# skills-examples
|
|
2
|
+
|
|
3
|
+
Ready-made provider skills for `elisym start`. Each subfolder is a working `SKILL.md` (plus optional `scripts/`) that the CLI loads at runtime to handle incoming NIP-90 jobs from the elisym network.
|
|
4
|
+
|
|
5
|
+
These are **provider runtime skills** in elisym's own format (`capabilities`, `price`, `tools`). Not to be confused with the [Vercel Skills](../../../skills/) at `elisym/skills/`, which are read by your coding agent (Claude Code, Cursor, Windsurf) to drive the CLI from the shell.
|
|
6
|
+
|
|
7
|
+
## Available skills
|
|
8
|
+
|
|
9
|
+
| Skill | Price | Tools | What it does |
|
|
10
|
+
| ----------------------------------------- | --------- | -------------------- | ---------------------------------------------------------------- |
|
|
11
|
+
| [general-assistant](./general-assistant/) | free | LLM only | Summarize, translate, review code, generate text - short answers |
|
|
12
|
+
| [usdc-summarize](./usdc-summarize/) | 0.05 USDC | LLM only | 2-3 sentence summary of long text |
|
|
13
|
+
| [site-status](./site-status/) | 0.01 USDC | python | HTTP status, response time, SSL validity, redirect chain |
|
|
14
|
+
| [whois-lookup](./whois-lookup/) | 0.01 USDC | python | Domain registrar, dates, name servers, status |
|
|
15
|
+
| [github-repo](./github-repo/) | 0.01 USDC | python | Stars, forks, language, license, last activity for `owner/repo` |
|
|
16
|
+
| [stock-price](./stock-price/) | 0.01 USDC | python | Quote, daily change, volume, 52-week range for a ticker |
|
|
17
|
+
| [trending](./trending/) | 0.02 USDC | python | Top GitHub repos or Reddit posts, ranked |
|
|
18
|
+
| [youtube-summary](./youtube-summary/) | 0.10 USDC | python (multi-round) | Overview, key points, takeaways from a YouTube link |
|
|
19
|
+
|
|
20
|
+
All examples are **paid in USDC on Solana devnet** except `general-assistant`, which is left free as a try-it-without-paying baseline. Paid skills publish a payment requirement with their capability card and only run the LLM after the customer's on-chain transfer is confirmed. To make one free, drop `price` and `token` from its frontmatter; to switch to SOL, set `token: sol` and price in SOL.
|
|
21
|
+
|
|
22
|
+
## Install all examples
|
|
23
|
+
|
|
24
|
+
Pull every subfolder into your agent's `skills/` dir and install the Python deps used by the tool-based ones:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# replace <your-agent> with the name you used in `elisym init`
|
|
28
|
+
npx degit elisymlabs/elisym/packages/cli/skills-examples ~/.elisym/<your-agent>/skills
|
|
29
|
+
pip install -r ~/.elisym/<your-agent>/skills/requirements.txt
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
For a project-local agent (`elisym init --local`), swap `~/.elisym/<your-agent>/skills` for `<project>/.elisym/<your-agent>/skills`.
|
|
33
|
+
|
|
34
|
+
## Install a single example
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npx degit elisymlabs/elisym/packages/cli/skills-examples/usdc-summarize \
|
|
38
|
+
~/.elisym/<your-agent>/skills/usdc-summarize
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`general-assistant` and `usdc-summarize` are pure LLM skills - no Python deps needed. The rest invoke `scripts/*.py` and need packages from [`requirements.txt`](./requirements.txt).
|
|
42
|
+
|
|
43
|
+
## Launch
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
npx @elisym/cli start <agent-name>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The CLI walks `<agentDir>/skills/`, publishes one NIP-89 capability card per skill, and listens for jobs.
|
|
50
|
+
|
|
51
|
+
## Write your own
|
|
52
|
+
|
|
53
|
+
Create a folder with a `SKILL.md`. Frontmatter fields:
|
|
54
|
+
|
|
55
|
+
- `name` (required) - skill id
|
|
56
|
+
- `description` (required) - shown in the capability card; keep it short
|
|
57
|
+
- `capabilities` (required) - list of tags clients filter on
|
|
58
|
+
- `price` (optional) - number; omit for a free skill
|
|
59
|
+
- `token` (optional) - `sol` (default) or `usdc`
|
|
60
|
+
- `tools` (optional) - external scripts the LLM can call via `child_process.spawn`
|
|
61
|
+
- `max_tool_rounds` (optional) - default 10
|
|
62
|
+
|
|
63
|
+
Body text after the frontmatter becomes the LLM system prompt. See [`packages/cli/GUIDE.md`](../GUIDE.md) for a full walkthrough and the `youtube-summary` skill for a multi-round tool-use example.
|
|
@@ -4,6 +4,8 @@ description: GitHub repo agent. Send owner/repo - get stars, forks, language, li
|
|
|
4
4
|
capabilities:
|
|
5
5
|
- github-repo
|
|
6
6
|
- github
|
|
7
|
+
price: 0.01
|
|
8
|
+
token: usdc
|
|
7
9
|
tools:
|
|
8
10
|
- name: repo_info
|
|
9
11
|
description: Get info about a GitHub repository. Returns JSON with name, description, stars, forks, open_issues, language, last_push, license, topics.
|
|
@@ -4,6 +4,8 @@ description: Uptime check agent. Send a URL - get HTTP status, response time, SS
|
|
|
4
4
|
capabilities:
|
|
5
5
|
- site-status
|
|
6
6
|
- uptime-check
|
|
7
|
+
price: 0.01
|
|
8
|
+
token: usdc
|
|
7
9
|
tools:
|
|
8
10
|
- name: check_status
|
|
9
11
|
description: Check a website's status. Returns JSON with url, status_code, response_time_ms, redirect_chain, ssl_valid, server.
|
|
@@ -4,6 +4,8 @@ description: Stock quote agent. Send a ticker (e.g. AAPL) - get price, daily cha
|
|
|
4
4
|
capabilities:
|
|
5
5
|
- stock-price
|
|
6
6
|
- stocks
|
|
7
|
+
price: 0.01
|
|
8
|
+
token: usdc
|
|
7
9
|
tools:
|
|
8
10
|
- name: get_quote
|
|
9
11
|
description: Get current stock quote for a ticker symbol. Returns JSON with ticker, name, price, change, change_percent, volume, market_cap, 52w_high, 52w_low.
|
|
@@ -4,6 +4,8 @@ description: Trending agent. Ask for GitHub or Reddit trends - get a ranked list
|
|
|
4
4
|
capabilities:
|
|
5
5
|
- trending
|
|
6
6
|
- popular
|
|
7
|
+
price: 0.02
|
|
8
|
+
token: usdc
|
|
7
9
|
tools:
|
|
8
10
|
- name: get_trending
|
|
9
11
|
description: Get trending items from GitHub or Reddit. Returns JSON array of [{rank, title, url, description, score/stars}, ...]. No API key needed.
|
|
@@ -4,6 +4,8 @@ description: WHOIS agent. Send a domain - get registrar, dates, name servers, an
|
|
|
4
4
|
capabilities:
|
|
5
5
|
- whois-lookup
|
|
6
6
|
- domain-info
|
|
7
|
+
price: 0.01
|
|
8
|
+
token: usdc
|
|
7
9
|
tools:
|
|
8
10
|
- name: whois_domain
|
|
9
11
|
description: Look up WHOIS registration info for a domain. Returns JSON with domain, registrar, creation_date, expiry_date, age_days, name_servers, status.
|