Token导航 LogoToken导航

Agent Skill · 前端设计

repo-website-api-create(repo website API create 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

repo-website-api-create 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 6,360。

总安装 519周安装 21GitHub Stars 8,470下载 163核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/open-circle/valibot --skill repo-website-api-create

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

该技能用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名或整理错误码。使用时需要确认真实业务语义、鉴权方式等规则,避免凭空补字段。安装前建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。

repo-website-api-create 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/repo-website-api-create

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/open-circle/valibot --skill repo-website-api-c…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

repo-website-api-create 怎么安装?

在终端执行 npx skills add https://github.com/open-circle/valibot --skill repo-website-api-create。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

repo-website-api-create 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

repo-website-api-create 需要什么权限?

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

repo-website-api-create 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

repo-website-api-create 用的人多吗?

公开数据是累计安装 519 次,近一周安装 21 次,下载 163 次,GitHub 8,470 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

repo-website-api-create 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 8,470 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
repo-website-api-create

repo website API create 文档 · 本页

5198,470需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Adding API Documentation to Website

Guide for creating new API reference pages at website/src/routes/api/.

Process Overview

  1. Read source code in /library/src/
  2. Create folder in /website/src/routes/api/(category)/[name]/
  3. Create properties.ts with type definitions
  4. Create index.mdx with documentation
  5. Update menu.md
  6. Create type documentation if needed (Issue, Schema/Action interfaces)

File Structure

website/src/routes/api/
├── (schemas)/string/
│   ├── index.mdx        # Documentation content
│   └── properties.ts    # Type definitions for Property component
├── (actions)/email/
├── (methods)/parse/
├── (types)/StringSchema/
└── menu.md              # Navigation (alphabetical order)

Categories: (schemas), (actions), (methods), (types), (utils), (async), (storages)

Reading Source Code

What to Extract

From /library/src/schemas/string/string.ts:

// 1. Issue interface → Document in (types)/StringIssue/
export interface StringIssue extends BaseIssue<unknown> { ... }

// 2. Schema interface → Document in (types)/StringSchema/
export interface StringSchema<TMessage extends ErrorMessage<StringIssue> | undefined>
  extends BaseSchema<string, string, StringIssue> { ... }

// 3. Function overloads → Main documentation
export function string(): StringSchema<undefined>;
export function string<const TMessage>(message: TMessage): StringSchema<TMessage>;

// 4. JSDoc → Description, hints, parameter docs
/**
 * Creates a string schema.
 *
 * Hint: This is an example hint.
 *
 * @param message The error message.
 *
 * @returns A string schema.
 */

JSDoc hints become blockquotes in the Explanation section:

> This is an example hint.

Extract for properties.ts

  • Generic parameters and constraints (e.g., TMessage extends ErrorMessage<...> | undefined)
  • Function parameters and types
  • Return type

properties.ts

Import and define properties matching source code:

import type { PropertyProps } from '~/components';

export const properties: Record<string, PropertyProps> = {
  // Generics (use modifier: 'extends')
  TMessage: {
    modifier: 'extends',
    type: {
      type: 'union',
      options: [
        {
          type: 'custom',
          name: 'ErrorMessage',
          href: '../ErrorMessage/',
          generics: [
            { type: 'custom', name: 'StringIssue', href: '../StringIssue/' },
          ],
        },
        'undefined',
      ],
    },
  },

  // Parameters (reference generic or direct type)
  message: {
    type: { type: 'custom', name: 'TMessage' },
  },

  // Return type
  Schema: {
    type: {
      type: 'custom',
      name: 'StringSchema',
      href: '../StringSchema/',
      generics: [{ type: 'custom', name: 'TMessage' }],
    },
  },
};

Optional Object Keys

For optional object keys from TypeScript source such as key?: string, do not append ? to the property name in properties.ts.

Use the plain key name and represent optionality in the value type with undefined as the last union option:

payload: {
  type: {
    type: 'object',
    entries: [
      {
        key: 'key',
        value: {
          type: 'union',
          options: ['string', 'undefined'],
        },
      },
    ],
  },
},

DefinitionData Types

TypeSyntax
Primitive'string', 'number', 'boolean', 'unknown', etc.
Literal string{type: 'string', value: 'email'}
Literal number{type: 'number', value: 5}
Custom/Named{type: 'custom', name: 'TypeName', href: '../TypeName/', generics: [...]}
Custom+modifier{type: 'custom', modifier: 'typeof', name: 'string', href: '../string/'}
Union{type: 'union', options: [type1, type2]}
Intersect{type: 'intersect', options: [type1, type2]}
Array{type: 'array', item: elementType}
Tuple{type: 'tuple', items: [type1, type2]}
Object{type: 'object', entries: [{key: 'name', value: type}]}
Function{type: 'function', params: [{name: 'x', type: t}], return: retType}
Template{type: 'template', parts: [{type: 'string', value: '>='}, otherType]}

index.mdx Template

---
title: functionName
description: One-line description from JSDoc.
source: /schemas/string/string.ts
contributors:
  - github-username
---

import { ApiList, Property } from '~/components';
import { properties } from './properties';

# functionName

Creates a string schema.

\`\`\`ts
const Schema = v.functionName<TMessage>(message);
\`\`\`

## Generics

- \`TMessage\` <Property {...properties.TMessage} />

## Parameters

- \`message\` <Property {...properties.message} />

### Explanation

With \`functionName\` you can validate... If the input does not match, you can use \`message\` to customize the error message.

## Returns

- \`Schema\` <Property {...properties.Schema} />

## Examples

The following examples show how \`functionName\` can be used.

### Email schema

Schema to validate an email.

\`\`\`ts
const EmailSchema = v.pipe(
v.string(),
v.nonEmpty('Please enter your email.'),
v.email('The email is badly formatted.')
);
\`\`\`

## Related

The following APIs can be combined with \`functionName\`.

### Schemas

<ApiList items={['array', 'object', 'string']} />

### Methods

<ApiList items={['parse', 'pipe', 'safeParse']} />

### Actions

<ApiList items={['email', 'minLength']} />

### Utils

<ApiList items={['isOfKind', 'isOfType']} />

Related section order: Schemas → Methods → Actions → Utils (omit empty sections)

Key Conventions

Naming

  • Schema variables: PascalCase + Schema suffix: EmailSchema, UserSchema
  • Action variables: PascalCase + Action: MinLengthAction
  • Parse output: output or descriptive name

Examples

  • Always include error messages for validation actions
  • Progress from simple to complex
  • Use realistic, practical scenarios
  • Start with import * as v from 'valibot'; pattern

Error Messages

Use friendly, actionable messages:

  • ✅ "Your password is too short."
  • ✅ "Please enter your email."
  • ❌ "Invalid" or "Error"

Links

  • Use href: '../TypeName/' for type references (with trailing slash)
  • Use <Link href="/api/parse/">\parse`in MDX prose (import from~/components`)
  • Link to related guides when relevant: <Link href="/guides/objects/">object guide</Link>

Update Related Files

menu.md

Add alphabetically to /website/src/routes/api/menu.md:

## Schemas

- [any](/api/any/)
- [newSchema](/api/newSchema/) ← Add here
- [string](/api/string/)

Related Sections of Other API Docs

Existing API pages have a ## Related section with <ApiList> components. When adding a new API, update related APIs to include the new one.

Rule: An API is "related" if:

  • It makes sense to use it as an argument of the other API, or vice versa
  • It makes sense to use them together in the same pipe (e.g., v.pipe(v.string(), v.email()) → string and email are related)

Examples:

  • string schema lists email action because they work together in a pipe
  • email action lists string schema because it validates string input
  • pipe method lists all schemas because any schema can be piped
  • minLength action lists string, array, tuple because it validates their length

Process:

  1. Review a few existing API docs in the same category to understand the pattern
  2. Check menu.md to identify potentially related APIs
  3. For each related API, edit its index.mdx and add the new API to the appropriate <ApiList>

Shortcut: If your new API is very similar to an existing one (e.g., guard is similar to check), add it everywhere the similar API appears. This ensures consistent coverage across all related docs.

Concept Guides

Add the new API to the appropriate guide in /website/src/routes/guides/:

API CategoryGuide to Update
Schema(main-concepts)/schemas/index.mdx
Action(main-concepts)/pipelines/index.mdx
Method(main-concepts)/methods/index.mdx

Also update topic-specific guides if relevant (e.g., (schemas)/objects/, (schemas)/arrays/, (advanced)/async/).

Type Documentation

Create pages for new types in (types)/:

  • Issue interfaces (e.g., StringIssue)
  • Schema/Action interfaces (e.g., StringSchema)

Type pages differ from function docs:

  • No source field in frontmatter
  • No Examples or Related sections
  • Use ## Definition instead of ## Returns

Type page structure:

---
title: StringSchema
description: String schema interface.
contributors:
  - github-username
---

import { Property } from '~/components';
import { properties } from './properties';

# StringSchema

String schema interface.

## Generics

- \`TMessage\` <Property {...properties.TMessage} />

## Definition

- \`StringSchema\` <Property {...properties.BaseSchema} />
  - \`type\` <Property {...properties.type} />
  - \`reference\` <Property {...properties.reference} />
  - \`expects\` <Property {...properties.expects} />
  - \`message\` <Property {...properties.message} />

Checklist

  • Read source file completely
  • properties.ts matches source types exactly
  • index.mdx signature matches source
  • All generics documented
  • All parameters documented
  • Examples are realistic with error messages
  • menu.md updated (alphabetically)
  • Related type pages created if needed
  • Related API docs updated (add new API to their ## Related sections)
  • Concept guide updated (schemas/pipelines/methods)
  • All href links valid with trailing slashes

平台分布

Codex

35.8%
按下载量换算58

Claude

30.32%
按下载量换算49

Cursor

20.05%
按下载量换算33

Gemini CLI

10.12%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills