devlab-integration-fullstacklisted
Install: claude install-skill seed-forge/harness-ai-kit
# Full Stack Integration Testing Expert Skill
**专注前后端混合架构的端到端业务流程验证能力。**
覆盖微服务联动、消息队列集成、分布式事务补偿等复杂场景。
---
## 触发条件
当用户提到以下关键词时触发此 Skill:
- "全栈集成测试" / "full stack integration test"
- "微服务端到端流程" / "microservice end-to-end workflow"
- "跨服务数据流" / "cross-service data flow"
- "事件驱动架构测试" / "event-driven architecture testing"
- "分布式事务验证" / "distributed transaction validation"
---
## 技术栈依赖
### 核心 CLI
```bash
# E2E Testing
npm install -D @playwright/test
# Backend Testing
npm install -D jest supertest
# Infrastructure (Testcontainers)
npm install -D @testcontainers/postgresql @testcontainers/redis
```
### AI Agent 初始化
```bash
npx playwright init-agents --loop=claude
```
---
## 功能范围
### Phase 1: 跨服务业务流程映射
**输入**:
- 系统架构图(C4 模型或类似)
- API 契约文档
- 业务流程描述(User Journey)
**输出**:
- `specs/workflows/*.md` — 业务流程规格
- `specs/data-flow.md` — 数据流图谱
- `specs/error-handling.md` — 异常处理场景
#### Step 1.1: 服务拓扑分析
```typescript
// services/service-graph-analyzer.ts
interface Service {
id: string;
name: string;
type: 'api' | 'worker' | 'scheduler';
endpoints?: Endpoint[];
}
interface Dependency {
from: string;
to: string;
protocol: 'http' | 'grpc' | 'message';
pattern: 'sync' | 'async' | 'saga';
}
class ServiceGraphAnalyzer {
analyze(configs: any[]): { services: Service[], dependencies: Dependency[] } {
const services = config.map(c => ({
id: c.name,
name: c.displayName,
type: this.determineType(c),
endpoints: this.extractEndpoints(c)
}));