← ClaudeAtlas

playground-rebuildlisted

Rebuild and serve the WASM playground at docs/playground/. Use after editing the playground source or any code reachable from cmd/agnostic-ai-wasm.
Chemaclass/agnostic-ai · ★ 12 · AI & Automation · score 70
Install: claude install-skill Chemaclass/agnostic-ai
<!-- Generated by agnostic-ai. Do not edit this file directly; edit specs under .agnostic-ai/ and run `agnostic-ai sync`. --> # playground-rebuild The hosted playground at https://chemaclass.github.io/agnostic-ai/ runs the same code as the CLI, compiled to WebAssembly via `cmd/agnostic-ai-wasm`. ## Build ``` make playground-build ``` Writes `docs/playground/agnostic-ai.wasm` and copies the Go-toolchain `wasm_exec.js` shim. Both are gitignored; CI regenerates them on push to `main`. ## Serve locally ``` make playground-serve ``` Starts `python3 -m http.server 8080` in `docs/playground/`. Open http://127.0.0.1:8080. `file://` does not work because browsers refuse `WebAssembly.instantiateStreaming` on local files. ## After edits - `playground.js` or `style.css` changes: refresh the browser. - Go source changes: rebuild with `make playground-build` first, then refresh. ## Clean ``` make playground-clean ``` Removes the generated `.wasm` and `wasm_exec.js`.