seed-forge/harness-ai-kit/devlab-integration-fullstack

Claude Code and agent skill by seed-forge/harness-ai-kit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

全栈集成测试专家技能。支持多服务 Docker Compose 部署场景,基于 Testcontainers + Mock Server 实现端到端集成测试。

Install

npx vskill@latest install seed-forge/harness-ai-kit/devlab-integration-fullstack

SKILL.md

The same SKILL.md was published earlier as seed-forge/harness-ai-kit/devlab-integration-fullstack.

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)
}));
const dependencies = this.extractDependencies(services, configs);
return { services, dependencies };
}
extractDependencies(services: Service[], configs: any[]): Dependency[] {
const deps: Dependency[] = [];
configs.forEach(config => {
// HTTP dependencies
if (config.services?.forEach((target: string) => {
deps.push({
from: config.name,
to: target,
protocol: 'http',
pattern: 'sync'
});
}));
// Message queue dependencies
if (config.topics?.length > 0) {
config.topics.forEach(topic => {
deps.push({
from: config.name,
to: topic,
protocol: 'message',
pattern: 'async'
});
});
}
});
return deps;
}
}
Step 1.2: 业务流程规格生成
markdown
# specs/workflows/order-processing.md
## Feature: Order Processing Workflow
### User Story
As a customer, I want to place an order so that I can purchase products.
### System Components Involved
| Component | Role | Type |
|-----------|------|------|
| frontend-app | UI layer | api |
| auth-service | User authentication | api |
| cart-service | Shopping cart management | api |
| inventory-service | Stock verification & reservation | api |
| payment-service | Payment processing | api |
| order-service | Order creation & tracking | api |
| email-worker | Confirmation emails | worker |
| kafka-events | Event bus | message |
### Success Flow
1.**User adds item to cart**
```
frontend -> cart-service: POST /cart/items
cart-service -> auth-service: GET /users/{id}
cart-service returns: Cart with item
```
2.**Checkout initiation**
```
frontend -> cart-service: POST /cart/checkout
cart-service -> inventory-service: POST /verify-stock
inventory-service confirms: Stock available
```
3.**Payment processing**
```
frontend -> payment-service: POST /payments
payment-service -> order-service: POST /orders (create pending)
payment-service processes card: External gateway
payment-service -> order-service: PUT /orders/{id}/confirm
```
4.**Inventory reservation**
```
inventory-service -> kafka: PUBLISH "order.created"
email-worker consumes: "order.confirmed"
```
5.**Confirmation**
```
email-worker sends email
frontend shows success page
```
### Error Handling Scenarios
| Error | Source | Recovery | Expected Outcome |
|-------|--------|----------|------------------|
| Insufficient stock | inventory-service | Cancel order, refund deposit | Order cancelled |
| Payment failed | payment-service | Allow retry or cancel | Retry allowed |
| Auth token expired | auth-service | Force re-login | Session restored |
### Data Contracts
**Order Creation Request:**

{ "cartId": "uuid", "shippingAddress": {...}, "paymentMethod": { "type": "card", "token": "tok_xxx" }, "promoCode": "SAVE10" // optional }

**Order Confirmation Response:**

{ "orderId": "uuid", "status": "confirmed", "totalAmount": 129.99, "estimatedDelivery": "2026-07-25T10:00:00Z", "trackingNumber": "TRK123456789" }


Phase 2: 端到端测试代码生成

输入:

  • specs/workflows/*.md 业务规格
  • Seed 数据模板

输出:

  • tests/e2e/workflows/*.spec.ts
  • tests/integration/cross-service/*.spec.ts
  • tests/fixtures/setup.ts
Step 2.1: 全局环境配置
typescript
// tests/global-setup.ts
import { test as setup } from '@playwright/test';
import { TestContainers } from 'testcontainers';
setup('prepare global fixtures', async () => {
// Start containers once per suite
await TestContainers.start();
// Setup database schema
await setupDatabase();
// Seed initial data
await seedTestData();
});
setup.afterAll(async () => {
// Cleanup containers
await TestContainers.stop();
});
Step 2.2: Mock Server 配置
typescript
// tests/mocks/api-helpers.ts
import { setupServer } from 'msw/node';
import { rest } from 'msw';
export function createExternalAPIMocks() {
return setupServer(
// Mock payment gateway
rest.post('https://api.stripe.com/v1/charges', async (req, res, ctx) => {
const body = await req.json();
// Simulate random payment failures (5%)
if (Math.random() < 0.05) {
return res(
ctx.status(402),
ctx.json({ error: { message: 'Card declined' } })
);
}
return res(
ctx.status(200),
ctx.json({
id: 'ch_' + Math.random().toString(36).substr(2, 9),
status: 'succeeded',
amount: body.amount
})
);
}),
// Mock SMS notification
rest.post('https://api.twilio.com/2010-04-01/Accounts/*/Messages', (req, res, ctx) => {
return res(
ctx.status(201),
ctx.json({ sid: 'SM' + Math.random().toString(36).substr(2, 9) })
);
})
);
}
// In test file
import { createExternalAPIMocks } from '../mocks/api-helpers';
const externalMocks = createExternalAPIMocks();
beforeAll(() => externalMocks.listen());
afterEach(() => externalMocks.resetHandlers());
afterAll(() => externalMocks.close());
Step 2.3: 跨服务工作流程测试
typescript
// tests/e2e/workflows/order-processing.spec.ts
import { test, expect } from '../../fixtures';

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
25
Repository forks
2
7-day trend score
16

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/seed-forge/harness-ai-kit/devlab-integration-fullstack/badge)](https://verified-skill.com/skills/seed-forge/harness-ai-kit/devlab-integration-fullstack)

Something wrong with this skill or its page? Tell us.