You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/ai-skills.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,7 +169,14 @@ No configuration required. This is what you get without any `ai/config.toml`.
169
169
170
170
Delegates to the [SkillKit](https://skillkit.dev) CLI for access to its 400K+ skill marketplace, cross-agent skill translation, and AI-powered recommendations.
npx skillkit@latest init # one-time per machine: initialize agent platforms
177
+
```
178
+
179
+
`skillkit init` detects which AI agent platforms you have installed (Claude Code, Cursor, etc.) and sets up their skill directories. Re-run it whenever you install a new agent.
Delegates to the [SkillKit](https://skillkit.dev) CLI. Provides access to the SkillKit marketplace, cross-agent translation, and AI-powered skill recommendations.
49
49
50
-
**Prerequisites:** Node.js (for `npx`) or Bun (for `bunx`), with SkillKit installed globally:
50
+
**Prerequisites:** Node.js (for `npx`) or Bun (for `bunx`), with SkillKit installed and initialized:
51
51
52
52
```sh
53
53
npm install -g skillkit
54
54
# or
55
55
bun add -g skillkit
56
+
57
+
# One-time per-machine setup: detect installed agents and create their skill directories
58
+
npx skillkit@latest init
56
59
```
57
60
61
+
`skillkit init` is interactive — it detects which AI agent platforms are installed on your machine (Claude Code, Cursor, etc.) and creates the necessary skill directories for each one. Run it once per machine; re-run it when you install a new agent.
62
+
58
63
**Configuration:**
59
64
60
65
```toml
@@ -82,7 +87,7 @@ On `haven apply --ai`, haven:
82
87
83
88
**Lock file behavior:**`haven.lock` does NOT record SHAs for SkillKit-managed skills. Version pinning is delegated to SkillKit internally. The `fetch()` step returns a synthetic `sha: "managed-by-skillkit"` and is otherwise a no-op — SkillKit handles downloading during deployment.
84
89
85
-
**Source restrictions:** SkillKit only supports `gh:` sources. Skills declared with `repo:`or `dir:` sources cause an immediate error when the SkillKit backend is active.
90
+
**Source restrictions:** SkillKit supports `gh:`and `dir:`sources. Skills declared with a `repo:`source cause an immediate error when the SkillKit backend is active — `repo:` is a haven-internal source type with no SkillKit equivalent.
86
91
87
92
**Unavailability behavior:** If the configured runner is not on PATH, `haven apply` exits immediately:
88
93
@@ -135,20 +140,26 @@ Your skill declarations (`ai/skills/`), platform config (`ai/platforms.toml`), a
135
140
# or: bun add -g skillkit
136
141
```
137
142
138
-
2. Create or update `ai/config.toml`:
143
+
2. Initialize SkillKit for your agent platforms (one-time per machine):
144
+
```sh
145
+
npx skillkit@latest init
146
+
```
147
+
This detects which AI agents are installed (Claude Code, Cursor, etc.) and creates their skill directories. Re-run this whenever you install a new agent platform.
148
+
149
+
3. Create or update `ai/config.toml`:
139
150
```toml
140
151
[skills]
141
152
backend = "skillkit"
142
153
runner = "npx"# or "bunx" if you installed via bun
143
154
```
144
155
145
-
3. Run apply:
156
+
4. Run apply:
146
157
```sh
147
158
haven apply --ai
148
159
```
149
160
haven generates a `.skills` manifest from your existing `ai/skills/` declarations and calls `skillkit team install`. Your skills are redeployed to the same `skills_dir` locations as before.
0 commit comments