Token导航 LogoToken导航

Agent Skill · 研究检索

front-dev(前端开发)

front-dev 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

front-dev 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 67,439。

总安装 245周安装 10GitHub Stars 公开资料未说明下载 78核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/marsolab/skills --skill front-dev

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

front-dev 用于查找、检索和筛选相关信息。适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。

安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。暂无额外注意事项,建议参考来源仓库获取最新使用说明。

来源仓库内路径:skills/front-dev

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/marsolab/skills --skill front-dev;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

front-dev 怎么安装?

在终端执行 npx skills add https://github.com/marsolab/skills --skill front-dev。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

front-dev 支持哪些 AI 工具?

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

front-dev 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

front-dev 是免费的吗?

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

front-dev 用的人多吗?

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

front-dev 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
front-dev

前端开发 · 本页

245—操作浏览器未明确未通过

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

SKILL.md 原文

Web Frontend Stack

Build modern, performant web applications using Bun + Astro + React/Preact + Tailwind v4 + Shadcn UI.

Core Philosophy

Astro is always the foundation. We don't choose between Astro and React — we use them together:

  • Astro handles routing, pages, layouts, and static content (zero JS by default)
  • React/Preact powers interactive islands within Astro pages
  • Tailwind v4 provides utility-first styling with CSS variables
  • Shadcn UI gives us accessible, customizable React components
  • Bun accelerates development with fast installs, builds, and testing
┌─────────────────────────────────────────────────────────────────┐
│                         Astro (Foundation)                       │
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────────┐  │
│  │ Static Page  │  │ Static Page  │  │    Dynamic Page      │  │
│  │   (0 JS)     │  │   (0 JS)     │  │  ┌────────────────┐  │  │
│  │              │  │              │  │  │  React Island  │  │  │
│  │  Hero.astro  │  │ About.astro  │  │  │  client:load   │  │  │
│  │  Footer.astro│  │              │  │  └────────────────┘  │  │
│  │              │  │              │  │  ┌────────────────┐  │  │
│  │              │  │              │  │  │ Preact Island  │  │  │
│  │              │  │              │  │  │ client:visible │  │  │
│  └──────────────┘  └──────────────┘  │  └────────────────┘  │  │
│                                       └──────────────────────┘  │
└─────────────────────────────────────────────────────────────────┘

Workflow: New Project

Follow these steps when creating a new frontend project from scratch.

Step 1: Check for Agentation

Before writing any frontend code, check if the user has Agentation installed — a visual feedback tool that lets you click elements on the page and generate structured context for AI agents.

  1. Look for "agentation" in package.json devDependencies
  2. If NOT found, propose to the user:
Agentation provides visual feedback for AI-assisted frontend development — you click elements, add notes, and I get precise selectors and context. Want me to install it?

If they agree:

bun add -d agentation
# Also install the Claude Code skill for setup automation:
npx skills add benjitaylor/agentation

Add to the dev-only layout wrapper:

import { Agentation } from 'agentation';

// Only render in development
{import.meta.env.DEV && <Agentation />}

Step 2: Scaffold the Project

# Initialize Astro project
bun create astro@latest my-project
cd my-project

# Add integrations
bunx astro add react     # React islands
bunx astro add tailwind  # Tailwind CSS v4

# Initialize Shadcn UI
bunx shadcn@latest init
bunx shadcn@latest add button card form input dialog

# Start dev server
bun run dev

Step 3: Configure Logging

Set up LogTape for structured logging across all runtimes. See references/bun.md for full patterns.

bun add @logtape/logtape
import { configure, getConsoleSink } from '@logtape/logtape';

await configure({
  sinks: { console: getConsoleSink() },
  loggers: [{ category: ['myapp'], lowestLevel: 'info', sinks: ['console'] }],
});

Step 4: Set Up Testing

Set up Playwright for E2E testing. Ask the user which browser(s) they want:

BrowserBest ForSpeed
ChromiumDefault, full compatBaseline
FirefoxCross-browserSimilar
WebKitSafari compatSimilar
LightpandaFast CI, headless11x faster

See references/testing.md for full Playwright config, Lightpanda setup, and component testing patterns.

bun add -d @playwright/test
bunx playwright install chromium  # or user's chosen browser

Step 5: First Dev Run

bun run dev
# Open http://localhost:4321

Workflow: Existing Project

When working on an existing frontend project:

  1. Detect the stack — read astro.config.mjs, package.json, tsconfig.json to understand what's already configured
  2. Check for Agentation — same as Step 1 above. If missing, propose it.
  3. Route to the right reference based on the task:

- Building pages/routing → references/astro.md - React/Preact components → references/react.md or references/preact.md - Styling/theming → references/tailwind.md - Forms/tables/UI → references/shadcn.md - Testing → references/testing.md - Deploying → references/deployment.md

Project Type Decision

BuildingAstro ConfigKey Integrations
Content site (blog, docs)Static (default)Content Collections, MDX, Tailwind
Web app (dashboard, SaaS)SSR or hybridReact islands, Shadcn UI, React Query
E-commerceHybridStatic product pages, React cart island
Landing pageStaticMinimal islands, Tailwind, Astro components
DocumentationStaticContent Collections, MDX, search island
Internal toolSSRReact islands (heavy), Shadcn DataTable, Forms

Island Framework: React vs Preact

NeedChooseWhy
Shadcn UI componentsReactShadcn is built for React
Complex state (React Query, Zustand)ReactEcosystem support
Bundle size critical (<50KB page JS)Preact~3KB vs ~40KB
High-frequency updates (live data)Preact + SignalsFine-grained reactivity
Simple widget (counter, toggle, form)PreactSmaller, sufficient
Web Component outputPreactSmaller, easier to wrap
Default (no specific need)Preact without Shadcn, React with Shadcn

Both can coexist in the same Astro project:

bunx astro add react preact

File convention: *.tsx for React, *.preact.tsx for Preact (or use folders).

Hydration Strategy

DirectiveWhenUse Case
(none)NeverStatic content — zero JS
client:loadPage loadCritical interactivity (nav, auth)
client:idleBrowser idleNon-critical features (analytics, chat)
client:visibleIn viewportBelow-fold content (comments, footer)
client:mediaMedia matchResponsive features (desktop-only)
client:onlyPage load, no SSRBrowser-only APIs (WebGL, canvas)

State Management

State TypeSolution
UI state (form, toggle)useState / useReducer
Derived stateuseMemo / computed signals
Server state (API data)React Query / SWR
Global UI (theme, sidebar)Zustand (React) or @preact/signals (Preact)
Form state (complex)react-hook-form + Zod
URL state (filters, pagination)Query params / nuqs
Cross-island stateAstro nanostores or custom events

Testing Strategy

LayerToolWhat to TestCount
Unitbun test / VitestUtils, hooks, pure functionsMany
ComponentTesting LibraryReact/Preact interactionsSome
IntegrationTesting Library + MSWFeatures with mocked APIsSome
E2EPlaywrightCritical user flowsFew

See references/testing.md for full setup, browser selection, Lightpanda integration, and MSW patterns.

Tool Integration: Agentation

Agentation provides visual feedback for AI- assisted frontend development. It renders a toolbar in the bottom-right corner during development — click any element to annotate it and generate structured context with CSS selectors and positions.

Detection: Check package.json for "agentation" in devDependencies.

If not installed, propose to the user:

bun add -d agentation
npx skills add benjitaylor/agentation

Setup in Astro layout:

import { Agentation } from 'agentation';

// Dev-only — renders toolbar for visual annotation
{import.meta.env.DEV && <Agentation />}

MCP Integration: Agentation has an MCP server that lets Claude Code access annotations directly in real-time without manual copy-pasting. Recommend the user set this up for the best experience.

Requirements: React 18+, desktop browsers only.

Tool Integration: LogTape

LogTape is the preferred logging library — zero dependencies, 5.3KB, works across Node.js, Deno, Bun, browsers, and edge functions. ~2x faster than Pino with nested categories and lazy evaluation.

bun add @logtape/logtape

Key advantages over Pino:

  • Multi-runtime: One logger for server + client + edge
  • Library-friendly: Libraries log without configuring; apps configure sinks
  • Lazy evaluation: Templates only interpolated if level is enabled
  • Integrations: Express, Fastify, Hono, OpenTelemetry, Sentry

See references/bun.md for full LogTape patterns, request logging middleware, and OpenTelemetry integration.

Tool Integration: Lightpanda

Lightpanda is a Zig-based headless browser — 11x faster than Chrome, 9x less memory. CDP-compatible with Playwright.

# Install
curl -fsSL https://pkg.lightpanda.io/install.sh | bash
# Or Docker: docker run -p 9222:9222 lightpanda/browser:nightly

# Connect from Playwright
lightpanda serve --host 127.0.0.1 --port 9222

Use for: fast CI tests, web scraping, AI browser automation. Not for: visual regression, screenshot testing, CSS layout checks.

See references/testing.md for full Playwright + Lightpanda configuration.

Architecture Principles

  1. Astro-First — Every page starts static, add islands only when needed
  2. Mobile-First — Base styles for mobile, responsive variants for larger
  3. Accessibility-First — Semantic HTML, keyboard nav, ARIA when needed
  4. Performance Budget — <100KB JS per page, LCP <2.5s, CLS <0.1

Quick Start: Page with Islands

---
// src/pages/index.astro
import Layout from '../layouts/Layout.astro';
import Hero from '../components/Hero.astro';
import Counter from '../components/Counter';
import Comments from '../components/Comments';
---

<Layout title="Home">
  <Hero />                              <!-- Static: Zero JS -->
  <Counter client:load />               <!-- Immediate hydration -->
  <Comments client:visible />           <!-- Hydrate when visible -->
</Layout>

Reference Files

Consult these based on what you're working on:

When you need to...Read
Build Astro pages, routing, content collections, View Transitions, error pages, SSR, MDXreferences/astro.md
Write React components, hooks, state management, React Query, error boundariesreferences/react.md
Use Preact, Signals, fine-grained reactivity, Web Componentsreferences/preact.md
Style with Tailwind v4, @theme, container queries, CVA variants, dark modereferences/tailwind.md
Use Shadcn UI forms, data tables, dialogs, command palettereferences/shadcn.md
Set up Bun server, LogTape logging, bundling, TypeScript configreferences/bun.md
Configure testing: Playwright, Lightpanda, Vitest, Testing Library, MSW, E2Ereferences/testing.md
Deploy to Vercel, Netlify, Cloudflare, Docker, static hostingreferences/deployment.md
Implement security: XSS prevention, CSRF, CSP, auth, rate limitingreferences/security.md
Add accessibility: ARIA, focus management, keyboard nav, screen readersreferences/accessibility.md

Common Pitfalls

AreaPitfallSolution
AstroMaking everything an islandOnly client:* for interactivity
Astroclient:load everywhereUse idle/visible for non-critical
ReactReact libs for simple widgetsUse Preact for small islands
PreactMixing signals with useStateSignals outside components
TailwindHardcoded colorsUse semantic tokens via @theme
ShadcnNot customizing componentsOwn the code, modify freely
TestingOnly testing in ChromiumAdd Firefox/WebKit, consider Lightpanda for CI
DeployNot testing production buildAlways bun run preview before deploying

平台分布

Codex

36.9%
按下载量换算29

Claude

30.32%
按下载量换算24

Cursor

17.23%
按下载量换算13

Gemini CLI

8.76%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

继续浏览同类 Skills