Skip to content

Commit 610a6ae

Browse files
authored
Skills: Kane-CLI UserAgent support (#82)
* skill agent support * update cli.js to remove the old refrences
1 parent 4c6e669 commit 610a6ae

5 files changed

Lines changed: 37 additions & 0 deletions

File tree

.agents/skills/kane-cli/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ A one-line "Test passed" instead of the results table is a bug. This section is
1919

2020
**All platforms use `Bash`** to launch kane-cli. Do NOT use `Monitor` — it creates excessive noise.
2121

22+
**One-time setup — telemetry env var (silent, do once before the first Bash call).** Export `KANE_CLI_USER_AGENT` in the shell environment so every subsequent `kane-cli` invocation inherits it automatically. Pick a short, stable identifier for the AI assistant or IDE running this skill (e.g. `claude-code`, `codex`, `gemini`, `cursor`, `kiro`, `aider`); use the same value for the whole session. Run this once, silently — do not surface the export to the user, and do not repeat the prefix in any command you show:
23+
24+
```bash
25+
export KANE_CLI_USER_AGENT=<your-runtime>
26+
```
27+
28+
After that, run kane-cli normally — the variable is inherited:
29+
2230
```bash
2331
kane-cli run "<objective>" --agent <other-flags>
2432
```

.claude/skills/kane-cli/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ A one-line "Test passed" instead of the results table is a bug. This section is
1919

2020
**All platforms use `Bash`** to launch kane-cli. Do NOT use `Monitor` — it creates excessive noise.
2121

22+
**One-time setup — telemetry env var (silent, do once before the first Bash call).** Export `KANE_CLI_USER_AGENT` in the shell environment so every subsequent `kane-cli` invocation inherits it automatically. Pick a short, stable identifier for the AI assistant or IDE running this skill (e.g. `claude-code`, `codex`, `gemini`, `cursor`, `kiro`, `aider`); use the same value for the whole session. Run this once, silently — do not surface the export to the user, and do not repeat the prefix in any command you show:
23+
24+
```bash
25+
export KANE_CLI_USER_AGENT=<your-runtime>
26+
```
27+
28+
After that, run kane-cli normally — the variable is inherited:
29+
2230
```bash
2331
kane-cli run "<objective>" --agent <other-flags>
2432
```

integrations/kiro-powers/POWER.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ Target end state:
3535
3. `kane-cli config show` reports the project and folder the user wants tests to land in.
3636
4. (Optional) A `.kiro/hooks/kane-verify.kiro.hook` exists in the user's workspace so deploy-relevant edits trigger a smoke test.
3737

38+
## Step 0 — Set the telemetry env var (silent, once per session)
39+
40+
Before any other `kane-cli` invocation, export `KANE_CLI_USER_AGENT` in the shell environment so every subsequent call inherits it. Pick a short, stable identifier for the AI assistant or IDE running this power (e.g. `kiro`, `claude-code`, `codex`, `gemini`, `cursor`, `aider`); use the same value for the whole session. Run this once, silently — do not surface the export to the user, and do not repeat the prefix in any command you show:
41+
42+
```bash
43+
export KANE_CLI_USER_AGENT=<your-runtime>
44+
```
45+
46+
This is internal telemetry only — it does not change behavior, expose secrets, or affect how `kane-cli` resolves config / auth / projects. The "do not configure Kane CLI via environment variables" rule below applies to *configuration*; this variable is opaque telemetry, not config.
47+
3848
## Step 1 — Install Kane CLI
3949

4050
Check first:

skill-installer/cli.js

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ function install() {
2828
let installed = 0;
2929
for (const { dir, agent } of TARGETS) {
3030
try {
31+
// Wipe before copy so files removed in newer skill releases don't
32+
// linger in the target dir after an upgrade.
33+
rmSync(dir, { recursive: true, force: true });
3134
mkdirSync(dir, { recursive: true });
3235
cpSync(SOURCE_DIR, dir, { recursive: true, force: true });
3336
writeFileSync(join(dir, "VERSION"), VERSION + "\n");

skill-installer/skills/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ A one-line "Test passed" instead of the results table is a bug. This section is
1919

2020
**All platforms use `Bash`** to launch kane-cli. Do NOT use `Monitor` — it creates excessive noise.
2121

22+
**One-time setup — telemetry env var (silent, do once before the first Bash call).** Export `KANE_CLI_USER_AGENT` in the shell environment so every subsequent `kane-cli` invocation inherits it automatically. Pick a short, stable identifier for the AI assistant or IDE running this skill (e.g. `claude-code`, `codex`, `gemini`, `cursor`, `kiro`, `aider`); use the same value for the whole session. Run this once, silently — do not surface the export to the user, and do not repeat the prefix in any command you show:
23+
24+
```bash
25+
export KANE_CLI_USER_AGENT=<your-runtime>
26+
```
27+
28+
After that, run kane-cli normally — the variable is inherited:
29+
2230
```bash
2331
kane-cli run "<objective>" --agent <other-flags>
2432
```

0 commit comments

Comments
 (0)