@vatio-ai/skills 2.2.1 → 3.0.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 +4 -4
- package/.claude-plugin/plugin.json +3 -3
- package/README.md +19 -118
- package/bin/install.mjs +15 -9
- package/package.json +3 -3
- package/skills/vatio/SKILL.md +228 -0
- package/skills/vatio-analyze/SKILL.md +0 -69
- package/skills/vatio-improve/SKILL.md +0 -98
- package/skills/vatio-init/SKILL.md +0 -202
- package/skills/vatio-share-session/SKILL.md +0 -105
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
"url": "https://vatio.ai"
|
|
6
6
|
},
|
|
7
7
|
"metadata": {
|
|
8
|
-
"description": "The Vatio plugin:
|
|
8
|
+
"description": "The Vatio plugin: build and run always-on agents on Vatio through its MCP."
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
11
|
{
|
|
12
12
|
"name": "vatio",
|
|
13
13
|
"source": "./",
|
|
14
|
-
"description": "Vatio
|
|
15
|
-
"version": "
|
|
16
|
-
"homepage": "https://vatio.ai/docs/
|
|
14
|
+
"description": "The Vatio skill and MCP for Claude Code, Cursor and Codex: build, change, improve and analyze an always-on agent on Vatio with /vatio. Vatio holds and runs the agent; no config files in your repo.",
|
|
15
|
+
"version": "3.0.0",
|
|
16
|
+
"homepage": "https://vatio.ai/docs/mcp",
|
|
17
17
|
"category": "development",
|
|
18
18
|
"keywords": [
|
|
19
19
|
"vatio",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vatio",
|
|
3
|
-
"description": "Vatio
|
|
4
|
-
"version": "
|
|
3
|
+
"description": "The Vatio skill and MCP for Claude Code, Cursor and Codex: build, change, improve and analyze an always-on agent on Vatio with /vatio. Vatio holds and runs the agent; no config files in your repo.",
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vatio",
|
|
7
7
|
"url": "https://vatio.ai"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://vatio.ai/docs/
|
|
9
|
+
"homepage": "https://vatio.ai/docs/mcp",
|
|
10
10
|
"repository": "https://github.com/vatio-ai/skills",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"mcpServers": {
|
package/README.md
CHANGED
|
@@ -1,127 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vatio-ai/skills
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
the
|
|
3
|
+
The Vatio skill for coding agents. Vatio is a managed platform for always-on
|
|
4
|
+
agents: it holds the agent and runs what wakes it, what it remembers, what it
|
|
5
|
+
may do without asking and how its work reaches people.
|
|
5
6
|
|
|
6
7
|
```bash
|
|
7
8
|
npx @vatio-ai/skills
|
|
8
9
|
```
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
Run it in a project. It copies the `vatio` skill into `.claude/skills` (Claude
|
|
12
|
+
Code) and `.agents/skills` (Codex, Cursor and most other coding agents) and
|
|
13
|
+
adds the Vatio MCP (`https://vatio.ai/mcp`) to the project's `.mcp.json`, and
|
|
14
|
+
to `.cursor/mcp.json` when there is a `.cursor/`. `--no-mcp` leaves those
|
|
15
|
+
alone; `--dir PATH` installs somewhere else. Running it again replaces the
|
|
16
|
+
copies and removes the skills this package used to ship (`vatio-init`,
|
|
17
|
+
`vatio-improve`, `vatio-analyze`, `vatio-share-session`).
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
your app’s project on your computer and Node.js 20 or newer.
|
|
19
|
+
Then, in Claude Code, approve the `vatio` server (or run `/mcp`), sign in to
|
|
20
|
+
Vatio, and run `/vatio`, or just ask to build, change, improve or analyze a
|
|
21
|
+
Vatio agent. In another coding agent, connect `https://vatio.ai/mcp` and ask
|
|
22
|
+
it to use the vatio skill.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
| `vatio-improve` | Takes every reply your supervisors reported in the inbox in one session: reads `list_reports`, fixes each cause after your approval and proves it with `run_tests` (on Vatio's servers); the fix reaches your users once the tests that pass today pass on it |
|
|
28
|
-
| `vatio-analyze` | Reads what people talked about with the agent between two dates, from `list_conversations` (redacted by Vatio before it leaves): topics with their counts, the questions it could not answer and the words people use, in a report for writing content, FAQs or knowledge. Anyone on the workspace's team can run it, viewers included |
|
|
29
|
-
| `vatio-share-session` | Sends the coding session to the Vatio team when you ask it to, after showing you what goes (images left out, anything that looks like a secret redacted), with your feedback if you want to add some |
|
|
24
|
+
The skill looks at what is there (your workspaces, the app's code), builds a
|
|
25
|
+
new agent or works on the one you have through the MCP, and always ends by
|
|
26
|
+
sending feedback to the Vatio team with `send_feedback`.
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
Vatio MCP's tools to reach for; the instructions for working reports and tests
|
|
33
|
-
come from the platform when it reads them, so they are never out of date.
|
|
34
|
-
|
|
35
|
-
## Install
|
|
36
|
-
|
|
37
|
-
`npx @vatio-ai/skills` copies the skills into `.claude/skills/`, where Claude
|
|
38
|
-
Code reads them, and `.agents/skills/`, where Codex, Cursor, Gemini CLI,
|
|
39
|
-
GitHub Copilot and most other coding agents do. It also adds the Vatio MCP
|
|
40
|
-
(`https://vatio.ai/mcp`) to the project's `.mcp.json` and, when the project
|
|
41
|
-
has a `.cursor/`, to `.cursor/mcp.json`; `--no-mcp` leaves those alone. Run it
|
|
42
|
-
again to update the skills. Elsewhere, connect `https://vatio.ai/mcp` as your
|
|
43
|
-
coding agent's docs say ([Vatio in Claude and ChatGPT](https://vatio.ai/docs/mcp)).
|
|
44
|
-
|
|
45
|
-
### As a Claude Code plugin
|
|
46
|
-
|
|
47
|
-
In Claude Code the same skills come as a plugin that can update itself, and
|
|
48
|
-
brings the Vatio MCP with it. Run these one at a time and follow the
|
|
49
|
-
installation panel; the commands are then `/vatio:vatio-init` and
|
|
50
|
-
`/vatio:vatio-improve`:
|
|
51
|
-
|
|
52
|
-
```text
|
|
53
|
-
/plugin marketplace add vatio-ai/skills
|
|
54
|
-
/plugin install vatio@vatio
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Claude Code does not update plugins from other people's marketplaces on its own:
|
|
58
|
-
turn it on once in `/plugin` → **Marketplaces** → **vatio** → **Enable
|
|
59
|
-
auto-update**, or run `claude plugin update vatio@vatio`.
|
|
60
|
-
|
|
61
|
-
Your coding agent then uses them on its own when you ask it to build, improve
|
|
62
|
-
or fix a Vatio agent, to analyze its conversations, or to send the session to
|
|
63
|
-
Vatio, or you can call them by
|
|
64
|
-
name: `/vatio-init`, `/vatio-improve`, `/vatio-analyze` and `/vatio-share-session`, or
|
|
65
|
-
`/vatio:vatio-init` and so on from the plugin.
|
|
66
|
-
|
|
67
|
-
## What it runs and sends
|
|
68
|
-
|
|
69
|
-
The skills are instructions for your coding agent, with no hooks or anything
|
|
70
|
-
that runs by itself. They work through one MCP server,
|
|
71
|
-
[vatio.ai/mcp](https://vatio.ai/docs/mcp), and for sharing a session when you
|
|
72
|
-
ask, the [Vatio CLI](https://github.com/vatio-ai/cli)
|
|
73
|
-
(`npx @vatio-ai/cli`, downloaded from npm). Both talk to one service,
|
|
74
|
-
[vatio.ai](https://vatio.ai):
|
|
75
|
-
|
|
76
|
-
- **Sign-in.** Your coding agent's MCP client opens vatio.ai to sign you in,
|
|
77
|
-
and keeps the token it gets back. You see the connection under
|
|
78
|
-
**Account → Sessions** in the inbox and can end it there.
|
|
79
|
-
- **Your agent.** The MCP's tools send what your coding agent writes (the
|
|
80
|
-
agent's instructions, knowledge, tools and tests) to vatio.ai, which runs
|
|
81
|
-
the agent. `set_secret` sends a secret you name, stored encrypted and never
|
|
82
|
-
shown again.
|
|
83
|
-
- **Conversations.** `chat_with_agent` sends what your coding agent types to
|
|
84
|
-
your agent. `list_reports`, `get_conversation` and `list_conversations`
|
|
85
|
-
(redacted by Vatio before it leaves) bring your workspace's conversations to
|
|
86
|
-
it, and each read is recorded in the workspace's Activity.
|
|
87
|
-
- **How each tool call ended.** Vatio records which tool ran, whether it ended
|
|
88
|
-
in an error, how long it took and which app made the call; never what a tool
|
|
89
|
-
was given or returned. Installing these skills tells Vatio once, with their
|
|
90
|
-
version and the coding agent. `VATIO_TELEMETRY=0` skips that.
|
|
91
|
-
- **Feedback.** At the end of `vatio-init` and `vatio-improve`, your agent
|
|
92
|
-
sends the Vatio team a few sentences with the MCP's `send_feedback`: which
|
|
93
|
-
step took the most work, and why.
|
|
94
|
-
- **Your coding session, only if you say yes.** `vatio-share-session` shows
|
|
95
|
-
you what would go (images left out, anything that looks like a secret
|
|
96
|
-
redacted) and sends it to the Vatio team only after you agree.
|
|
97
|
-
|
|
98
|
-
What Vatio keeps and for how long is in its
|
|
99
|
-
[privacy policy](https://vatio.ai/legal/privacy-policy).
|
|
100
|
-
|
|
101
|
-
## Docs
|
|
102
|
-
|
|
103
|
-
[Vatio MCP](https://vatio.ai/docs/mcp) ·
|
|
104
|
-
[Improve your agent from reports](https://vatio.ai/docs/improve) ·
|
|
105
|
-
[Changelog](https://vatio.ai/docs/changelog)
|
|
106
|
-
|
|
107
|
-
## Issues
|
|
108
|
-
|
|
109
|
-
Bugs and ideas go to [issues](https://github.com/vatio-ai/skills/issues).
|
|
110
|
-
This repository is a read-only mirror of the skills as they ship inside
|
|
111
|
-
Vatio, so a pull request cannot be merged here: open an issue describing the
|
|
112
|
-
change instead.
|
|
113
|
-
|
|
114
|
-
MIT licensed.
|
|
115
|
-
|
|
116
|
-
## Other coding agents
|
|
117
|
-
|
|
118
|
-
From the root of your project:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
npx @vatio-ai/skills
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
This copies the skills into `.agents/skills/` and `.claude/skills/`.
|
|
125
|
-
Run it again to update them. Any coding agent that reads those skills, and
|
|
126
|
-
connects `https://vatio.ai/mcp`, can follow the same procedures. You can also
|
|
127
|
-
use `npx skills add vatio-ai/skills` with the [skills CLI](https://skills.sh).
|
|
28
|
+
Docs: <https://vatio.ai/docs/mcp>. Node.js 18 or newer.
|
package/bin/install.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// npx @vatio-ai/skills -- copies the Vatio
|
|
2
|
+
// npx @vatio-ai/skills -- copies the Vatio skill into the project the command
|
|
3
3
|
// runs in, for every coding agent at once:
|
|
4
4
|
// .agents/skills/ Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, Cline, Amp
|
|
5
5
|
// .claude/skills/ Claude Code, which does not read .agents/
|
|
@@ -17,8 +17,8 @@ import { fileURLToPath } from "node:url";
|
|
|
17
17
|
|
|
18
18
|
const usage = `usage: npx @vatio-ai/skills [--dir PATH] [--no-mcp]
|
|
19
19
|
|
|
20
|
-
Copies the Vatio
|
|
21
|
-
|
|
20
|
+
Copies the Vatio skill (vatio) into PATH/.agents/skills and
|
|
21
|
+
PATH/.claude/skills,
|
|
22
22
|
and adds the Vatio MCP (https://vatio.ai/mcp) to PATH/.mcp.json and,
|
|
23
23
|
when there is a PATH/.cursor, PATH/.cursor/mcp.json. --no-mcp leaves
|
|
24
24
|
those alone. PATH defaults to the current directory.`;
|
|
@@ -47,13 +47,19 @@ if (!existsSync(root)) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const source = join(dirname(fileURLToPath(import.meta.url)), "..", "skills");
|
|
50
|
-
// Left next to each copy, so
|
|
51
|
-
// older than the published skills (cli/lib/skills-hint.mjs).
|
|
50
|
+
// Left next to each copy, so a project's copy can be told from the published one.
|
|
52
51
|
const VERSION_FILE = ".vatio-skills-version";
|
|
53
52
|
const { version } = JSON.parse(readFileSync(join(source, "..", "package.json"), "utf8"));
|
|
54
53
|
// Skills this package used to ship, and what replaced them (null: nothing).
|
|
55
54
|
// Left in place, an old copy would keep answering requests.
|
|
56
|
-
const RETIRED = {
|
|
55
|
+
const RETIRED = {
|
|
56
|
+
"vatio-new": "vatio",
|
|
57
|
+
"vatio-add-to-app": "vatio",
|
|
58
|
+
"vatio-init": "vatio",
|
|
59
|
+
"vatio-improve": "vatio",
|
|
60
|
+
"vatio-analyze": "vatio",
|
|
61
|
+
"vatio-share-session": null,
|
|
62
|
+
};
|
|
57
63
|
const skills = readdirSync(source, { withFileTypes: true })
|
|
58
64
|
.filter((entry) => entry.isDirectory())
|
|
59
65
|
.map((entry) => entry.name);
|
|
@@ -114,9 +120,9 @@ function addServer(file, server) {
|
|
|
114
120
|
|
|
115
121
|
console.log(`
|
|
116
122
|
Then, in Claude Code, approve the vatio server it asks about (or run /mcp) and
|
|
117
|
-
sign in to Vatio; in another coding agent, connect ${mcpUrl}. Ask it to build
|
|
118
|
-
improve a Vatio agent, or run /vatio
|
|
119
|
-
Docs: https://vatio.ai/docs/
|
|
123
|
+
sign in to Vatio; in another coding agent, connect ${mcpUrl}. Ask it to build,
|
|
124
|
+
change or improve a Vatio agent, or run /vatio, and it will use the skill.
|
|
125
|
+
Docs: https://vatio.ai/docs/mcp`);
|
|
120
126
|
|
|
121
127
|
await reportInstall();
|
|
122
128
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vatio-ai/skills",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Vatio
|
|
3
|
+
"version": "3.0.0",
|
|
4
|
+
"description": "The Vatio skill and MCP for Claude Code, Cursor and Codex: build, change, improve and analyze an always-on agent on Vatio with /vatio. Vatio holds and runs the agent; no config files in your repo.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vatio",
|
|
7
7
|
"ai-agent",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"agent-skills",
|
|
20
20
|
"skills"
|
|
21
21
|
],
|
|
22
|
-
"homepage": "https://vatio.ai/docs/
|
|
22
|
+
"homepage": "https://vatio.ai/docs/mcp",
|
|
23
23
|
"bugs": "https://github.com/vatio-ai/skills/issues",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"author": "Vatio",
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vatio
|
|
3
|
+
description: Create an always-on agent on Vatio through the Vatio MCP, or change, fix or improve one that exists. An always-on agent keeps its context between sessions and acts without being prompted. A message, a schedule, an event from the app's backend or a follow-up wakes it; it answers, writes to someone, or stays quiet; and it reports to a person on WhatsApp or in the inbox. The skill designs the agent with the person (what wakes it, what it knows and looks up, what it may do alone, whom it reports to), builds it with the MCP's tools, tries it, writes its tests, and always ends by sending feedback to the Vatio team. Use when asked to create, set up, build, change, fix or improve a Vatio agent, an assistant, a chatbot, or an agent that works on its own on a schedule; to work through reported replies; to get started on a project that uses Vatio; or when the user pastes the prompt from vatio.ai.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Create an always-on agent on Vatio
|
|
7
|
+
|
|
8
|
+
An always-on agent is asleep most of the time. Something wakes it: a message,
|
|
9
|
+
a schedule, an event from the app's backend, or a follow-up it set for itself.
|
|
10
|
+
It does its work with its tools, saves what happened, and goes back to sleep.
|
|
11
|
+
It may answer customers, or work on its own and write to its owner or team
|
|
12
|
+
only when there is something to say.
|
|
13
|
+
|
|
14
|
+
Vatio runs everything around the model: what wakes the agent, what it
|
|
15
|
+
remembers, what it may do without asking, and how its work reaches people
|
|
16
|
+
(WhatsApp, Instagram, the web, an app, the inbox). You build the agent with
|
|
17
|
+
the Vatio MCP's tools. Nothing about it goes into a repository.
|
|
18
|
+
https://vatio.ai/docs/always-on.md explains the model, part by part.
|
|
19
|
+
|
|
20
|
+
## 0. The Vatio MCP
|
|
21
|
+
|
|
22
|
+
Its tools are `list_workspaces`, `create_workspace`, `update_agent`,
|
|
23
|
+
`set_tool`, `set_schedule`, `chat_with_agent`, `add_test` and the rest. If you
|
|
24
|
+
do not have them:
|
|
25
|
+
|
|
26
|
+
- **Claude Code:** `npx @vatio-ai/skills` added the server to this project's
|
|
27
|
+
`.mcp.json`. If it is not there, `claude mcp add --transport http vatio
|
|
28
|
+
https://vatio.ai/mcp`. Then the person runs `/mcp`, picks **vatio** and signs
|
|
29
|
+
in (email, Google or GitHub; signing in creates the account): only they can.
|
|
30
|
+
A server added during a session loads when Claude Code starts again, so say
|
|
31
|
+
so and stop until its tools are there.
|
|
32
|
+
- **Any other client:** add an MCP server at `https://vatio.ai/mcp` (Streamable
|
|
33
|
+
HTTP, OAuth), as https://vatio.ai/docs/mcp.md says.
|
|
34
|
+
|
|
35
|
+
There is no CLI and no config file. Never write a `vatio.yml` or run `vatio`.
|
|
36
|
+
|
|
37
|
+
What the MCP cannot do, the person does in the inbox (https://inbox.vatio.ai):
|
|
38
|
+
connecting WhatsApp or Instagram (Meta's consent opens only in a browser;
|
|
39
|
+
`get_whatsapp` and `share_instagram_connect_link` give the link), creating a
|
|
40
|
+
secret key or a webhook (its secret is shown once, to a person), and paying.
|
|
41
|
+
|
|
42
|
+
## 1. Look at what is there
|
|
43
|
+
|
|
44
|
+
- `list_workspaces`: the workspaces the person reaches, and their role in each.
|
|
45
|
+
If one is already this agent, go to **An agent that exists** below and never
|
|
46
|
+
create another.
|
|
47
|
+
- If there is an app's code: what it does and for whom, the API an agent could
|
|
48
|
+
call (routes, controllers, an OpenAPI file), how its users sign in, docs or
|
|
49
|
+
policies an agent could read, and whether Vatio is already in it
|
|
50
|
+
(`cdn.vatio.ai`, `@vatio-ai/widget`, `data-workspace`, an SDK).
|
|
51
|
+
|
|
52
|
+
## 2. Design it with the person
|
|
53
|
+
|
|
54
|
+
Before building, agree on these, in a few lines, from what you read and what
|
|
55
|
+
the person tells you. Ask only what you cannot find out, and do not invent
|
|
56
|
+
business facts.
|
|
57
|
+
|
|
58
|
+
1. **Its job.** What it does, for whom, and what it must never say or promise.
|
|
59
|
+
2. **What wakes it.**
|
|
60
|
+
- *Messages*: people write to it on WhatsApp, Instagram, the web widget or
|
|
61
|
+
inside an app.
|
|
62
|
+
- *A schedule*: a recurring time ("every weekday at 8:00, tell the owner
|
|
63
|
+
what is overdue").
|
|
64
|
+
- *Events from the app's backend*: something happened ("an order shipped",
|
|
65
|
+
"a payment failed"), now or at a set time.
|
|
66
|
+
- *Follow-ups*: deadlines it sets itself ("ask on Friday whether the quote
|
|
67
|
+
was accepted").
|
|
68
|
+
3. **What it knows and what it looks up.** Text that rarely changes (policies,
|
|
69
|
+
prices, how-tos) is knowledge. Anything that lives in the app (an order, a
|
|
70
|
+
booking, a balance) is a tool that reads it fresh each time.
|
|
71
|
+
4. **What it may do alone.** Which actions are tools, which need a person's yes
|
|
72
|
+
first (a refund, a cancellation), and which are only for the team.
|
|
73
|
+
5. **What it tells the team, and when it stays quiet.** What the agent sends to
|
|
74
|
+
its team rather than to a customer is a notice of one kind: a question it
|
|
75
|
+
cannot answer, an approval, a handoff (a customer needs a person), a summary
|
|
76
|
+
of work it did on its own, or an alert. The agent only picks the kind: the
|
|
77
|
+
team (`supervisor`) gets questions, approvals, handoffs and summaries, and
|
|
78
|
+
whoever builds the agent gets alerts (and everything while there is no
|
|
79
|
+
team). They always land in the inbox's For you page, and on WhatsApp unless
|
|
80
|
+
the person turned it off (https://vatio.ai/docs/notices.md). An agent that writes
|
|
81
|
+
only when it matters is one people keep listening to.
|
|
82
|
+
|
|
83
|
+
## 3. Build it
|
|
84
|
+
|
|
85
|
+
1. **The workspace and its instructions.** `create_workspace` (a slug from the
|
|
86
|
+
business's name), then `update_agent` with `instructions` (the job, written
|
|
87
|
+
plainly, with the never-say rules as explicit rules), a `name` and a
|
|
88
|
+
`personality`.
|
|
89
|
+
2. **What it knows.** `create_knowledge_base`, one `write_knowledge_entry` per
|
|
90
|
+
topic, and the base in the agent's `knowledge` (`update_agent`).
|
|
91
|
+
3. **What it looks up and does.** `set_secret` for the backend's URL and
|
|
92
|
+
credential, taking the values from the app's `.env` (never repeat one back
|
|
93
|
+
or write it into a file); `set_backend` with `base_url` and `headers` that
|
|
94
|
+
read them as `$env.KEY`; then one `set_tool` per endpoint, after reading
|
|
95
|
+
https://vatio.ai/docs/tools.md. `set_tool` takes the tool's fields:
|
|
96
|
+
`description`, `when_to_use`, `parameters` (a JSON Schema object), `access`,
|
|
97
|
+
`request` (`method`, `path`, `query`, `body`…) and `respond`.
|
|
98
|
+
- `approval` makes a person say yes before the call runs.
|
|
99
|
+
- `access` with a team role (`supervisor`, `developer`, `owner`) keeps a tool for the
|
|
100
|
+
team; `private` for a signed-in user (step 6).
|
|
101
|
+
- `follow_ups: true` lets the backend's answer schedule reminders.
|
|
102
|
+
- `async` is for work that takes longer than 30 seconds.
|
|
103
|
+
|
|
104
|
+
An endpoint the app does not have yet is yours to write in the app. A tool
|
|
105
|
+
that writes needs a test value (`set_secret` with `tests: true`, a staging
|
|
106
|
+
API), which the team's conversations and the tests use.
|
|
107
|
+
4. **What wakes it besides a message.**
|
|
108
|
+
- `set_schedule` with `key`, `days`, `at`, `timezone`, `to` (`team`, a role
|
|
109
|
+
and above, or phone numbers) and `event`: what the agent is told each time,
|
|
110
|
+
written as an instruction that says how to look things up ("It is Monday
|
|
111
|
+
morning: call week_overview for this person and send them their week.
|
|
112
|
+
If there is nothing due, send nothing."). Each time, it runs once per
|
|
113
|
+
person, in their WhatsApp chat. https://vatio.ai/docs/schedules.md.
|
|
114
|
+
- Events: the app's backend publishes them
|
|
115
|
+
(https://vatio.ai/docs/api/events.md) with a secret key the person creates
|
|
116
|
+
in the inbox. Write the call in the app's backend.
|
|
117
|
+
- Follow-ups: the built-in `follow_up` tool, in the agent's `tools`.
|
|
118
|
+
5. **What it tells the team.** Add the built-in `notify_team` to the agent's
|
|
119
|
+
`tools` and say in its instructions when to send a `handoff`, a `summary` or
|
|
120
|
+
an `alert` ("if there are overdue orders, send the team a summary with
|
|
121
|
+
notify_team; if not, send nothing"). Questions go through the built-in
|
|
122
|
+
`ask_team`, and a yes through a tool's `approval`. The people who
|
|
123
|
+
should get them must be on the team: `invite_member` as `supervisor` (or
|
|
124
|
+
the owner, from **Team** in the inbox). `get_notifications` shows who gets
|
|
125
|
+
what. Notices always land in For you; `set_notifications` turns WhatsApp on
|
|
126
|
+
or off for someone, with their yes. WhatsApp needs a verified number and, on
|
|
127
|
+
live, the workspace's own number connected in the inbox.
|
|
128
|
+
|
|
129
|
+
## 4. Try it
|
|
130
|
+
|
|
131
|
+
`chat_with_agent`: a few representative conversations, including one that
|
|
132
|
+
should hand off and one that asks for something it must not say. Read the
|
|
133
|
+
tools each reply called and what the backend answered; `get_conversation`
|
|
134
|
+
shows a whole turn. A tool that needs the person's phone or a team role runs
|
|
135
|
+
with `as_phone: "me"`; an `access: private` one with `visitor_token`
|
|
136
|
+
(https://vatio.ai/docs/authentication/tools.md#test-a-private-tool). To see
|
|
137
|
+
what a schedule would write, send its `event` text with `chat_with_agent` and
|
|
138
|
+
`as_phone: "me"`. Files: run the curl command `prepare_file` returns, then pass
|
|
139
|
+
the id in `chat_with_agent`'s `files`.
|
|
140
|
+
|
|
141
|
+
## 5. Write its tests
|
|
142
|
+
|
|
143
|
+
For each thing that matters, `add_test` with `question` (what someone would
|
|
144
|
+
send) and `should` (what the answer has to do), or with the `chat_id` or
|
|
145
|
+
`message_id` of a reply you already have. `get_test` with each `chat_id` says
|
|
146
|
+
whether it passes. Three or four to start, including the hand-off and
|
|
147
|
+
something it must not say. Vatio replays the tests that pass today on every
|
|
148
|
+
change, and a change that breaks one reaches the team but not everyone else.
|
|
149
|
+
With no tests, every change reaches everyone at once, unchecked. `run_tests`,
|
|
150
|
+
then `get_test_results`, checks them all together.
|
|
151
|
+
|
|
152
|
+
## 6. Put it where people are
|
|
153
|
+
|
|
154
|
+
- **WhatsApp or Instagram:** the person connects them in the inbox.
|
|
155
|
+
- **A website or an app:** `get_status` returns `put_in_the_app`, the
|
|
156
|
+
publishable key and the widget's script tag (one key for development and
|
|
157
|
+
production). Add the widget or the iOS, Android or Flutter SDK, in the app's
|
|
158
|
+
style: https://vatio.ai/docs/channels/widget.md and
|
|
159
|
+
https://vatio.ai/docs/sdk/ios.md, android.md, flutter.md.
|
|
160
|
+
- **Signed-in users:** the app's backend signs a JWT. Make a keypair
|
|
161
|
+
(`openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out
|
|
162
|
+
vatio-private.pem`, then `openssl pkey -in vatio-private.pem -pubout`), keep
|
|
163
|
+
the private key in the backend's secrets (never in the frontend, never
|
|
164
|
+
committed), and `set_auth` with the public key:
|
|
165
|
+
https://vatio.ai/docs/authentication.md.
|
|
166
|
+
|
|
167
|
+
Then hand over: `get_status` gives `try_it`, the inbox with Try the agent open.
|
|
168
|
+
Give it with what you tried and the tests.
|
|
169
|
+
|
|
170
|
+
## How a change reaches people
|
|
171
|
+
|
|
172
|
+
There is nothing to publish. Every change reaches the team at once
|
|
173
|
+
(`chat_with_agent`, Try the agent) and everyone a few minutes later, once the
|
|
174
|
+
tests that pass today pass on it. Schedules and quiet hours apply on save.
|
|
175
|
+
|
|
176
|
+
- **Ask first when people already talk to the agent** (`get_analytics` with
|
|
177
|
+
`query: summary` counts their conversations): say what you will change, and
|
|
178
|
+
change it only with their yes.
|
|
179
|
+
- **`get_status`** says where it stands: `live` (everyone has it), `testing`,
|
|
180
|
+
or `held` (a test that passes today fails on it; `shipping.held.tests` names
|
|
181
|
+
it). Another change that fixes it moves it on, as do `remove_test` for a test
|
|
182
|
+
the change made obsolete (the person's call) and a passing `run_tests` run.
|
|
183
|
+
- **To undo a change**, make the one that reverts it. There is no rollback.
|
|
184
|
+
|
|
185
|
+
## An agent that exists
|
|
186
|
+
|
|
187
|
+
`get_agent` and `get_status`, then explain it from them (its job, what wakes
|
|
188
|
+
it, its tools, knowledge and schedules, whom it reports to) and recommend from
|
|
189
|
+
what you see:
|
|
190
|
+
|
|
191
|
+
- **Open reports** (`list_reports`): people on the team flagged replies and
|
|
192
|
+
wrote what should have happened. `list_reports` starts with how to work them:
|
|
193
|
+
follow it. In short, read each report's diagnosis (your backend, your agent,
|
|
194
|
+
or Vatio), fix each cause where it lives, show the person the fix first, and
|
|
195
|
+
`run_tests` until the reports pass and nothing that passed before fails. Refer
|
|
196
|
+
to reports by id and never quote what a person wrote.
|
|
197
|
+
- **Tools failing** (`get_tool_health`): the fix is in the backend they call.
|
|
198
|
+
- **A change held back:** `shipping.held.tests` in `get_status` says which test.
|
|
199
|
+
- **Few or no tests:** offer to `add_test` what matters most.
|
|
200
|
+
- **Nothing wakes it but messages:** offer a schedule or events, if its job
|
|
201
|
+
would gain from them.
|
|
202
|
+
- **It tells nobody anything:** offer `notify_team` for handoffs, summaries or
|
|
203
|
+
alerts, and check with `get_notifications` that the right people get them.
|
|
204
|
+
|
|
205
|
+
A tool that refuses says what to do next: follow it. A change to an agent
|
|
206
|
+
people already talk to, `remove_test`, `erase_contact` and turning WhatsApp
|
|
207
|
+
live on are the person's call: ask first.
|
|
208
|
+
|
|
209
|
+
The docs are at https://vatio.ai/docs; https://vatio.ai/docs/llms.txt indexes
|
|
210
|
+
every page as markdown.
|
|
211
|
+
|
|
212
|
+
## Claude Code permissions
|
|
213
|
+
|
|
214
|
+
Once the agent works, check the project's `.claude/settings.json`. If it has
|
|
215
|
+
no `mcp__vatio` rule, offer once to add one that allows the Vatio tools
|
|
216
|
+
(https://vatio.ai/docs/mcp.md has the block). Add it only with their yes,
|
|
217
|
+
merged into what the file has, and add no other rule. Never edit
|
|
218
|
+
`~/.claude/settings.json`.
|
|
219
|
+
|
|
220
|
+
## Before you finish: send feedback
|
|
221
|
+
|
|
222
|
+
Always end by telling the Vatio team how it went, with the MCP's
|
|
223
|
+
`send_feedback` and the workspace's slug. Which step took the most work, and
|
|
224
|
+
why: a tool that refused something, an error that left you guessing, docs that
|
|
225
|
+
were missing, a step you had to work around. A few sentences, from what
|
|
226
|
+
happened in this session, with no secrets, keys, conversations or anyone's
|
|
227
|
+
personal data. Do it every time, even when it all went smoothly (then say which
|
|
228
|
+
step took longest), and tell the person in one line that you sent it.
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vatio-analyze
|
|
3
|
-
description: Analyze what people talk about with a Vatio agent, from its real conversations between two dates — topics, frequent questions, questions it could not answer, and the words people use — to write content, FAQs or knowledge, or to report on it. Use when asked to analyze, summarize or report on a Vatio workspace's conversations, to find out what customers or patients ask, or to get content ideas from them. Works for anyone on the workspace's team, viewers included, through the Vatio MCP, with or without the app's repository.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Analyze a Vatio agent's conversations
|
|
7
|
-
|
|
8
|
-
The Vatio MCP's `list_conversations` returns what people said to the agent,
|
|
9
|
-
and what they were answered, between two dates. Vatio redacts it before it
|
|
10
|
-
leaves: names, emails, phone numbers, handles and RUTs it recognizes read
|
|
11
|
-
`[FILTERED]`, and `person` stands for whoever it was without naming them.
|
|
12
|
-
Every read is recorded in the workspace's Activity, under the name of whoever
|
|
13
|
-
made it. If you do not have the MCP's tools, connect it as the `vatio-init`
|
|
14
|
-
skill's step 0 says.
|
|
15
|
-
|
|
16
|
-
1. **Find the workspace.** `list_workspaces` lists the ones this account
|
|
17
|
-
reaches, with its role in each: any role works, viewers included. If the
|
|
18
|
-
one they mean is not there, the owner invites them from **Team** in the
|
|
19
|
-
inbox, with the email they signed in with. A workspace that requires
|
|
20
|
-
two-step verification needs it turned on in **Account** in the inbox
|
|
21
|
-
first.
|
|
22
|
-
|
|
23
|
-
2. **Ask what the analysis is for,** if they have not said: content for a
|
|
24
|
-
website or a search engine, FAQs, gaps in the agent's knowledge, a report.
|
|
25
|
-
Ask for the dates too, or use the last 30 days and say so.
|
|
26
|
-
|
|
27
|
-
3. **Fetch it all.** `list_conversations` with `from` and `to` (dates or
|
|
28
|
-
ISO 8601 times), `limit: 100` and, for each next page, `after` set to the
|
|
29
|
-
`next_after` the last page returned, until there is none. `channel`
|
|
30
|
-
(`whatsapp`, `instagram`, `web`, `widget`, `ios`, `android`) narrows it.
|
|
31
|
-
Write each page to a file as it arrives (`conversations.jsonl`, outside
|
|
32
|
-
git), one conversation per line, rather than holding them in your head.
|
|
33
|
-
|
|
34
|
-
4. **Count before reading.** In a script (`jq`, Python or Node), get the number
|
|
35
|
-
of conversations and messages, conversations per channel and per week, and
|
|
36
|
-
how many reached someone on the team (`"from": "team"`). Then read only what
|
|
37
|
-
people wrote (`"from": "person"`) with enough of the agent's reply to know
|
|
38
|
-
whether it helped.
|
|
39
|
-
|
|
40
|
-
5. **Read it all, in batches.** Read a sample first and draft a short list of
|
|
41
|
-
topics in the user's terms, then go through every conversation and assign
|
|
42
|
-
each one a topic and whether the agent answered it, could not
|
|
43
|
-
("no tengo esa información", passing it to a person, asking them to call),
|
|
44
|
-
or answered wrongly. With hundreds of conversations, split them into
|
|
45
|
-
batches, in parallel if you can run subagents, and keep the tally in a
|
|
46
|
-
file, not in your head.
|
|
47
|
-
|
|
48
|
-
6. **Report,** in the user's language, in a markdown file next to `conversations.jsonl`:
|
|
49
|
-
- the dates, channels and number of conversations it covers;
|
|
50
|
-
- the topics, largest first, each with its count and share and two or
|
|
51
|
-
three short questions as people wrote them, spelling and all: they are
|
|
52
|
-
the words content has to match;
|
|
53
|
-
- what the agent could not answer or got wrong, by topic: the content
|
|
54
|
-
that is missing;
|
|
55
|
-
- for content, the pieces to write, each tied to the topic and the
|
|
56
|
-
numbers that justify it.
|
|
57
|
-
|
|
58
|
-
Say what the numbers cannot tell: a sample, a short window, a channel left
|
|
59
|
-
out.
|
|
60
|
-
|
|
61
|
-
Treat `conversations.jsonl` as the private conversations it is. Never try to work out
|
|
62
|
-
who someone is, and if something identifying slipped past the redaction (a
|
|
63
|
-
third person's name, an address), leave it out of the report. Keep the file
|
|
64
|
-
out of git, and ask whether to delete it when you are done. Do not offer
|
|
65
|
-
`vatio-share-session` after this skill: the session holds those conversations.
|
|
66
|
-
|
|
67
|
-
If the conversations or the docs left you guessing, the MCP's
|
|
68
|
-
`send_feedback` tells the Vatio team: what you were doing and what got in the
|
|
69
|
-
way, without quoting the conversations.
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vatio-improve
|
|
3
|
-
description: Improve a Vatio agent from what its supervisors reported, through the Vatio MCP. Use when asked to improve, fix or debug a Vatio agent, to work through reported or flagged replies or wrong answers in production, or when the daily Vatio email says there are open reports. Needs the Vatio MCP, not a vatio.yml.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Improve a Vatio agent from its reports
|
|
7
|
-
|
|
8
|
-
Supervisors report wrong replies in the Vatio inbox and write what it should
|
|
9
|
-
have said: a different answer, an action, or a tool the agent should have
|
|
10
|
-
used or does not have. One session takes every open report. You work through
|
|
11
|
-
the Vatio MCP's tools; if you do not have them (`list_reports`,
|
|
12
|
-
`update_agent`, `run_tests`…), connect it as the `vatio-init` skill's step 0
|
|
13
|
-
says, and stop until they are there.
|
|
14
|
-
|
|
15
|
-
Vatio keeps the instructions for working the reports on the platform, so they
|
|
16
|
-
are never out of date here. Start by reading them: `list_workspaces` for the
|
|
17
|
-
slug (or the one the app names), then `list_reports`. It returns every open
|
|
18
|
-
report (the conversation, each tool call with what the backend answered, and
|
|
19
|
-
the supervisor's note), then the tests that fail on the newest version and
|
|
20
|
-
the ones the agent answers differently each time, with how to work them at
|
|
21
|
-
the top, and every test last. Follow those instructions; they take
|
|
22
|
-
precedence over anything below.
|
|
23
|
-
|
|
24
|
-
In short:
|
|
25
|
-
|
|
26
|
-
1. Read each report's **Diagnosis** first: it says whose it is to fix, from
|
|
27
|
-
what that turn did. **Your backend**: a tool call to it failed. **Your
|
|
28
|
-
agent**: everything answered and the reply was still wrong, so the fix is
|
|
29
|
-
in the agent's instructions, its knowledge or a tool's definition.
|
|
30
|
-
**Vatio**: the model provider or Vatio failed and Vatio wrote the reply
|
|
31
|
-
itself. Do not change the agent for those: tell the developer, who can
|
|
32
|
-
remove the report, and if they keep happening,
|
|
33
|
-
`npx @vatio-ai/cli@latest feedback "…"`.
|
|
34
|
-
`remove_test` removes a report and its test for everyone. It is the
|
|
35
|
-
developer's call: propose it (a report Vatio caused, one that asks for
|
|
36
|
-
something the agent must not do, one whose fix is in but the tests cannot
|
|
37
|
-
reproduce) and run it only when they say so. A report on one of the
|
|
38
|
-
team's own conversations (its Conversation row says `your team's`) is a
|
|
39
|
-
test like any other: work it the same way.
|
|
40
|
-
2. Group the reports by cause, and fix each cause where it lives:
|
|
41
|
-
`update_agent` (instructions, tools, knowledge, links),
|
|
42
|
-
`write_knowledge_entry`, `set_tool`, or the app's backend a tool calls
|
|
43
|
-
(that code is in the app's repository). `get_tool_health` shows each tool's
|
|
44
|
-
error rate, timeouts and latency, and the calls that failed with what the
|
|
45
|
-
backend answered: a failing tool rarely gets reported, because the agent
|
|
46
|
-
apologizes and moves on. Fix those too. After the reports come the tests
|
|
47
|
-
that fail on the newest version and the ones the agent answers differently
|
|
48
|
-
each time: work those too, as their sections say. Never remove a test
|
|
49
|
-
because it fails. Something the developer asks the agent to do that no
|
|
50
|
-
report covers is a test first: `add_test` with `question` and `should`
|
|
51
|
-
asks it in a new conversation, and `get_test` with the `chat_id` it
|
|
52
|
-
answers with says whether it passes now; then fix until it does.
|
|
53
|
-
3. Reports come from people who talk to the agent, so show the developer
|
|
54
|
-
each fix first and change the agent (`update_agent`,
|
|
55
|
-
`write_knowledge_entry`, `set_tool`) once they agree. There is nothing to
|
|
56
|
-
publish: each change reaches the team at once (`chat_with_agent` talks to
|
|
57
|
-
it) and everyone a few minutes later, once the tests that pass today pass
|
|
58
|
-
on it. `get_agent` reads the agent whole before you change it.
|
|
59
|
-
4. `run_tests` replays every report and test against the newest version on
|
|
60
|
-
Vatio's servers and returns the run ids; `get_test_results` with each id
|
|
61
|
-
shows the report so far. It takes a few minutes: ask again until it has
|
|
62
|
-
finished. A case that did not pass names the conversation of its replay
|
|
63
|
-
(`get_conversation`). Iterate (fix, `run_tests`) until the reports pass
|
|
64
|
-
and nothing that passed before fails. A case marked "not tested (Vatio's
|
|
65
|
-
side)" says nothing about your fix: run the tests again. One not tested
|
|
66
|
-
because a tool needs a signed-in visitor replays signed in with
|
|
67
|
-
`run_tests` and a `visitor_token`
|
|
68
|
-
(https://vatio.ai/docs/authentication/tools.md#test-a-private-tool).
|
|
69
|
-
Name reports by id (`F-7K2QX`).
|
|
70
|
-
5. `get_status` says whether the fix reached everyone, in `shipping.state`:
|
|
71
|
-
`live` when everyone has it, `testing` while Vatio replays the tests that
|
|
72
|
-
pass today on it (`testing.expected_by` says until about when), and `held`
|
|
73
|
-
when one of them fails on it in every attempt. Held, the team keeps it,
|
|
74
|
-
everyone else keeps the version before, and whoever made the change gets
|
|
75
|
-
an email; `shipping.held.tests` names each test, with the `chat_id` of its
|
|
76
|
-
replay. Another change that fixes it moves it on, as does `remove_test`
|
|
77
|
-
for a test the change made obsolete (the developer's call) or a
|
|
78
|
-
`run_tests` run that passes; there is no way to force it. Once the fix
|
|
79
|
-
reaches everyone, the reports it passes are marked resolved in the inbox.
|
|
80
|
-
Tell the developer what passes now and where the change stands.
|
|
81
|
-
`rollback` undoes the last change for everyone, the team included: only
|
|
82
|
-
when they ask.
|
|
83
|
-
6. Last, tell the Vatio team how it went, with the MCP's `send_feedback`
|
|
84
|
-
(and the workspace's slug): which step of fixing the reports took the most
|
|
85
|
-
work, and why (a report that left you guessing, a test that would not
|
|
86
|
-
reproduce, a tool or an error that got in the way). A few sentences, with no
|
|
87
|
-
secrets or visitors' words, and tell the developer in one line that you
|
|
88
|
-
sent it.
|
|
89
|
-
|
|
90
|
-
The reports hold real visitors' conversations. Keep them out of commits,
|
|
91
|
-
issues and logs: refer to a report by its id and describe the cause, never
|
|
92
|
-
quote what the visitor or the backend said.
|
|
93
|
-
|
|
94
|
-
When a fix needs more than the reports say,
|
|
95
|
-
`npx @vatio-ai/cli@latest docs search TERM` prints the sections of the docs
|
|
96
|
-
that mention it, with their page, and `npx @vatio-ai/cli@latest docs PAGE`
|
|
97
|
-
one page (`tools`, `knowledge`); neither needs a workspace or a sign-in.
|
|
98
|
-
https://vatio.ai/docs/llms.txt indexes every page as markdown.
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vatio-init
|
|
3
|
-
description: The first Vatio skill in a project. Looks at what is already there — the workspaces the Vatio MCP reaches, the app's own code — and recommends from it, then either builds a customer-facing AI agent through the Vatio MCP (in the app first, through its web widget or mobile SDK, and on WhatsApp or Instagram when asked), writes its tests and gets it to Try the agent in the Vatio inbox, or gets a developer who joined a project that already has one up to speed. Use when asked to create, set up, start or ship a Vatio agent, a chatbot or a support/sales assistant on Vatio, to get started on or onboard onto a project that uses Vatio, or when the user pastes the prompt from vatio.ai.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Start with Vatio in this project
|
|
7
|
-
|
|
8
|
-
Vatio holds the agent: its instructions, knowledge, tools, secrets and tests
|
|
9
|
-
live on the platform, and you build and test it with the Vatio MCP's tools.
|
|
10
|
-
Nothing about the agent goes into the app's repository. What does is what
|
|
11
|
-
puts it in front of people (the widget or SDK) and any endpoint of the app
|
|
12
|
-
the agent calls.
|
|
13
|
-
|
|
14
|
-
## 0. The Vatio MCP
|
|
15
|
-
|
|
16
|
-
Its tools are `list_workspaces`, `update_agent`, `chat_with_agent`,
|
|
17
|
-
`add_test` and the rest. If you do not have them:
|
|
18
|
-
|
|
19
|
-
- **Claude Code:** `npx @vatio-ai/skills` added the server to this project's
|
|
20
|
-
`.mcp.json`. If it is not there, `claude mcp add --transport http vatio
|
|
21
|
-
https://vatio.ai/mcp`. Then the person runs `/mcp`, picks **vatio** and
|
|
22
|
-
signs in (email, Google or GitHub): only they can. A server added during a
|
|
23
|
-
session loads when Claude Code starts again, so say so and stop until its
|
|
24
|
-
tools are there.
|
|
25
|
-
- **Cursor, Codex and the rest:** add an MCP server at `https://vatio.ai/mcp`
|
|
26
|
-
(Streamable HTTP, OAuth), as https://vatio.ai/docs/mcp.md says.
|
|
27
|
-
|
|
28
|
-
Never work around a missing MCP by writing a `vatio.yml` or running
|
|
29
|
-
`vatio push`.
|
|
30
|
-
|
|
31
|
-
## 1. Look at what is there
|
|
32
|
-
|
|
33
|
-
- **The account.** `list_workspaces`: every workspace the person reaches and
|
|
34
|
-
their role in it.
|
|
35
|
-
- **The app.** What it does and for whom; the API an agent could call
|
|
36
|
-
(routes, controllers, an OpenAPI file); how its users sign in; the docs,
|
|
37
|
-
FAQs or policies an agent could read as knowledge; and whether Vatio is
|
|
38
|
-
already in it (`cdn.vatio.ai`, `@vatio-ai/widget`, `data-workspace`, an
|
|
39
|
-
SDK's setup), which names its workspace.
|
|
40
|
-
- **A `vatio.yml`** anywhere in the repository (`git ls-files
|
|
41
|
-
'*vatio.yml'`) means a team kept the agent as files. The agent is still
|
|
42
|
-
the one on Vatio, under its `workspace:` slug.
|
|
43
|
-
|
|
44
|
-
## 2. Say what you found, and recommend
|
|
45
|
-
|
|
46
|
-
Before changing anything, tell the person in a few lines what is there and
|
|
47
|
-
what you recommend, and ask them to confirm.
|
|
48
|
-
|
|
49
|
-
### No workspace for this app: a new agent
|
|
50
|
-
|
|
51
|
-
Propose what it could do from what you read: what it answers, which
|
|
52
|
-
endpoints become tools, what becomes knowledge. Then:
|
|
53
|
-
|
|
54
|
-
1. **Ask the owner only what the code does not answer:** what the business
|
|
55
|
-
does and who writes in, what the agent must never say or promise, when it
|
|
56
|
-
hands the conversation to a person, which of their systems it should read
|
|
57
|
-
from. Do not invent business facts.
|
|
58
|
-
2. **Create it.** `create_workspace` (a slug from the app's name), then
|
|
59
|
-
`update_agent`: `instructions` from the answers, with the never-say rules
|
|
60
|
-
as explicit rules, a `name` and a `personality`. Anything long the agent
|
|
61
|
-
should read rather than memorize is knowledge: `create_knowledge_base`,
|
|
62
|
-
one `write_knowledge_entry` per topic, and the base in the agent's
|
|
63
|
-
`knowledge` (`update_agent`).
|
|
64
|
-
3. **Connect the app's backend.** `set_secret` for its URL and credential,
|
|
65
|
-
taking the values from the app's `.env` (never repeat one back or write
|
|
66
|
-
it into a file); `set_backend` with `base_url` and `headers` that read them
|
|
67
|
-
as `$env.KEY`; then one `set_tool` per endpoint, after reading
|
|
68
|
-
https://vatio.ai/docs/tools.md. Give it a tool that alerts the team when a
|
|
69
|
-
person should take over (https://vatio.ai/docs/handoff.md). An endpoint the
|
|
70
|
-
app does not have yet is yours to write in the app. A tool that writes (an
|
|
71
|
-
order, a booking) needs a test value (`set_secret` with `tests: true`, a
|
|
72
|
-
staging API), which your team's conversations and every test use, so they
|
|
73
|
-
never write to production.
|
|
74
|
-
4. **Try it** with `chat_with_agent`: a few representative conversations,
|
|
75
|
-
including one that should hand off and one that asks for something it must
|
|
76
|
-
not say. Read the tools each reply called and what the backend answered;
|
|
77
|
-
`get_conversation` shows a whole turn. A tool that needs the visitor's
|
|
78
|
-
phone or a team role runs with `as_phone: "me"` (or a customer phone); an
|
|
79
|
-
`access: private` one with `visitor_token`, a JWT for a test user signed
|
|
80
|
-
with the private key from step 6
|
|
81
|
-
(https://vatio.ai/docs/authentication/tools.md#test-a-private-tool).
|
|
82
|
-
When visitors will send files (a PDF, a photo, a voice note), send one
|
|
83
|
-
too: run the curl command `prepare_file` returns, then pass the id it
|
|
84
|
-
answers in `chat_with_agent`'s `files`.
|
|
85
|
-
5. **Write down what it should do as tests.** For each question that
|
|
86
|
-
matters, `add_test` with `question` (what a visitor would ask) and
|
|
87
|
-
`should` (what the answer has to do). It asks it in a new conversation and
|
|
88
|
-
answers at once with a `chat_id` and how many seconds to wait: add the
|
|
89
|
-
other tests meanwhile, then `get_test` with each `chat_id` shows the test
|
|
90
|
-
and whether it passes now (while it is still being made, it says when to
|
|
91
|
-
ask again). A reply you already have becomes one with `chat_id` or
|
|
92
|
-
`message_id`. Three or four is enough to start, including the hand-off and
|
|
93
|
-
something it must not say. This is the only thing that makes a later
|
|
94
|
-
change's mistake visible: Vatio replays the tests that pass today on every
|
|
95
|
-
change, and one that breaks a test reaches your team but not everyone
|
|
96
|
-
else. A workspace with no tests gets every change at once with nothing
|
|
97
|
-
checked, which is how a fix for one question quietly breaks another. Fix
|
|
98
|
-
and `add_test` again until they pass; `run_tests` then `get_test_results`
|
|
99
|
-
checks them all together.
|
|
100
|
-
6. **Put it in the app.** `get_status` returns `put_in_the_app`: the
|
|
101
|
-
publishable key and the widget's script tag. It is one key for
|
|
102
|
-
development and production alike, and works from any site or app.
|
|
103
|
-
Add the widget (the tag, or `@vatio-ai/widget`) or the iOS, Android or
|
|
104
|
-
Flutter SDK where the app's users are, in the app's style:
|
|
105
|
-
https://vatio.ai/docs/channels/widget.md, https://vatio.ai/docs/sdk/ios.md,
|
|
106
|
-
https://vatio.ai/docs/sdk/android.md, https://vatio.ai/docs/sdk/flutter.md.
|
|
107
|
-
When the agent must know who is signed in (their orders, their account),
|
|
108
|
-
the app's backend signs a JWT: make a keypair (`openssl genpkey -algorithm
|
|
109
|
-
RSA -pkeyopt rsa_keygen_bits:2048 -out vatio-private.pem`, then `openssl
|
|
110
|
-
pkey -in vatio-private.pem -pubout`), keep the private key in the backend's
|
|
111
|
-
secrets (never in the frontend, never committed), `set_auth` with the
|
|
112
|
-
public key, and follow https://vatio.ai/docs/authentication.md.
|
|
113
|
-
7. **Hand over.** `get_status` gives `try_it`: the inbox with Try the agent
|
|
114
|
-
open (web chat, WhatsApp and Instagram). Give it with what you tried and
|
|
115
|
-
the tests. There is nothing to publish: every change reaches the app on
|
|
116
|
-
its own, as **How a change reaches people** below says. Until people talk
|
|
117
|
-
to the agent you need not ask before each change; once they do, ask
|
|
118
|
-
first.
|
|
119
|
-
|
|
120
|
-
### A workspace already exists
|
|
121
|
-
|
|
122
|
-
The app names one, `list_workspaces` shows it, or a `vatio.yml` does. Never
|
|
123
|
-
create another. `get_agent` and `get_status`, then explain the agent from them
|
|
124
|
-
(what it is for, its tools, its knowledge, when it hands off) and recommend
|
|
125
|
-
from what you see:
|
|
126
|
-
|
|
127
|
-
- open reports in `list_reports`: work them with the `vatio-improve` skill;
|
|
128
|
-
- a change held back from everyone (`shipping.state` is `held` in
|
|
129
|
-
`get_status`): `shipping.held.tests` says which test it breaks, and **How a
|
|
130
|
-
change reaches people** below what moves it on;
|
|
131
|
-
- tools failing in `get_tool_health`: the fix is in the backend they call;
|
|
132
|
-
- few or no tests (`list_reports` lists them last): offer to `add_test` what
|
|
133
|
-
matters most;
|
|
134
|
-
- the workspace is not in `list_workspaces`: the owner invites them from
|
|
135
|
-
**Team** in the inbox, with the email they signed in with.
|
|
136
|
-
|
|
137
|
-
If there is a `vatio.yml`, the agent on Vatio is the one that counts and you
|
|
138
|
-
change it through the MCP from now on. Recommend removing `vatio.yml`,
|
|
139
|
-
`tools/` and `identity.pub` from the repository, so nobody pushes an old copy
|
|
140
|
-
over it, and do it only with their yes.
|
|
141
|
-
|
|
142
|
-
## How a change reaches people
|
|
143
|
-
|
|
144
|
-
The agent is one, and there is nothing to publish. Every change
|
|
145
|
-
(`update_agent`, `set_tool`, `set_backend`, `set_auth`, the knowledge tools)
|
|
146
|
-
reaches your team at once (`chat_with_agent`, Try the agent in the inbox,
|
|
147
|
-
Vatio's shared WhatsApp number and Instagram account) and everyone a few
|
|
148
|
-
minutes later, once the tests that pass today pass on it. With no tests,
|
|
149
|
-
everyone gets it at once.
|
|
150
|
-
|
|
151
|
-
1. **Ask first when people already talk to the agent** (`get_analytics`
|
|
152
|
-
with `query: summary` counts their conversations, or the person says so): say what
|
|
153
|
-
you will change and change it only with their yes. On a new agent nobody
|
|
154
|
-
talks to yet, there is no need to ask for each change.
|
|
155
|
-
2. **Make the change, then try it** with `chat_with_agent`, which talks to
|
|
156
|
-
the newest version, and `add_test` what it must keep doing.
|
|
157
|
-
3. **`get_status` says where it stands**, in `shipping.state`: `live` when
|
|
158
|
-
everyone has it, `testing` while Vatio replays the tests on it
|
|
159
|
-
(`testing.expected_by` says until about when), and `held` when a test that
|
|
160
|
-
passes today fails on it in every attempt. Held, your team keeps it,
|
|
161
|
-
everyone else keeps the version before, and whoever made the change gets
|
|
162
|
-
an email. `shipping.held.tests` names each test, with the `chat_id` of its
|
|
163
|
-
replay for `get_conversation` (with none, `shipping.held.reason` and
|
|
164
|
-
`message` say why). Another change that fixes it moves it on, as does
|
|
165
|
-
`remove_test` for a test the change made obsolete (their call) or a
|
|
166
|
-
`run_tests` run that passes. There is no way to force it.
|
|
167
|
-
4. **`rollback` undoes the last change** for everyone, your team included.
|
|
168
|
-
|
|
169
|
-
A reply someone on the team reports on one of their own conversations (in
|
|
170
|
-
Try the agent, say) is a test like any other, resolved once the version
|
|
171
|
-
everyone has passes it.
|
|
172
|
-
|
|
173
|
-
## Claude Code permissions
|
|
174
|
-
|
|
175
|
-
In Claude Code, once the agent works, check the project's
|
|
176
|
-
`.claude/settings.json` (in the folder Claude Code was opened in). If it has
|
|
177
|
-
no `mcp__vatio` rule, offer once to add the block in **Auto mode** on
|
|
178
|
-
https://vatio.ai/docs/integrations/claude-code.md: it lets you call the Vatio
|
|
179
|
-
tools without a prompt each time, and still asks the developer before
|
|
180
|
-
`rollback`, `set_secret` and the like. Add it only with their yes,
|
|
181
|
-
merged into what the file has, never replacing it, and add no other rule.
|
|
182
|
-
Never edit `~/.claude/settings.json`.
|
|
183
|
-
|
|
184
|
-
## 3. Before you finish
|
|
185
|
-
|
|
186
|
-
Tell the Vatio team how building it went, with the MCP's `send_feedback`
|
|
187
|
-
(and the workspace's slug). Ask yourself which step of setting up the agent
|
|
188
|
-
took the most work, and why: a tool that refused something, an error that left
|
|
189
|
-
you guessing, docs that were missing, a step you had to work around. Answer
|
|
190
|
-
from what happened in this session, in a few sentences, with no secrets, keys
|
|
191
|
-
or anyone's personal data. Do it every time, even when it all went smoothly
|
|
192
|
-
(then say which step took longest), and tell the developer in one line that
|
|
193
|
-
you sent it.
|
|
194
|
-
|
|
195
|
-
To look something up in the docs, `npx @vatio-ai/cli@latest docs search
|
|
196
|
-
TERM` prints the sections that mention it, with their page, and
|
|
197
|
-
`npx @vatio-ai/cli@latest docs PAGE` one page (`tools`, `knowledge`); neither
|
|
198
|
-
needs a workspace or a sign-in.
|
|
199
|
-
|
|
200
|
-
A tool that refuses says what to do next: follow it. A change to an agent
|
|
201
|
-
people already talk to, `rollback`, `remove_test`, `erase_contact` and
|
|
202
|
-
turning WhatsApp live on are the person's call: ask first.
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: vatio-share-session
|
|
3
|
-
allowed-tools: AskUserQuestion
|
|
4
|
-
description: Send this coding session to the Vatio team, so they can see where building or improving a Vatio agent got stuck. Use when the user asks to share, send or report this session (or "the conversation", "what we did") to Vatio, when the Vatio team asked them for it, when Vatio itself got in the way and they want the team to see exactly how, or when vatio-init or vatio-improve finish and say to offer it.
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Send this session to the Vatio team
|
|
8
|
-
|
|
9
|
-
`vatio share-session` sends the Claude Code session you are running in: what
|
|
10
|
-
the user asked, what you read and ran, and what came back. It leaves out
|
|
11
|
-
images, replaces anything that looks like a key, token or password with
|
|
12
|
-
`[REDACTED]`, email addresses, international phone numbers and Chilean RUTs
|
|
13
|
-
with `[EMAIL]`, `[PHONE]` and `[RUT]`, and the home directory with `~`. Only the Vatio team reads it,
|
|
14
|
-
to see where Vatio got in the way and fix it; every read is logged, and it is
|
|
15
|
-
deleted 30 days after it arrives (sooner on request to dpo@vatio.ai).
|
|
16
|
-
|
|
17
|
-
It is sent in one of two ways: the user asked for it, or you offer it because
|
|
18
|
-
`vatio-init` or `vatio-improve` just finished.
|
|
19
|
-
|
|
20
|
-
1. **Only when you are offering it**, ask the CLI first:
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
npx @vatio-ai/cli@latest share-session --should-ask
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
If it prints `no`, stop here and do not mention it: the developer said not
|
|
27
|
-
to ask again, or was asked recently. If it prints `yes`, go on.
|
|
28
|
-
|
|
29
|
-
2. Show the user what would go, without sending anything:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
npx @vatio-ai/cli@latest share-session --save /tmp/vatio-session.jsonl
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Tell them which session it is (the summary it prints), that it is the
|
|
36
|
-
whole conversation, what was hidden, how it is treated (only the Vatio
|
|
37
|
-
team reads it, every read is logged, deleted after 30 days), and that the
|
|
38
|
-
file is there if they want to read it.
|
|
39
|
-
|
|
40
|
-
3. Ask whether to send it, once. It is their conversation: never send it on
|
|
41
|
-
your own, even when the task seems to call for it.
|
|
42
|
-
|
|
43
|
-
When you are offering it, ask with the **AskUserQuestion** tool, Claude
|
|
44
|
-
Code's own question, not in a message. One question, in the user's
|
|
45
|
-
language, header `Vatio`, for example: "Do you want to send this session
|
|
46
|
-
to the Vatio team, so they can see where Vatio got in the way and improve
|
|
47
|
-
it?", with these options:
|
|
48
|
-
|
|
49
|
-
- **Send it** — "The whole conversation, as shown above. Only the Vatio
|
|
50
|
-
team reads it, and it is deleted after 30 days."
|
|
51
|
-
- **Send it with a comment** — "You say what got in the way, what you
|
|
52
|
-
expected, or anything else for the team."
|
|
53
|
-
- **Not now** — "It won't be offered again for a week."
|
|
54
|
-
- **Don't ask again** — "It won't be offered again."
|
|
55
|
-
|
|
56
|
-
**Send it with a comment**: ask for the comment in one plain message, then
|
|
57
|
-
send. A comment they type in the question's own text field instead (its
|
|
58
|
-
"Other" answer, or a note on an option) is their feedback too, unless it
|
|
59
|
-
says no. **Not now**: do nothing more. **Don't ask again**: run
|
|
60
|
-
`npx @vatio-ai/cli@latest share-session --never`. A no is a fine answer:
|
|
61
|
-
do not insist.
|
|
62
|
-
|
|
63
|
-
When the user asked for it themselves, just confirm in a message and
|
|
64
|
-
take any feedback they give.
|
|
65
|
-
|
|
66
|
-
4. If they say to send it, send it. With their feedback, in their words, as
|
|
67
|
-
they gave it:
|
|
68
|
-
|
|
69
|
-
```bash
|
|
70
|
-
npx @vatio-ai/cli@latest share-session --yes "their feedback"
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Without it, just the session:
|
|
74
|
-
|
|
75
|
-
```bash
|
|
76
|
-
npx @vatio-ai/cli@latest share-session --yes
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
Never write feedback for them: a summary of the session in your words adds
|
|
80
|
-
nothing the session does not already say.
|
|
81
|
-
|
|
82
|
-
The first time it may ask to sign in: it opens the browser (if it doesn't,
|
|
83
|
-
give them the link it prints). Tell them it was sent and the number it
|
|
84
|
-
printed.
|
|
85
|
-
|
|
86
|
-
5. If a permission check refuses the command (Claude Code's auto mode can
|
|
87
|
-
treat it as sending data out), do not retry it or look for another way to
|
|
88
|
-
send it. Give the user the command to run in their own terminal, with the
|
|
89
|
-
session id from the summary, and their feedback in quotes at the end if
|
|
90
|
-
they gave some:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
npx @vatio-ai/cli@latest share-session --id SESSION_ID --yes
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
When they say they ran it, check instead of asking:
|
|
97
|
-
`npx @vatio-ai/cli@latest share-session --list` marks a session that was
|
|
98
|
-
sent with `(sent #N, when)`. If it is not marked, it did not go. To have
|
|
99
|
-
auto mode let it through next time, point them to **Auto mode** on the
|
|
100
|
-
docs' Claude Code page: it is a line in their own Claude Code settings,
|
|
101
|
-
which you do not edit.
|
|
102
|
-
|
|
103
|
-
Only Claude Code sessions can be sent. In any other coding agent, do not offer
|
|
104
|
-
it; when the user asks, write what happened instead:
|
|
105
|
-
`npx @vatio-ai/cli@latest feedback "…"`.
|