Agent Skill
2/7/2026

fill-api

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.

Y
y2138
0GitHub Stars
1Views
npx skills add Y2138/vue3-mono

SKILL.md

Namefill-api
DescriptionImplement 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.

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)
Skills Info
Original Name:fill-apiAuthor:y2138