Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

convex-queries凸查询

Agent Skill

convex-queries 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

570

周安装

24

GitHub Stars

23

下载量

545
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convex-queries(凸查询)
来源仓库:https://github.com/sstobo/convex-skills
仓库路径:skills/convex-queries
安装命令:
npx skills add https://github.com/sstobo/convex-skills --skill convex-queries
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sstobo/convex-skills --skill convex-queries

简介

提供查询函数实现规范,包括分页、索引和全文本搜索支持。

  • 适用于大数据集分页和高效数据检索场景优化。
  • 包含函数注册调用模式和性能调优参考文档。
  • 使用前应验证索引配置和查询条件匹配度。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • convex-queries 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Convex Queries Skill

This skill provides specialized guidance for implementing Convex query functions, including best practices for function definition, registration, calling patterns, pagination, indexing, and full text search.

When to Use This Skill

Use this skill when:

  • Defining new query functions to fetch data from the Convex database
  • Implementing pagination for large result sets
  • Setting up indexes for efficient querying
  • Using full text search functionality
  • Calling queries from other Convex functions
  • Optimizing query performance

Skill Resources

This skill includes comprehensive reference documentation in references/query-guidelines.md that covers:

Core Query Development

  • Function definition syntax using the new function syntax
  • Query registration (query and internalQuery)
  • Argument validators and their usage
  • Function calling patterns (ctx.runQuery)
  • Function references (api and internal objects)
  • File-based routing for query paths

Query Optimization

  • Query guidelines (avoiding filter, using indexes with withIndex)
  • Ordering results with .order('asc') and .order('desc')
  • Using .unique() for single document retrieval
  • Async iteration with for await syntax
  • Query limits and performance considerations

Advanced Query Features

  • Pagination: Implementing paginated queries with paginationOptsValidator

- Understanding paginationOpts (numItems and cursor) - Reading paginated results (page, isDone, continueCursor)

  • Full Text Search: Setting up and querying search indexes
  • Indexing: Creating and using indexes for efficient lookups

- Built-in indexes (by_id, by_creation_time) - Custom index naming and field ordering - Nested queries with multiple indexes

Database Queries

  • Reading from the Convex database with ctx.db.query()
  • Index usage with .withIndex()
  • Result collection with .collect() and .take(n)

How to Use This Skill

  1. Read the reference documentation at references/query-guidelines.md to understand the complete query patterns
  2. Follow the syntax examples for defining query functions with proper validators
  3. Use indexes for efficient filtering instead of the filter method
  4. Implement pagination when dealing with large datasets
  5. Leverage full text search for text-based filtering needs
  6. Optimize ordering by understanding how Convex orders results

Key Query Guidelines

  • ALWAYS include argument validators for all query functions
  • Do NOT use filter in queries; use withIndex instead
  • Use ctx.runQuery to call queries from mutations or actions
  • Specify return type annotations when calling queries in the same file (TypeScript circularity workaround)
  • Queries execute for at most 1 second and can read up to 16384 documents
  • Return null implicitly if your query doesn't have an explicit return value

Example: Basic Query with Index

import { query } from "./_generated/server";
import { v } from "convex/values";

export const getMessagesByChannel = query({
  args: {
    channelId: v.id("channels"),
  },
  handler: async (ctx, args) => {
    return await ctx.db
      .query("messages")
      .withIndex("by_channel", (q) => q.eq("channelId", args.channelId))
      .order("desc")
      .take(20);
  },
});

For more detailed information and additional patterns, refer to the complete reference documentation.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.25%
按下载量换算198

Claude

27.74%
按下载量换算151

Cursor

18.59%
按下载量换算101

Gemini CLI

8.8%
按下载量换算48

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills