Skip to content
Skillpedia
Websites & UI (frontend)7.8k Β· #13076

project-scaffold

What it does

This skill sets up a starter web project using Vite and TypeScript. It includes folders for components, services, utilities and styles, plus the configuration files. It is for developers starting a new dashboard or web app.

When to use it

  • βœ“When you are starting a new TypeScript web project and want a clean folder layout.
  • βœ“When you need the package and TypeScript config files for a Vite project.
  • βœ“When you want a ready structure for components, services and styles before writing code.

Skill link

https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/project-scaffold/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/AgentPilot/blob/main/openspace/legacy/v1/showcase/skills/project-scaffold/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œCan you set up a new Vite and TypeScript project with folders for components, services and styles?”

5 new skills a week. 1 minute to read.

How it works

The skill shows the folder structure and the config files to create. It also lists the tools the project needs, so the starter is ready to build on.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Project Scaffold

Set up a new Vite + TypeScript project for a personal daily monitoring dashboard.

Directory Structure

my-daily-monitor/
β”œβ”€β”€ index.html
β”œβ”€β”€ package.json
β”œβ”€β”€ tsconfig.json
β”œβ”€β”€ vite.config.ts
β”œβ”€β”€ api/                      # Serverless API proxy endpoints (Vercel)
β”‚   └── stocks.ts
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ main.ts               # Entry point
β”‚   β”œβ”€β”€ components/            # Panel components
β”‚   β”‚   β”œβ”€β”€ Panel.ts           # Base panel class
β”‚   β”‚   β”œβ”€β”€ StockPanel.ts
β”‚   β”‚   β”œβ”€β”€ NewsPanel.ts
β”‚   β”‚   └── index.ts
β”‚   β”œβ”€β”€ services/              # Data fetching services
β”‚   β”‚   β”œβ”€β”€ stock-market.ts
β”‚   β”‚   β”œβ”€β”€ news.ts
β”‚   β”‚   └── index.ts
β”‚   β”œβ”€β”€ utils/                 # Utilities
β”‚   β”‚   β”œβ”€β”€ circuit-breaker.ts
β”‚   β”‚   β”œβ”€β”€ sparkline.ts
β”‚   β”‚   β”œβ”€β”€ format.ts
β”‚   β”‚   └── index.ts
β”‚   β”œβ”€β”€ config/                # Panel config, API endpoints
β”‚   β”‚   └── panels.ts
β”‚   └── styles/
β”‚       └── main.css
└── skills/                    # OpenSpace skill files

package.json

{
  "name": "my-daily-monitor",
  "private": true,
  "version": "0.1.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "preview": "vite preview"
  },
  "devDependencies": {
    "typescript": "^5.7.2",
    "vite": "^6.0.7"
  }
}

tsconfig.json

{
  "compilerOptions": {
    "target": "ES2022",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "strict": true,
    "jsx": "preserve",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "esModuleInterop": true,
    "lib": ["ES2022", "DOM", "DOM.Iterable"],
    "skipLibCheck": true,
    "noEmit": true,
    "paths": {
      "@/*": ["./src/*"]
    },
    "baseUrl": "."
  },
  "include": ["src"]
}

vite.config.ts

import { defineConfig } from 'vite';
import { resolve } from 'path';

export default defineConfig({
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src'),
    },
  },
  server: {
    port: 5173,
  },
});

index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>My Daily Monitor</title>
  <link rel="stylesheet" href="/src/styles/main.css" />
</head>
<body>
  <div id="app">
    <header class="app-header">
      <h1>My Daily Monitor</h1>
      <span class="app-clock" id="headerClock"></span>
    </header>
    <main class="main-content">
      <div class="panels-grid" id="panelsGrid"></div>
    </main>
  </div>
  <script type="module" src="/src/main.ts"></script>
</body>
</html>

src/main.ts (Entry Point)

import './styles/main.css';
// Import panels
import { StockPanel } from './components/StockPanel';
import { NewsPanel } from './components/NewsPanel';
// ... other panels

const grid = document.getElementById('panelsGrid')!;

// Instantiate and mount panels
const panels = [
  new StockPanel(),
  new NewsPanel(),
  // ... more panels
];

for (const panel of panels) {
  grid.appendChild(panel.getElement());
}

// Header clock
function updateClock(): void {
  const el = document.getElementById('headerClock');
  if (el) el.textContent = new Date().toLocaleTimeString();
}
updateClock();
setInterval(updateClock, 1000);

Key Conventions

  1. No framework β€” vanilla TypeScript with DOM API
  2. Each panel is a class in src/components/
  3. Each service is a module in src/services/
  4. CSS uses custom properties for theming
  5. Vite handles bundling, HMR, and path aliases
  6. API proxy endpoints go in api/ for serverless deployment
  7. Panel config in src/config/panels.ts controls which panels are enabled
FAQ

What is Vite?

Vite is a tool that runs a web project during development and packages it for release.

Do I need to know the folder layout in advance?

No. The skill gives a starting layout that you can adjust to your project.

Does it include a server for data requests?

The layout includes a folder for serverless API endpoints, so a project can add one if it needs it.

Details

Original description by the author

Scaffold a Vite + TypeScript personal dashboard project with the correct directory structure, dependencies, and configuration files.

repo: HKUDS/AgentPilot

Popularity

GitHub stars
7.8k
Ranking position
#13076
License
MIT
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills