Bootstrap a New Neexo Project

Step-by-step guide for setting up a new Neexo project with the recommended .github structure, plugin installation, and project-specific copilot-instructions.

AuthorNeexoCore
Updated
onboardingproject-setupcopilot

Overview

When starting a new Neexo project, the .github/ structure is as important as the code. This recipe gives your project a Copilot setup that matches the maturity of neexo-internal and neexo-configurator from day one.

Step 1: Install the Guardrails Plugin

# Register the Neexo marketplace (one-time)
copilot plugin marketplace add NeexoCore/awesome-neexo

# Install guardrails (cost, security, database, testing instructions)
copilot plugin install neexo-guardrails@awesome-neexo

# Install developer tools (code review, commit messages)
copilot plugin install neexo-developer@awesome-neexo

Step 2: Create the .github Structure

.github/
├── copilot-instructions.md    # Project-specific rules
├── instructions/               # Path-specific instructions
│   └── (your domain files)
├── agents/                     # Optional: specialized agents
├── prompts/                    # Optional: scaffolding prompts
├── skills/                     # Optional: custom skills
└── workflows/                  # CI/CD

Step 3: Write copilot-instructions.md

Use this template and fill in your project's details:

---
applyTo: '**'
description: 'Global project rules for <project-name>'
---

# <Project Name> — Project Rules

## Stack

- **Framework:** (e.g., Next.js 16 App Router)
- **Language:** (e.g., TypeScript 5 strict)
- **Styling:** (e.g., Tailwind CSS 4 + shadcn/ui v4)
- **Database:** (e.g., Drizzle ORM + PostgreSQL/Neon)
- **Auth:** (e.g., Clerk v7)
- **Validation:** (e.g., Zod v4 — import from "zod/v4")
- **Package manager:** (npm/pnpm)
- **Deployment:** (e.g., Vercel via GitHub Actions)

## Critical Conventions

(List your non-negotiable rules here — things every agent must know)

## Project Structure

(Outline key directories and their purpose)

## Build & Validation

(List the commands to run before committing)

## Do NOT

(List common mistakes specific to your project)

Step 4: Add Path-Specific Instructions

Create instruction files in .github/instructions/ for specific domains:

---
applyTo: '**/db/**'
description: 'Database and migration rules'
---

# Database Rules

- Always scope queries by orgId
- Keep schema + migration + code in the same commit

Step 5: Verify Setup

Open VS Code, start a Copilot chat, and ask:

What instructions and plugins are loaded for this workspace?

Use Copilot Chat Diagnostics (Command Palette → "Chat: Show Diagnostics") to confirm all instructions are active.

Stack-Specific Recommendations

Next.js + Drizzle + Clerk (like neexo-internal)

Install guardrails + developer plugins, then add instructions for:

  • nextjs-conventions (from marketplace)
  • drizzle-database (from marketplace)
  • clerk-auth (from marketplace)
  • zod-v4 (from marketplace)
  • shadcn-ui-v4 (from marketplace)
  • Domain-specific rules in .github/instructions/

Next.js + R3F + i18n (like neexo-homepage)

Add instructions for:

  • nextjs-conventions (from marketplace)
  • react-three-fiber (from marketplace)
  • next-intl (from marketplace)
  • 3D component patterns in .github/instructions/3d.instructions.md

Python + Blender (like neexo-render-studio)

Add instructions for:

  • blender-python (from marketplace)
  • Subprocess and rendering rules in .github/instructions/

Unity C# (like neexo-unity)

Add instructions for:

  • Singleton patterns, versioning rules in .github/instructions/

Pro Tips

  • Keep the copilot-instructions.md under 500 lines — split domain knowledge into separate instruction files
  • Add prompts for scaffolding — if your team creates the same file types often (API routes, components, pages), create .github/prompts/ templates
  • Reference the llms.txt — share https://awesome.neexo.dk/api/llms.txt with external AI tools that need Neexo context
  • Review monthly — as your project evolves, update instructions to match current patterns

Raw content

Copy this into your project — e.g. .instructions.md, .agent.md, or SKILL.md

## Overview

When starting a new Neexo project, the `.github/` structure is as important as the code. This recipe gives your project a Copilot setup that matches the maturity of neexo-internal and neexo-configurator from day one.

## Step 1: Install the Guardrails Plugin

```bash
# Register the Neexo marketplace (one-time)
copilot plugin marketplace add NeexoCore/awesome-neexo

# Install guardrails (cost, security, database, testing instructions)
copilot plugin install neexo-guardrails@awesome-neexo

# Install developer tools (code review, commit messages)
copilot plugin install neexo-developer@awesome-neexo
```

## Step 2: Create the .github Structure

```
.github/
├── copilot-instructions.md    # Project-specific rules
├── instructions/               # Path-specific instructions
│   └── (your domain files)
├── agents/                     # Optional: specialized agents
├── prompts/                    # Optional: scaffolding prompts
├── skills/                     # Optional: custom skills
└── workflows/                  # CI/CD
```

## Step 3: Write copilot-instructions.md

Use this template and fill in your project's details:

```markdown
---
applyTo: '**'
description: 'Global project rules for <project-name>'
---

# <Project Name> — Project Rules

## Stack

- **Framework:** (e.g., Next.js 16 App Router)
- **Language:** (e.g., TypeScript 5 strict)
- **Styling:** (e.g., Tailwind CSS 4 + shadcn/ui v4)
- **Database:** (e.g., Drizzle ORM + PostgreSQL/Neon)
- **Auth:** (e.g., Clerk v7)
- **Validation:** (e.g., Zod v4 — import from "zod/v4")
- **Package manager:** (npm/pnpm)
- **Deployment:** (e.g., Vercel via GitHub Actions)

## Critical Conventions

(List your non-negotiable rules here — things every agent must know)

## Project Structure

(Outline key directories and their purpose)

## Build & Validation

(List the commands to run before committing)

## Do NOT

(List common mistakes specific to your project)
```

## Step 4: Add Path-Specific Instructions

Create instruction files in `.github/instructions/` for specific domains:

```markdown
---
applyTo: '**/db/**'
description: 'Database and migration rules'
---

# Database Rules

- Always scope queries by orgId
- Keep schema + migration + code in the same commit
```

## Step 5: Verify Setup

Open VS Code, start a Copilot chat, and ask:

```
What instructions and plugins are loaded for this workspace?
```

Use **Copilot Chat Diagnostics** (Command Palette → "Chat: Show Diagnostics") to confirm all instructions are active.

## Stack-Specific Recommendations

### Next.js + Drizzle + Clerk (like neexo-internal)

Install guardrails + developer plugins, then add instructions for:
- `nextjs-conventions` (from marketplace)
- `drizzle-database` (from marketplace)
- `clerk-auth` (from marketplace)
- `zod-v4` (from marketplace)
- `shadcn-ui-v4` (from marketplace)
- Domain-specific rules in `.github/instructions/`

### Next.js + R3F + i18n (like neexo-homepage)

Add instructions for:
- `nextjs-conventions` (from marketplace)
- `react-three-fiber` (from marketplace)
- `next-intl` (from marketplace)
- 3D component patterns in `.github/instructions/3d.instructions.md`

### Python + Blender (like neexo-render-studio)

Add instructions for:
- `blender-python` (from marketplace)
- Subprocess and rendering rules in `.github/instructions/`

### Unity C# (like neexo-unity)

Add instructions for:
- Singleton patterns, versioning rules in `.github/instructions/`

## Pro Tips

- **Keep the copilot-instructions.md under 500 lines** — split domain knowledge into separate instruction files
- **Add prompts for scaffolding** — if your team creates the same file types often (API routes, components, pages), create `.github/prompts/` templates
- **Reference the llms.txt** — share `https://awesome.neexo.dk/api/llms.txt` with external AI tools that need Neexo context
- **Review monthly** — as your project evolves, update instructions to match current patterns