npx claudepluginhub montinou/triqual --plugin triqual-pluginWant just this skill?
Add to a custom plugin, then install with one command.
Get help with Triqual plugin features, workflows, and troubleshooting. Use when user asks how do I use triqual or needs guidance.
This skill uses the workspace's default tool permissions.
/help - Triqual Plugin Guide & Troubleshooting
Get guidance on using Triqual's test automation features, understand the workflow, and troubleshoot common issues.
Quick Start
/help # Show overview and available commands
/help skills # List all skills with descriptions
/help agents # List all agents and when to use them
/help workflow # Explain the recommended workflow
/help mcp # MCP server setup and troubleshooting
/help troubleshooting # Common issues and fixes
Topics
Overview (Default)
Display this comprehensive overview when no topic is specified:
# Triqual - Unified Test Automation Plugin
Triqual helps you create, run, and maintain Playwright tests with integrated
pattern documentation (Quoth) and test analytics (Exolar).
## Available Skills
| Skill | Command | Description |
|-------|---------|-------------|
| Initialize | `/init` | Set up Triqual for your project |
| Test (default) | `/test login` | Full autonomous explore → plan → generate → heal |
| Test (explore) | `/test --explore login` | Interactive browser exploration only |
| Test (ticket) | `/test --ticket ENG-123` | Generate tests from Linear tickets |
| Test (describe) | `/test --describe "..."` | Generate from user description |
| Check | `/check` | Lint tests for best practices |
| Rules | `/rules` | View best practice documentation |
| Help | `/help` | This help guide |
## Available Agents
| Agent | Trigger | Description |
|-------|---------|-------------|
| test-planner | `/test` start, Linear ticket | Creates run log with ANALYZE/RESEARCH/PLAN stages |
| test-generator | After test-planner | Generates test code from plan |
| test-healer | Test failures | Auto-fix failing tests |
| failure-classifier | "Is this a flake?" | Classify failure type |
| pattern-learner | Recurring patterns | Propose documentation updates |
## MCP Servers
| Server | Purpose | Tool Examples |
|--------|---------|---------------|
| Quoth | Pattern documentation | `quoth_search_index`, `quoth_read_doc` |
| Exolar | Test analytics | `query_exolar_data`, `perform_exolar_action` |
| triqual-context | Context building | `triqual_load_context` |
## Key Tool: triqual_load_context
Builds comprehensive context files before test planning:
- `triqual_load_context({ feature: "login" })` — build context for a feature
- `triqual_load_context({ feature: "login", ticket: "ENG-123" })` — include ticket details
- `triqual_load_context({ feature: "login", force: true })` — regenerate existing context
Output: `.triqual/context/{feature}/` with patterns, anti-patterns, codebase analysis, failures, etc.
## Quick Commands
- Start fresh: `/init`
- Explore a feature: `/test --explore login`
- Full autonomous: `/test login`
- Generate from ticket: `/test --ticket ENG-123`
- Check code quality: `/check`
Skills Topic
## Triqual Skills Reference
### /init
**Purpose**: Initialize Triqual for a new project or after major changes.
**When to use**:
- First time using Triqual in a project
- After restructuring test directories
- After updating Triqual plugin
**What it does**:
1. Analyzes project structure
2. Detects existing tests and patterns
3. Generates `triqual.config.ts` with type-safe configuration
4. Creates context files for personalized behavior
---
### /test {feature} (Unified Test Skill)
The unified `/test` skill combines exploration, ticket-based, description-based, and autonomous test generation.
#### Default Mode: `/test login`
**Purpose**: Full autonomous test generation with pattern learning.
**What it does**:
1. **SETUP**: Auto-config, load patterns, discover credentials
2. **EXPLORE**: Uses Playwright MCP to explore the feature
3. **PLAN**: Creates test plan using Quoth patterns
4. **GENERATE**: Produces .spec.ts in draft folder
5. **HEAL LOOP**: Runs tests, fixes failures (max 5 iterations)
6. **PROMOTE**: Moves passing tests to production location
7. **LEARN**: Saves patterns and anti-patterns for future runs
---
#### Explore Mode: `/test --explore login`
**Purpose**: Interactive browser exploration only.
**When to use**:
- Testing if a page loads correctly
- Debugging a specific interaction
- Exploring UI before writing permanent tests
- Taking screenshots for documentation
**What it does**:
- Opens visible browser (headless: false)
- Uses Playwright MCP for real-time exploration
- Does NOT generate test files
---
#### Ticket Mode: `/test --ticket ENG-123`
**Purpose**: Generate tests from Linear ticket acceptance criteria.
**When to use**:
- Implementing tests for a new feature ticket
- Creating regression tests for a bug fix
- Following ticket-driven development
**What it does**:
1. Fetches ticket from Linear
2. Parses acceptance criteria
3. Creates test plan
4. Generates and heals tests
5. Provides PR instructions
---
#### Describe Mode: `/test --describe "user resets password"`
**Purpose**: Generate tests from a text description.
**When to use**:
- When you have clear test requirements
- No Linear ticket exists
- Quick test generation from description
**What it does**:
1. Uses the description as test requirements
2. Creates test plan
3. Generates and heals tests
---
### /check
**Purpose**: Lint test files for Playwright best practice violations.
**When to use**:
- Before committing new tests
- During code review
- When experiencing flaky tests
- As part of test maintenance
**What it does**:
1. Scans test files for violations
2. Reports issues by severity (ERROR/WARN/INFO)
3. Suggests fixes for each violation
4. Optionally applies auto-fixes
---
### /rules
**Purpose**: View comprehensive Playwright best practice documentation.
**When to use**:
- Learning Playwright patterns
- Understanding why a rule exists
- Finding the correct approach for a scenario
**What it provides**:
- 31 rules across 8 categories
- Examples of good and bad patterns
- Rationale for each rule
Agents Topic
## Triqual Agents Reference
### test-healer
**Purpose**: Automatically diagnose and fix failing Playwright tests.
**Triggered by**:
- User mentions "test failures", "failing tests", "flaky tests"
- User shares Playwright error output
- Post-test-run hook when failures detected
**What it does**:
1. Parses error message and stack trace
2. Identifies root cause from known patterns
3. Proposes specific fix
4. **Asks for approval before applying**
5. Verifies fix worked
**Common fixes**:
- Add `:visible` to ambiguous selectors
- Use `getTimeout()` for dynamic timeouts
- Add `.first()` for strict mode violations
- Clear stale auth state
---
### failure-classifier
**Purpose**: Classify test failures to guide appropriate action.
**Triggered by**:
- User asks "is this a flake or bug?"
- User wants to analyze failure patterns
- Post-test-run hook recommends it
**Classification types**:
- **FLAKE**: Intermittent, use test-healer
- **BUG**: Consistent failure, create ticket
- **ENV_ISSUE**: Infrastructure problem, check environment
- **TEST_ISSUE**: Test is incorrect, fix test
**What it does**:
1. Gathers failure data
2. Queries Exolar for history (if available)
3. Applies classification rules
4. Generates report with confidence level
5. Recommends next action
---
### pattern-learner
**Purpose**: Identify recurring patterns and propose Quoth documentation updates.
**Triggered by**:
- Same error appears across multiple tests
- A fix works successfully 3+ times
- User asks to "document this pattern"
**What it does**:
1. Identifies recurring failure/fix patterns
2. Validates pattern is generalizable
3. Checks if pattern already documented in Quoth
4. Proposes new pattern documentation
5. **Asks for approval before submitting**
Workflow Topic
## Recommended Triqual Workflow
### For New Projects
1. **Initialize**: `/init`
2. **Explore**: `/test --explore login` to understand the app
3. **Generate**: `/test login` or `/test --ticket ENG-123` for permanent tests
4. **Verify**: `/check` before committing
### For Existing Projects
1. **Audit**: `/check` to find violations
2. **Fix**: Address ERROR-level issues first
3. **Standardize**: Search Quoth for patterns to follow
### Daily Workflow
Start Session │ ▼ [Triqual] Session initialized (hook shows guidance) │ ▼ Writing tests? ──────────────────────────────────────┐ │ │ ▼ │ Search Quoth: quoth_search_index({ query: "..." }) │ │ │ ▼ │ Write test code │ │ │ ▼ │ [Triqual] Pre-write hook reminds about patterns │ │ │ ▼ │ Run tests: npx playwright test │ │ │ ▼ │ [Triqual] Post-run hook offers next steps │ │ │ ├── Tests passed? ── Done ─────────────────────┤ │ │ └── Tests failed? ── Fetch Exolar history ─────┤ │ │ ▼ │ failure-classifier ─────────┤ │ │ ▼ │ test-healer (if FLAKE) │ │ │ ▼ │ End Session ◄────────────────────────────────────────┘
### The Learning Loop
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │ QUOTH │ │ PLAYWRIGHT │ │ EXOLAR │ │ │ │ MCP │ │ │ │ Persisting │◀────────│ AI verifies │────────▶│ AI fetches │ │ live docs │ │ app behavior│ │ CI results │ └─────────────┘ └─────────────┘ └─────────────┘ ▲ │ │ │ │ │ └───────── pattern-learner (learns from both) ──┘
1. Search **Quoth** for patterns before writing
2. Execute tests with **Playwright MCP**
3. Fetch history from **Exolar** on failures
4. **pattern-learner** proposes updates to Quoth
5. Cycle continues, improving over time
MCP Topic
## MCP Server Configuration
### Servers Auto-Installed
Triqual automatically configures these MCP servers via `.mcp.json`:
| Server | URL | Auth |
|--------|-----|------|
| quoth | https://quoth.triqual.dev/api/mcp | OAuth |
| exolar-qa | https://exolar.triqual.dev/api/mcp/mcp | OAuth |
### Checking MCP Status
Run `/mcp` to see connected servers and authenticate if needed.
### Quoth Tools
| Tool | Purpose |
|------|---------|
| `quoth_search_index` | Search for patterns |
| `quoth_read_doc` | Read full document |
| `quoth_guidelines` | Get coding guidelines |
| `quoth_propose_update` | Propose new pattern |
**Example**:
mcp__quoth__quoth_search_index({ query: "playwright login pattern" })
### Exolar Tools
| Tool | Purpose |
|------|---------|
| `query_exolar_data` | Query test data |
| `perform_exolar_action` | Report results |
| `get_semantic_definition` | Get field definitions |
**Example**:
mcp__exolar-qa__query_exolar_data({ dataset: "test_history", filters: { test_name: "login" } })
### Troubleshooting MCP
**"MCP not connected"**:
1. Run `/mcp` to check status
2. Click authenticate link for each server
3. Complete OAuth flow
4. Refresh Claude session
**"Quoth search returns empty"**:
1. Verify OAuth completed
2. Check query is relevant
3. Try broader search terms
**"Exolar query fails"**:
1. Check project_id in triqual.config.ts
2. Verify Exolar OAuth completed
3. Check dataset name is correct
Troubleshooting Topic
## Troubleshooting Common Issues
### Hooks Not Triggering
**Symptoms**: No [Triqual] messages appear
**Solutions**:
1. Verify plugin is installed: Check `/plugins`
2. Check hook scripts are executable:
```bash
chmod +x triqual-plugin/hooks/*.sh
- Check hooks.json syntax
- Set
TRIQUAL_DEBUG=trueand check stderr
Session State Issues
Symptoms: Hints keep repeating, stats don't track
Solutions:
- Delete stale session:
rm -rf ~/.cache/triqual/ - Restart Claude session
Tests Keep Failing
Symptoms: Tests fail despite fixes
Steps:
- Run
/checkto find violations - Run failure-classifier to understand why
- Check if dev server is running
- Verify auth state is fresh
Quoth/Exolar Not Working
Symptoms: "MCP not connected" or searches fail
Solutions:
- Run
/mcpto check status - Re-authenticate via OAuth
- Check network connectivity
- Verify URLs in .mcp.json
Config File Issues
Symptoms: Wrong paths, missing settings
Solutions:
- Re-run
/init --force - Manually edit
triqual.config.ts - Check paths are relative to project root
Auto-Fixes Not Working
Symptoms: check-rules finds issues but fixes fail
Solutions:
- Some fixes require manual code changes
- Check file permissions
- Ensure file paths are correct
## Output Format
When displaying help, use clear markdown formatting with:
- Section headers for organization
- Tables for quick reference
- Code blocks for examples
- Bullet points for lists
Adjust detail level based on topic:
- Overview: High-level, all features
- Specific topic: Detailed with examples