agentleFS
karashiirokarashiiro/agent-skills/creating-a-new-project/SKILL.md

creating-a-new-project

Skill2 starsChanged 9 months agoUnlicenseView on GitHub

Use when creating a new project, repository, package, or application from scratch - ensures official scaffolding tools are used instead of hand-writing boilerplate.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always search for and use official project generators or scaffolding tools before writing project boilerplate by hand.

    line 10
  2. Distinctive:

    STOP before writing any config or boilerplate files: Follow this order:

    line 21
  3. Very specific:

    Never hand-write files that a generator would produce (package.json, tsconfig.json, Cargo.toml, pyproject.toml, Dockerfile templates, CI …

    line 27
  4. Very specific:

    Check the generator's --help output for non-interactive flags

    line 34
  5. Distinctive:

    If no non-interactive mode exists, ask the user to run the generator themselves

    line 36
  6. Very specific:

    When unsure about flags, run <generator-command> --help first.

    line 58
  7. Very specific:

    Search for the generator: Check official docs or search the web for create <framework> / <tool> init / <tool> new.

    line 87
  8. Distinctive:

    Adapt to existing conventions: If adding to a monorepo, align the generated config with the repo's existing style (linter config, tsconfig …

    line 91
  9. Distinctive:

    No official generator exists for the ecosystem

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Creating a New Project

Overview

Always search for and use official project generators or scaffolding tools before writing project boilerplate by hand. Generators encode community best practices, produce standardized structure, and stay current with ecosystem conventions.

When to Use

  • Creating a new application, library, package, or repository
  • Setting up a new workspace or monorepo
  • Adding a new package to an existing monorepo
  • Bootstrapping any project where a create-*, init, or new command likely exists

Core Pattern

STOP before writing any config or boilerplate files. Follow this order:

  1. Search for the official scaffolding tool for the framework/language/platform
  2. Run the generator with appropriate options (use non-interactive flags — see below)
  3. Customize the generated output to fit the specific needs

Never hand-write files that a generator would produce (package.json, tsconfig.json, Cargo.toml, pyproject.toml, Dockerfile templates, CI configs, etc.) unless no generator exists.

Handling Interactive Generators

Most generators prompt interactively by default. Since CLI agents cannot respond to interactive prompts, always use non-interactive flags to specify all options upfront.

Strategy:

  1. Check the generator's --help output for non-interactive flags
  2. Specify the template/preset and all required options via CLI flags
  3. If no non-interactive mode exists, ask the user to run the generator themselves

Non-Interactive Flags by Generator

GeneratorKey FlagsExample
Vite--template, --no-interactivenpm create vite@latest my-app -- --template react-ts --no-interactive
Next.js--yes, --ts, --app, --tailwind, --src-dir, --eslintnpx create-next-app@latest my-app --yes --ts --app
Nuxt--template, --no-modules, --packageManagernpm create nuxt@latest my-app -- --no-modules --packageManager=pnpm
SvelteKit--no-add-ons, --no-install, --addnpx sv create my-app --no-add-ons --no-install
Astro-y / --yes, --templatenpm create astro@latest my-app -- --template minimal -y
React Router--template (required)npx create-react-router@latest my-app --template remix-run/react-router-templates/default
Expo--yes, --templatenpm create expo my-app -- --yes --template blank
Tauri--templatenpm create tauri-app@latest my-app -- --template react
Electron Forge--templatenpx create-electron-app@latest my-app --template webpack
Turborepo-m, --skip-installnpx create-turbo@latest my-monorepo -m pnpm
Nx--interactive=false, --presetnpx create-nx-workspace@latest myorg --preset=empty --interactive=false --nxCloud skip
RustAlready non-interactivecargo new my-project
GoAlready non-interactivego mod init github.com/user/my-module
Python (uv)Already non-interactiveuv init my-project
.NETAlready non-interactivedotnet new webapi -n MyProject

When unsure about flags, run <generator-command> --help first.

Quick Reference

EcosystemGenerator CommandNotes
Vite (React/Vue/Svelte/etc.)npm create vite@latestCovers most frontend frameworks
Next.jsnpx create-next-app@latestIncludes App Router setup
Nuxtnpm create nuxt@latest
SvelteKitnpx sv createUnified CLI replacing old create-svelte
Astronpm create astro@latest
React Router (formerly Remix)npx create-react-router@latestRemix merged into React Router v7
Node.js (plain)npm init / pnpm initMinimal, but sets up package.json correctly
Rustcargo init / cargo new
Gogo mod init
Pythonuv init or framework-specific (e.g. django-admin startproject)
.NETdotnet newTemplates: webapi, console, classlib, etc.
Java (Spring)Spring Initializr (start.spring.io)Web UI or IDE plugins; spring init CLI also available
Expo (React Native)npm create exponpx create-expo-app also still works
Taurinpm create tauri-app@latest
Electronnpx create-electron-app@latestVia Electron Forge
Turboreponpx create-turbo@latestMonorepo setup
Nxnpx create-nx-workspace@latestMonorepo setup

This table is not exhaustive. If the ecosystem is not listed, search the web for the official generator before proceeding manually.

Workflow

  1. Identify the ecosystem. What language, framework, or platform?
  2. Search for the generator. Check official docs or search the web for create <framework> / <tool> init / <tool> new.
  3. Check --help for non-interactive flags before running.
  4. Run the generator non-interactively with all options specified via flags. Prefer the latest version (@latest).
  5. Review the output. Generators may include files the project doesn't need - remove those. They may also miss project-specific needs - add those.
  6. Adapt to existing conventions. If adding to a monorepo, align the generated config with the repo's existing style (linter config, tsconfig paths, package manager, etc.).

When Hand-Writing IS Appropriate

  • No official generator exists for the ecosystem
  • The project is intentionally minimal (e.g., a single-file script with no build tooling)
  • The user explicitly requests writing from scratch
  • The generator output would need so many modifications that starting fresh is faster (rare - usually customizing is still faster and safer)

Common Mistakes

MistakeWhy It's WrongFix
Running a generator without non-interactive flagsHangs waiting for inputAlways check --help and pass flags
Writing tsconfig.json by handMiss new compiler options, get strictness wrongUse generator, then adjust
Hand-crafting package.json with scriptsMiss standard scripts, get module config wrongnpm init or framework generator
Guessing at .gitignore contentsMiss platform/framework-specific entriesGenerator includes correct ignores; or use gitignore.io
Copying config from another projectCarries over project-specific quirksFresh generator output is cleaner
Skipping the search step"I know how to set this up" - but conventions evolveAlways check for a generator, even for familiar ecosystems

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.