Heal

Scan the LIVE site for bugs/errors, auto-fix the source, and ship the fix.

thesolutionhub6-cloud updated 1mo ago
Claude CodeGeneric
View source ↗
---
description: Scan the LIVE site for bugs/errors, auto-fix the source, and ship the fix.
allowed-tools: Bash, Read, Edit, Write, Glob, Grep, WebFetch
---

Autonomously hunt for and fix problems on the LIVE site (https://thesolutionhub.ca).
No confirmations — fix forward and ship.

1. **Scan.** Run `node scripts/smoke-test.mjs`. Then probe deeper with curl:
   - Each top-level page (`/`, `/pnp-draws.html`, `/services/`, `/pathways/`) → expect 200.
   - Extract every internal `href`/`src` from the homepage and HEAD-check them for 404s.
   - Each Netlify function → 200 + valid JSON.
   - Look for error markers in returned HTML/JSON (e.g. "undefined", "NaN", empty required sections).

2. **Diagnose.** For every real issue, find the cause in the source files (HTML/CSS/JS or
   `netlify/functions/*.mjs`). Ignore transient upstream-feed outages (those are not site bugs).

3. **Fix.** Edit the source. Run `node scripts/validate.mjs` until green.

4. **Ship.** Follow the `/ship` procedure to deploy and verify the fix live.

5. **Loop.** Repeat until the scan is fully clean. Report a summary: what was broken,
   the root cause, the fix, and the final smoke-test result.

Maintain Heal?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[Heal on getagentictools](https://getagentictools.com/loops/thesolutionhub6-cloud-heal?ref=badge)
npx agentictools info loops/thesolutionhub6-cloud-heal

The second line is the CLI lookup for this page — handy in READMEs and docs.