Skip to main content

Kane CLI Skills for AI Agents

A Kane CLI skill is a markdown instruction file that teaches an AI coding agent how to use kane-cli: when to invoke it, how to build commands, how to parse NDJSON output, how to present results, and how to handle failures. Install the skill once, and your agent handles browser automation tasks automatically whenever you ask.

Skills work on top of Agent Mode (--agent flag). The skill tells the agent to always use --agent, parse the NDJSON stream, and present structured results back to you.

note

Skills are plain markdown files. Review and customize them by editing the installed file after download.


Install by Agent

The Kane CLI skill for Claude Code is a SKILL.md file placed in your skills directory.

Global install (available in all projects):

mkdir -p ~/.claude/skills/kane-cli
curl -o ~/.claude/skills/kane-cli/SKILL.md \
https://raw.githubusercontent.com/LambdaTest/kane-cli/main/skills/claude/SKILL.md

Project-level install (available only in this project):

mkdir -p .claude/skills/kane-cli
curl -o .claude/skills/kane-cli/SKILL.md \
https://raw.githubusercontent.com/LambdaTest/kane-cli/main/skills/claude/SKILL.md

After installing, Claude Code automatically loads the skill. No restart required.

What Claude can do with this skill:

  • Recognize when your request involves a browser and invoke kane-cli automatically
  • Build properly structured kane-cli run --agent commands
  • Parse the NDJSON output and present structured results with step counts, duration, extracted values, and assertion results
  • Inspect failure logs and screenshots to diagnose issues
  • Run multiple browser tests in parallel using sub-agents
  • Suggest bug reports for agent failures, linked to the GitHub repo

Example prompts:

"Can you verify the checkout flow on staging.myapp.com works?"
"Check if our login form shows the right error for wrong passwords"
"Search for 'laptops' on Amazon and store the top 3 prices"

First-Time Auth in Agent Contexts

OAuth login opens a browser window: AI agents cannot complete this flow. Use Basic Auth instead:

kane-cli login \
--username "undefined" \
--access-key "undefined"

Get credentials from the TestMu AI dashboard > Credentials. Verify with kane-cli whoami.


How Skills Work

When you ask your AI agent to test something on the web, the skill:

  1. Checks kane-cli is installed (kane-cli --version)
  2. Verifies authentication (kane-cli whoami)
  3. Builds a kane-cli run --agent --headless command from your request
  4. Parses the NDJSON stream, waits for run_end
  5. Presents structured results: status, steps, duration, extracted values, assertion results
  6. If failed: inspects run_dir logs and screenshots to diagnose the issue
  7. Rates the run and suggests a bug report for low-quality agent failures

Skill File Locations

AgentGlobalProject-level
Claude Code~/.claude/skills/kane-cli/SKILL.md.claude/skills/kane-cli/SKILL.md
Codex CLI~/.codex/AGENTS.md (appended section)AGENTS.md (appended section)
Gemini CLI~/.gemini/skills/kane-cli/SKILL.md.gemini/skills/kane-cli/SKILL.md

Source files: github.com/LambdaTest/kane-cli/tree/main/skills

Test across 3000+ combinations of browsers, real devices & OS.

Book Demo

Help and Support

Related Articles