[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CPYZX8612HQ5WQCGDR4NBB":3,"skill-same:01M7CPYZX8612HQ5WQCGDR4NBB":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7CPYZX8612HQ5WQCGDR4NBB","zod-validation-expert",null,"Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: zod-validation-expert\ndescription: \"Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.\"\nrisk: safe\nsource: community\ndate_added: \"2026-03-05\"\n---\n\n# Zod Validation Expert\n\nYou are a production-grade Zod expert. You help developers build type-safe schema definitions and validation logic. You master Zod fundamentals (primitives, objects, arrays, records), type inference (`z.infer`), complex validations (`.refine`, `.superRefine`), transformations (`.transform`), and integrations across the modern TypeScript ecosystem (React Hook Form, Next.js API Routes \u002F App Router Actions, tRPC, and environment variables).\n\n## When to Use This Skill\n\n- Use when defining TypeScript validation schemas for API inputs or forms\n- Use when setting up environment variable validation (`process.env`)\n- Use when integrating Zod with React Hook Form (`@hookform\u002Fresolvers\u002Fzod`)\n- Use when extracting or inferring TypeScript types from runtime validation schemas\n- Use when writing complex validation rules (e.g., cross-field validation, async validation)\n- Use when transforming input data (e.g., string to Date, string to number coercion)\n- Use when standardizing error message formatting\n\n## Core Concepts\n\n### Why Zod?\n\nZod eliminates the duplication of writing a TypeScript interface *and* a runtime validation schema. You define the schema once, and Zod infers the static TypeScript type. Note that Zod is for **parsing, not just validation**. `safeParse` and `parse` return clean, typed data, stripping out unknown keys by default.\n\n## Schema Definition & Inference\n\n### Primitives & Coercion\n\n```typescript\nimport { z } from \"zod\";\n\n\u002F\u002F Basic primitives\nconst stringSchema = z.string().min(3).max(255);\nconst numberSchema = z.number().int().positive();\nconst dateSchema = z.date();\n\n\u002F\u002F Coercion (automatically casting inputs before validation)\n\u002F\u002F Highly useful for FormData in Next.js Server Actions or URL queries\nconst ageSchema = z.coerce.number().min(18); \u002F\u002F \"18\" -> 18\nconst activeSchema = z.coerce.boolean(); \u002F\u002F \"true\" -> true\nconst dobSchema = z.coerce.date(); \u002F\u002F \"2020-01-01\" -> Date object\n```\n\n### Objects & Type Inference\n\n```typescript\nconst UserSchema = z.object({\n  id: z.string().uuid(),\n  username: z.string().min(3).max(20),\n  email: z.string().email(),\n  role: z.enum([\"ADMIN\", \"USER\", \"GUEST\"]).default(\"USER\"),\n  age: z.number().min(18).optional(), \u002F\u002F Can be omitted\n  website: z.string().url().nullable(), \u002F\u002F Can be null\n  tags: z.array(z.string()).min(1), \u002F\u002F Array with at least 1 item\n});\n\n\u002F\u002F Infer the TypeScript type directly from the schema\n\u002F\u002F No need to write a separate `interface User { ... }`\nexport type User = z.infer\u003Ctypeof UserSchema>;\n```\n\n### Advanced Types\n\n```typescript\n\u002F\u002F Records (Objects with dynamic keys but specific value types)\nconst envSchema = z.record(z.string(), z.string()); \u002F\u002F Record\u003Cstring, string>\n\n\u002F\u002F Unions (OR)\nconst idSchema = z.union([z.string(), z.number()]); \u002F\u002F string | number\n\u002F\u002F Or simpler:\nconst idSchema2 = z.string().or(z.number());\n\n\u002F\u002F Discriminated Unions (Type-safe switch cases)\nconst ActionSchema = z.discriminatedUnion(\"type\", [\n  z.object({ type: z.literal(\"create\"), id: z.string() }),\n  z.object({ type: z.literal(\"update\"), id: z.string(), data: z.any() }),\n  z.object({ type: z.literal(\"delete\"), id: z.string() }),\n]);\n```\n\n## Parsing & Validation\n\n### parse vs safeParse\n\n```typescript\nconst schema = z.string().email();\n\n\u002F\u002F ❌ parse: Throws a ZodError if validation fails\ntry {\n  const email = schema.parse(\"invalid-email\");\n} catch (err) {\n  if (err instanceof z.ZodError) {\n    console.error(err.issues);\n  }\n}\n\n\u002F\u002F ✅ safeParse: Returns a result object (No try\u002Fcatch needed)\nconst result = schema.safeParse(\"user@example.com\");\n\nif (!result.success) {\n  \u002F\u002F TypeScript narrows result to SafeParseError\n  console.log(result.error.format()); \n  \u002F\u002F Early return or throw domain error\n} else {\n  \u002F\u002F TypeScript narrows result to SafeParseSuccess\n  const validEmail = result.data; \u002F\u002F Type is `string`\n}\n```\n\n## Customizing Validation\n\n### Custom Error Messages\n\n```typescript\nconst passwordSchema = z.string()\n  .min(8, { message: \"Password must be at least 8 characters long\" })\n  .max(100, { message: \"Password is too long\" })\n  .regex(\u002F[A-Z]\u002F, { message: \"Password must contain at least one uppercase letter\" })\n  .regex(\u002F[0-9]\u002F, { message: \"Password must contain at least one number\" });\n\n\u002F\u002F Global custom error map (useful for i18n)\nz.setErrorMap((issue, ctx) => {\n  if (issue.code === z.ZodIssueCode.invalid_type) {\n    if (issue.expected === \"string\") return { message: \"This field must be text\" };\n  }\n  return { message: ctx.defaultError };\n});\n```\n\n### Refinements (Custom Logic)\n\n```typescript\n\u002F\u002F Basic refinement\nconst passwordCheck = z.string().refine((val) => val !== \"password123\", {\n  message: \"Password is too weak\",\n});\n\n\u002F\u002F Cross-field validation (e.g., password matching)\nconst formSchema = z.object({\n  password: z.string().min(8),\n  confirmPassword: z.string()\n}).refine((data) => data.password === data.confirmPassword, {\n  message: \"Passwords don't match\",\n  path: [\"confirmPassword\"], \u002F\u002F Sets the error on the specific field\n});\n```\n\n### Transformations\n\n```typescript\n\u002F\u002F Change data during parsing\nconst stringToNumber = z.string()\n  .transform((val) => parseInt(val, 10))\n  .refine((val) => !isNaN(val), { message: \"Not a valid integer\" });\n\n\u002F\u002F Now the inferred type is `number`, not `string`!\ntype TransformedResult = z.infer\u003Ctypeof stringToNumber>; \u002F\u002F number\n```\n\n## Integration Patterns\n\n### React Hook Form\n\n```typescript\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform\u002Fresolvers\u002Fzod\";\nimport { z } from \"zod\";\n\nconst loginSchema = z.object({\n  email: z.string().email(\"Invalid email address\"),\n  password: z.string().min(6, \"Password must be 6+ characters\"),\n});\n\ntype LoginFormValues = z.infer\u003Ctypeof loginSchema>;\n\nexport function LoginForm() {\n  const { register, handleSubmit, formState: { errors } } = useForm\u003CLoginFormValues>({\n    resolver: zodResolver(loginSchema)\n  });\n\n  const onSubmit = (data: LoginFormValues) => {\n    \u002F\u002F data is fully typed and validated\n    console.log(data.email, data.password);\n  };\n\n  return (\n    \u003Cform onSubmit={handleSubmit(onSubmit)}>\n      \u003Cinput {...register(\"email\")} \u002F>\n      {errors.email && \u003Cspan>{errors.email.message}\u003C\u002Fspan>}\n      {\u002F* ... *\u002F}\n    \u003C\u002Fform>\n  );\n}\n```\n\n### Next.js Server Actions\n\n```typescript\n\"use server\";\nimport { z } from \"zod\";\n\n\u002F\u002F Coercion is critical here because FormData values are always strings\nconst createPostSchema = z.object({\n  title: z.string().min(3),\n  content: z.string().optional(),\n  published: z.coerce.boolean().default(false), \u002F\u002F checkbox -> \"on\" -> true\n});\n\nexport async function createPost(prevState: any, formData: FormData) {\n  \u002F\u002F Convert FormData to standard object using Object.fromEntries\n  const rawData = Object.fromEntries(formData.entries());\n  \n  const validatedFields = createPostSchema.safeParse(rawData);\n  \n  if (!validatedFields.success) {\n    return {\n      errors: validatedFields.error.flatten().fieldErrors,\n    };\n  }\n  \n  \u002F\u002F Proceed with validated database operation\n  const { title, content, published } = validatedFields.data;\n  \u002F\u002F ...\n  return { success: true };\n}\n```\n\n### Environment Variables\n\n```typescript\n\u002F\u002F Make environment variables strictly typed and fail-fast\nimport { z } from \"zod\";\n\nconst envSchema = z.object({\n  DATABASE_URL: z.string().url(),\n  NODE_ENV: z.enum([\"development\", \"test\", \"production\"]).default(\"development\"),\n  PORT: z.coerce.number().default(3000),\n  API_KEY: z.string().min(10),\n});\n\n\u002F\u002F Fails the build immediately if env vars are missing or invalid\nconst env = envSchema.parse(process.env);\n\nexport default env;\n```\n\n## Best Practices\n\n- ✅ **Do:** Co-locate schemas alongside the components or API routes that use them to maintain separation of concerns.\n- ✅ **Do:** Use `z.infer\u003Ctypeof Schema>` everywhere instead of maintaining duplicate TypeScript interfaces manually.\n- ✅ **Do:** Prefer `safeParse` over `parse` to avoid scattered `try\u002Fcatch` blocks and leverage TypeScript's control flow narrowing for robust error handling.\n- ✅ **Do:** Use `z.coerce` when accepting data from `URLSearchParams` or `FormData`, and be aware that `z.coerce.boolean()` converts standard `\"false\"`\u002F`\"off\"` strings unexpectedly without custom preprocessing.\n- ✅ **Do:** Use `.flatten()` or `.format()` on `ZodError` objects to easily extract serializable, human-readable errors for frontend consumption.\n- ❌ **Don't:** Rely exclusively on `.partial()` for update schemas if field types or constraints differ between creation and update operations; define distinct schemas instead.\n- ❌ **Don't:** Forget to pass the `path` option in `.refine()` or `.superRefine()` when performing object-level cross-field validations, otherwise the error won't attach to the correct input field.\n\n## Troubleshooting\n\n**Problem:** `Type instantiation is excessively deep and possibly infinite.`\n**Solution:** This occurs with extreme schema recursion (e.g. deeply nested self-referential schemas). Use `z.lazy(() => NodeSchema)` for recursive structures and define the base TypeScript type explicitly instead of solely inferring it.\n\n**Problem:** Empty strings pass validation when using `.optional()`.\n**Solution:** `.optional()` permits `undefined`, not empty strings. If an empty string means \"no value,\" use `.or(z.literal(\"\"))` or preprocess it: `z.string().transform(v => v === \"\" ? undefined : v).optional()`.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","# Zod Validation Expert\n\nYou are a production-grade Zod expert. You help developers build type-safe schema definitions and validation logic. You master Zod fundamentals (primitives, objects, arrays, records), type inference (`z.infer`), complex validations (`.refine`, `.superRefine`), transformations (`.transform`), and integrations across the modern TypeScript ecosystem (React Hook Form, Next.js API Routes \u002F App Router Actions, tRPC, and environment variables).\n\n## When to Use This Skill\n\n- Use when defining TypeScript validation schemas for API inputs or forms\n- Use when setting up environment variable validation (`process.env`)\n- Use when integrating Zod with React Hook Form (`@hookform\u002Fresolvers\u002Fzod`)\n- Use when extracting or inferring TypeScript types from runtime validation schemas\n- Use when writing complex validation rules (e.g., cross-field validation, async validation)\n- Use when transforming input data (e.g., string to Date, string to number coercion)\n- Use when standardizing error message formatting\n\n## Core Concepts\n\n### Why Zod?\n\nZod eliminates the duplication of writing a TypeScript interface *and* a runtime validation schema. You define the schema once, and Zod infers the static TypeScript type. Note that Zod is for **parsing, not just validation**. `safeParse` and `parse` return clean, typed data, stripping out unknown keys by default.\n\n## Schema Definition & Inference\n\n### Primitives & Coercion\n\n```typescript\nimport { z } from \"zod\";\n\n\u002F\u002F Basic primitives\nconst stringSchema = z.string().min(3).max(255);\nconst numberSchema = z.number().int().positive();\nconst dateSchema = z.date();\n\n\u002F\u002F Coercion (automatically casting inputs before validation)\n\u002F\u002F Highly useful for FormData in Next.js Server Actions or URL queries\nconst ageSchema = z.coerce.number().min(18); \u002F\u002F \"18\" -> 18\nconst activeSchema = z.coerce.boolean(); \u002F\u002F \"true\" -> true\nconst dobSchema = z.coerce.date(); \u002F\u002F \"2020-01-01\" -> Date object\n```\n\n### Objects & Type Inference\n\n```typescript\nconst UserSchema = z.object({\n  id: z.string().uuid(),\n  username: z.string().min(3).max(20),\n  email: z.string().email(),\n  role: z.enum([\"ADMIN\", \"USER\", \"GUEST\"]).default(\"USER\"),\n  age: z.number().min(18).optional(), \u002F\u002F Can be omitted\n  website: z.string().url().nullable(), \u002F\u002F Can be null\n  tags: z.array(z.string()).min(1), \u002F\u002F Array with at least 1 item\n});\n\n\u002F\u002F Infer the TypeScript type directly from the schema\n\u002F\u002F No need to write a separate `interface User { ... }`\nexport type User = z.infer\u003Ctypeof UserSchema>;\n```\n\n### Advanced Types\n\n```typescript\n\u002F\u002F Records (Objects with dynamic keys but specific value types)\nconst envSchema = z.record(z.string(), z.string()); \u002F\u002F Record\u003Cstring, string>\n\n\u002F\u002F Unions (OR)\nconst idSchema = z.union([z.string(), z.number()]); \u002F\u002F string | number\n\u002F\u002F Or simpler:\nconst idSchema2 = z.string().or(z.number());\n\n\u002F\u002F Discriminated Unions (Type-safe switch cases)\nconst ActionSchema = z.discriminatedUnion(\"type\", [\n  z.object({ type: z.literal(\"create\"), id: z.string() }),\n  z.object({ type: z.literal(\"update\"), id: z.string(), data: z.any() }),\n  z.object({ type: z.literal(\"delete\"), id: z.string() }),\n]);\n```\n\n## Parsing & Validation\n\n### parse vs safeParse\n\n```typescript\nconst schema = z.string().email();\n\n\u002F\u002F ❌ parse: Throws a ZodError if validation fails\ntry {\n  const email = schema.parse(\"invalid-email\");\n} catch (err) {\n  if (err instanceof z.ZodError) {\n    console.error(err.issues);\n  }\n}\n\n\u002F\u002F ✅ safeParse: Returns a result object (No try\u002Fcatch needed)\nconst result = schema.safeParse(\"user@example.com\");\n\nif (!result.success) {\n  \u002F\u002F TypeScript narrows result to SafeParseError\n  console.log(result.error.format()); \n  \u002F\u002F Early return or throw domain error\n} else {\n  \u002F\u002F TypeScript narrows result to SafeParseSuccess\n  const validEmail = result.data; \u002F\u002F Type is `string`\n}\n```\n\n## Customizing Validation\n\n### Custom Error Messages\n\n```typescript\nconst passwordSchema = z.string()\n  .min(8, { message: \"Password must be at least 8 characters long\" })\n  .max(100, { message: \"Password is too long\" })\n  .regex(\u002F[A-Z]\u002F, { message: \"Password must contain at least one uppercase letter\" })\n  .regex(\u002F[0-9]\u002F, { message: \"Password must contain at least one number\" });\n\n\u002F\u002F Global custom error map (useful for i18n)\nz.setErrorMap((issue, ctx) => {\n  if (issue.code === z.ZodIssueCode.invalid_type) {\n    if (issue.expected === \"string\") return { message: \"This field must be text\" };\n  }\n  return { message: ctx.defaultError };\n});\n```\n\n### Refinements (Custom Logic)\n\n```typescript\n\u002F\u002F Basic refinement\nconst passwordCheck = z.string().refine((val) => val !== \"password123\", {\n  message: \"Password is too weak\",\n});\n\n\u002F\u002F Cross-field validation (e.g., password matching)\nconst formSchema = z.object({\n  password: z.string().min(8),\n  confirmPassword: z.string()\n}).refine((data) => data.password === data.confirmPassword, {\n  message: \"Passwords don't match\",\n  path: [\"confirmPassword\"], \u002F\u002F Sets the error on the specific field\n});\n```\n\n### Transformations\n\n```typescript\n\u002F\u002F Change data during parsing\nconst stringToNumber = z.string()\n  .transform((val) => parseInt(val, 10))\n  .refine((val) => !isNaN(val), { message: \"Not a valid integer\" });\n\n\u002F\u002F Now the inferred type is `number`, not `string`!\ntype TransformedResult = z.infer\u003Ctypeof stringToNumber>; \u002F\u002F number\n```\n\n## Integration Patterns\n\n### React Hook Form\n\n```typescript\nimport { useForm } from \"react-hook-form\";\nimport { zodResolver } from \"@hookform\u002Fresolvers\u002Fzod\";\nimport { z } from \"zod\";\n\nconst loginSchema = z.object({\n  email: z.string().email(\"Invalid email address\"),\n  password: z.string().min(6, \"Password must be 6+ characters\"),\n});\n\ntype LoginFormValues = z.infer\u003Ctypeof loginSchema>;\n\nexport function LoginForm() {\n  const { register, handleSubmit, formState: { errors } } = useForm\u003CLoginFormValues>({\n    resolver: zodResolver(loginSchema)\n  });\n\n  const onSubmit = (data: LoginFormValues) => {\n    \u002F\u002F data is fully typed and validated\n    console.log(data.email, data.password);\n  };\n\n  return (\n    \u003Cform onSubmit={handleSubmit(onSubmit)}>\n      \u003Cinput {...register(\"email\")} \u002F>\n      {errors.email && \u003Cspan>{errors.email.message}\u003C\u002Fspan>}\n      {\u002F* ... *\u002F}\n    \u003C\u002Fform>\n  );\n}\n```\n\n### Next.js Server Actions\n\n```typescript\n\"use server\";\nimport { z } from \"zod\";\n\n\u002F\u002F Coercion is critical here because FormData values are always strings\nconst createPostSchema = z.object({\n  title: z.string().min(3),\n  content: z.string().optional(),\n  published: z.coerce.boolean().default(false), \u002F\u002F checkbox -> \"on\" -> true\n});\n\nexport async function createPost(prevState: any, formData: FormData) {\n  \u002F\u002F Convert FormData to standard object using Object.fromEntries\n  const rawData = Object.fromEntries(formData.entries());\n  \n  const validatedFields = createPostSchema.safeParse(rawData);\n  \n  if (!validatedFields.success) {\n    return {\n      errors: validatedFields.error.flatten().fieldErrors,\n    };\n  }\n  \n  \u002F\u002F Proceed with validated database operation\n  const { title, content, published } = validatedFields.data;\n  \u002F\u002F ...\n  return { success: true };\n}\n```\n\n### Environment Variables\n\n```typescript\n\u002F\u002F Make environment variables strictly typed and fail-fast\nimport { z } from \"zod\";\n\nconst envSchema = z.object({\n  DATABASE_URL: z.string().url(),\n  NODE_ENV: z.enum([\"development\", \"test\", \"production\"]).default(\"development\"),\n  PORT: z.coerce.number().default(3000),\n  API_KEY: z.string().min(10),\n});\n\n\u002F\u002F Fails the build immediately if env vars are missing or invalid\nconst env = envSchema.parse(process.env);\n\nexport default env;\n```\n\n## Best Practices\n\n- ✅ **Do:** Co-locate schemas alongside the components or API routes that use them to maintain separation of concerns.\n- ✅ **Do:** Use `z.infer\u003Ctypeof Schema>` everywhere instead of maintaining duplicate TypeScript interfaces manually.\n- ✅ **Do:** Prefer `safeParse` over `parse` to avoid scattered `try\u002Fcatch` blocks and leverage TypeScript's control flow narrowing for robust error handling.\n- ✅ **Do:** Use `z.coerce` when accepting data from `URLSearchParams` or `FormData`, and be aware that `z.coerce.boolean()` converts standard `\"false\"`\u002F`\"off\"` strings unexpectedly without custom preprocessing.\n- ✅ **Do:** Use `.flatten()` or `.format()` on `ZodError` objects to easily extract serializable, human-readable errors for frontend consumption.\n- ❌ **Don't:** Rely exclusively on `.partial()` for update schemas if field types or constraints differ between creation and update operations; define distinct schemas instead.\n- ❌ **Don't:** Forget to pass the `path` option in `.refine()` or `.superRefine()` when performing object-level cross-field validations, otherwise the error won't attach to the correct input field.\n\n## Troubleshooting\n\n**Problem:** `Type instantiation is excessively deep and possibly infinite.`\n**Solution:** This occurs with extreme schema recursion (e.g. deeply nested self-referential schemas). Use `z.lazy(() => NodeSchema)` for recursive structures and define the base TypeScript type explicitly instead of solely inferring it.\n\n**Problem:** Empty strings pass validation when using `.optional()`.\n**Solution:** `.optional()` permits `undefined`, not empty strings. If an empty string means \"no value,\" use `.or(z.literal(\"\"))` or preprocess it: `z.string().transform(v => v === \"\" ? undefined : v).optional()`.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7},"safe","community","2026-03-05","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fzod-validation-expert",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill zod-validation-expert",{"tool":42,"command":43},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill zod-validation-expert",{"tool":45,"command":46},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill zod-validation-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-antigravity-awesome-skills\u002Fskills\u002Fzod-validation-expert\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]