fetcher-decorator-service

Define HTTP API services declaratively with TypeScript decorators.

15|4|Updated Aug 23, 2025
One-click install
npx skills add https://github.com/Ahoo-Wang/fetcher --skill fetcher-decorator-service
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fetcher-decorator-service
Source: https://github.com/Ahoo-Wang/fetcher/tree/main/skills/fetcher-decorator-service
Command: npx skills add https://github.com/Ahoo-Wang/fetcher --skill fetcher-decorator-service

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It enables developers to create clean, declarative HTTP API services using TypeScript decorators, simplifying client-side API layer development.

Core Features & Use Cases

  • Declarative API Definitions: Define HTTP endpoints using annotations like @api(), @get(), @post(), etc.
  • Automatic Request Handling: Methods are auto-implemented to perform HTTP calls based on decorators and parameters.
  • Use Case: Implement CRUD operations for a REST API by simply decorating class methods, reducing boilerplate code and improving maintainability.

Quick Start

Use the fetcher decorator service to define a typed API client with minimal code.

Frequently Asked Questions about fetcher-decorator-service

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

FAQPage Schema
How do I define HTTP API services declaratively in TypeScript?

Decorators like @api(), @get(), and @post() annotate TypeScript classes and methods to automatically generate HTTP request implementations, reducing boilerplate code for REST API clients.

How does TypeScript decorator automation work for HTTP clients?

Decorator automation auto-implements HTTP calls by reading annotations and parameters from TypeScript classes, executing REST requests without requiring manual fetch logic.

Can I use TypeScript decorators for streaming endpoints and mobile projects?

Yes, declarative TypeScript decorators support both standard REST and streaming endpoints, making them suitable for web and mobile client API development.

What is the best way to reduce boilerplate code for REST API clients?

Using declarative TypeScript decorators is the best way to reduce REST API boilerplate, auto-implementing CRUD operations by annotating class methods instead of writing manual request logic.

Do I need a specific dependency to generate method implementations from decorators?

Yes, you need the @ahoo-wang/fetcher-decorator package to generate method implementations from annotated TypeScript classes, enabling declarative HTTP API calls.

Why does manual client API development require so much maintenance?

Manual client API development requires heavy maintenance due to repetitive boilerplate code, whereas declarative TypeScript decorators streamline maintenance by auto-implementing HTTP methods.