How lambdatest/agent-skills works
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: validate_skills.py Validate skills · skills_index.json Skill index · cypress-skill Web automation · shared Shared assets
Components 18
Repo control
Discovery, validation, and maintenance for the skill library
- README · Top-level overview and consumption instructions
README.md - Skill index · Machine-readable registry of available skills
skills_index.json - Validate skills · Repository-wide structural and cross-reference validation
scripts/validate_skills.py - Evals · Per-skill JSON fixtures used to measure skill quality
evals
Skill library
Primary skill packages organized by testing domain
- API skills · API design, mocking, testing, OpenAPI, and SDK generation skills
api - Web automation · Browser automation skills for end-to-end testing
cypress-skill - Playwright · Playwright skill with scaffolding, templates, and platform-specific guidance
playwright-skill - Selenium · Selenium skill with language-specific patterns and scaffolding
selenium-skill - Mobile testing · Mobile automation skills across native and hybrid frameworks
appium-skill - BDD suite · Behavior-driven testing skills and step-definition ecosystems
cucumber-skill - Unit testing · Unit-test framework skills across languages and runtimes
jest-skill - Migration · Framework-to-framework conversion guidance and mappings
test-framework-migration-skill - Cypress scaffold · Skill-local scaffolding and config templates
cypress-skill/scripts/scaffold-project.sh - PW scaffold · Skill-local scaffolding and config templates
playwright-skill/scripts/scaffold-project.sh - Selenium scaffold · Skill-local scaffolding and config templates
selenium-skill/scripts/scaffold-project.sh - API installer · Copy/install helper for API-oriented skills
api/installer/testmu-skill-installer_code.sh
Shared layer
Reusable cross-skill references and helpers
- Shared assets · Reusable cloud reference and validation helpers shared across skills
shared
External boundary
Outside systems consumed by skills at generation or execution time
- Cloud platforms · Remote browser/device execution, tunnels, capabilities, and artifacts
Connections 28
- 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