new-endpoint

Scaffolds a Vercel-compatible ResearchMate API endpoint with complete handler structure.

Updated Dec 8, 2025
One-click install
npx skills add https://github.com/Unlighted01/ResearchMate-Website --skill new-endpoint-unlighted01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-endpoint
Source: https://github.com/Unlighted01/ResearchMate-Website/tree/main/.claude/skills/scaffolding/new-endpoint
Command: npx skills add https://github.com/Unlighted01/ResearchMate-Website --skill new-endpoint-unlighted01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured workflow to scaffold a new ResearchMate Vercel serverless API endpoint that adheres to the project's patterns (imports, types, constants, helper functions, and a robust main handler) and ready-to-deploy configuration.

Core Features & Use Cases

  • End-to-end endpoint scaffolding aligned to ResearchMate conventions (PART sections, TS typings, default exports, and environment variable guidance).
  • Generates an api/<endpoint-name>.ts file with a complete Vercel-compatible handler and modular components for authentication, credit management, and fallback logic.
  • Facilitates rapid iteration for common API tasks within ResearchMate (e.g., translation, data fetch, or user actions) by applying a repeatable, safe template.

Quick Start

Provide the endpoint name as an argument to scaffold api/<name>.ts with proper imports and a complete handler.

Frequently Asked Questions about new-endpoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a serverless API endpoint for Vercel?

To scaffold a serverless API endpoint, provide an endpoint name to generate an api/<name>.ts file with a complete Vercel-compatible handler, type definitions, constants, and helper functions ready for immediate deployment.

What is the correct structure for a Vercel serverless API handler?

A correct Vercel serverless API handler structure enforces end-to-end organization: imports, type definitions, constants, helper functions, a guarded main handler, and default export wiring to ensure modular and safe execution.

Can I use this scaffolding template for authentication and credit management APIs?

Yes, you can use this scaffolding template for authentication and credit management APIs. It generates modular components specifically designed for common API tasks including auth, credit management, and fallback logic patterns.

How do I set up TypeScript types and environment variables for a new API endpoint?

You set up TypeScript types and environment variables by applying the scaffolded template, which includes TS typings and environment variable guidance within its structured sections to ensure the endpoint is configured correctly.

What's the best way to standardize multiple serverless API endpoints in a project?

The best way to standardize multiple serverless API endpoints is applying a repeatable, safe template that enforces consistent end-to-end file structure, enabling rapid iteration for common tasks like data fetches and user actions.