rcode-scaffold-projectlisted
Install: claude install-skill hanzlahabib/rcode
@.rcode/references/karpathy-guidelines.md
## Workflow
# Scaffold Project from rcode Template
## Overview
This skill operates in two modes:
**Greenfield mode (default):** Bootstraps a new rcode project by cloning the
official rcode template (`https://github.com/rcode-om/template`) into a target
directory. Always clones fresh from GitHub.
**Brownfield mode (`--here`):** Initializes rcode in an *existing* project
without cloning the template. Use this when your codebase already exists and
you just want to add rcode structure to it. Invoke as:
`/rcode-scaffold-project --here` or just say "scaffold here" / "add rcode to
this existing project".
The workflow enforces safety: it never overwrites an existing non-empty directory
without explicit user consent (greenfield), and never modifies existing project
files in brownfield mode.
## On Activation
Load config from `{project-root}/.rcode/config.json` and resolve:
- `{user_name}` for greeting
- `{communication_language}` for all agent communication
Greet the user as `{user_name}` in `{communication_language}`.
Then proceed to `./steps/step-01-target.md`.
## Stages
| # | Stage | Purpose | File |
|---|-------|---------|------|
| 1 | Target Directory | Get + validate destination path; detect `--here` flag | `steps/step-01-target.md` |
| 2 | Safety Check | Verify folder is empty or get new path (greenfield); brownfield consent (brownfield) | `steps/step-02-safety.md` |
| 3a | Clone | Clone template repo fresh from GitHub *(g