← 返回
未分类 中文

RedHat Frontend Builder

Build frontend apps with safe API integration and quality gates.
构建带有安全 API 集成和质量门控的前端应用。
mzfshark mzfshark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 322
下载
💾 0
安装
1
版本
#dev#latest

概述

SKILL: frontend-builder

Purpose

Build frontend applications (React / Next.js / Vite) with predictable structure, accessibility, and safe API integration.

When to Use

  • A new UI app/page/component system is required.
  • The task includes routing, state management, or API consumption.
  • You need a repeatable scaffold with quality gates (lint/tests/build).

Inputs

  • stack (required, enum: react-vite|nextjs|react-spa).
  • ui_requirements (required, string|object): pages, components, UX constraints.
  • api_contract (optional, object): endpoints/events and schemas.
  • constraints (optional, string[]): theming, perf, accessibility, browser support.

Steps

  1. Confirm scope:
    • routes/pages
    • global layout/navigation
    • state boundaries (server vs client)
  2. Scaffold project in the target directory with minimal dependencies.
  3. Implement component structure:
    • components/, pages//routes/, lib/, styles/
  4. Implement API client layer with:
    • base URL via env
    • timeouts
    • error normalization
  5. Add accessibility and UX guardrails:
    • semantic HTML
    • keyboard navigation
    • loading/error states
  6. Add tests (where the repo conventions support them).
  7. Validate build/lint/test.

Validation

  • App builds cleanly.
  • No secrets in client bundles.
  • API calls handle errors and cancellations.
  • Key user flows are covered by at least smoke tests.

Output

  • Files created/changed
  • Run commands (dev, build, test)
  • Notes about env vars and configuration

Safety Rules

  • Never embed API keys in frontend code; use server-side proxy if needed.
  • Avoid untrusted HTML injection; sanitize where necessary.
  • Prefer stable, well-maintained libraries.

Example

Input:

  • stack: react-vite
  • ui_requirements: “Dashboard page + settings form; calls /api/me.”

Output: Vite project with src/pages/Dashboard.tsx, src/lib/api.ts, and build validation commands.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 21:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,827
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 680 📥 328,573
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 73 📥 182,196