useakit 0.2.0-dev.99 → 0.3.0-dev.116
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 +8 -27
- package/dist/index.mjs +108 -172
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,10 +14,9 @@ a-kit add release # install a skill in this project
|
|
|
14
14
|
a-kit add release -g # or in your home folder, for every project
|
|
15
15
|
a-kit add acme/release # name the organization when more than one of yours has it
|
|
16
16
|
# or install another organization's public skill, no login needed
|
|
17
|
-
a-kit add kit/frontend # install every skill in a kit
|
|
18
17
|
a-kit add release --channel beta # install the skill's beta release
|
|
19
|
-
a-kit update # bring
|
|
20
|
-
a-kit list # your skills
|
|
18
|
+
a-kit update # bring skills to their channel's version
|
|
19
|
+
a-kit list # your skills, their context cost, and where they're installed
|
|
21
20
|
a-kit try release "Cut a release for v2" # Claude with the skill and without it
|
|
22
21
|
```
|
|
23
22
|
|
|
@@ -43,7 +42,7 @@ Your organization's skills live in its GitHub repository, one folder each in `sk
|
|
|
43
42
|
In a clone, `a-kit check` reads the repository the way agent kit does and lists what it would reject, without a login:
|
|
44
43
|
|
|
45
44
|
```sh
|
|
46
|
-
a-kit check # every skill, plus evals
|
|
45
|
+
a-kit check # every skill, plus evals/ and channels.yaml
|
|
47
46
|
a-kit check release # one skill, by name or folder (skills/release)
|
|
48
47
|
```
|
|
49
48
|
|
|
@@ -63,24 +62,11 @@ a-kit link ~/code/acme-skills/skills/release # run in the project you test it
|
|
|
63
62
|
a-kit add release # back to agent kit's version when you're done
|
|
64
63
|
```
|
|
65
64
|
|
|
66
|
-
`link` replaces the installed copy (`.claude/skills/release`, `.agents/skills/release`) with a link to the folder, so your agents use your edits as you make them; a new session picks up one an open session missed. It works with `-g` and `-a` like `add`; when the skill is also installed with `-g`, link it with `-g` too, since agents use your personal copy over a project's (`link` warns), and lists the problems `a-kit check` would find. It won't replace a folder agent kit didn't install, or one with edits that aren't in agent kit. `a-kit update` leaves a linked skill alone
|
|
67
|
-
|
|
68
|
-
## Kits
|
|
69
|
-
|
|
70
|
-
A kit is a named bundle of your organization's skills, like `frontend`, made in agent kit's web or through its MCP server. `a-kit add kit/frontend` installs all of them (`kit/acme/frontend` names the organization when more than one of yours has a kit by that name) and records the kit in the lock. `a-kit update` then follows the kit: skills added to it get installed, and skills taken out of it get removed, unless you also added them on their own, another kit you installed still has them, you edited them, or you linked them.
|
|
71
|
-
|
|
72
|
-
## Reporting a session that went wrong
|
|
73
|
-
|
|
74
|
-
Installing skills also installs `report-session-issue`. Tell your agent "report this conversation" and it asks what went wrong, lists the project's private words, and runs `a-kit report`. The command:
|
|
75
|
-
|
|
76
|
-
- reads the session from Claude Code's or Codex's own log;
|
|
77
|
-
- scrubs it on your machine: secrets, emails, IPs, your user and machine names, paths to the repo and home, and the words the agent mapped; long tool outputs are cut to 2,000 characters (`--full-outputs` keeps them);
|
|
78
|
-
- links the agent kit skills installed here, and whether the agent loaded each;
|
|
79
|
-
- writes the scrubbed transcript to a file to check (`--dry-run` stops there), then sends it to your organization's Reports.
|
|
65
|
+
`link` replaces the installed copy (`.claude/skills/release`, `.agents/skills/release`) with a link to the folder, so your agents use your edits as you make them; a new session picks up one an open session missed. It works with `-g` and `-a` like `add`; when the skill is also installed with `-g`, link it with `-g` too, since agents use your personal copy over a project's (`link` warns), and lists the problems `a-kit check` would find. It won't replace a folder agent kit didn't install, or one with edits that aren't in agent kit. `a-kit update` leaves a linked skill alone.
|
|
80
66
|
|
|
81
67
|
## Auto-update
|
|
82
68
|
|
|
83
|
-
Installing skills for Claude Code also adds a `SessionStart` hook to `~/.claude/settings.json` that checks your global skills when a session starts or resumes. A background process, so the session doesn't wait for it, sends agent kit what your global lock has and gets back one fingerprint of it: the version each skill's channel installs
|
|
69
|
+
Installing skills for Claude Code also adds a `SessionStart` hook to `~/.claude/settings.json` that checks your global skills when a session starts or resumes. A background process, so the session doesn't wait for it, sends agent kit what your global lock has and gets back one fingerprint of it: the version each skill's channel installs and each public skill's version. When the fingerprint isn't the one your last update left, it runs `a-kit update -g`; when it is, that one request is all. Sessions that start within the same minute check once. It skips the check when nothing is installed everywhere or you're not logged in. A project's skills aren't touched: they live in its repo, so they change only when you run `a-kit update` there.
|
|
84
70
|
|
|
85
71
|
```sh
|
|
86
72
|
a-kit auto-update # whether it's on
|
|
@@ -92,12 +78,7 @@ a-kit auto-update on # turn it back on
|
|
|
92
78
|
|
|
93
79
|
Installing skills for Claude Code also adds a hook to `~/.claude/settings.json`, so each time Claude Code loads a skill installed from agent kit (on its own or because you typed `/<skill>`), it reports the skill, its version, the agent, this machine (a random id and its hostname) and when. Your organization sees it on the skills table and each skill's page. Nothing else is sent: not your prompts, not your code. Reports that can't be sent wait in `~/.config/agent-kit/` for the next one.
|
|
94
80
|
|
|
95
|
-
The repository (its `origin` remote) and the branch you're on go too,
|
|
96
|
-
|
|
97
|
-
- a repo with an `agent-kit.lock.json`, which installs skills from agent kit;
|
|
98
|
-
- or one of your organizations' projects' repositories, told only to that organization: another organization's skill loaded there doesn't say which repository it was.
|
|
99
|
-
|
|
100
|
-
From any other repo, neither is sent. The hook decides from a list of the projects' repositories kept in `~/.config/agent-kit/`, never waiting for the API: it's asked for again once a day, so a repository added to a project starts sending within a day, or right away after `a-kit update`.
|
|
81
|
+
The repository (its `origin` remote) and the branch you're on go too, only from a repo with an `agent-kit.lock.json`, which installs skills from agent kit. From any other repo, neither is sent.
|
|
101
82
|
|
|
102
83
|
```sh
|
|
103
84
|
a-kit telemetry # whether it's on
|
|
@@ -109,14 +90,14 @@ a-kit telemetry on # turn it back on
|
|
|
109
90
|
|
|
110
91
|
### Importing past sessions
|
|
111
92
|
|
|
112
|
-
Claude Code keeps a transcript of each session on your machine for about 30 days (`~/.claude/projects`, or under `CLAUDE_CONFIG_DIR`). `a-kit telemetry import` sends agent kit what live telemetry would have sent for each of them, so your organization sees the last month's work without waiting for new sessions: when each session started and ended, its repository and branches, the
|
|
93
|
+
Claude Code keeps a transcript of each session on your machine for about 30 days (`~/.claude/projects`, or under `CLAUDE_CONFIG_DIR`). `a-kit telemetry import` sends agent kit what live telemetry would have sent for each of them, so your organization sees the last month's work without waiting for new sessions: when each session started and ended, its repository and branches, the skills from agent kit it loaded, and its tokens, cost and prompts by model, each at the time it happened.
|
|
113
94
|
|
|
114
95
|
```sh
|
|
115
96
|
a-kit telemetry import --dry-run # what it would send, sending nothing
|
|
116
97
|
a-kit telemetry import # send it
|
|
117
98
|
```
|
|
118
99
|
|
|
119
|
-
The same rules as live telemetry apply: only a session in a
|
|
100
|
+
The same rules as live telemetry apply: only a session in a repo with an `agent-kit.lock.json` is sent, and nothing of the others leaves the machine, nor of a session whose folder is gone (a worktree removed since); no prompt, response, command, file path or tool output is ever sent. A session keeps its id, so importing twice changes nothing, and a session live telemetry already sent is left as it is. A bot logged in with `a-kit login --token` imports its own sessions as itself. `a-kit telemetry show <session-id>` shows what was sent for an imported session, like a live one.
|
|
120
101
|
|
|
121
102
|
## Heartbeat
|
|
122
103
|
|