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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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
- No framework β vanilla TypeScript with DOM API
- Each panel is a class in
src/components/ - Each service is a module in
src/services/ - CSS uses custom properties for theming
- Vite handles bundling, HMR, and path aliases
- API proxy endpoints go in
api/for serverless deployment - Panel config in
src/config/panels.tscontrols 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
Comments
- β¦
More skills from this repository
agentpilot
7.8kHelps your agent improve a project step by step by preparing a task and running the AgentPilot loop that proposes, tests and scores changes.
openspace
7.8kHelps your agent set up OpenSpace, a tool that stores and fetches agent skills, and connect it to your AI app through MCP.
rsi-arena
7.8kHelps your agent set up and run standard AI benchmark tests, such as AIME and Terminal-Bench, to compare different improvement methods.
experiment-guide
7.8kHelps your agent plan small experiments, read their results and record findings while it investigates how to improve a program.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.