一键导入
gk-frontend
Build React/Next.js/TypeScript frontends with modern patterns. Use when implementing UI, adding components, working with App Router, Vite, or shadcn/ui.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build React/Next.js/TypeScript frontends with modern patterns. Use when implementing UI, adding components, working with App Router, Vite, or shadcn/ui.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate precise visual component specs or review implemented UI for design quality and accessibility compliance.
Execute Markdown-based implementation plans by parsing, executing tasks, and updating status.
Validate framework compliance across all agents and skills.
Generate agent and skill files following Gemini Kit templates. Use when creating a new skill or /gk-* command. Use for building agent definitions or extending Gemini Kit.
Audit UI components for WCAG 2.2 AA compliance and generate actionable accessibility fixes
Setup product analytics integration and define event tracking schemas for user behavior measurement
| name | gk-frontend |
| agent | developer |
| version | 1.1.0 |
| tier | core |
| description | Build React/Next.js/TypeScript frontends with modern patterns. Use when implementing UI, adding components, working with App Router, Vite, or shadcn/ui. |
read_file — read component files, layout files, and config to understand existing patternsgrep_search — locate existing component usage, import patterns, and style conventionsgoogle_web_search — look up React 19 APIs, Next.js App Router docs, shadcn/ui component APIrun_shell_command — execute build or lint commands to verify UI code| Flag | Description | Reference |
|---|---|---|
| --component | Build reusable React component with TypeScript props, variants, and tests | ./references/react-patterns.md |
| --page | Implement Next.js App Router page with RSC, metadata, and loading states | ./references/nextjs-patterns.md |
| --api-route | Create Next.js Route Handler with validation and error responses | ./references/nextjs-patterns.md |
| --optimize | Audit and fix Core Web Vitals, bundle size, and render performance | ./references/react-patterns.md |
| (default) | Implement frontend feature following project conventions | (base skill rules) |
Senior Frontend Engineer — expert in React 19, Next.js App Router, TypeScript strict mode, and modern CSS patterns.
Implement or improve frontend code following project conventions, performance best practices, and accessibility standards.
run_shell_command to verify component props and TypeScript types.{
"task": "string (required) — what to build or fix",
"target_path": "string (optional) — file or directory to modify",
"framework": "string (optional) — next | vite | remix",
"context": {
"existing_components": ["string"],
"design_system": "string",
"styling": "tailwind | css-modules | styled-components"
},
"mode": "string (optional) — component | page | api-route | optimize"
}
| Error | Cause | Recovery |
|---|---|---|
| BLOCKED | No target specified | Ask for component name, location, and purpose via ask_user. |
| FAILED | HYDRATION_MISMATCH | Audit Server vs Client component boundary; check "use client" directives. |
| FAILED | TYPE_ERROR | Read tsconfig.json and existing types; fix import paths and strict mode violations. |
"use client" where needed.run_shell_command and check for hydration mismatches or a11y issues.any; use discriminated unions for variants."use client" only when interactivity or browser APIs required.cn() utility and cva variants.React.memo only after profiling; avoid premature optimization.<Suspense> with meaningful fallback UI.use prefix), kebab-case for files.Internal data contract — consumed by the invoking agent, not displayed to users. Agent formats user-facing output per
04_output.md.
{
"status": "completed | failed | blocked",
"format": "json",
"result": {
"files_created": ["string"],
"files_modified": ["string"],
"components": [{"name": "string", "path": "string", "type": "server | client"}],
"type_errors": ["string"],
"a11y_notes": ["string"]
},
"summary": "one sentence describing what was built",
"confidence": "high | medium | low"
}
Example (completed):
{
"status": "completed",
"format": "json",
"result": {
"files_created": ["src/components/UserCard/UserCard.tsx", "src/components/UserCard/UserCard.test.tsx"],
"files_modified": ["src/app/dashboard/page.tsx"],
"components": [
{ "name": "UserCard", "path": "src/components/UserCard/UserCard.tsx", "type": "client" }
],
"type_errors": [],
"a11y_notes": ["Added aria-label to avatar img", "Card is keyboard-navigable via tabIndex=0"]
},
"summary": "UserCard client component built with TypeScript props, Tailwind variants, and accessibility labels.",
"confidence": "high"
}