modern-web-app
Tools for building modern React webapps with TypeScript, Tailwind CSS and shadcn/ui. Best suited for applications with complex UI components and state management.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- modern-web-app
- description
- Tools for building modern React webapps with TypeScript, Tailwind CSS and shadcn/ui. Best suited for applications with complex UI components and state management.
02 资源文件 73
- 脚本scripts/.prepare-template.sh240 B
- 脚本scripts/init-webapp.sh4.7 KB
- 脚本scripts/template/components.json461 B
- 脚本scripts/template/eslint.config.js616 B
- 脚本scripts/template/index.html291 B
- 脚本scripts/template/package-lock.json294.3 KB
- 脚本scripts/template/package.json2.5 KB
- 脚本scripts/template/postcss.config.js80 B
- 脚本scripts/template/README.md2.5 KB
- 脚本scripts/template/src/App.css606 B
- 脚本scripts/template/src/App.tsx428 B
- 脚本scripts/template/src/components/ui/accordion.tsx2.0 KB
- 脚本scripts/template/src/components/ui/alert-dialog.tsx3.8 KB
- 脚本scripts/template/src/components/ui/alert.tsx1.6 KB
- 脚本scripts/template/src/components/ui/aspect-ratio.tsx280 B
- 脚本scripts/template/src/components/ui/avatar.tsx1.1 KB
- 脚本scripts/template/src/components/ui/badge.tsx1.6 KB
- 脚本scripts/template/src/components/ui/breadcrumb.tsx2.3 KB
- 脚本scripts/template/src/components/ui/button-group.tsx2.2 KB
- 脚本scripts/template/src/components/ui/button.tsx2.2 KB
- 脚本scripts/template/src/components/ui/calendar.tsx7.6 KB
- 脚本scripts/template/src/components/ui/card.tsx1.9 KB
- 脚本scripts/template/src/components/ui/carousel.tsx5.4 KB
- 脚本scripts/template/src/components/ui/chart.tsx9.8 KB
- 脚本scripts/template/src/components/ui/checkbox.tsx1.2 KB
- 脚本scripts/template/src/components/ui/collapsible.tsx786 B
- 脚本scripts/template/src/components/ui/command.tsx4.7 KB
- 脚本scripts/template/src/components/ui/context-menu.tsx8.1 KB
- 脚本scripts/template/src/components/ui/dialog.tsx3.9 KB
- 脚本scripts/template/src/components/ui/drawer.tsx4.2 KB
- 脚本scripts/template/src/components/ui/dropdown-menu.tsx8.2 KB
- 脚本scripts/template/src/components/ui/empty.tsx2.3 KB
- 脚本scripts/template/src/components/ui/field.tsx6.0 KB
- 脚本scripts/template/src/components/ui/form.tsx3.7 KB
- 脚本scripts/template/src/components/ui/hover-card.tsx1.5 KB
- 脚本scripts/template/src/components/ui/input-group.tsx4.9 KB
- 脚本scripts/template/src/components/ui/input-otp.tsx2.2 KB
- 脚本scripts/template/src/components/ui/input.tsx962 B
- 脚本scripts/template/src/components/ui/item.tsx4.4 KB
- 脚本scripts/template/src/components/ui/kbd.tsx862 B
- 脚本scripts/template/src/components/ui/label.tsx611 B
- 脚本scripts/template/src/components/ui/menubar.tsx8.2 KB
- 脚本scripts/template/src/components/ui/navigation-menu.tsx6.5 KB
- 脚本scripts/template/src/components/ui/pagination.tsx2.7 KB
- 脚本scripts/template/src/components/ui/popover.tsx1.6 KB
- 脚本scripts/template/src/components/ui/progress.tsx726 B
- 脚本scripts/template/src/components/ui/radio-group.tsx1.4 KB
- 脚本scripts/template/src/components/ui/resizable.tsx1.9 KB
- 脚本scripts/template/src/components/ui/scroll-area.tsx1.6 KB
- 脚本scripts/template/src/components/ui/select.tsx6.2 KB
- 脚本scripts/template/src/components/ui/separator.tsx699 B
- 脚本scripts/template/src/components/ui/sheet.tsx4.0 KB
- 脚本scripts/template/src/components/ui/sidebar.tsx21.1 KB
- 脚本scripts/template/src/components/ui/skeleton.tsx276 B
- 脚本scripts/template/src/components/ui/slider.tsx1.9 KB
- 脚本scripts/template/src/components/ui/sonner.tsx1020 B
- 脚本scripts/template/src/components/ui/spinner.tsx331 B
- 脚本scripts/template/src/components/ui/switch.tsx1.1 KB
- 脚本scripts/template/src/components/ui/table.tsx2.4 KB
- 脚本scripts/template/src/components/ui/tabs.tsx1.9 KB
- 脚本scripts/template/src/components/ui/textarea.tsx759 B
- 脚本scripts/template/src/components/ui/toggle-group.tsx2.2 KB
- 脚本scripts/template/src/components/ui/toggle.tsx1.5 KB
- 脚本scripts/template/src/components/ui/tooltip.tsx1.8 KB
- 脚本scripts/template/src/hooks/use-mobile.ts565 B
- 脚本scripts/template/src/index.css2.1 KB
- 脚本scripts/template/src/lib/utils.ts166 B
- 脚本scripts/template/src/main.tsx230 B
- 脚本scripts/template/tailwind.config.js2.7 KB
- 脚本scripts/template/tsconfig.app.json815 B
- 脚本scripts/template/tsconfig.json232 B
- 脚本scripts/template/tsconfig.node.json653 B
- 脚本scripts/template/vite.config.ts283 B
03 SKILL.md 正文
modern-web-app
Stack: React + TypeScript + Vite + Tailwind CSS + shadcn/ui
Workflow
scripts/init-webapp.sh <website-title> [output-dir]- Initialize project- Edit source code in
src/ - Build the React app
- Deploy the build output in
dist/
Quick Start
1. Initialize
# Init project in ./app (default) with website title
bash scripts/init-webapp.sh "My Website"
# Or specify custom output directory
bash scripts/init-webapp.sh "My Website" ./my-project
cd ./app # or your custom directory
AI Agent Notes:
- Default project path is
./app(relative to current working directory) - Second argument allows custom output directory
- Non-interactive execution with auto-confirm
This creates a fully configured project with:
- React + TypeScript (via Vite)
- Tailwind CSS 3.4.19 with shadcn/ui theming system
- Path aliases (
@/) configured - 40+ shadcn/ui components pre-installed
- All Radix UI dependencies included
- Production build optimization with Vite
- Node 20+ compatibility (auto-detects and pins Vite version)
2. Develop
Edit generated files in src/:
- Page sections:
src/sections/ - Custom React hooks:
src/hooks/ - TypeScript definitions:
src/types/
3. Build
cd ./app && npm run build 2>&1
Output (dist/):
index.html- Entry pointassets/index-[hash].js- Bundled JSassets/index-[hash].css- Bundled CSS- Optimized images, fonts, other assets
Optimizations: Tree-shaking, code splitting, asset compression, minification, cache-busting hashes.
4. Deploy
Deploy the build output in <project-dir>/dist/
Debugging
- Fix source files
npm run build- Test
dist/ - Redeploy
Reference
04 同仓库更多 Skills
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.
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.
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.
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/site/platform", 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.
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.
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/ui, 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/ui.