# New

Create a new project to start development quickly

- Repository: https://github.com/clacky-ai/openclacky (1209 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add clacky-ai/openclacky --skill new -g -a claude-code -y`
Codex: `npx skills add clacky-ai/openclacky --skill new -g -a codex -y`
Cursor: `npx skills add clacky-ai/openclacky --skill new -g -a cursor -y`
Gemini CLI: `npx skills add clacky-ai/openclacky --skill new -g -a gemini-cli -y`

## Description

Create a new project to start development quickly

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Create New Project

## Usage
When user wants to create a new Rails project:
- "help me create a new Rails project"
- "I want to start a new Rails project"
- "/new"

## Process Steps

### 0. Ask Project Type and Requirement
Before doing anything, call `ask_user` with a structured prompt. Use the following as a guide:

zh:
```json
{
  "question": "请选择项目类型，并用一句话描述你想做什么：",
  "context": "开始新项目前需要知道项目类型和需求，请先完成填写。",
  "options": ["⚡ Demo, 无数据库，AI 自由发挥，快速原型", "🏗️ Production, 真实应用，可部署，完整 Rails 配置"]
}
```

en:
```json
{
  "question": "Choose a project type and describe what you want to build in one sentence:",
  "context": "Tell us what kind of project to create so we can get started.",
  "options": ["⚡ Demo, no database, AI builds freely, quick prototype", "🏗️ Production, real app, ready to deploy, full Rails setup"]
}
```

**Based on user's choice:**
- If **Demo**: do NOT follow the Rails setup steps below. Instead, freely build a simple HTML/CSS/JS (or React) prototype directly in the working directory based on their requirement. Use your creativity.
- If **Production**: continue with steps 1, 3 below (full Rails flow).

### 1. Check Directory Before Starting
Before running the setup script, check if current directory is empty:
- Use glob tool to check if directory has files: `glob("*", base_path: ".")`
- If directory is NOT empty, ask user for confirmation: "Current directory is not empty. Continue anyway? (y/n)"
- If user declines, abort and suggest creating project in an empty directory

### 2. Run Setup Script
Execute the `create_rails_project.sh` script (see Supporting Files below) in current directory.
Use the exact absolute path shown in the Supporting Files section:
```bash
<absolute path to create_rails_project.sh from Supporting Files>
```

The script will automatically:

The rest: https://github.com/clacky-ai/openclacky/blob/HEAD/lib/clacky/default_skills/new/SKILL.md
