fill-api

star 0

Implement or complete API request functions from design docs and TODO markers, aligning fields and types with shared generated types. Use when user needs to implement API request functions, code contains TODO markers for API calls, or asks to fill in/create API functions.

Y2138 By Y2138 schedule Updated 2/6/2026

name: fill-api description: Implement or complete API request functions from design docs and TODO markers, aligning fields and types with shared generated types. Use when user needs to implement API request functions, code contains TODO markers for API calls, or asks to fill in/create API functions.

Fill API

Goal

Complete API call implementations based on design docs and TODO markers.

Input

  • Design doc path (markdown) with API descriptions.

Workflow

  1. Read the design doc and extract required endpoints.
  2. Locate TODO API stubs in code.
  3. Create or update modules under src/request/api/.
  4. Import shared types from src/shared/.
  5. Align request/response fields with API naming.
  6. Report updated files and remaining gaps.

Request Pattern

import { get, post } from '@/request/axios'
import type { GetUsersRequest, GetUsersResponse } from '@/shared/users'

export const getUserList = async (params?: GetUsersRequest) => {
  return get<GetUsersRequest, GetUsersResponse>('/api/users/list', { params })
}

Response Handling

const [data, error] = await getUserList({ page: 1, pageSize: 10 })

if (error) {
  return
}

console.log(data.data.list)
Install via CLI
npx skills add https://github.com/Y2138/vue3-mono --skill fill-api
Repository Details
star Stars 0
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator