Skip to content
Back to skills

Clean Frontend Scaffolding

ASecurity

Use when cleaning up a freshly scaffolded frontend project — purges default boilerplate (demo components, default styles, placeholder routes, sample assets) before laying down real structure.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 9, 2026
developmentshellbashreactvuefrontend

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 9, 2026

npx -y skills add VelimirMueller/vlm-code-context-mcp --skill clean-frontend-scaffolding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clean Frontend Scaffolding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clean Frontend Scaffolding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/velimirmueller-clean-frontend-scaffolding/badge)](https://www.skillsdirectory.com/skills/velimirmueller-clean-frontend-scaffolding)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clean-frontend-scaffolding
description: Use when cleaning up a freshly scaffolded frontend project — purges default boilerplate (demo components, default styles, placeholder routes, sample assets) before laying down real structure.
---

# Clean Frontend Scaffolding

## 1. Audit current state

Detect framework from `package.json`:
- `react` in dependencies → React project.
- `vue` in dependencies → Vue project.

For each item below, check if it still has Vite scaffold default content (heuristic: file size + scaffolded import patterns):
- `src/App.tsx` (React) or `src/App.vue` (Vue)
- `src/main.tsx` / `src/main.ts`
- `src/App.css` / `src/style.css` / `src/index.css` (default Vite content)
- `public/vite.svg`, `src/assets/react.svg`, `src/assets/vue.svg`
- `index.html` (default `<title>Vite + React</title>` etc.)

If every checked file is already custom, exit early with: "Scaffold cleanup not needed — files appear customized."

## 2. Decide what to do

- All scaffold defaults present → full clean (proceed to step 3).
- Partially customized → remove only the default items still present.
- Already customized → exit.

## 3. Purge boilerplate

### React

1. Reduce `src/App.tsx` to:

   ```tsx
   export default function App() {
     return <div>App shell</div>;
   }
   ```

2. Reduce `src/main.tsx` to a clean root render:

   ```tsx
   import { StrictMode } from 'react';
   import { createRoot } from 'react-dom/client';
   import App from './App';
   import './index.css';

   createRoot(document.getElementById('root')!).render(
     <StrictMode>
       <App />
     </StrictMode>,
   );
   ```

3. Replace `src/App.css` content with a single comment: `/* Project styles (Tailwind handles most layout). */`
4. Replace `src/index.css` content with the Tailwind v4 import (v4 dropped the three `@tailwind` directives for a single `@import`):

   ```css
   @import "tailwindcss";
   ```

5. Delete `src/assets/react.svg` and `public/vite.svg`.
6. Update `index.html` `<title>` to the project name (ask via AskUserQuestion if unknown).

### Vue

1. Reduce `src/App.vue` to:

   ```vue
   <script setup lang="ts"></script>
   <template>
     <div>App shell</div>
   </template>
   ```

2. Reduce `src/main.ts` to:

   ```ts
   import { createApp } from 'vue';
   import App from './App.vue';
   import './style.css';

   createApp(App).mount('#app');
   ```

3. Replace `src/style.css` with the Tailwind directives only (see React step 4).
4. Delete `src/assets/vue.svg`, `public/vite.svg`, `src/components/HelloWorld.vue` (if present).
5. Update `index.html` `<title>` to the project name.

## 4. Verify

```bash
pnpm dev
```

Expected: dev server starts; visiting the app shows the empty shell with no console errors. Stop the server.

## References
- ./boilerplate-removal.md — exact files and patterns per framework, with examples and anti-patterns.
- ../_shared/conventions.md — path alias and source-root conventions.

Files in this skill

  • SKILL.md2.9 KB
  • boilerplate-removal.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.