brewcode:e2e
Orchestrates end-to-end testing workflow — sets up specialized agents, creates BDD scenarios, writes Playwright autotests, and runs quorum reviews. Modes: setup, create, update, review, rules, status. Triggers: e2e tests, end-to-end, BDD scenarios, write autotest, playwright e2e, create scenario, review e2e, e2e setup.
What this skill does
<instructions>
# E2E Testing
Full-cycle E2E testing orchestration: setup agents, create BDD scenarios, write autotests, quorum review.
**Arguments:** `$ARGUMENTS`
---
## Phase 0: Parse Arguments
**EXECUTE** using Bash tool:
```bash
bash "${CLAUDE_SKILL_DIR}/scripts/detect-mode.sh" "$ARGUMENTS" && echo "OK" || echo "FAILED"
```
Output: `MODE:xxx` and optionally `PROMPT:xxx`. Store both.
> **STOP if FAILED** -- fix detect-mode.sh before continuing.
---
## Phase 1: Display Detection
Output detection result:
```
Mode: {MODE}
Prompt: {PROMPT or "none"}
```
---
## Phase 2: Load Mode Reference
Read the mode-specific reference file:
| MODE | Reference File |
|------|---------------|
| setup | `${CLAUDE_SKILL_DIR}/references/mode-setup.md` |
| create | `${CLAUDE_SKILL_DIR}/references/mode-create.md` |
| update | `${CLAUDE_SKILL_DIR}/references/mode-update.md` |
| review | `${CLAUDE_SKILL_DIR}/references/mode-review.md` |
| rules | `${CLAUDE_SKILL_DIR}/references/mode-rules.md` |
| status | `${CLAUDE_SKILL_DIR}/references/mode-status.md` |
Also load core references (always):
- `${CLAUDE_SKILL_DIR}/references/e2e-rules.md` -- rules for all agents
- `${CLAUDE_SKILL_DIR}/references/e2e-architecture.md` -- architecture reference
> **STOP if mode reference not found** -- report missing file.
---
## Phase 3: Execute Mode Flow
Follow the loaded mode reference step by step. Pass PROMPT as context where indicated.
**Common patterns across all modes:**
### Prerequisite Check (all modes except setup and status)
`.claude/agents/e2e-*.md` count must be >=3. If not -> "Run `/brewcode:e2e setup` first." STOP.
Status mode reports missing infrastructure instead of blocking.
### Review Cycle (create, update modes)
MAX_CYCLES=3. Pattern: execute -> reviewer validates -> different agent re-checks -> fix confirmed -> repeat.
### Agent Dispatch
All agent work through Task tool. Spawn parallel agents in ONE message when possible.
### User Interaction
AskUserQuestion at every key decision point. PROMPT is initial context, not a replacement for confirmation.
---
## Error Handling
| Condition | Action |
|-----------|--------|
| Rules file missing | "E2E rules not found at `${CLAUDE_SKILL_DIR}/references/`. Re-install plugin." STOP |
| Agents missing (non-setup/status mode) | "Run `/brewcode:e2e setup` first." STOP |
| Config missing (non-setup mode) | "Run `/brewcode:e2e setup` first." STOP |
| Review cycle limit (3) reached | AskUserQuestion with remaining issues |
| Compilation fails after fix | Report to user, suggest manual intervention |
| Agent refuses task | Re-assign to suggested colleague, max 2 retries |
---
## Output Format
```markdown
# e2e [{MODE}]
## Detection
| Field | Value |
|-------|-------|
| Arguments | `{raw args}` |
| Mode | `{MODE}` |
| Prompt | `{PROMPT or none}` |
## Results
{Mode-specific output}
## Next Steps
- {recommendations based on mode}
```
</instructions>
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.