api-integration-test-scaffolder
БесплатноБез исполняемых скриптовНе проверенGenerates integration tests for frontend → backend → Genkit flow connections. Use when creating E2E API tests.
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
API Integration Test Scaffolder Workflow
This skill creates comprehensive integration tests that validate the complete data flow from frontend to backend to AI flows.
Workflow Steps
Identify integration to test:
- Ask for frontend service function (e.g.,
aiServices.generateKscResponses) - Find corresponding backend endpoint
- Identify associated Genkit flow (if any)
- Determine test scenario (success, validation, error)
- Ask for frontend service function (e.g.,
Generate integration test file:
- Read template:
.claude/skills/api-integration-test-scaffolder/templates/integration_test.py.tpl - Replace placeholders:
{{TEST_NAME}}- Descriptive test name{{ENDPOINT_PATH}}- API endpoint path{{REQUEST_DATA}}- Sample request payload{{EXPECTED_RESPONSE}}- Expected response structure{{GENKIT_FLOW}}- Associated Genkit flow name
- Write to:
backend/app/tests/integration/test_{{feature_name}}_integration.py
- Read template:
Include test scenarios:
- ✅ Happy path: Valid request → successful response
- ⚠️ Validation: Invalid data → 422 validation error
- 🔒 Authentication: Unauthorized → 401 error
- ❌ Error handling: Server error → 500 with proper message
- 🔄 Genkit flow: Verify flow execution and caching
- 📊 Response validation: Type checking, required fields
Add mock setup:
- Mock Firebase Auth dependencies
- Mock Genkit flow responses (optional)
- Mock external services (email, storage, etc.)
- Set up test database/Firestore
Report success:
- Show test file path
- Display test coverage (scenarios included)
- Provide command to run tests
- Show example test execution output
Template Structure
# backend/app/tests/integration/test_{{FEATURE}}_integration.py
import pytest
from httpx import AsyncClient
from unittest.mock import AsyncMock, patch
from app.main import app
from app.models.{{MODEL}} import {{REQUEST_MODEL}}, {{RESPONSE_MODEL}}
@pytest.fixture
async def async_client():
async with AsyncClient(app=app, base_url="http://test") as client:
yield client
class Test{{FEATURE}}Integration:
\"\"\"Integration tests for {{FEATURE}} frontend → backend → flow.\"\"\"
@patch("app.core.dependencies.get_current_user")
async def test_complete_flow_success(self, mock_auth, async_client):
# Test implementation
pass
# Additional test methods...
Example Usage
User: Create an integration test for the KSC generation feature
Assistant: I'll create a comprehensive integration test...
Files created:
- backend/app/tests/integration/test_ksc_generation_integration.py
Test scenarios included:
✅ Happy path: Valid job description → KSC responses
⚠️ Validation: Empty job description → 422 error
🔒 Authentication: No auth token → 401 error
🔄 Genkit flow: Verify generateKscResponse flow execution
📊 Response validation: Check response structure and types
Run tests:
pytest backend/app/tests/integration/test_ksc_generation_integration.py -v
Установить api-integration-test-scaffolder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл api-integration-test-scaffolder?
Generates integration tests for frontend → backend → Genkit flow connections. Use when creating E2E API tests.
Как установить скилл api-integration-test-scaffolder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-integration-test-scaffolder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic