This page replaces the previous “Hello World” page on lab.simplyai.work. It shows how to use the @nanobot fullstack_dev skill to create, test, deploy, and PR new pages.
@nanobot fullstack_dev create project mykb static @nanobot edit_file path=/Users/kevinhyt/Documents/Nanobot/workspace/projects/mykb/index.html old_text="<h1>Welcome</h1>" new_text="<h1>My Knowledge Base</h1>" @nanobot fullstack_dev run tests mykb @nanobot fullstack_dev deploy mykb kb-ui @nanobot fullstack_dev open pr mykb kb-ui --merge @nanobot fullstack_dev demo mykb
| Flag | Command | Description |
|---|---|---|
--merge | @nanobot fullstack_dev open pr mydemo kb-ui --merge | After creating the PR, the bot will attempt to merge it automatically (requires write permission). |
--no‑tunnel | @nanobot fullstack_dev demo mydemo --no-tunnel | Runs the local server only, without exposing a public URL. |
--verbose | Append to any command | Shows raw git/npm output – helpful for debugging. |
@nanobot fullstack_dev create project mykb staticBot reply: ✅ Created static project at
/Users/kevinhyt/Documents/Nanobot/workspace/projects/mykb
@nanobot edit_file path=/Users/kevinhyt/Documents/Nanobot/workspace/projects/mykb/index.html old_text="<h1>Welcome</h1>" new_text="<h1>My Knowledge Base</h1>"
@nanobot fullstack_dev run tests mykbBot reply: ⚠️ No recognizable test framework found.
@nanobot fullstack_dev deploy mykb kb-uiBot reply (after a few seconds): 🚀 Preview URL:
https://kb-ui--lab.pages.dev/
main):@nanobot fullstack_dev open pr mykb kb-uiBot reply: ✅ PR created: https://github.com/aryuu-allocfun/lab/pull/42
@nanobot fullstack_dev open pr mykb kb-ui --merge
@nanobot fullstack_dev demo mykbBot reply: 🌐 Demo URL:
https://a1b2c3d4.trycloudflare.com
Nanobot already has a generic edit_file tool. Syntax:
@nanobot edit_file path=<full‑path> old_text="<exact‑old‑string>" new_text="<new‑string>"
old_text appears verbatim in the file. … ) and replace that block.| Symptom | Likely cause | Fix |
|---|---|---|
| “Could not resolve host …” when checking a preview URL | The branch hasn’t been pushed yet, or the Cloudflare preview build is still in progress. | Wait a minute, then re‑run @nanobot fullstack_dev deploy … or simply re‑open the URL. |
| “Permission denied (publickey)” on git push | PAT file missing or unreadable, or git is still trying to use SSH. | Ensure gh_token.txt exists, contains the token, and the deploy.sh script uses the https://[email protected]/... URL (it does by default). |
| `gh` commands fail | `gh` not logged in. | Run once from the terminal: gh auth login --with-token < ~/Documents/Nanobot/workspace/secrets/gh_token.txt. After that the skill can call gh without interactive login. |
| `cloudflared` not found when running demo | CLI not installed or not in $PATH. | Install with brew install cloudflared and ensure /usr/local/bin (or the Homebrew bin) is on the PATH. |
That’s it! Use the cheat‑sheet above to spin up new pages, test them, preview them instantly on Cloudflare Pages, and ship them via PRs—all without leaving Telegram. 🚀