docHub

D-063 — Prompt archive migrated from AvidCreation into docHub mavis face

Status: accepted · Date: 2026-06-23 · Decided by: Helper Mavis · Operator: confirms

Context

avidtech6/AvidCreation (the operator's prompt archive, nicknamed "Vibe Hub" until 2026-06-23) hosts 237 operator prompts across 7 projects (freshvibe / freshcards / freshvibestudio / freshvibeui / home-studio / smartpantry / vibehub). The viewer SPA at avidcreation.pages.dev is gated by a forgotten-password wall (functions/_middleware.js) and the underlying repo + viewer are not discoverable from the rest of the FVS ecosystem.

The operator asked (2026-06-23) to:

  1. Include the prompt archive into docHub (a single home for everything operator+Mavis related)
  2. Reuse the name "Vibe Hub" for a new Module Gallery site instead

The prompt archive therefore needs a new home. docHub is the natural target: it's already a Cloudflare Pages site, already behind Cloudflare Access (the mavis face), and the docHub SPA shell can host the prompt viewer as a self-contained sub-app.

Decision

Migrate the prompt archive from avidtech6/AvidCreation into docHub's mavis/prompts/ face.

  1. Source of truth stays at avidtech6/AvidCreation — the repo is not deleted or renamed. docHub is the deployment target.
  2. Build pipeline lives in docHubpact/scripts/build-hub-index.py (the AvidCreation script) is ported into docHub as build-prompt-archive.py, adapted to read from the docHub repo and emit into mavis/prompts/.
  3. Viewer SPA is ported as-is — the existing avidcreation.js (97KB) + chat-viewer.css (39KB) + index.html (4KB) + ui-threads.js + ui-topics.js + extract-decisions.js move into docshub/mavis/prompts/_viewer/. Paths are adjusted so it loads from /mavis/prompts/ instead of /.
  4. No password wall — the _middleware.js password gate is dropped. docHub's existing Cloudflare Access (email allowlist on /mavis/*) is the auth model.
  5. Manifest is rebuilt on deploybuild-prompt-archive.py runs as part of deploy.sh and emits mavis/prompts/_viewer/avidcreation-manifest.json from the .prompts/*/*.md source files.
  6. URL: https://docshub-1pi.pages.dev/mavis/prompts/

What stays in AvidCreation

What moves to docHub

What is dropped

Naming convention going forward

When the operator migrates to a stable FVS-canonical naming, all of these can be unified. Until then, the discrepancies are documented here so lane Mavises understand the layout.

Build pipeline

The existing build script in avidtech6/AvidCreation/pact/scripts/build-hub-index.py reads from .prompts/<project>/ and emits into docs/. For docHub:

The 237 prompts are committed to the docHub repo as part of the migration. Future prompts can be added directly to the docHub repo (any Mavis session can write to mavis/prompts/).

First-batch contents

7 projects × 237 prompts:

ProjectPromptsBytes
freshvibe153411.6 KB
home-studio46139.8 KB
freshvibeui1741.2 KB
vibehub1026.0 KB
freshcards510.5 KB
freshvibestudio314.3 KB
smartpantry10.9 KB
Total237665 KB

Migration steps (in order)

  1. ✅ Inspect avidtech6/AvidCreation repo structure and confirm file counts (DONE 2026-06-23 15:38 UTC)
  2. ⬜ Create docshub/mavis/prompts/_viewer/ directory
  3. ⬜ Copy viewer SPA files (js, css, html, svg, attachments) into _viewer/
  4. ⬜ Adapt paths in viewer JS so it loads from /mavis/prompts/_viewer/
  5. ⬜ Copy .prompts/<project>/*.md into docshub/mavis/prompts/<project>/
  6. ⬜ Copy attachments folder to docshub/mavis/prompts/_viewer/attachments/
  7. ⬜ Port build-hub-index.pybuild-prompt-archive.py with docHub paths
  8. ⬜ Update build.mjs to invoke build-prompt-archive.py and include mavis/prompts/ in the manifest
  9. ⬜ Update mavis/_meta/manifest.json to include mavis/prompts/ as a sub-entry
  10. ⬜ Build + deploy
  11. ⬜ Verify at https://docshub-1pi.pages.dev/mavis/prompts/
  12. ⬜ Pause for Cloudflare Access setup (operator task — path scope /mavis/* covers it)

Consequences

Open follow-ups

Cross-references


← back to Mavis workshop