New

From clacky-ai/openclacky · View interactive version

New is an AI agent skill from the GitHub repository clacky-ai/openclacky. Create a new project to start development quickly

How to use this skill

Skill file

Create New Project

Usage

When user wants to create a new Rails project:

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:

1. Check Directory Before Starting

Before running the setup script, check if current directory is empty:

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:

Step 1: Clone Template

Step 2: Check Environment

Step 3: Install Project Dependencies

Step 4: Project Setup Complete

3. Start Development Server

After the script completes, read the .1024 config file in the project root

to find the run_command, then start it in the background via the terminal tool:

# First, read .1024 to get the run_command (usually `bin/dev` for Rails):
file_reader(path: ".1024")

# Then start the server in the background:
terminal(command: "<run_command from .1024>", background: true)

Important: If the terminal call returns a session_id (and no error), the

server has started successfully. You can inspect logs later by polling the

same session_id with an empty input.

Then inform the user and ask what to develop next:

✨ Rails project created successfully!

The development server is now running at: http://localhost:3000

You can open your browser and visit the URL to see the application.

What would you like to develop next?

Error Handling

Example Interaction

User: "/new"

Response:

  1. Checking if current directory is empty...
  2. Running create_rails_project.sh in current directory
  3. Cloning Rails template from GitHub...
  4. Checking environment dependencies...
  5. Installing project dependencies...
  6. Project setup complete!
  7. Starting development server via terminal (background)...
  8. ✨ Server running! Visit http://localhost:3000
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.