Agent skill · software engineering · aiskillstore
happyflow-generator
Automatically generate and execute Python test scripts from OpenAPI specifications and GraphQL schemas with enhanced features
Why this skill is useful
Adds executable scripts for generating and executing Python test scripts from API specifications, which are not commonly available in public documentation.
What it needs
Requires python, pyyaml, requests installed locally. About 7k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
HappyFlow Generator Skill Metadata Skill Name: HappyFlow Generator Version: 2.0.0 Category: API Testing & Automation Required Capabilities: Code execution, web requests, file operations Estimated Duration: 2-5 minutes per API spec Difficulty: Intermediate Description Automatically generate and execute Python test scripts from OpenAPI specifications and GraphQL schemas that successfully call all API endpoints in dependency-correct order, ensuring all requests return 2xx status codes. Input: OpenAPI/GraphQL spec (URL/file) + authentication credentials Output: Working Python script that executes complete API happy path flow Key Features: Multi-format support: OpenAPI 3.0+ and GraphQL schemas Enhanced execution: Parallel execution, detailed reporting, connection pooling Advanced testing: File upload support, response schema validation, rate limiting handling Modular architecture: Well-organized codebase with proper error handling Complete Workflow Phase 1: Authentication Setup Execute this code to prepare authentication headers: --- Phase 2: Specification Parsing Execute this code to parse API specifications (OpenAPI or GraphQL): --- Phase 3: Dependency Analysis Execute this code to analyze dependencies and determine execution order: --- Phase 4: Script Generation Execute this code to generate the Python test script: `python import json import time from typing import Dict, List, Any from jsonschema import validate, ValidationError def generatevaluefromschema(schema: Dict, fieldname: str = "") -> Any: """Generate example value based on schema""" if 'example' in schema: return schema['example'] if 'default' in schema: return schema['default'] if 'enum' in schema: return schema['enum'][0] schematype = schema.get('type', 'string') if schematype == 'string': if schema.get('format') == 'email': return 'test@example.com' elif schema.get('format') == 'uuid': return '550e8400-e29b-41d4-a716-446655440000' elif 'email' in fieldname.lower(): return 'test@example.com' elif 'name' in …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/happyflow-generator