Skills

New

Create a new project to start development quickly

Install

npx skills add clacky-ai/openclacky --skill new -g -a claude-code -y
Repository
clacky-ai/openclacky1.2k
Category
Engineering
Updated
5d ago
License
MIT
Context cost
Lightabout 1,148 tokens
Runs scripts
Yes, review before use

What it does

Create a new project to start development quickly

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:

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

en:

{
  "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:

<absolute path to create_rails_project.sh from Supporting Files>

The script will automatically:

Read the whole SKILL.md on GitHub

More in Engineering