forinda/tasky/query-parsing-list-endpoint

Claude Code and agent skill by forinda/tasky

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when adding a paginated/filterable list route — emit ctx.qs + ctx.paginate with an allow-list.

Install

npx vskill@latest install forinda/tasky/query-parsing-list-endpoint

SKILL.md

The same SKILL.md was published earlier as forinda/tasky/query-parsing-list-endpoint.

Canonical list endpoint:

ts
@Get('/')
async list(ctx: Ctx<KickRoutes.TodoController['list']>) {
const parsed = ctx.qs({
filterable: ['status', 'priority', 'assigneeId'], // allow-list, MUST be set
sortable: ['createdAt', 'updatedAt', 'priority'],
searchColumns: ['title', 'description'], // free-text search targets
})
return ctx.paginate(async () => {
const { data, total } = await this.service.list(parsed)
return { data, total }
}, parsed)
}

Operator format (fixed): ?filter=field:op:value where op ∈ eq | neq | gt | gte | lt | lte | between | in | contains | starts | ends. Sort is ?sort=field:asc|desc. Only the first two colons are delimiters, so timestamps work (createdAt:gt:2026-01-01T00:00:00Z).

Drizzle adopters — pass a DrizzleQueryParamsConfig with column refs:

ts
const TASK_QUERY_CONFIG = {
filterable: { status: tasks.status, priority: tasks.priority },
sortable: { createdAt: tasks.createdAt },
searchColumns: [tasks.title, tasks.description],
}
const parsed = ctx.qs(TASK_QUERY_CONFIG)

ORM-agnostic builders — implement QueryBuilderAdapter<TResult, TConfig> with build(parsed, config). The Drizzle + Prisma adapters live here.

Red flags:

  • Reading req.query.status directly — bypasses the allow-list; opens unbounded filtering. Use ctx.qs({ filterable }).
  • Omitting filterable / sortable allow-list — every client-supplied filter is silently dropped (security default, but looks like a bug).
  • Hand-building the pagination meta in the controller — inconsistent response shape across endpoints. Always use ctx.paginate().
  • Returning a bare array from a list endpoint when pagination is implied — breaks the PaginatedResponse<T> contract.
  • Mixing string searchable config with column searchColumns (Drizzle) — silently no-ops.

Nuances:

  • limit is capped at 100 server-side; q (search) is truncated to 200 chars. Don't re-validate client-side.
  • Sort direction defaults to asc when omitted (?sort=createdAt ≡ ?sort=createdAt:asc).

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/forinda/tasky/query-parsing-list-endpoint/badge)](https://verified-skill.com/skills/forinda/tasky/query-parsing-list-endpoint)

Something wrong with this skill or its page? Tell us.