agent-browser-automatiโฆ
Automate browser interactions for development testing using Puppeteer MCP
Intelligent integration orchestrator for services, APIs, databases, and tools with error handling and monitoring
How it fires
How this command gets triggered: by you, by Claude, or both.
/integrateContext preview
What this command does when you run it.
Intelligent integration orchestrator for services, APIs, databases, and tools with error handling and monitoring
allowed-tools: Task, Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(eza:*), Bash(bat:*), Bash(jq:*), Bash(gdate:*), Bash(docker:*), Bash(kubectl:*), Bash(curl:*), Bash(git:*) name: "Integrate" description: "Intelligent integration orchestrator for services, APIs, databases, and tools with error handling and monitoring" author: "wcygan" tags: ["workflow","manage"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize integration session and analyze existing architecture
# Initialize integration session state
echo '{
"sessionId": "'$SESSION_ID'",
"integrationTarget": "'$ARGUMENTS'",
"existingIntegrations": [],
"integrationPattern": "auto-detect",
"securityProfile": "production"
}' > /tmp/integration-session-$SESSION_ID.jsonSTEP 2: Comprehensive integration analysis with parallel sub-agent coordination
TRY:
IF integration_complexity == "multi-service" OR target_includes_multiple_systems:
LAUNCH parallel sub-agents for comprehensive integration analysis:
ELSE:
EXECUTE streamlined single-service integration analysis:
# Single-service integration analysis
echo "๐ Analyzing single-service integration requirements for: $ARGUMENTS"
# Identify existing patterns
rg "(http|https|api|client|sdk)" --type-add 'config:*.{json,yaml,toml}' --type config
fd "(client|connector|adapter|integration)" --type f
# Check for credentials and configuration
rg "(API_KEY|CLIENT_ID|SECRET|TOKEN)" .env* --no-ignore 2>/dev/null || echo "No credential files found"
rg "(endpoint|baseUrl|host|url)" --type-add 'config:*.{json,yaml,toml}' --type config
# Find current integration patterns
rg "(fetch|axios|request|WebClient|http\.)" -A 2 -B 1STEP 3: Intelligent integration pattern selection and implementation
CASE integration_type: WHEN "api_integration":
**REST API Integration (TypeScript/Deno optimized):**
// api-integration.ts
interface APIConfig {
baseUrl: string;
apiKey?: string;
timeout?: number;
retryAttempts?: number;
}
class APIIntegration {
constructor(private config: APIConfig) {}
async request<T>(endpoint: string, options: RequestInit = {}): Promise<T> {
const url = `${this.config.baseUrl}${endpoint}`;
const headers = {
"Content-Type": "application/json",
...(this.config.apiKey && { "Authorization": `Bearer ${this.config.apiKey}` }),
...options.headers,
};
let lastError: Error | null = null;
for (let attempt = 0; attempt < (this.config.retryAttempts || 3); attempt++) {
try {
const response = await fetch(url, {
...options,
headers,
signal: AbortSignal.timeout(this.config.timeout || 30000),
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}: ${response.statusText}`);
}
return await response.json();
} catch (error) {
lastError = error as Error;
if (attempt < (this.config.retryAttempts || 3) - 1) {
await new Promise((resolve) => setTimeout(resolve, Math.pow(2, attempt) * 1000));
}
}
}
throw lastError;
}
}WHEN "database_integration":
**Database Integration (Multi-database support):**
// database-integration.ts
import { ClieA lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies