Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
chore(prompts): add root-cleanup task prompts
nirholas5a6dd6ccc345
diff --git a/prompts/cleanup-root/01-root-css-dedup.md b/prompts/cleanup-root/01-root-css-dedup.mdnew file mode 100644index 000000000..4946ee154--- /dev/null+++ b/prompts/cleanup-root/01-root-css-dedup.md@@ -0,0 +1,67 @@+# Cleanup task: root-level CSS files++## Goal++The repo root currently holds nine `*.css` files. Five are byte-identical+duplicates of files already in `public/`; the rest are unique source CSS+that the moved-to-`pages/` HTML files reference via absolute URLs+(`/community.css`, `/playground.css`, …). Get every CSS file into `public/`+and remove the dead root copies so the root no longer carries stylesheets.++## Inputs (verify before acting)++Run these checks first; only proceed if the picture matches:++```+ls *.css # 9 files in repo root+ls public/*.css | wc -l # 6+ files already in public/+```++For each root `*.css`, decide its disposition by diffing against the+`public/` counterpart (if one exists). Take the **public/ copy as+authoritative** for the three identical pairs and for `home.css`+(the public version is what the dev server and build currently serve;+the root copy is dead). For the rest, move the root copy into `public/`.++| Root file | Action |+|----------------------|--------------------------------------------------------------|+| `app-demo.css` | `git mv app-demo.css public/app-demo.css` |+| `community.css` | `git mv community.css public/community.css` |+| `features.css` | `git mv features.css public/features.css` |+| `footer.css` | `git rm footer.css` (identical to `public/footer.css`) |+| `home.css` | `git rm home.css` (public/ version is live) |+| `marketplace-v2.css` | `git mv marketplace-v2.css public/marketplace-v2.css` |+| `marketplace.css` | `git rm marketplace.css` (identical to `public/marketplace.css`) |+| `playground.css` | `git mv playground.css public/playground.css` |+| `style.css` | `git rm style.css` (identical to `public/style.css`) |++Before deleting, re-verify identity with `diff -q`. If `diff -q` reports+**any** difference for the four `git rm` rows, stop and surface the diff —+do not silently lose CSS.++## Acceptance criteria++1. `ls *.css` at repo root prints nothing (no CSS in root).+2. `ls public/*.css` contains all nine names listed above+ (`app-demo.css`, `community.css`, `features.css`, `footer.css`,+ `home.css`, `marketplace.css`, `marketplace-skills.css`,+ `marketplace-v2.css`, `playground.css`, `style.css`).+3. `npm run build` succeeds.+4. In `dist/`, the HTML files that reference these stylesheets still+ resolve them — spot-check `dist/community.html`,+ `dist/playground.html`, `dist/app-demo.html`, `dist/features.html`,+ `dist/marketplace.html`, `dist/home.html` for live `<link>` tags+ (either bare `/foo.css` or hashed `/assets/foo-HASH.css`).+5. `git grep -nE 'href="/?(style|home|footer|marketplace(-v2)?|community|features|playground|app-demo)\.css"'`+ shows only refs that the build produces correctly — nothing referencing+ a root path that no longer exists.++## Commit++```+git -c user.name=nirholas -c [email protected] \+ commit -m "chore(root): move/dedupe root CSS into public/"+```++The commit must also include deleting this prompt file+(`prompts/cleanup-root/01-root-css-dedup.md`).diff --git a/prompts/cleanup-root/02-walk-screenshots.md b/prompts/cleanup-root/02-walk-screenshots.mdnew file mode 100644index 000000000..961c26e64--- /dev/null+++ b/prompts/cleanup-root/02-walk-screenshots.md@@ -0,0 +1,60 @@+# Cleanup task: walk-*.png scratch screenshots++## Goal++Five PNG files in the repo root (`walk-after.png`, `walk-before.png`,+`walk-multi-A.png`, `walk-multi-B.png`, `walk-smoke.png`) are output+artifacts written by `scratch/walk-smoke.tmp.mjs` — scratch test+screenshots that should never have been checked in. Remove them, make+the scratch script write to a non-tracked subdirectory, and ignore that+subdirectory in git.++## Inputs (verify before acting)++```+ls walk-*.png # the 5 files+grep -n "screenshot" scratch/walk-smoke.tmp.mjs # write paths+git grep -nE "walk-(after|before|smoke|multi-[AB])\.png" # who references them+```++Only `scratch/walk-smoke.tmp.mjs` should reference these names. If any+other source references them, surface the hits before deleting — those+references may need to be retargeted.++## Steps++1. `git rm walk-after.png walk-before.png walk-multi-A.png+ walk-multi-B.png walk-smoke.png`+2. Edit `scratch/walk-smoke.tmp.mjs` so every+ `page.screenshot({ path: 'walk-*.png', ... })` writes into+ `scratch/screenshots/` instead (e.g.+ `path: 'scratch/screenshots/walk-before.png'`). Create the directory+ at script startup with `mkdirSync('scratch/screenshots', { recursive: true })`.+3. Append a single line to `.gitignore` so future runs don't re-pollute:+ ```+ scratch/screenshots/+ ```+ Only add the line if it's not already present.++## Acceptance criteria++1. `ls walk-*.png` at repo root → "No such file or directory" (or empty).+2. `scratch/walk-smoke.tmp.mjs` no longer mentions a bare `walk-*.png`+ path; all screenshot paths live under `scratch/screenshots/`.+3. `.gitignore` contains `scratch/screenshots/`.+4. `node scratch/walk-smoke.tmp.mjs --help` (or whatever the script's+ no-op invocation is) does not error from a missing directory. If the+ script has no flag-based exit, dry-check by running it briefly and+ confirming files land under `scratch/screenshots/`. If the script+ needs a running dev server to do anything, skip the dry-run and just+ confirm the path constants in source.++## Commit++```+git -c user.name=nirholas -c [email protected] \+ commit -m "chore(root): remove walk-*.png scratch screenshots; redirect smoke output"+```++The commit must also include deleting this prompt file+(`prompts/cleanup-root/02-walk-screenshots.md`).diff --git a/prompts/cleanup-root/03-shell-scripts.md b/prompts/cleanup-root/03-shell-scripts.mdnew file mode 100644index 000000000..b187a5946--- /dev/null+++ b/prompts/cleanup-root/03-shell-scripts.md@@ -0,0 +1,60 @@+# Cleanup task: relocate root shell scripts into scripts/++## Goal++Three shell scripts sit at the repo root: `claude.sh`, `gitpretty.sh`,+`trigger-bazaar.sh`. They belong in `scripts/` next to the other+shell/Node helpers (`scripts/fetch-animations.sh`,+`scripts/quick-fetch-anims.sh`, …). Move them and update every+reference.++## Inputs (verify before acting)++```+ls *.sh # claude.sh gitpretty.sh trigger-bazaar.sh+git grep -nE '(^|[^/])(claude|gitpretty|trigger-bazaar)\.sh'+```++Known callers (re-confirm with the grep above before editing):++- `package.json` — `"claude": "./claude.sh"`+- `run-trigger.js` — `execSync('bash trigger-bazaar.sh', …)`+ (this file will be deleted in a separate task — fix the path here+ anyway so this prompt remains independent.)++## Steps++1. `git mv claude.sh scripts/claude.sh`+2. `git mv gitpretty.sh scripts/gitpretty.sh`+3. `git mv trigger-bazaar.sh scripts/trigger-bazaar.sh`+4. In `package.json`, change `"claude": "./claude.sh"` to+ `"claude": "./scripts/claude.sh"`.+5. In `run-trigger.js`, change `bash trigger-bazaar.sh` to+ `bash scripts/trigger-bazaar.sh`. (If `run-trigger.js` has already+ been deleted by another task, skip this step silently.)+6. After moves, confirm executable bits are preserved+ (`ls -l scripts/claude.sh scripts/gitpretty.sh scripts/trigger-bazaar.sh`);+ `chmod +x` any that lost the bit.++## Acceptance criteria++1. `ls *.sh` at repo root prints nothing.+2. `ls scripts/{claude,gitpretty,trigger-bazaar}.sh` lists all three with+ the `x` permission bit set.+3. `git grep -nE '(^|[^/])(claude|gitpretty|trigger-bazaar)\.sh'` shows+ only references that include the `scripts/` prefix.+4. `npm run claude --help 2>/dev/null || true; head -1 scripts/claude.sh`+ — the path resolves (script still has a shebang and is invokable).+ The `npm run claude` script does not need to succeed end-to-end+ (it may spawn a long-running tool); the goal is just to confirm+ Node finds the file.++## Commit++```+git -c user.name=nirholas -c [email protected] \+ commit -m "chore(root): move shell scripts into scripts/"+```++The commit must also include deleting this prompt file+(`prompts/cleanup-root/03-shell-scripts.md`).diff --git a/prompts/cleanup-root/04-root-js-scripts.md b/prompts/cleanup-root/04-root-js-scripts.mdnew file mode 100644index 000000000..5cb774c94--- /dev/null+++ b/prompts/cleanup-root/04-root-js-scripts.md@@ -0,0 +1,52 @@+# Cleanup task: remove root-level JS helpers++## Goal++Two ad-hoc JS files live at the repo root:++- `commit.js` — auto-commits + pushes as a hard-coded identity. It+ rewrites `git config user.name`/`user.email` globally, hard-codes a+ commit message, and silently swallows errors with `catch (e) {}`. It+ has no callers in the codebase. Delete it.+- `run-trigger.js` — a 4-line wrapper that does `execSync('bash+ trigger-bazaar.sh')`. Trivial; users can just invoke the shell script+ directly. Delete it.++Neither script is referenced by `package.json`, the build, or any other+tracked file (verify before deleting).++## Inputs (verify before acting)++```+git grep -nE '(^|[^A-Za-z])(commit|run-trigger)\.js' \+ | grep -vE '^(commit|run-trigger)\.js:' # exclude self-matches+```++If anything comes back, stop and surface it — there's a hidden caller+that needs to be retargeted first.++## Steps++1. `git rm commit.js run-trigger.js`++That's it — no replacement, no docs to update (the files have no+documented usage).++## Acceptance criteria++1. `ls commit.js run-trigger.js 2>&1` → both report "No such file".+2. `git grep -nE '(^|[^A-Za-z])(commit|run-trigger)\.js'` returns+ nothing.+3. `npm test` still passes the same tests as before this task (no+ regressions caused by the deletion — these files weren't imported by+ any test).++## Commit++```+git -c user.name=nirholas -c [email protected] \+ commit -m "chore(root): remove unused commit.js and run-trigger.js helpers"+```++The commit must also include deleting this prompt file+(`prompts/cleanup-root/04-root-js-scripts.md`).diff --git a/prompts/cleanup-root/05-working-docs.md b/prompts/cleanup-root/05-working-docs.mdnew file mode 100644index 000000000..d89aa295b--- /dev/null+++ b/prompts/cleanup-root/05-working-docs.md@@ -0,0 +1,65 @@+# Cleanup task: relocate working/internal docs into docs/internal/++## Goal++Four working documents sit at the repo root and dilute the canonical+top-level docs (README, LICENSE, CONTRIBUTING, CODE_OF_CONDUCT, CLAUDE):++- `NEXT.md` — `/loop` blockers & decisions for the user+- `PROGRESS.md` — running progress log+- `STATUS.md` — scheduled-agent run log (one line per run)+- `TODO.md` — open TODOs++`docs/internal/` already exists (see `docs/internal/SETUP.md`,+`docs/internal/DEVELOPMENT.md`). Move these four files there so the+top-level docs are limited to repo-canonical files.++## Inputs (verify before acting)++```+ls NEXT.md PROGRESS.md STATUS.md TODO.md+ls docs/internal/ # confirm dir exists+git grep -nE '\b(NEXT|PROGRESS|STATUS|TODO)\.md\b' \+ | grep -vE '^(NEXT|PROGRESS|STATUS|TODO)\.md:' # exclude self-matches+```++Self-references inside these files (e.g. `STATUS.md` mentioning+`TODO.md`) are fine — their relative paths still resolve once both files+are siblings under `docs/internal/`. External references (anywhere+*outside* these four files) must be updated. Common suspects:++- `CLAUDE.md` instructions that point at "see TODO.md" or "log to STATUS.md"+- `.claude/`, `.github/`, or task files telling agents where to write++Update any such references to use the new `docs/internal/<name>.md` path.++## Steps++1. `git mv NEXT.md docs/internal/NEXT.md`+2. `git mv PROGRESS.md docs/internal/PROGRESS.md`+3. `git mv STATUS.md docs/internal/STATUS.md`+4. `git mv TODO.md docs/internal/TODO.md`+5. For every external reference found by the grep above, rewrite the+ path from `NEXT.md` → `docs/internal/NEXT.md` (same for the others).+ If a reference is a bare filename used as an instruction (e.g.+ "log progress to PROGRESS.md") rewrite to the new full path so+ future agents land in the right place.++## Acceptance criteria++1. `ls NEXT.md PROGRESS.md STATUS.md TODO.md 2>&1` → all four report+ "No such file" at the repo root.+2. `ls docs/internal/{NEXT,PROGRESS,STATUS,TODO}.md` lists all four.+3. `git grep -nE '\b(NEXT|PROGRESS|STATUS|TODO)\.md\b'` does not show+ any path that omits the `docs/internal/` prefix (except matches that+ are inside the files themselves and are intentionally relative).++## Commit++```+git -c user.name=nirholas -c [email protected] \+ commit -m "chore(root): move working docs (NEXT/PROGRESS/STATUS/TODO) into docs/internal/"+```++The commit must also include deleting this prompt file+(`prompts/cleanup-root/05-working-docs.md`).