Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问许可证需确认审计通过

llmLLM 搜索

Agent Skill

llm 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

424

周安装

17

GitHub Stars

10,492

下载量

137
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/elie222/inbox-zero --skill llm

简介

llm 用于 LLM 相关代码实现规范,适合在 Codex、Claude、Cursor、Gemini CLI 中组织 AI 功能模块、配置模型参数或使用追踪时使用。

  • 它将 LLM 代码集中在 apps/web/utils/ai/ 与 utils/llms/ 目录,要求使用 Zod 校验输入,并通过 scoped logger 记录调用过程。
  • 使用时应遵循统一的结构模式,包括类型定义、错误处理与用量监控,避免重复造轮子。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • llm 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

LLM Implementation Guidelines

Directory Structure

LLM-related code is organized in specific directories:

  • apps/web/utils/ai/ - Main LLM implementations
  • apps/web/utils/llms/ - Core LLM utilities and configurations
  • apps/web/__tests__/ - LLM-specific tests

Key Files

  • utils/llms/index.ts - Core LLM functionality
  • utils/llms/model.ts - Model definitions and configurations
  • utils/usage.ts - Usage tracking and monitoring

Implementation Pattern

Follow this standard structure for LLM-related functions:

import { z } from "zod";
import { createScopedLogger } from "@/utils/logger";
import { chatCompletionObject } from "@/utils/llms";
import type { EmailAccountWithAI } from "@/utils/llms/types";
import { createGenerateObject } from "@/utils/llms";

export async function featureFunction(options: {
  inputData: InputType;
  emailAccount: EmailAccountWithAI;
}) {
  const { inputData, user } = options;

  if (!inputData || [other validation conditions]) {
    logger.warn("Invalid input for feature function");
    return null;
  }

  const system = `[Detailed system prompt that defines the LLM's role and task]`;

  const prompt = `[User prompt with context and specific instructions]

<data>
...
</data>

${emailAccount.about ? `<user_info>${emailAccount.about}</user_info>` : ""}`;

  const modelOptions = getModel(emailAccount.user);

  const generateObject = createGenerateObject({
    userEmail: emailAccount.email,
    label: "Feature Name",
    modelOptions,
  });

  const result = await generateObject({
    ...modelOptions,
    system,
    prompt,
    schema: z.object({
      field1: z.string(),
      field2: z.number(),
      nested: z.object({
        subfield: z.string(),
      }),
      array_field: z.array(z.string()),
    }),
  });

  return result.object;
}

Best Practices

  1. System and User Prompts:

- Keep system prompts and user prompts separate - System prompt should define the LLM's role and task specifications - User prompt should contain the actual data and context

  1. Schema Validation:

- Always define a Zod schema for response validation - Make schemas as specific as possible to guide the LLM output

  1. Logging:

- Use descriptive scoped loggers for each feature - Log inputs and outputs with appropriate log levels - Include relevant context in log messages

  1. Error Handling:

- Implement early returns for invalid inputs - Use proper error types and logging - Implement fallbacks for AI failures - Add retry logic for transient failures using withRetry

  1. Input Formatting:

- Use XML-like tags to structure data in prompts - Remove excessive whitespace and truncate long inputs - Format data consistently across similar functions

  1. Type Safety:

- Use TypeScript types for all parameters and return values - Define clear interfaces for complex input/output structures

  1. Code Organization:

- Keep related AI functions in the same file or directory - Extract common patterns into utility functions - Document complex AI logic with clear comments

  1. AI-First Behavior:

- Prefer generic prompt instructions, structured outputs, and model choice over brittle lexical heuristics that imitate model reasoning - Only add deterministic filters when the product truly needs a hard rule outside the model - Do not add prompt examples that closely mirror eval fixtures just to make a test pass

  1. Draft Attribution Versioning:

- When changing draft-generation prompt inputs, retrieval context, routing, or post-processing, bump apps/web/utils/ai/reply/draft-attribution.ts DRAFT_PIPELINE_VERSION - Treat that version as analytics attribution for reply-draft quality comparisons

Testing

See llm-test.mdc

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.54%
按下载量换算49

Claude

29.41%
按下载量换算40

Cursor

17.79%
按下载量换算24

Gemini CLI

8.2%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills