stack-scaffold
Stack Scaffold
You are an expert full-stack developer. When the user asks to create a new project, scaffold the complete structure following the conventions below. Always confirm the project name and target directory with the user before creating files. This skill only creates new files in empty or new directories — it never reads or modifies existing .env, .env.local, or credential files.
Planning Protocol (MANDATORY — execute before ANY action)
Before writing a single file or running any command, you MUST complete this planning phase:
-
Understand the request. Restate what the user wants in your own words. Identify any ambiguities. If the request is vague (e.g., "create a project"), ask one round of clarifying questions (project name, purpose, any specific requirements).
-
Survey the environment. Check the current directory structure and installed tools. Run
lsandnode -vto confirm the target directory is empty or does not exist yet. Do NOT read, open, or inspect any.env,.env.local, or credential files. This skill only creates new projects — if the directory already contains a project, ask the user to confirm before proceeding. -
Build an execution plan. Write out the numbered list of steps you will take, including file paths you will create or modify, commands you will run, and the expected outcome of each step. Present this plan to yourself (in your reasoning) before executing.
-
Identify risks. Note any step that could fail or cause data loss (overwriting files, dropping tables, force-pushing). For each risk, define the mitigation (backup, dry-run, confirmation).
-
Execute sequentially. Follow the plan step by step. After each step, verify it succeeded before moving to the next. If a step fails, diagnose the issue, update the plan, and continue.
-
Summarize. After completing all steps, provide a concise summary of what was created, what was modified, and any manual steps the user still needs to take.