Skip to content

Installation & Setup

swayambhu-qa is an add-on for your existing project — it connects your issue tracker, test runner, and TMS. You keep your existing Playwright / REST Assured setup exactly as it is.

Prerequisites

RequirementWhen needed
Claude CodeAlways — agents run inside Claude Code
ANTHROPIC_API_KEYAlways — set in shell or CI secrets
Node.js 18+Always — integration scripts run on Node
Java 21 + Maven 3.9+Only if using REST Assured
gh CLI authenticatedDraft PR on GitHub repos

Step 0 — Install Claude Code

bash
npm install -g @anthropic-ai/claude-code
export ANTHROPIC_API_KEY=sk-ant-...

Or download the desktop app from claude.ai/code.

Step 1 — Install the package

bash
npm install --save-dev @swayambhu-qa/core

Already installed? Upgrade to latest:

bash
npm install --save-dev @swayambhu-qa/core@latest

Step 2 — Initialize

bash
npx @swayambhu-qa/core init

This does three things:

  • Adds the swayambhu-qa MCP server to .claude/settings.json
  • Creates .env.example with all available config variables
  • Writes 1-line shim files into .claude/commands/ — one per agent

After init, you'll have these slash commands in Claude Code:

CommandWhat it does
/qa-pipelineFull pipeline: ticket → tests → heal → TMS → PR
/create-test-casesTicket → test cases pushed to TMS only
/generate-testsURL → Playwright spec only
/automate-from-tmsTMS test cases → automate + run + heal + bugs
/heal-testsBroken spec → fixed spec
/bug-to-testBug report → regression test
/analyze-flakyTest results → flaky test report
/qa-reportResults → shareable QA report

Approval prompts

By default, Claude Code asks for approval before each tool call. To run unattended locally:

bash
npx @swayambhu-qa/core init --auto-approve

For CI, use --dangerously-skip-permissions on the claude CLI instead.

Step 3 — Configure

bash
cp .env.example .env

Fill in only what your team uses — leave everything else blank. See Environment Variables for all options.

Step 4 — Run

bash
/qa-pipeline --id TEST-22 --source jira --tool playwright --tms xray

That's it. The pipeline reads your ticket, scrapes your app, writes tests, runs them, heals failures, and pushes results back to your TMS.

→ Next: Your First Pipeline Run

Released under the MIT License.