# lambdatest/kane-cli architecture

> Architecture diagram of the GitHub repository lambdatest/kane-cli, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lambdatest/kane-cli
- Repository: https://github.com/lambdatest/kane-cli

## Overview

This repository snapshot contains the Kane CLI agent-skill installer and its live-status-strip utility, rather than the main Kane CLI runtime. The installer copies the skill into supported agent homes, manages shared preferences, and can configure Claude Code’s status line to display run progress. The README describes browser/mobile testing and requirements assurance as Kane CLI capabilities, but their runtime implementation is not present in the sampled source. Edges below are limited to relationships shown in excerpts or the README.

Main entry points: [`skill-installer/cli.js`](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/cli.js) (Installer commands), [`skill-installer/lib/strip-install.mjs`](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/strip-install.mjs) (Strip setup), [`skill-installer/strip/kane-strip.mjs`](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/strip/kane-strip.mjs) (Progress reader), [`skill-installer/lib/agent-config.mjs`](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/agent-config.mjs) (Config management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Skill installation"]
  node_installer["Installer commands<br/>[cli.js]"]
  node_skill["Kane CLI skill"]
end

subgraph group_config["Agent preferences"]
  node_preferences["Config management<br/>[agent-config.mjs]"]
  node_strip_prompt["Strip prompt<br/>[strip-prompt.mjs]"]
end

subgraph group_strip["Live status strip"]
  node_strip_setup["Strip setup<br/>[strip-install.mjs]"]
  node_strip_reader["Progress reader<br/>[kane-strip.mjs]"]
end

node_user(("CLI user"))
node_agent(("AI coding agent"))
node_claude["Claude Code"]
node_run_state["Run state files"]

node_user -->|"runs commands"| node_installer
node_installer -->|"copies skill"| node_skill
node_installer -->|"reads and writes"| node_preferences
node_installer -->|"asks about"| node_strip_prompt
node_strip_prompt -->|"records offer"| node_preferences
node_installer -->|"configures strip"| node_strip_setup
node_strip_setup -->|"stores settings"| node_preferences
node_strip_setup -->|"installs reader"| node_strip_reader
node_strip_setup -->|"sets status line"| node_claude
node_claude -->|"runs status command"| node_strip_reader
node_strip_reader -->|"reads progress"| node_run_state
node_agent -.->|"installs skill"| node_installer

click node_installer "https://github.com/lambdatest/kane-cli/blob/main/skill-installer/cli.js"
click node_skill "https://github.com/lambdatest/kane-cli/tree/main/skill-installer/skills"
click node_preferences "https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/agent-config.mjs"
click node_strip_prompt "https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/strip-prompt.mjs"
click node_strip_setup "https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/strip-install.mjs"
click node_strip_reader "https://github.com/lambdatest/kane-cli/blob/main/skill-installer/strip/kane-strip.mjs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_installer,node_skill,node_user toneBlue
class node_preferences,node_strip_prompt toneAmber
class node_strip_setup,node_strip_reader toneMint
class node_agent,node_claude,node_run_state toneIndigo
```

## Components

### Skill installation

- [Installer commands](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/cli.js): `skill-installer/cli.js`
- [Kane CLI skill](https://github.com/lambdatest/kane-cli/tree/main/skill-installer/skills): `skill-installer/skills`

### Agent preferences

- [Config management](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/agent-config.mjs): `skill-installer/lib/agent-config.mjs`
- [Strip prompt](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/strip-prompt.mjs): `skill-installer/lib/strip-prompt.mjs`

### Live status strip

- [Strip setup](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/lib/strip-install.mjs): `skill-installer/lib/strip-install.mjs`
- [Progress reader](https://github.com/lambdatest/kane-cli/blob/main/skill-installer/strip/kane-strip.mjs): `skill-installer/strip/kane-strip.mjs`

### Other components

- **CLI user**
- **AI coding agent**
- **Claude Code**
- **Run state files**

## Connections

- CLI user → Installer commands: runs commands (evidence: `skill-installer/cli.js`)
- Installer commands → Kane CLI skill: copies skill (evidence: `skill-installer/cli.js`)
- Installer commands → Config management: reads and writes (evidence: `skill-installer/cli.js`)
- Installer commands → Strip prompt: asks about (evidence: `skill-installer/cli.js`)
- Strip prompt → Config management: records offer (evidence: `skill-installer/lib/strip-prompt.mjs`)
- Installer commands → Strip setup: configures strip (evidence: `skill-installer/cli.js`)
- Strip setup → Config management: stores settings (evidence: `skill-installer/lib/strip-install.mjs`)
- Strip setup → Progress reader: installs reader (evidence: `skill-installer/lib/strip-install.mjs`)
- Strip setup → Claude Code: sets status line (evidence: `skill-installer/lib/strip-install.mjs`)
- Claude Code → Progress reader: runs status command
- Progress reader → Run state files: reads progress (evidence: `skill-installer/strip/kane-strip.mjs`)
- AI coding agent → Installer commands: installs skill
