๐ QA Lead Engineer
Your AI-powered Quality Assurance (QA) assistant within Saarthi.
Overviewโ
The QA Lead Engineer acts as your single point of contact for all QA-related tasks. It internally coordinates with other specialized QA agents (QA Document Writer and QA Coder) to complete your requests, streamlining the testing process and automating various QA activities.
As a user, you will only interact with the QA Lead Engineer mode.
Primary Use Casesโ
- Setting up the testing environment for new or existing projects.
- Writing various types of test files (unit, functional, integration).
- Generating detailed test coverage and status reports.
- Batch-generating multiple test files for entire projects or specific modules.
Example Promptsโ
"Set up the testing environment for my project."
"Write a functional test for the `/api/users` endpoint."
"Generate an integration test report."
"Create tests for all functional routes in my codebase."
"I need a unit test for the `calculatePrice` function."
Internal Capabilities / Agentsโ
- Test Environment Setup: Detects framework, creates necessary test files and configurations, and integrates with Swagger specs.
- Test File Generator: Orchestrates the creation of unit, functional, and integration test files.
- Test Report Generator: Runs test suites with coverage and compiles comprehensive markdown reports.
- Batch Test Creator: Automates the generation of multiple test files based on project context.
- QA Document Writer Integration: Delegates the creation of test strategy documents.
- QA Coder Integration: Delegates the writing of actual test files.
Model Behavior & Tool Accessโ
Capability | Status |
---|---|
Read files | โ |
Write files | โ (test files, reports, config files) |
Execute commands | โ (within secure scope for testing) |
Evaluate code | โ |
Use external documentation | โ (via RAG MCP) |
Manage QA workflow | โ |
Preferred Models:โ
GPT-4.5 / Claude 3 Sonnet (Test strategy & report generation) Claude 3 Opus / Gemini 1.5 Pro (Test file generation & code evaluation)
Scopeโ
โ In Scope
- Automated test environment setup (Godspeed, Express, etc.)
- Generation of unit, functional, and integration tests.
- Comprehensive test reporting (coverage, status).
- Bulk test file generation for large codebases.
- Integration with PRD/TRD for test stub creation.
- Guidance on best practices for testing.
โ Out of Scope
- Manual testing execution or human QA simulation.
- Direct modification of production code (only test files are generated/modified).
- Persistent session storage for test results (reports are generated as files).
- Live deployment or CI/CD pipeline management.
- Deep-dive debugging of application logic (refer to Debug mode).
Embedded Behaviorsโ
- Initiates conversations by offering clear task options (Setup, Write Single, Generate Report, Write Multiple).
- Guides users through necessary inputs (e.g.,
.env
updates, PRD provision). - Automatically detects project framework for tailored test setup.
- Updates
qa-context.json
to track testing progress. - Provides clear completion messages for each task.
๐ Workflow Integration Stores test reports in:
docs/test/<type>/reports/YYYY-MM-DD-HHMM.md
Manages test progress and metadata in:
qa-context.json
Leverages:โ
qa-document-writer
for test strategy documents.qa-coder
for actual test file generation.rag-node
MCP for testing best practices and framework-specific guidance.command
group to execute test suites and manage files.
Safety Featuresโ
- All commands run in a restricted, sandboxed shell.
- Emphasizes mandatory
.env
file updates to prevent production data impact. - AI seeks explicit confirmation before making significant changes.
- User code execution for testing is isolated and guarded.
Shortcut to Activateโ
Mac: โ + .
Windows/Linux: Ctrl + .
Related Modesโ
/debug: For troubleshooting and error diagnosis. /code: For writing and modifying application code. /orchestrator: For managing complex, multi-step projects. /pmlead: For product strategy and requirements definition.
Author Notesโ
This mode transforms Saarthi into a powerful QA automation partner, simplifying the often complex and time-consuming process of setting up and maintaining a robust testing suite. By orchestrating specialized agents, it provides a seamless experience for developers to ensure code quality and reliability, especially within the Godspeed framework.
๐ QA Document Writer
The QA Document Writer AI agent is responsible for generating comprehensive and actionable test strategy documents for specific functions, as assigned by the QA Lead Engineer.
Overviewโ
This mode focuses on creating detailed test strategy documents, including unit and functional test strategies. It follows strict templates and logic to ensure standardized and high-quality documentation, which then serves as a blueprint for the QA Coder.
Primary Use Casesโ
- Generating unit test strategy documents.
- Generating functional test strategy documents.
- Documenting test cases and expected outcomes.
Example Promptsโ
(This mode is typically invoked internally by QA Lead Engineer, not directly by user)
Internal Capabilities / Agentsโ
- Strategy Template Engine: Applies predefined templates for different test types.
- Test Case Generator: Creates detailed test cases based on function/feature descriptions.
Model Behavior & Tool Accessโ
Capability | Status |
---|---|
Read files | โ |
Write files | โ (test strategy documents) |
Execute commands | โ |
Evaluate code | โ |
Use external documentation | โ (via RAG MCP) |
Manage documentation flow | โ |
Preferred Models:โ
GPT-4.5 / Claude 3 Sonnet (Document generation)
Scopeโ
โ In Scope
- Creation of unit test strategy documents.
- Creation of functional test strategy documents.
- Adherence to internal documentation standards.
โ Out of Scope
- Writing actual test code (refer to QA Coder).
- Executing tests or generating reports.
- Direct user interaction (primarily an internal agent).
Embedded Behaviorsโ
- Receives instructions from QA Lead Engineer.
- Generates markdown files for test strategies.
- Ensures consistency in documentation format.
๐ Workflow Integration Stores test strategy documents in:
docs/test/strategies/<function_name>.md
Leverages:โ
rag-node
MCP for best practices in test documentation.
Safety Featuresโ
- Operates within a restricted scope, only generating documentation.
- No direct access to modify application code or execute commands.
Shortcut to Activateโ
(This mode is typically invoked internally by QA Lead Engineer, not directly by user)
Related Modesโ
/qa-lead-engineer: Orchestrates this mode. /qa-coder: Consumes the output of this mode.
Author Notesโ
The QA Document Writer ensures that every test written has a solid, well-documented strategy behind it, promoting clarity, consistency, and maintainability in the testing process.
๐งช QA Coder
The QA Coder AI agent is responsible for generating high-quality, maintainable test files for specific functions, based on the test strategy provided by the QA Document Writer.
Overviewโ
This mode focuses on translating test strategies into executable test code. It implements test cases, handles mocking, and ensures that the generated tests are robust and adhere to coding standards.
Primary Use Casesโ
- Writing unit test files.
- Writing functional test files.
- Implementing test cases with appropriate assertions.
- Setting up mocks and stubs for dependencies.
Example Promptsโ
(This mode is typically invoked internally by QA Lead Engineer, not directly by user)
Internal Capabilities / Agentsโ
- Test Code Generator: Translates test strategies into code.
- Mocking Handler: Integrates mocking libraries and patterns.
- Assertion Builder: Creates appropriate assertions for test cases.
Model Behavior & Tool Accessโ
Capability | Status |
---|---|
Read files | โ |
Write files | โ (test files) |
Execute commands | โ (for test execution) |
Evaluate code | โ |
Use external documentation | โ (via RAG MCP) |
Manage code generation flow | โ |
Preferred Models:โ
Claude 3 Opus / Gemini 1.5 Pro (Code generation & test execution)
Scopeโ
โ In Scope
- Writing unit test files based on provided strategies.
- Writing functional test files based on provided strategies.
- Implementing test cases and assertions.
- Handling mocking and dependency injection for tests.
โ Out of Scope
- Defining test strategies (refer to QA Document Writer).
- Generating test reports (refer to QA Lead Engineer).
- Direct user interaction (primarily an internal agent).
Embedded Behaviorsโ
- Receives test strategy from QA Lead Engineer.
- Generates test files in the appropriate project structure.
- Ensures generated code is clean, readable, and maintainable.
๐ Workflow Integration Stores test files in:
tests/<type>/<function_name>.test.ts
Leverages:โ
rag-node
MCP for best practices in test coding and framework-specific testing.command
group for executing generated tests.
Safety Featuresโ
- Operates within a restricted scope, only generating test code.
- No direct access to modify production application code.
- Test execution is sandboxed and monitored.
Shortcut to Activateโ
(This mode is typically invoked internally by QA Lead Engineer, not directly by user)
Related Modesโ
/qa-lead-engineer: Orchestrates this mode. /qa-document-writer: Provides test strategies to this mode.
Author Notesโ
The QA Coder is the workhorse of the QA system, transforming strategic plans into concrete, executable tests. It ensures that the codebase is thoroughly tested, contributing significantly to the overall quality and stability of the project.