LogoClawIndex
CasesSkillsAbout
LogoClawIndex

api-generator - Frontend API Generator

Generates frontend request code, types, mock handlers, and tests based on detected project architecture.

Tags

Updated: 2026-09-09
frontendapicode-generationtypescriptmocktesting

Capabilities

Detect project language and typesIdentify request layer patternDetect mock infrastructureDetect test infrastructure

Typical Inputs

Endpoint method and pathParams and body schemaResponse schema or example JSON

Typical Outputs

Project recon summaryAPI generation planRequest code files

What this skill does

  • Detect project language and types
  • Identify request layer pattern
  • Detect mock infrastructure
  • Detect test infrastructure
  • Generate API request code
  • Generate type definitions
  • Generate mock handlers
  • Generate test code

Inputs

  • Endpoint method and path
  • Params and body schema
  • Response schema or example JSON
  • Mock examples
  • Module or domain name

Outputs

  • Project recon summary
  • API generation plan
  • Request code files
  • Type definition files
  • Mock handler files
  • Test files

Requirements

    Source

    • Spec: SKILL.md

    ClawIndex

    OpenClaw Skills & Use Case Index

    ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

    Index

    Skills·
    Cases

    Meta

    About·
    Disclaimer·
    Email·
    GitHub
    © 2026 ClawIndex All Rights Reserved.