# lambdatest/agent-skills architecture

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

- Interactive diagram: https://gitdiagram.com/lambdatest/agent-skills
- Repository: https://github.com/lambdatest/agent-skills

## Overview

1. **Repository purpose**
   This is not an application runtime; it is a **content repository of AI agent skills** for test automation. The architecture is centered on packaging knowledge for different tools/frameworks so assistants like Claude Code, Cursor, Copilot, and Gemini can generate better test code.

2. **Primary unit of composition: a skill directory**
   Each skill lives in its own top-level directory, such as `selenium-skill/`, `playwright-skill/`, or `junit-5-skill/`. The consistent boundary is:
   - `SKILL.md` for the core agent-facing instructions
   - `reference/` for deeper guidance, patterns, and special cases
   Some skills also include `scripts/` and `templates/` when the framework needs scaffolding or config generation.

3. **Progressive disclosure content model**
   The repo is designed so agents first load lightweight metadata and core instructions, then pull in reference docs only when needed. This is the key architectural pattern:
   - `SKILL.md` = compact entry point and decision guidance
   - `reference/*.md` = detailed playbooks, advanced patterns, debugging, and cloud integration
   This keeps the skills portable and avoids overwhelming the model with large context upfront.

4. **Skill categories and functional domains**
   The skills are grouped by testing domain rather than by language alone:
   - E2E/browser automation: Selenium, Playwright, Cypress, WebdriverIO, Puppeteer, etc.
   - Unit testing: Jest, pytest, JUnit 5, Vitest, NUnit, xUnit, etc.
   - Mobile testing: Appium, Espresso, XCUITest, Detox, Flutter testing
   - BDD: Cucumber, SpecFlow, Behave, Behat, Gauge, Serenity BDD, Lettuce
   - Supporting areas: API tooling, migration, CI/CD, visual testing, cloud orchestration
   This reflects the repo’s role as a multi-framework knowledge base rather than a single-stack toolkit.

5. **Shared cross-cutting assets**
   The `shared/` directory contains reusable references and helper scripts that are not tied to one framework. These are the architectural “common services” of the repo:
   - cloud/platform reference material
   - shared validation utilities
   - reusable checks such as tunnel/capability validation
   These assets support consistency across skills, especially for cloud execution patterns.

6. **Registry and discovery layer**
   `skills_index.json` acts as the machine-readable catalog for the repository. It is the discoverability boundary between the repo as a file collection and external tooling that wants to enumerate skills, categories, or supported languages.

7. **Validation and quality-control subsystem**
   `scripts/validate_skills.py` is the main repository-level quality gate. Its job is to enforce structural consistency across all skills, including frontmatter, required files, line limits, and cross-reference integrity. This is the repo’s primary guardrail against drift across 46 skill packages.

8. **Evaluation corpus**
   The `evals/` directory contains per-skill JSON evaluation sets. Architecturally, these are the test fixtures for the skills themselves: they provide a repeatable way to measure whether a skill’s instructions and patterns are effective for its intended framework.

9. **Installation and distribution path**
   The repo includes install-oriented content under `api/installer/` and general copy-based installation guidance in the README. The distribution model is simple: consumers clone or copy individual skill folders into their agent-specific skills directory. The repository is therefore optimized for **file-based packaging**, not a centralized runtime service.

10. **Framework-specific tooling inside some skills**
   A few skills include extra helper scripts and templates because the framework demands config scaffolding:
   - Playwright, Cypress, Selenium have scaffold/config templates
   - Some API skills include generation or conversion helpers
   These are embedded toolchains inside the skill boundary, not shared platform services.

11. **API and test-automation subcollections**
   The `api/` subtree is a separate cluster of skills around API design, mocking, testing, OpenAPI, Newman/Postman, SDK generation, and API security/versioning. It behaves like a domain-specific toolkit within the broader repo, oriented toward API lifecycle assistance rather than browser/mobile testing.

12. **External cloud/testing platform integration**
   TestMu AI / LambdaTest integration is a major architectural concern across many skills. Cloud-related references and helper scripts are used to describe:
   - remote browser/device execution
   - tunnels for localhost testing
   - capability configuration
   - cloud reports and artifacts
   This is a cross-cutting integration boundary that many skills share.

13. **Repository-level dependencies and constraints**
   The repo is mostly markdown and JSON, with a few Python and shell scripts. That means the architecture is documentation-driven and validation-driven, with minimal executable code. The important runtime assumptions are outside the repo: the target agent platform loads these skill files, and the cloud execution systems run the tests described by the skills.

14. **How data flows through the system**
   The main flow is:
   - an agent or user selects a skill
   - the agent reads `SKILL.md`
   - it optionally loads `reference/` content for deeper guidance
   - generated test code or configs are adapted to the target framework
   - if cloud execution is needed, the skill references TestMu AI/LambdaTest patterns and credentials
   - validation/evals are used by maintainers to keep the skill quality high
   This is a content-to-guidance-to-generated-artifact pipeline, not a request/response service flow.

15. **What an architecture diagram should emphasize**
   The most accurate diagram would show:
   - a **skill library layer** made of many independent skill packages
   - a **shared utilities/reference layer**
   - a **validation/evaluation layer** for repo quality
   - a **distribution/consumption boundary** to external AI coding assistants
   - an **external cloud execution boundary** for browser/mobile test infrastructure
   That captures the repo’s actual structure and purpose: a portable, standardized knowledge base for test automation agents.

Main entry points: [`scripts/validate_skills.py`](https://github.com/lambdatest/agent-skills/blob/main/scripts/validate_skills.py) (Validate skills), [`skills_index.json`](https://github.com/lambdatest/agent-skills/blob/main/skills_index.json) (Skill index), [`cypress-skill`](https://github.com/lambdatest/agent-skills/tree/main/cypress-skill) (Web automation), [`shared`](https://github.com/lambdatest/agent-skills/tree/main/shared) (Shared assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo_control["Repo control"]
  node_readme["README<br/>repo-guide<br/>[README.md]"]
  node_skills_index[("Skill index<br/>catalog<br/>[skills_index.json]")]
  node_validate_skills["Validate skills<br/>quality-gate<br/>[validate_skills.py]"]
  node_evals[("Evals<br/>evaluation-corpus")]
end

subgraph group_skill_library["Skill library"]
  node_api_suite["API skills<br/>skill-cluster"]
  node_web_automation["Web automation<br/>skill-cluster"]
  node_playwright_skill["Playwright<br/>skill-package"]
  node_selenium_skill["Selenium<br/>skill-package"]
  node_mobile_suite["Mobile testing<br/>skill-cluster"]
  node_bdd_suite["BDD suite<br/>skill-cluster"]
  node_unit_suite["Unit testing<br/>skill-cluster"]
  node_migration["Migration<br/>skill-cluster"]
  node_cypress_scaffold["Cypress scaffold<br/>skill-internal-tooling"]
  node_playwright_scaffold["PW scaffold<br/>skill-internal-tooling"]
  node_selenium_scaffold["Selenium scaffold<br/>skill-internal-tooling"]
  node_api_installer["API installer<br/>distribution-tooling"]
end

subgraph group_shared_layer["Shared layer"]
  node_shared_assets["Shared assets<br/>common-services"]
end

subgraph group_external_boundary["External boundary"]
  node_cloud_platforms[("Cloud platforms<br/>external-platform")]
end

node_readme -->|"describes"| node_skills_index
node_skills_index -->|"lists"| node_api_suite
node_skills_index -->|"lists"| node_web_automation
node_skills_index -->|"lists"| node_mobile_suite
node_skills_index -->|"lists"| node_bdd_suite
node_skills_index -->|"lists"| node_unit_suite
node_validate_skills -->|"checks"| node_api_suite
node_validate_skills -->|"checks"| node_web_automation
node_validate_skills -->|"checks"| node_mobile_suite
node_validate_skills -->|"checks"| node_bdd_suite
node_validate_skills -->|"checks"| node_unit_suite
node_validate_skills -->|"checks"| node_migration
node_evals -->|"measures"| node_web_automation
node_evals -->|"measures"| node_mobile_suite
node_evals -->|"measures"| node_bdd_suite
node_evals -->|"measures"| node_unit_suite
node_shared_assets -->|"supports"| node_cloud_platforms
node_playwright_skill -->|"contains"| node_playwright_scaffold
node_selenium_skill -->|"contains"| node_selenium_scaffold
node_web_automation -->|"integrates"| node_cloud_platforms
node_mobile_suite -->|"integrates"| node_cloud_platforms
node_api_suite -->|"packages"| node_api_installer
node_api_suite -->|"reuses"| node_shared_assets
node_web_automation -->|"reuses"| node_shared_assets
node_mobile_suite -->|"reuses"| node_shared_assets
node_bdd_suite -->|"reuses"| node_shared_assets
node_unit_suite -->|"reuses"| node_shared_assets
node_migration -->|"bridges"| node_web_automation

click node_readme "https://github.com/lambdatest/agent-skills/blob/main/README.md"
click node_skills_index "https://github.com/lambdatest/agent-skills/blob/main/skills_index.json"
click node_validate_skills "https://github.com/lambdatest/agent-skills/blob/main/scripts/validate_skills.py"
click node_evals "https://github.com/lambdatest/agent-skills/tree/main/evals"
click node_api_suite "https://github.com/lambdatest/agent-skills/tree/main/api"
click node_web_automation "https://github.com/lambdatest/agent-skills/tree/main/cypress-skill"
click node_playwright_skill "https://github.com/lambdatest/agent-skills/tree/main/playwright-skill"
click node_selenium_skill "https://github.com/lambdatest/agent-skills/tree/main/selenium-skill"
click node_mobile_suite "https://github.com/lambdatest/agent-skills/tree/main/appium-skill"
click node_bdd_suite "https://github.com/lambdatest/agent-skills/tree/main/cucumber-skill"
click node_unit_suite "https://github.com/lambdatest/agent-skills/tree/main/jest-skill"
click node_migration "https://github.com/lambdatest/agent-skills/tree/main/test-framework-migration-skill"
click node_shared_assets "https://github.com/lambdatest/agent-skills/tree/main/shared"
click node_cypress_scaffold "https://github.com/lambdatest/agent-skills/blob/main/cypress-skill/scripts/scaffold-project.sh"
click node_playwright_scaffold "https://github.com/lambdatest/agent-skills/blob/main/playwright-skill/scripts/scaffold-project.sh"
click node_selenium_scaffold "https://github.com/lambdatest/agent-skills/blob/main/selenium-skill/scripts/scaffold-project.sh"
click node_api_installer "https://github.com/lambdatest/agent-skills/blob/main/api/installer/testmu-skill-installer_code.sh"

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_readme,node_skills_index,node_validate_skills,node_evals toneBlue
class node_api_suite,node_web_automation,node_playwright_skill,node_selenium_skill,node_mobile_suite,node_bdd_suite,node_unit_suite,node_migration,node_cypress_scaffold,node_playwright_scaffold,node_selenium_scaffold,node_api_installer toneAmber
class node_shared_assets toneMint
class node_cloud_platforms toneRose
```

## Components

### Repo control

Discovery, validation, and maintenance for the skill library

- [README](https://github.com/lambdatest/agent-skills/blob/main/README.md): repo-guide · Top-level overview and consumption instructions · `README.md`
- [Skill index](https://github.com/lambdatest/agent-skills/blob/main/skills_index.json): catalog · Machine-readable registry of available skills · `skills_index.json`
- [Validate skills](https://github.com/lambdatest/agent-skills/blob/main/scripts/validate_skills.py): quality-gate · Repository-wide structural and cross-reference validation · `scripts/validate_skills.py`
- [Evals](https://github.com/lambdatest/agent-skills/tree/main/evals): evaluation-corpus · Per-skill JSON fixtures used to measure skill quality · `evals`

### Skill library

Primary skill packages organized by testing domain

- [API skills](https://github.com/lambdatest/agent-skills/tree/main/api): skill-cluster · API design, mocking, testing, OpenAPI, and SDK generation skills · `api`
- [Web automation](https://github.com/lambdatest/agent-skills/tree/main/cypress-skill): skill-cluster · Browser automation skills for end-to-end testing · `cypress-skill`
- [Playwright](https://github.com/lambdatest/agent-skills/tree/main/playwright-skill): skill-package · Playwright skill with scaffolding, templates, and platform-specific guidance · `playwright-skill`
- [Selenium](https://github.com/lambdatest/agent-skills/tree/main/selenium-skill): skill-package · Selenium skill with language-specific patterns and scaffolding · `selenium-skill`
- [Mobile testing](https://github.com/lambdatest/agent-skills/tree/main/appium-skill): skill-cluster · Mobile automation skills across native and hybrid frameworks · `appium-skill`
- [BDD suite](https://github.com/lambdatest/agent-skills/tree/main/cucumber-skill): skill-cluster · Behavior-driven testing skills and step-definition ecosystems · `cucumber-skill`
- [Unit testing](https://github.com/lambdatest/agent-skills/tree/main/jest-skill): skill-cluster · Unit-test framework skills across languages and runtimes · `jest-skill`
- [Migration](https://github.com/lambdatest/agent-skills/tree/main/test-framework-migration-skill): skill-cluster · Framework-to-framework conversion guidance and mappings · `test-framework-migration-skill`
- [Cypress scaffold](https://github.com/lambdatest/agent-skills/blob/main/cypress-skill/scripts/scaffold-project.sh): skill-internal-tooling · Skill-local scaffolding and config templates · `cypress-skill/scripts/scaffold-project.sh`
- [PW scaffold](https://github.com/lambdatest/agent-skills/blob/main/playwright-skill/scripts/scaffold-project.sh): skill-internal-tooling · Skill-local scaffolding and config templates · `playwright-skill/scripts/scaffold-project.sh`
- [Selenium scaffold](https://github.com/lambdatest/agent-skills/blob/main/selenium-skill/scripts/scaffold-project.sh): skill-internal-tooling · Skill-local scaffolding and config templates · `selenium-skill/scripts/scaffold-project.sh`
- [API installer](https://github.com/lambdatest/agent-skills/blob/main/api/installer/testmu-skill-installer_code.sh): distribution-tooling · Copy/install helper for API-oriented skills · `api/installer/testmu-skill-installer_code.sh`

### Shared layer

Reusable cross-skill references and helpers

- [Shared assets](https://github.com/lambdatest/agent-skills/tree/main/shared): common-services · Reusable cloud reference and validation helpers shared across skills · `shared`

### External boundary

Outside systems consumed by skills at generation or execution time

- **Cloud platforms**: external-platform · Remote browser/device execution, tunnels, capabilities, and artifacts

## Connections

- README → Skill index: describes · README points users toward the catalog of skills
- Skill index → API skills: lists · Catalog enumerates skill packages and categories
- Skill index → Web automation: lists · Catalog enumerates web automation skills
- Skill index → Mobile testing: lists · Catalog enumerates mobile testing skills
- Skill index → BDD suite: lists · Catalog enumerates BDD skills
- Skill index → Unit testing: lists · Catalog enumerates unit testing skills
- Validate skills → API skills: checks · Validation enforces consistency across skill packages
- Validate skills → Web automation: checks · Validation enforces consistency across skill packages
- Validate skills → Mobile testing: checks · Validation enforces consistency across skill packages
- Validate skills → BDD suite: checks · Validation enforces consistency across skill packages
- Validate skills → Unit testing: checks · Validation enforces consistency across skill packages
- Validate skills → Migration: checks · Validation enforces consistency across skill packages
- Evals → Web automation: measures · Evaluation sets assess skill effectiveness
- Evals → Mobile testing: measures · Evaluation sets assess skill effectiveness
- Evals → BDD suite: measures · Evaluation sets assess skill effectiveness
- Evals → Unit testing: measures · Evaluation sets assess skill effectiveness
- Shared assets → Cloud platforms: supports · Shared cloud references and scripts bridge to external execution systems
- Playwright → PW scaffold: contains · Framework skill embeds local scaffolding support
- Selenium → Selenium scaffold: contains · Framework skill embeds local scaffolding support
- Web automation → Cloud platforms: integrates · Browser skills rely on remote execution and capability patterns
- Mobile testing → Cloud platforms: integrates · Mobile skills may reference remote device/cloud execution patterns
- API skills → API installer: packages · API subtree includes installer-oriented distribution tooling
- API skills → Shared assets: reuses · API skills draw on shared cross-cutting helpers and references
- Web automation → Shared assets: reuses · Web automation skills consume shared validation and cloud material
- Mobile testing → Shared assets: reuses · Mobile skills consume shared validation and cloud material
- BDD suite → Shared assets: reuses · BDD skills consume shared validation and cloud material
- Unit testing → Shared assets: reuses · Unit-test skills reuse common guidance patterns
- Migration → Web automation: bridges · Migration content connects major browser frameworks
