← 返回 Skills 市场
felix-antonio-sl

Senior Frontend

作者 felix-antonio-sl · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
139
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install kv-senior-frontend
功能描述
Build, optimize, and review React and Next.js applications with TypeScript and Tailwind CSS. Use when scaffolding a frontend project, generating components,...
使用说明 (SKILL.md)

Senior Frontend

React, Next.js, TypeScript, and Tailwind CSS — from scaffold to production.

Activation

Use this skill when the user asks to:

  • scaffold a new Next.js or React + Vite project
  • generate a React component, custom hook, or Storybook story
  • analyze or reduce bundle size
  • optimize Next.js (Server vs Client Components, image loading, data fetching)
  • implement accessibility (WCAG, ARIA, keyboard navigation)
  • review or improve frontend code quality

Workflow

  1. Classify the request: scaffold | component | bundle | optimize | accessibility | review.
  2. Load the relevant reference:
    • React patterns (compound components, custom hooks, render props) → {baseDir}/references/react_patterns.md
    • Next.js optimization (Server Components, Suspense, images, caching) → {baseDir}/references/nextjs_optimization_guide.md
    • accessibility, testing strategy, Tailwind conventions → {baseDir}/references/frontend_best_practices.md
  3. Run the appropriate script when a project or component name is provided:
    # Scaffold a new Next.js or React project
    python {baseDir}/scripts/frontend_scaffolder.py my-app --template nextjs
    python {baseDir}/scripts/frontend_scaffolder.py my-app --template nextjs --features auth,api,forms,testing
    
    # Generate a component (client | server | hook) with optional test and story
    python {baseDir}/scripts/component_generator.py Button --dir src/components/ui
    python {baseDir}/scripts/component_generator.py UserProfile --type server --with-test --with-story
    
    # Analyze bundle for heavy dependencies and optimization opportunities
    python {baseDir}/scripts/bundle_analyzer.py ./project --verbose
    
  4. Emit the artifact: component file, project structure, bundle report, or optimization recommendation.

Output Contract

  • Open with the classification and the primary issue or decision.
  • Emit one primary artifact per response (component, config, or report).
  • For bundle analysis: grade (A–F), list heavy packages with lighter alternatives.
  • Annotate non-obvious TypeScript patterns or accessibility choices.
  • Close with the next recommended step (e.g., "add Storybook story", "add sizes prop to Image").

Key Rules

  • Default to Server Components in Next.js. Add 'use client' only when state, effects, or browser APIs are required.
  • Default to TypeScript for all generated code.
  • Use cn() from @/lib/utils for conditional Tailwind classes — not string concatenation.
  • Every generated component must have explicit prop types; no implicit any.
  • Bundle score below 70 (grade C or worse) triggers a dependency replacement recommendation.

Proactive Triggers

Flag these without being asked:

  • moment → replace with date-fns or dayjs
  • lodash full import → switch to lodash-es with tree-shaking
  • COPY . . before npm install in Dockerfile → reorder (defer to docker-development)
  • Missing alt on \x3Cimg> or \x3CImage> → accessibility issue
  • useEffect with data fetching in Next.js → suggest Server Component or use() hook
  • No sizes on responsive \x3CImage> → layout shift risk

Guardrails

  • Do not generate backend API routes or database schemas — stay within frontend scope.
  • Do not add 'use client' to components that only render static markup.
  • Do not recommend @mui/material — prefer shadcn/ui or Radix UI primitives.
  • For large-scale bundle or architecture concerns refer to senior-architect.
安全使用建议
This skill appears coherent for building and optimizing frontends. Before running: 1) Review the bundled Python scripts yourself (they are included) and run component_generator.py with --dry-run first to see intended outputs. 2) Run scripts inside the correct project folder (they read package.json and source files) to avoid accidental modifications to other repos — the scaffolder and generator will create files. 3) Note the 'auth' and 'api' feature options add dependencies like next-auth/@tanstack/react-query and create files such as middleware.ts; enable those only if you expect frontend auth/client API scaffolding. 4) Ensure you have Python 3.8+ available. If you need higher assurance, run the scripts in an isolated environment or review the generated artifacts before committing.
功能分析
Type: OpenClaw Skill Name: kv-senior-frontend Version: 1.0.0 The senior-frontend skill bundle is a legitimate development toolset for React and Next.js projects. It contains well-structured Python scripts for project scaffolding (frontend_scaffolder.py), component generation (component_generator.py), and static analysis of dependencies (bundle_analyzer.py). The instructions in SKILL.md and the reference documentation are aligned with modern frontend best practices and do not contain any malicious prompt injections or unauthorized commands. No evidence of data exfiltration, network calls, or suspicious execution patterns was found.
能力评估
Purpose & Capability
The name/description (React/Next.js scaffolding, components, bundle analysis) matches the included Python scripts and reference docs. The provided scripts implement scaffolding, component generation, and bundle analysis; required binaries/env are none, which is consistent because scripts run with the local Python runtime.
Instruction Scope
SKILL.md limits actions to loading local reference files and running the shipped scripts in scripts/. The scripts read project files (package.json, next.config.*, src/app/pages) and, for scaffolding/generation, write files into the target directory. Reading/writing the project filesystem is expected for this purpose, but be aware the scaffolder and generator create files on disk (there is a dry-run option in component_generator).
Install Mechanism
No install spec or external downloads are present; the skill is instruction + bundled Python scripts. This is low risk compared with skills that download or extract remote archives.
Credentials
The skill declares no environment variables or credentials. The scripts access only repository/project files (package.json, JS/TS sources, next.config.*), which is proportional to bundle analysis and scaffolding tasks. No unrelated secrets or system config paths are requested.
Persistence & Privilege
always is false and the skill does not request persistent platform privileges. It will run scripts when invoked and can create files in the workspace (normal for a scaffolder). Autonomous invocation is allowed by default but is not combined with other concerning flags.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install kv-senior-frontend
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /kv-senior-frontend 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Senior Frontend skill initial release: - Supports scaffolding and optimization for React and Next.js projects with TypeScript and Tailwind CSS. - Provides scripts for generating components, hooks, bundle analysis, and performance recommendations. - Enforces best practices: TypeScript types, server/client component separation, accessibility, and optimized dependencies. - Grades bundles, recommends lightweight alternatives, and highlights common frontend pitfalls. - Includes proactive triggers and strict frontend-only guardrails to guide code quality and maintainability.
元数据
Slug kv-senior-frontend
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Senior Frontend 是什么?

Build, optimize, and review React and Next.js applications with TypeScript and Tailwind CSS. Use when scaffolding a frontend project, generating components,... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 139 次。

如何安装 Senior Frontend?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install kv-senior-frontend」即可一键安装,无需额外配置。

Senior Frontend 是免费的吗?

是的,Senior Frontend 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Senior Frontend 支持哪些平台?

Senior Frontend 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Senior Frontend?

由 felix-antonio-sl(@felix-antonio-sl)开发并维护,当前版本 v1.0.0。

💬 留言讨论