Analyzes existing test architecture and user instructions to extract framework, structure, patterns, and standards for guiding test integration.
Ships in core. Installing the plugin adds it to Claude Code.
Understand existing test architecture, identify reusable components, and determine where new test should be integrated.
Actions:
agents/user-app/project_description.md fileExpected Output: Understanding of project standards and structure.
Actions:
agents/user-instructions/ directoryExpected Output: Extracted user instructions documented and ready to apply in test creation.
Note: If agents/user-instructions/ directory does not exist or is empty, skip this task and proceed to Task 2. Document that no user instructions files were found.
Actions:
Use: Glob to check for refsrc/tools-st-frontend/
refsrc/tools-st-frontend/src/data-testid, data-test, or test-id attributesid and className patterns### Frontend Code Analysis
#### Component: DashboardComponent (refsrc/tools-st-frontend/src/features/dashboard/Dashboard.tsx)
- data-testid attributes: "welcome-message", "dashboard-title"
- Props: { userName: string, notifications: number }
- API calls: fetchDashboardData()
- Related components: NotificationBell, UserProfile
#### Component: SettingsPage (refsrc/tools-st-frontend/src/features/settings/SettingsPage.tsx)
- data-testid attributes: "email-input", "save-button"
- Form fields: email, notifications, preferences
Expected Output: Understanding of UI implementation and available test identifiers.
Actions:
Use: Glob or Grep to find Page Object files
Example patterns: "**/pages/**", "**/page-objects/**", "**/*Page.*"
### Existing Page Objects
#### LoginPage (src/pages/LoginPage.ts)
- Selectors: username, password, loginButton, errorMessage
- Methods: login(), isErrorDisplayed()
- Relevance: Needed for test setup
#### DashboardPage (src/pages/DashboardPage.ts)
- Selectors: welcomeMessage, menuButton, userProfile
- Methods: navigateToProfile(), getWelcomeText()
- Relevance: Main test target
#### Missing Page Objects:
- SettingsPage (needed for test, does not exist)
Expected Output: Complete inventory of relevant Page Objects and gaps.
Actions:
Use: Grep or SemanticSearch to find related tests
Search for: feature names, page names, similar actions
### Similar Tests
#### tests/auth/login.test.ts
- Tests: User login flow
- Pattern: Setup -> Action -> Assert -> Cleanup
- Uses: LoginPage, DashboardPage
- Similarity: Uses same pages, similar flow
#### tests/dashboard/navigation.test.ts
- Tests: Dashboard navigation
- Pattern: Login setup -> Multiple navigation assertions
- Uses: DashboardPage, utility helpers
- Similarity: Similar assertion style
### Recommended Test Location
- File: tests/dashboard/user-profile.test.ts (new file)
- Reason: New feature area, logical grouping
- Alternative: Add to tests/dashboard/navigation.test.ts if test is small
Expected Output: Understanding of existing test patterns and determined location for new test.
Actions:
Use: Glob to find utility files
Patterns: "**/utils/**", "**/helpers/**", "**/lib/**"
### Reusable Utilities
- `utils/test-helpers.ts`
- `loginAsUser(username, password)`: Automates login
- `waitForPageLoad()`: Smart page load wait
- `utils/assertions.ts`
- `expectElementVisible(selector)`: Custom visibility assertion
- `expectTextContains(element, text)`: Text assertion helper
- `utils/test-data.ts`
- `generateUser()`: Creates test user data
Expected Output: List of utilities that should be reused in new test.
Actions:
## Phase 3: Code Analysis
### Project Information
- Framework: [e.g., Playwright with TypeScript]
- Test Location: [Directory path]
- Naming Convention: [Pattern]
### Frontend Code Analysis (if available)
- Frontend Source: refsrc/tools-st-frontend/
- Components Analyzed: [List]
- Available data-testid attributes: [List]
- Component Props: [Relevant props]
- UI Flow: [Brief description]
### Common User Instructions
- Source: `agents/user-instructions/` (all files)
- Must Follow: [List critical instructions]
- Should Follow: [List important preferences]
- Nice to Have: [List optional preferences]
- Application: These instructions MUST be applied during test implementation (Phase 6)
### Existing Page Objects
[List with relevance]
### Page Objects to Create/Extend
- [List missing Page Objects]
- [List Page Objects needing new selectors]
### Similar Tests
[List with file paths and similarity notes]
### Recommended Test Location
- File: [Path]
- Reason: [Why]
### Reusable Utilities
[List utilities to import and use]
### Coding Patterns to Follow
- Test structure: [Pattern]
- Naming: [Convention]
- Assertions: [Style]
- User Instructions: [Apply user instructions from agents/user-instructions/]
Expected Output: Test plan enhanced with architecture understanding.
agents/user-app/project_description.md read and understoodagents/user-instructions/ read and understood (if directory exists)agents/aqa-state.md updated with Phase 3 completionAfter completing Phase 3, update agents/aqa-state.md:
### Phase 3: Code Analysis
- Completed: [DateTime]
- User Instructions Directory: [Found/Not Found, files list if found]
- User Instructions Applied: [Yes/No, summary if yes]
- Existing Page Objects: [Count and list]
- Page Objects to Create: [Count and list]
- Similar Tests: [File paths]
- Test Location: [Directory/File decision]
- Framework: [Name and version]
Mark Phase 3 as completed and Phase 4 as current.
Proceed to Phase 4: Selector Identification by executing:
ACQUIRE aqa-flow-selector-identification.md FROM KB
agents/user-instructions/ MUST be applied during test implementation (Phase 6)What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
/griddynamics-core-instructions-r2-core:aqa-flow-code-analysisfrom core
Generated from the plugin's indexed repository (griddynamics/rosetta) — no native marketplace selected
npx claudepluginhub p/griddynamics-core-instructions-r2-core43 commands in this plugin
/aqa-flow-requirements-clarificationPhase 2 Requirements Clarification of aqa-flowOther plugins' commands for the same job