architect
Architectural design session - analyze requirements, propose architecture, create design docs
Design test coverage strategy with test-architect guidance
$ npx -y skills add cloudai-x/opencode-workflow --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/test-designContext preview
What this command does when you run it.
Design test coverage strategy with test-architect guidance
description: Design test coverage strategy with test-architect guidance agent: test-architect subtask: true
Plan comprehensive test coverage strategy for new or existing code using the test-architect subagent.
Analyze what needs testing:
1. If `$ARGUMENTS` provided, focus on specified files/features 2. Read the target code and understand:
Determine appropriate test distribution:
/\
/ \ E2E Tests (Few)
/----\ - Critical user journeys
/ \ - Cross-system validation
/--------\
/ \ Integration Tests (Some)
/ \ - API contracts
/ \ - Database interactions
/----------------\ - External service mocks
/ \
/ Unit Tests \ (Many)
/ (Foundation) \
/----------------------\For each identified test target, design:
Feature: [Feature Name] Scenario: [Scenario Description] Given: [Initial State] When: [Action Taken] Then: [Expected Outcome] Edge Cases: - [Edge case 1] - [Edge case 2] Error Cases: - [Error scenario 1] - [Error scenario 2]
Detect existing test infrastructure:
If no test framework exists, recommend one based on:
Test Coverage Strategy ====================== Target: [Feature/Module being tested] Test Distribution: ------------------ Unit Tests: [X tests planned] Integration Tests: [Y tests planned] E2E Tests: [Z tests planned] Detailed Test Cases: -------------------- ## Unit Tests ### [Function/Method Name] 1. Test: [Description] - Input: [input] - Expected: [output] - Rationale: [why this test matters] 2. Test: [Description] ... ## Integration Tests ### [API Endpoint / Integration Point] 1. Test: [Description] - Setup: [required state] - Action: [HTTP call / operation] - Verify: [expected response/state] ## E2E Tests ### [User Journey Name] 1. Steps: - Navigate to [page] - Perform [action] - Verify [outcome] Implementation Priority: ------------------------ 1. [High priority - covers critical path] 2. [Medium priority - covers edge cases] 3. [Lower priority - nice to have] Estimated Coverage: ------------------- Lines: [X%] Branches: [Y%] Functions: [Z%] Mocking Requirements: --------------------- - [External service 1]: Mock with [strategy] - [Database]: Use [in-memory / test container] Test Data Requirements: ----------------------- - [Fixture 1]: [description] - [Fixture 2]: [description]
1. **Test behavior, not implementation** - Tests should verify outcomes 2. **One assertion per test** - Keep tests focused 3. **Descriptive test names** - Should read like documentation 4. **Arrange-Act-Assert** - Clear test structure 5. **Isolated tests** - No shared state between tests 6. **Fast feedback** - Unit tests should run in milliseconds
A universal OpenCode workflow setup with specialized agents, skills, commands, and plugins for any software project.
Architectural design session - analyze requirements, propose architecture, create design docs
Learning and teaching mode - explains decisions, provides context, educational approach
Demonstrate parallel execution by launching multiple agents simultaneously