Agent skill

marten__list_query

Adds a new Query operation to fetch a paged list of resources with filtering. Handles caching and pagination.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/marten-list-query

SKILL.md

Follow this guide to implement a List Query endpoint in the ApiService.

  1. Prerequisites

    • Ensure the Projection exists.
    • Ensure indexes are configured for filtered fields.
  2. Create Endpoint

    • Create/Update src/BookStore.ApiService/Endpoints/{Resource}Endpoints.cs
    • Method: MapGet
    • Logic: GetOrCreateLocalizedAsync -> Query -> Where -> ToPagedListAsync
    • Template: templates/ListEndpoint.cs
  3. Client Integration

    • Create IGet{Resource}sEndpoint.cs in Client project.

Related Skills

  • /marten__get_by_id: For fetching a single resource.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results