AgentSkillsCN

ralph-init

通过智能模板检测、PRD 脚手架搭建以及技能部署,快速初始化全新的 Ralph Ultra 项目。适用于新项目启动,或在将现有代码库接入 Ralph Ultra 的自主开发流程时使用。

SKILL.md
--- frontmatter
name: ralph-init
description: Initialize a new Ralph Ultra project with smart template detection, PRD scaffolding, and skill deployment. Use when starting a new project or onboarding an existing codebase into Ralph Ultra's autonomous development workflow.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob

Ralph Ultra Project Initialization

Initialize a project for autonomous development with Ralph Ultra.

What this does

  1. Detects project type — Node.js, Python, Rust, Go, Flutter, or custom
  2. Creates .ralph-ultra/ directory with config, skills, sessions, baselines, and cache
  3. Generates CLAUDE.md — Tailored project instructions based on detected framework
  4. Deploys 21 production skills — All skills copied and version-tracked
  5. Creates config.json — Security mode, tool preference, iteration limits
  6. Generates prd.json scaffold — Ready for story definition

Usage

code
/ralph-ultra:ralph-init <project-name> [--template nextjs|python|node|flutter|fix]

Arguments

  • $ARGUMENTS[0] — Project name (required)
  • --template — Force a specific template instead of auto-detecting

Templates Available

TemplateDetected ByIncludes
nextjsnext.config.*App Router patterns, ISR, Server Components
pythonpyproject.toml, requirements.txtFastAPI/Django patterns, venv, pytest
nodepackage.json (no Next.js)Express/NestJS patterns, Jest
flutterpubspec.yamlDart patterns, widget testing
fixAny existing projectMinimal CLAUDE.md + PRD for bug fixing

Post-Init Checklist

After initialization, the skill verifies:

  • .ralph-ultra/ directory created with correct structure
  • config.json has valid security mode (default: standard)
  • Skills deployed and version manifest created
  • CLAUDE.md generated with project-specific instructions
  • prd.json scaffold ready for story definition

Example

To initialize a Next.js project:

code
/ralph-ultra:ralph-init my-saas-app --template nextjs

Execute: !bash -c "source $RALPH_ULTRA_HOME/lib/core/init.sh && ru_init_project '$ARGUMENTS'" if ralph-ultra CLI is installed, otherwise follow the manual steps above.