-
Notifications
You must be signed in to change notification settings - Fork 45
Update SKILL.md with pre-flight checks #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,17 @@ Scaffold full-stack Ethereum dApps using create-eth (Scaffold-ETH 2). Guide the | |
|
|
||
| ## Step 1: Scaffold the Project | ||
|
|
||
| Run this command immediately -- no planning, no research, no exploration beforehand: | ||
| Before running the scaffold command, do these pre-flight checks in order: | ||
|
|
||
| 1. **Detect OS:** run `uname -o 2>/dev/null || echo "Windows"`. | ||
| - If output contains `Msys`, `Cygwin`, or `Windows` → use Hardhat. Do not check for Foundry. Foundry has known compatibility issues with create-eth on Windows. | ||
| - If Linux/Mac → run `forge --version`. If Foundry is available use it, otherwise fall back to Hardhat. | ||
|
|
||
| 2. **Resolve project name:** suggest a kebab-case name derived from what the user wants to build. Check if that directory already exists in the current location. If it does, auto-increment the suffix (`-2`, `-3`, etc.) until a free name is found. | ||
|
|
||
| 3. **Important: Always confirm with the user if he wants to use the resolved <project-name>, and let him choose another one if he doesn't like resolved one.**. If the user choose another project name, use it as <project-name> in the next command. | ||
|
Comment on lines
+20
to
+22
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For me it decided to create a temp folder, and then try to move the scaffolded instance to the existing folder, it was a mess. 30+ minutes and then I started getting a lot of issues with symlink files:
I was using Sonnet 4.6
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just tried with the production
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I remember this happening to me once as well! But after that it never happened, it asks me for confirmation that poject already exisit, what you want to do? Remove, update the same one (tried with prod SKILL.md) So I think maybe we can probably remove this two points 🙌
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For me prompt worked fine on the first attempt, (macOS, foundry). Then, I tried to run the same script 4-5 times from the folder which is not scaffolded. Both [2] and [3] doesn't work for me. Both claude code and cursor never increment folder number and never asks for resolved project name. Just check if existing folder multisig-wallet scaffolded and then continue to work on the app inside the folder
I found the bug, from the BuidlGuidl/SpeedRunEthereum-v2#356 (comment), if add It was breaking because I run the prompt from I'm wondering now why it worked first time. But it's AI, I think it's checked the link just in case and decided to go with it since it saw the way to build the app with create-eth |
||
|
|
||
| Then run: | ||
|
|
||
| ```bash | ||
| npx create-eth@latest -s <hardhat|foundry> <project-name> | ||
|
|
||






There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I missed this, maybe you mentioned it in some other discussion but what error are getting? I think it would be nice to handle it asap
But for time being we can keep this 🙌